var resizeTimer;function elemResize(){if(isIE){clearTimeout(resizeTimer);resizeTimer=setTimeout(elemResizeFunctions,250)}else{elemResizeFunctions()}}function elemResizeFunctions(){clearTimeout(resizeTimer);windowWidth=viewportWidth();windowHeight=viewportHeight();var b=document.getElementById("animationShell");var a=document.getElementById("backHolderOverlay");if(b){if(flashAnimationPlaying){resizeAnimation()}}if(a){if(a.innerHTML!=""){callBackgroundOverlay("",100)}}if(popupOpen){kiPopup.refreshPosition()}}function callBackgroundOverlay(e,g){var b=window.top.document.getElementById("mainLayout").style.height;var c=window.top.document.getElementById("mainLayout").style.width;if(b>windowHeight){var a=b}else{var a=windowHeight}if(c>windowWidth){var h=c}else{var h=windowWidth}if(!document.getElementById("backHolderOverlayImage")){var d="<img id='backHolderOverlayImage' src='"+staticFileRoot+"/themes/global/images/backHolderOverlay.gif' width='"+h+"' height='"+(a-5)+'\'onClick=\'document.getElementById("backHolderOverlay").innerHTML = "";'+e+"' />";document.getElementById("backHolderOverlay").style.zIndex=g;document.getElementById("backHolderOverlay").innerHTML=d}else{var f=document.getElementById("backHolderOverlayImage")}}var key=null;if(location.href.indexOf("https:")>-1){if(location.href.match("wizard101.com")){key="ABQIAAAAVUMzuLBNrME5HAM7rbAM0BTTuZJEdS9COQDOI-hmeOsg9OinwBT5BaC__LH7XbbI2-A0Fk9UB1Ym2w"}else{if(location.href.match("kingsisle.com")){key="ABQIAAAAVUMzuLBNrME5HAM7rbAM0BRkxwSlfom3CxS-eKKLkAg3LqzkEBQ7nC1JF2DaM4nofmsD1yIo_setkw"}}}else{if(location.href.match("wizard101.com")){key="ABQIAAAAVUMzuLBNrME5HAM7rbAM0BSmUVwrE7e-d2uuDh1B0HPvBk6QyxRlL7__gETpUs7Kah6SGdfLMGYpHQ"}else{if(location.href.match("kingsisle.com")){key="ABQIAAAAxaGg0-TU0iTWduLeqhyWDRS7Eth01uhu3yl7ZTpP-1pNM9MEixQ96-Ohz21hf4E2yjebmcrJ3uiGYQ"}}}var html="";if(location.href.indexOf("https:")>-1){html='<script src="https://www.google.com/jsapi?key='+key+'" type="text/javascript"><\/script>'}else{html='<script src="http://www.google.com/jsapi?key='+key+'" type="text/javascript"><\/script>'}document.write(html);function endScript(){return"<\/script>"}function checkHome(a){if(!popupOpen){window.location=a}}var flashLoaded=new Array();var flashSettings=new Array();var flashIds=new Array();var javascriptSlideshows=new Array();function flashTest(a){alert(a)}function isBodyLoaded(){return bodyLoaded}function setFlashLoaded(a){a=Number(a);flashLoaded[a]=true}function checkMoviePlay(){if(popupOpen){return false}else{return true}}function toggleVideo(c){var b=true;if(c=="play"){b=false}if(flashIds.length>0){for(var a=0;a<flashIds.length;a++){if(flashLoaded[a]){flashMovie(flashIds[a]).playToggle(b)}}}if(javascriptSlideshows.length>0){for(a=0;a<javascriptSlideshows.length;a++){javascriptSlideshows[a].playToggle(b)}}}function getFlashSettings(a){return flashSettings[a]}function filmstripLink(c,a){var d="[";for(var b=0;b<a.length;b++){d+="'"+a[b]+"',"}d+="]";document.write('<a href="#" onClick="rewriteSlideshow('+d+');return false;">'+c+"</a>")}function rewriteSlideshow(j,a){var l;var e;var k;var i;var d;var b=false;if(flashIds.length>0){var h=flashIds.length-1;var c="videoPlayer_"+String(h);var f=document.getElementById("flashPlayerContainer_"+h);i=f.parentNode;var g=flashMovie(c);e=g.width;k=g.height;var n=staticJavaScriptRoot+"/themes/global/flash/slideshow.swf?bn="+bn;l=flashSettings[h];flashSettings.splice(flashSettings.length-1,1);flashIds.splice(flashIds.length-1,1)}else{if(javascriptSlideshows.length>0){b=true;var m=javascriptSlideshows[javascriptSlideshows.length-1];l=m.originalSettings;e=l.width;k=l.height;i=m.rootNode.parentNode;javascriptSlideshows.splice(javascriptSlideshows.length-1,1)}}d=l.staticImage;l.files.splice(0,l.files.length);l.files=j;if(a){l.flow=a}if(!b){i.innerHTML=renderFlashDisplay(l,d,e,k,n)}else{var m=new Slideshow(l);javascriptSlideshows.push(m);i.innerHTML=m.getHTML()}}function renderHomeSlide(d,e,a,c){path=staticJavaScriptRoot+"/themes/global/flash/slideshow.swf?bn="+bn;var f=false;if(!kiFlashEnabled){if(isChrome||isIpad||isIphone||(isSafari&&isMac)){f=true}}if(!f){d.themePath=staticJavaScriptRoot+"/themes/corporate/home1/flash/SlideshowElements.swf?bn="+bn;document.write(renderFlashDisplay(d,e,a,c,path))}else{d.javascriptThemePath=staticJavaScriptRoot+"/themes/corporate/common/javascript/slideshowElements.js?bn="+bn;d.cssPath=staticJavaScriptRoot+"/themes/corporate/common/css/slideshow.css?bn="+bn;if(a==undefined){a=642}if(c==undefined){c=360}d.width=a;d.height=c;d.staticImage=e;var b=new Slideshow(d);javascriptSlideshows.push(b);document.write(b.getHTML())}}function renderFlashDisplay(f,d,n,i,r){var j="";if(f){f.staticImage=d}if(kiFlashEnabled&&f!=null){var o=0;var e=0;var q=0;var g=0;var l=1;var m=staticFileRoot;var a=staticJavaScriptRoot;if(kiIsBackend){m=staticJavaScriptRoot}if(f.leftPadding){o=f.leftPadding;l++}if(f.rightPadding){e=f.rightPadding;l++}if(f.topPadding){q=f.topPadding}if(f.bottomPadding){g=f.bottomPadding}var k=flashIds.length;var c="videoPlayer_"+String(k);var b=n;var p=i;if(b==undefined){b=642}if(p==undefined){p=360}flashIds.push(c);flashLoaded.push(false);flashSettings.push(f);j+='<table cellpadding="0" cellspacing="0" border="0" id="flashPlayerContainer_'+String(k)+'" style="width:'+(parseInt(b)+parseInt(o)+parseInt(e))+"px;height:"+(parseInt(p)+parseInt(q)+parseInt(g))+'px;">';if(q){j+='<tr><td colspan="'+l+'" style="height:'+q+';">&nbsp;</td></tr>'}j+="<tr>";if(o){j+='<td width="'+o+'">&nbsp;</td>'}j+='<td width="'+b+'">';j+='<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="'+b+'" height="'+p+'" id="'+c+'" align="left" valign="top">';j+='<param name="allowScriptAccess" value="sameDomain" /><param name="allowFullScreen" value="false" />';j+='<param name="FlashVars" value="staticFileRoot='+m+"&currentTheme="+currentTheme+"&id="+k+"&usingCDN="+kiCdnEnabled+"&staticJavascript="+a+"&wrapper="+wrapperTemplate+'" />';j+='<param name="movie" value="'+r+'" /><param name="quality" value="high" /><param name="scale" value="noscale" /><param name="wmode" value="transparent" /><param name="bgcolor" value="#000000" />';j+='<embed src="'+r+'" FlashVars="staticFileRoot='+m+"&currentTheme="+currentTheme+"&id="+k+"&usingCDN="+kiCdnEnabled+"&staticJavascript="+a+"&wrapper="+wrapperTemplate+'" quality="high" wmode="transparent" scale="noscale" width="'+b+'" height="'+p+'" name="'+c+'" align="left" valign="top" allowScriptAccess="sameDomain" allowFullScreen="false" type="application/x-shockwave-flash" /></object>';j+="</td>";if(e){j+='<td width="'+e+'">&nbsp;</td>'}j+="</tr>";if(g){j+='<tr><td colspan="'+l+'" style="height:'+g+';">&nbsp;</td></tr>'}j+="</table>"}else{if(d!=null){j+='<img src="'+d+'" alt="Welcome To Wizard School" />'}else{j+="<!-- settings="+f+" staticImage="+d+" -->"}j+='<p style="background-image:url('+staticFileRoot+'/themes/wizard101A/common/images/error_background.jpg);border: 2px solid #ff0000;margin:4px;" align="center"><span style="font-size:13px;">In order to view this content correctly you need to have Adobe Flash Player installed.</span><br /> <a href="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash" target="_blank">Download Adobe Flash Player</a></p>'}if(isOpera){j+='<br clear="all" />'}return j}function renderFlash(d,c,b,a){if(kiFlashEnabled){document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="'+c+'" height="'+b+'" id="KingsIsle" align="middle">');document.write('<param name="allowScriptAccess" value="sameDomain" />');document.write('<param name="movie" value="'+d+'" />');document.write('<param name="loop" value="false" /><param name="quality" value="high" />');document.write('<param name="wmode" value="transparent" />');document.write('<param name="bgcolor" value="#ffffff" />');document.write('<embed src="'+d+'" loop="false" quality="high" wmode="transparent" bgcolor="#ffffff" width="'+c+'" height="'+b+'" name="KingsIsle" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" /></object>')}else{document.write('<img src="'+a+'" width="'+c+'" height="'+b+'" />')}}var musicPlayerToScroll="";function renderMusicPlayer(d,j,e){path=staticJavaScriptRoot+"/themes/global/flash/MusicPlayer.swf?bn="+bn;var f="";if(kiFlashEnabled){if(d!=null){var i=staticFileRoot;var a=staticJavaScriptRoot;if(kiIsBackend){i=staticJavaScriptRoot}var g=flashIds.length;var c="musicPlayer_"+String(g);var b=j;var k=e;flashIds.push(c);flashLoaded.push(false);flashSettings.push(d);f+='<div id="flashPlayerContainer_'+String(g)+'" style="width:'+b+"px;height:"+k+'px;">';f+='<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="'+b+'" height="'+k+'" id="'+c+'" align="left" valign="top">';f+='<param name="allowScriptAccess" value="sameDomain" /><param name="allowFullScreen" value="false" />';f+='<param name="FlashVars" value="staticFileRoot='+i+"&currentTheme="+currentTheme+"&id="+g+"&usingCDN="+kiCdnEnabled+"&staticJavascript="+a+"&wrapper="+wrapperTemplate+'" />';f+='<param name="movie" value="'+path+'" /><param name="quality" value="high" /><param name="scale" value="noscale" /><param name="wmode" value="transparent" /><param name="bgcolor" value="#000000" />';f+='<embed src="'+path+'" FlashVars="staticFileRoot='+i+"&currentTheme="+currentTheme+"&id="+g+"&usingCDN="+kiCdnEnabled+"&staticJavascript="+a+"&wrapper="+wrapperTemplate+'" quality="high" wmode="transparent" scale="noscale" width="'+b+'" height="'+k+'" name="'+c+'" align="left" valign="top" allowScriptAccess="sameDomain" allowFullScreen="false" type="application/x-shockwave-flash" /></object>';f+="</div>"}else{Tapestry.Error("No settings passed in for Music Player.")}}else{if(!isIpad){if(!isIphone){f+='<p style="background-image:url('+staticFileRoot+'/themes/wizard101A/common/images/error_background.jpg);border: 2px solid #ff0000;margin:4px;" align="center"><span style="font-size:13px;">In order to view this music player you need to have Adobe Flash Player installed.</span><br /> <a href="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash" target="_blank">Download Adobe Flash Player</a></p>'}}}document.write(f)}function musicPlayerMouseScroll(a){musicPlayerToScroll="musicPlayer_"+a;Event.observe(document,"mousewheel",scrollMusicPlayer,false);Event.observe(document,"DOMMouseScroll",scrollMusicPlayer,false)}function stopMusicPlayerMouseScroll(){Event.stopObserving(document,"mousewheel");Event.stopObserving(document,"DOMMouseScroll")}function scrollMusicPlayer(b){if(!b){b=window.event}var c=0;if(b.wheelDelta){c=b.wheelDelta/120}else{if(b.detail){c=-b.detail/3}}c=Math.round(c);var a=flashMovie(musicPlayerToScroll);if(a.scrollSongList!=undefined){a.scrollSongList(c)}return false}var DDSPEED=4;var DDTIMER=15;function ddMenuInt(){for(var b=1;b<=11;b++){if(b==11){Tapestry.warn("The top menu can only handle a max of 10 items.");break}if(document.getElementById(b+"-ddcontent")){var a=document.getElementById(b+"-ddcontent");if(a.firstChild){var c=a.firstChild.offsetWidth;a.style.width=c;var d=document.getElementById(b+"-lastSubMenuItem");if(d){d.style.width=c}}a.style.display="none";a.style.visibility="visible"}else{break}}}function ddMenu(i,f,c){var h=document.getElementById(i+"-ddheader");var a=document.getElementById(i+"-ddcontent");if(a){var g=a.parentNode.parentNode;clearInterval(a.timer);if(f==1){clearTimeout(h.timer);if(a.className==""){if(a.maxh&&a.maxh<=a.offsetHeight){return}else{if(!a.maxh||a.maxh){a.style.display="block";a.style.height="auto";a.maxh=a.offsetHeight;a.style.height="1px";h.className="headerhover"}}}a.timer=setInterval(function(){ddSlide(a,1,i)},DDTIMER)}else{if(c){h.timer=setTimeout(function(){ddCollapse(a,i)},500)}else{h.timer=setTimeout(function(){ddCollapse(a,i)},50)}}if(g.nodeName=="TD"){var e=String(g.offsetWidth/2-a.offsetWidth/2);var b=e.replace(/-/,"");if(g.offsetWidth<=a.offsetWidth){a.style.marginLeft="-"+b+"px"}if(g.offsetWidth>=a.offsetWidth){a.style.marginLeft=b+"px"}}}}function ddCollapse(a,b){a.timer=setInterval(function(){ddSlide(a,-1,b)},DDTIMER)}function cancelHide(c){var b=document.getElementById(c+"-ddheader");var a=document.getElementById(c+"-ddcontent");clearTimeout(b.timer);clearInterval(a.timer);if(a.offsetHeight<a.maxh){a.timer=setInterval(function(){ddSlide(a,1,c)},DDTIMER)}}function ddSlide(a,e,g){var f=document.getElementById(g+"-ddheader");var c=a.offsetHeight;var b;if(e==1){b=(Math.round((a.maxh-c)/DDSPEED))}else{b=(Math.round(c/DDSPEED))}if(b<=1&&e==1){b=1}a.style.height=c+(b*e)+"px";a.className="menuMoving";if((c<5&&e!=1)||(c>(a.maxh-2)&&e==1)){if(e==-1){a.style.height="0px";a.style.display="none";a.className="";if(f){f.className=""}}clearInterval(a.timer)}}var hideInt=0;var passPath="";function SearchLoad(){var c=new google.search.SearchControl();var a=new GwebSearch();var b=new GsearcherOptions();b.setExpandMode(GSearchControl.EXPAND_MODE_OPEN);a.setUserDefinedLabel("Kingsisle.com");a.setUserDefinedClassSuffix("siteSearch");a.setSiteRestriction("http://kingsisle.com");c.addSearcher(a,b);c.draw(document.getElementById("searchcontrol"));styleSearchBox();c.execute("")}function showSearch(a){clearInterval(hideInt);if(document.getElementById("searchImageDiv").style.background!="url("+a+"search_on.gif)"){document.getElementById("searchImageDiv").style.background="url("+a+"search_on.gif)"}document.getElementById("searchPopup").style.display="block";document.getElementById("searchcontrol").style.display="block";callBackgroundOverlay('hideSearchDivs("'+a+'");',100)}function hideSearch(a){passPath=a;clearInterval(hideInt);if(document.forms[0].elements[0].value==""){hideInt=setInterval(hideSearchDivs,1480,a)}}function hideSearchDivs(a){clearInterval(hideInt);document.getElementById("searchImageDiv").style.background="url("+passPath+"search_out.gif)";document.getElementById("searchPopup").style.display="none";document.getElementById("searchcontrol").style.display="none";document.getElementById("backHolderOverlay").innerHTML=""}function styleSearchBox(){var a=document.getElementById("searchcontrol");var b=findElementWithClass(a,"gsc-control");if(b){b.style.width="auto"}}function makeFakeMap(){if(document.getElementById("map")){document.getElementById("map").innerHTML='<img src="'+staticJavaScriptRoot+'/themes/corporate/common/images/noMap.jpg"/>';document.getElementById("map2").innerHTML='<img src="'+staticJavaScriptRoot+'/themes/corporate/common/images/noMap.jpg"/>'}}function makeMap(b,d,c,f,e){var g=new google.maps.Map2(document.getElementById(e));g.setCenter(new google.maps.LatLng(b,d),15);var a=new GLatLng(c,f);g.addOverlay(new GMarker(a));g.zoomOut();g.zoomOut()}function callMakeMap(){makeMap(30.401801,-97.724447,30.401801,-97.724447,"map");makeMap(33.03655,-96.830063,33.03655,-96.83035,"map2")}function initMaps(){google.load("maps","2");google.setOnLoadCallback(callMakeMap)}var kiPopup;function scrollToPopup(){var a=window.top.document.getElementById("jPopFrame").style.top;if(a){window.top.scrollTo(0,parseInt(a)-10)}}function resizeFrame(g,f,b){var a="";var c="";var d=true;if(isIE){if(g&&window.top.document.frames[0].document.getElementById(f)){a=window.top.document.frames[0].document.getElementById(f).offsetWidth;c=window.top.document.frames[0].document.getElementById(f).offsetHeight+30;if(a>0){g.style.width=a;g.style.height=c}else{d=false;setTimeout("initializePopup()",100)}}}else{if(g){if(g.contentDocument.getElementById(f)){a=g.contentDocument.getElementById(f).offsetWidth;c=g.contentDocument.getElementById(f).offsetHeight+20;g.style.width=a;g.style.height=c}if(isChrome){if(g.getWidth()==0){d=false;setTimeout("initializePopup()",10)}}}}if(d){var e=document.getElementById("jPopFrame");if(e){e.style.visibility="visible";kiPopup.refreshSize(f);checkPopupHeight();kiPopup.refreshPosition()}}}function checkPopupHeight(){if(kiPopup){var b=document.getElementById("jPopFrame").offsetHeight;var a=document.getElementById("mainLayout");if(a.offsetHeight<b){a.style.height=b;document.getElementById("overlay_modal").style.height=b}}}function initializePopup(){if(window.top.document.getElementById("jPopFrame_content")){window.top.resizeFrame(window.top.document.getElementById("jPopFrame_content"),"formtable",true);window.top.scrollToPopup()}}function updatePopupSize(){if(kiPopup){window.top.resizeFrame(window.top.document.getElementById("jPopFrame_content"),"formtable",true)}else{if(window.self!=window.top){window.top.updatePopupSize()}}}function restoreFromPopup(){popupOpen=false;resetTimer();toggleVideo("play");document.getElementById("mainLayout").style.height="100%"}function prepareForPopup(){var a=document.getElementById("htmlPopup");if(!a){document.getElementById("jPopFrame").style.left=0;document.getElementById("jPopFrame").style.visibility="hidden"}stopFlashForPopup()}function stopFlashForPopup(){stopTimer();if(flashAnimationPlaying){clearAnimation(true)}toggleVideo("stop")}function openHtmlPopup(a){if(!popupOpen){kiPopup=new Window({className:"dialog",minimizable:false,maximizable:false,draggable:false,showEffect:Element.show,hideEffect:Element.hide,onBeforeShow:prepareForPopup,onClose:restoreFromPopup});kiPopup.getContent().innerHTML=a.innerHTML;kiPopup.setSize(a.firstChild.style.width,0);popupOpen=true;kiPopup.showCenter(true,document.body.scrollTop)}}var animationList=new Array("SpookyBob.swf?bn="+bn);var animationDisplay=new Array("bottom");var maxAnimTime=48;var minAnimTime=48;var animTimer;var flashAnimationPlaying=false;var animationsEnabled=false;var animationTarget="";var animationTargetDisplay="";var animationTargetHeight=0;var playButtonAnimationsEnabled=false;var playButtonAnimationList=new Array("play_piggleFly.swf?bn="+bn,"play_electricBoy.swf?bn="+bn,"play_dragonFire.swf?bn="+bn,"play_spinText.swf?bn="+bn,"play_hugGirl.swf?bn="+bn,"play_ninjaPig.swf?bn="+bn,"play_waveGirl.swf?bn="+bn,"play_waveBoy.swf?bn="+bn,"play_growText.swf?bn="+bn,"play_jumpText.swf?bn="+bn,"play_wiggleText.swf?bn="+bn);var playButtonAnimationTime=15;var playButtonAnimationBlocked=false;var playButtonAnimationTimer;var lastPlayButtonAnimation;function forceAnimation(a,b){animationTarget=a;animationTargetDisplay=b;initAnim()}function playContentAnimation(c,e,d){var f="";var b="";if(typeof(c)=="string"){f=c;b=e}else{if(typeof(c)=="object"){if(c.length>0){var a=Math.round(Math.random()*(c.length-1));f=c[a];b=e[a]}}}if(!kiIsBackend){if(f!=""){if(d&&d>0){setTimeout("forceAnimation('"+f+"','"+b+"')",d*1000)}else{forceAnimation(f,b)}}}}function startAnimation(a){flashAnimationPlaying=true;resizeAnimation(a)}function startTimer(){if(!getCookie("animation")){if(kiFlashEnabled){if(animationList.length>0){var a=Math.floor((Math.random()*(animationList.length-0.1)));animationTarget=animationList[a];animationList.splice(a,1);animTimer=setTimeout("initAnim()",randomTimer())}else{animationTarget=""}}}}function randomTimer(){return Math.round((Math.random()*(maxAnimTime-minAnimTime)+minAnimTime)*1000)}function stopTimer(){if(animTimer){clearTimeout(animTimer)}}function resetTimer(){if(!flashAnimationPlaying){if(animationTarget){animTimer=setTimeout("initAnim()",randomTimer())}}}function initAnim(){if(!popupOpen){var b=document.getElementById("animationShell");if(b){var a="";a='<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="100%" height="100%" id="animation" align="middle">';a+='<param name="allowScriptAccess" value="sameDomain" />';a+='<param name="allowFullScreen" value="false" />';a+='<param name="movie" value="'+staticJavaScriptRoot+"/themes/wizard101A/common/animations/images/"+animationTarget+'" /><param name="scale" value="noscale" /><param name="quality" value="high" /><param name="wmode" value="transparent" />';a+='<embed src="'+staticJavaScriptRoot+"/themes/wizard101A/common/animations/images/"+animationTarget+'" quality="high" width="100%" height="100%" name="animation" align="middle" allowScriptAccess="sameDomain" scale="noscale" wmode="transparent" allowFullScreen="false" type="application/x-shockwave-flash" />';a+="</object>";b.style.width="5px";b.style.height="5px";b.innerHTML=a;b.style.zIndex=900;b.className="animationShell_"+animationTargetDisplay;scrollAnimation();playButtonAnimationBlocked=true}}else{setTimeout("initAnim()",minAnimTime*1000)}}function clearAnimation(a){flashAnimationPlaying=false;playButtonAnimationBlocked=false;var c=document.getElementById("animationShell");c.style.width="5px";c.style.height="5px";setTimeout("emptyAnimation()",100);if(a){if(animationsEnabled){setTimeout("startTimer()",200)}}else{var b=new Date();setCookie("animation","stop",b.setMonth(b.getMonth()+1),"/")}}function emptyAnimation(){document.getElementById("animationShell").innerHTML="";if(animationTarget){animationTarget=""}}function resizeAnimation(a){if(!popupOpen){var b=document.getElementById("animationShell");var c="100%";if(!a||a=="100%"){if(isIE){if(document.getElementById("mainLayout").offsetHeight>600+document.body.scrollTop){a=(600+document.body.scrollTop)}else{a=document.getElementById("mainLayout").offsetHeight}}else{if(document.getElementById("mainLayout").offsetHeight>600+document.body.scrollTop){a=(600+document.body.scrollTop)}else{a=(document.getElementById("mainLayout").offsetHeight)}}}animationTargetHeight=a;b.style.height=a;b.style.width=c;if(animationTargetDisplay=="bottom"&&isIE){b.style.position="absolute";b.style.top=getIEScrollHeight()+"px"}else{if(animationTargetDisplay=="fullscreen"){b.style.top=0}}return true}else{clearAnimation(false);setTimeout("initAnim()",minAnimTime*1000);return false}}function scrollAnimation(){var a=document.getElementById("animationShell");if(a){if(animationTargetDisplay=="fullscreen"){if(!flashAnimationPlaying){a.style.top=document.body.scrollTop}}else{if(isIE){a.style.top=getIEScrollHeight()+"px"}}}}function getIEScrollHeight(){var a=document.body.offsetHeight;var d=document.getElementById("mainLayout").offsetHeight;var c=animationTargetHeight;var b=a+document.body.scrollTop-c;if(b>d-c){b=d-c}return b}function blockPlayAnimations(a){playButtonAnimationBlocked=a}var pageLoaded=false;document.observe("dom:loaded",function(){windowWidth=viewportWidth();windowHeight=viewportHeight();ddMenuInt();if(window.self!=window.top){window.top.initializePopup();if(!document.body.id){document.body.id="bodyId"}if(kiFocusFirst){wrapTab(document.body.id)}clearClickBlocker();blockRightClicks(document.body)}else{if(kiIsBackend&&kiFocusFirst){wrapTab(document.body.id)}window.onscroll=function(){scrollAnimation()};window.onresize=elemResize}pageLoaded=true;window.onload=setBodyLoad;addToBodyLoad(findSlideshowCreation)});
