var currentTheme=null;var video_previews={};var trajan={src:rootPath+"common/swf/trajan.swf"};sIFR.activate(trajan);sIFR.replace(trajan,{selector:"div.title-wrap h2, div.title-wrap h1",wmode:"transparent",css:{".sIFR-root":{color:"#f1b147","text-align":"center"}},filters:{DropShadow:{blurX:2,blurY:2,quality:1,distance:2,angle:90,color:"#000000",strength:1,alpha:100,knockout:true}}});$(document).ready(function(){$(".tab-holder .tab-page:not(:first)").css("display","none");$(".tab-holder .tabs a:first").addClass("selected").each(function(){repositionSparkle(this)});$(".tab-holder .tabs a").each(function(){$(this).attr("oldhref",$(this).attr("href")).attr("href","javascript:void(0)");var b=$(this).find("strong");var c=Math.floor(((32-b.height())/2));if(c>0){b.css("padding-top",c)}}).click(function(){repositionSparkle(this);$(".tab-holder .tabs a").removeClass("selected");$(this).addClass("selected");$(".tab-holder .tab-page").css("display","none");$($(this).attr("oldhref")).css("display","block")})});var sparkle=null;function repositionSparkle(b){if(sparkle==null){sparkle=$(document.createElement("div"));sparkle.addClass("sparkle");$(".tab-holder").append(sparkle)}var c=$(b).position();sparkle.css({top:(Math.floor(c.top)-20)+"px",left:(Math.floor(c.left)+$(b).width())+"px"})}var sliders=[];function setPanelButtonText(b,c){}function addSlider(e,d,c){var b={id:e,auto:d,speed:c};sliders[sliders.length]=b}function initSlider(b){$("#"+b.id+" .slider").easySlider({pause:b.speed*1000,auto:b.auto,continuous:true})}$(document).ready(function(){for(i=0;i<sliders.length;i++){initSlider(sliders[i])}$(".module-themeswitcher .slider").easySlider({auto:false,continuous:true,onchange:function(d){var e=themeSwitcherButtonBaseUrl;var g=e.split("?");var f=g[0];var b=g[1].split("&");for(a=0;a<b.length;a++){var c=b[a].split("=");if(c[0]=="theme"){c[1]=themes[d]}b[a]=c.join("=")}$("#themeswitcher-btn").attr("href",f+"?"+b.join("&"))}})});var fancyboxOptions={overlayOpacity:0.8,frameWidth:400,frameHeight:250};$(document).ready(function(){if($("a.lightbox").fancybox!=null){$("a.lightbox").fancybox(fancyboxOptions)}$("a:not(.lightbox)").click(function(){var b=$(this).attr("href").toLowerCase();if(b.substr(0,4)=="http"||b.substr(0,5)=="https"){return false}})});var previewid=0;var videoPreview=null;$(document).ready(function(){$(".previewable").each(function(){$(this).append('<span class="video-overlay"></span>');if(videoPreview==null){videoPreview=$(document.createElement("span")).addClass("video-preview").hide().append('<span id="vidpreview"></span>');$(document.body).append(videoPreview);swfobject.embedSWF(rootPath+"common/swf/patf_videoThumb.swf","vidpreview","100%","100%","9.0.124",null,{},{wmode:"transparent"},{})}previewid++});$(".video-overlay").mouseenter(showVideoPreview).mouseleave(hideVideoPreview);$(".overlay").mouseenter(showVideoPreview).mouseleave(hideVideoPreview)});function showVideoPreview(){if(this.parentNode.id!=""&&video_previews[this.parentNode.id]!=null){var b=$(this.parentNode);var c=null;if(b.hasClass("previewable")){c=b}else{c=b.find(".previewable")}c.append(videoPreview);videoPreview.show();swfobject.embedSWF(rootPath+"common/swf/patf_videoThumb.swf","vidpreview","100%","100%","9.0.124",null,{videoURL:video_previews[this.parentNode.id]},{bgcolor:"#CC0000",wmode:"transparent"},{})}}function hideVideoPreview(){videoPreview.remove();videoPreview.hide()}$(window).load(function(){$("a").each(function(){if($(this).attr("class").indexOf("bookmark")==-1&&$(this).attr("href").indexOf("http")>-1){$(this).click(function(){if((isExternalLink($(this).attr("href"))||$(this).attr("class").indexOf("external")>-1)&&!($(this).parent().attr("class").indexOf("ad")>-1)){if(!$(this).hasClass("iframe")){var c=$(this).attr("href");$(this).attr("href",appendToExternalPage($(this).attr("href")));var e=null;var b={callbackOnClose:function(){clearTimeout(e)},callbackOnShow:function(){e=setTimeout(function(){window.open(c)},10000)}};var d=$.extend(fancyboxOptions,b);$(this).toggleClass("iframe",true).fancybox(d).trigger("click")}return false}else{location.href=$(this).attr("href")}})}})});$(document).ready(function(){$(".chromePlayLink,.chromeExploreLink").parent().css("text-align","center")});function launchLightbox(b){$(document.createElement("a")).toggleClass("iframe",true).attr("href",appendToExternalPage(b)).hide().appendTo($(document.body)).fancybox(fancyboxOptions).trigger("click").remove()}function appendToExternalPage(b){return rootPath+"external-link.jsp?path="+escape(b)}function isExternalLink(b){return !(new RegExp(internalLinksRegExp).test(b))}var themes=[];