window.fbAsyncInit=function(){FB.init({appId:"169541386413453",status:true,cookie:true,xfbml:true})};var Lightbox={close:function(){var a=$([document.getElementById("pipeline-lightbox"),document.getElementById("pipeline-lightbox-panel")]);if(a.length){a.fadeOut(300,function(){a.remove()})}},open:function(b){if(!document.getElementById("pipeline-lightbox")){$(document.body).append(['<div id="pipeline-lightbox"></div>','<div id="pipeline-lightbox-panel">',"<h1>Project Pipeline</h1>",'<img src="',b.href,'"/>',"<p>",$("#additional-info ul li.pipeline p.caption").html(),"</p>",'<a class="exit" href="',document.location,'">Close</a>',"</div>"].join(""));var a=$(document.getElementById("pipeline-lightbox-panel"));a.fadeIn(300);var c=_gat._getTrackerByName();_gaq.push(["myTracker._trackEvent","Lightbox","Open","Project Pipeline"]);a.children("a.exit").click(function(){Lightbox.close();return false});$(document.getElementById("pipeline-lightbox")).click(function(){Lightbox.close()});$(document.documentElement).keydown(function(d){if(d.keyCode==27){Lightbox.close()}})}}};(function(a){a.fn.tooltip=function(){var b;var c;this.hover(function(){c=a(this).attr("alt");a(this).attr("alt","");var f='<div class="tooltip"><div class="tooltip-arrow"></div></div>';b=a(f).append(c);var d=a(this).offset();var e=a(window).height()-d.top;b.css("position","absolute").css("left",d.left-13+"px").css("bottom",e-10+"px").hide();a(document.body).append(b);b.fadeIn("fast")},function(){b.remove();a(this).attr("alt",c)})}})(jQuery);$(function(){$("a[rel*='external']").click(function(){try{var d=_gat._getTrackerByName();_gaq.push(["myTracker._trackEvent","Outbound Links",this.href]);setTimeout('document.location = "'+this.href+'"',100)}catch(e){}return false});$(document.getElementById("survey_1201_signup")).hover(function(){$(this).attr("src","./hcz/images/button_signup_hover.png")},function(){$(this).attr("src","./hcz/images/button_signup.png")});var a=document.createElement("input");if(!("placeholder" in a)){var c=$("#cons_email").attr("placeholder");$("#cons_email").val(c).addClass("placeholder").focus(function(){if($(this).val()==c){$(this).val("").removeClass("placeholder")}}).blur(function(){if($(this).val()==""){$(this).val(c).addClass("placeholder")}})}$("li.pipeline a").click(function(){Lightbox.open(this);return false});$(document.getElementById("tell-and-share")).hover(function(){STTAFFUNC.showHoverMap(this,"2010091044955-1",window.location,document.title)},function(){STTAFFUNC.hideHoverMap(this)}).click(function(){STTAFFUNC.cw(this,{id:"2010091044955-1",link:window.location,title:document.title});return false});var b=$(document.getElementById("video-player"));$("#video-placeholder img").click(function(){var e=$("#video-navigation > li:first > a > img").attr("alt");var d=_gat._getTrackerByName();_gaq.push(["myTracker._trackEvent","Video","Placeholder",e]);b.attr("src",b.attr("src")+"&autoplay=1").show();$("#video-placeholder").remove()});$("#video-navigation a").click(function(){var d=$(this);$(document.getElementById("video-placeholder")).remove();var g=d.find("img:first").attr("alt");if(g===null||g===""){var g=$("div.tooltip:first").text()}var f=d.attr("id").replace("video_","");b.show().attr("src","http://www.youtube.com/embed/"+f+"?rel=0&autoplay=1&wmode=transparent");var e=_gat._getTrackerByName();_gaq.push(["myTracker._trackEvent","Video","Carousel",g]);return false});$(document.getElementById("video-navigation")).jcarousel({visible:5,scroll:1,wrap:"both"});$("#video-navigation img").tooltip()});
