﻿function process(b){var a=document.infobasket.elements.length;var c=0;for(c=0;c<a;++c){if((document.infobasket.elements[c].name=="info_basket[]")&&(document.infobasket.elements[c].type=="checkbox")){if(b){document.infobasket.elements[c].checked=true}else{document.infobasket.elements[c].checked=false}}}}function selectItems(a){if(a=="t"){if(document.infobasket.checker_top.checked){document.infobasket.checker_bot.checked=true;process(true)}else{document.infobasket.checker_bot.checked=false;process(false)}}else{if(document.infobasket.checker_bot.checked){document.infobasket.checker_top.checked=true;process(true)}else{document.infobasket.checker_top.checked=false;process(false)}}}function ShowContent(a){if(document.getElementById("info"+a).style.display=="none"){document.getElementById("info"+a).style.display="";document.getElementById(a).style.backgroundColor="#f2f4fa";document.getElementById("open"+a).style.display="none";document.getElementById(a).style.backgroundImage="url(/images/search_bg.jpg)";document.getElementById("spacer"+a).style.display=""}else{document.getElementById("info"+a).style.display="none";document.getElementById(a).style.backgroundColor="transparent";document.getElementById("open"+a).style.display="";document.getElementById(a).style.backgroundImage="";document.getElementById("spacer"+a).style.display="none"}}function ShowText(a){if(document.getElementById(a).style.display=="none"){document.getElementById(a).style.display="";document.getElementById("link"+a).style.display="none";document.getElementById("close_link"+a).style.display=""}else{document.getElementById(a).style.display="none";document.getElementById("close_link"+a).style.display="none";document.getElementById("link"+a).style.display=""}}function CloseSubMenu(d,c){var a=d.split(",");for(i=0;i<a.length;++i){if(a[i]!=""){var b=a[i];document.getElementById(a[i]).style.display="none";document.getElementById("topmenu").style.background="none";if(c==0){document.getElementById("toplast").style.display=""}if(c!=a[i]){document.getElementById("top"+a[i]).style.background="url(/images/menu/level_1.gif) left top no-repeat"}else{document.getElementById("top"+a[i]).style.background="url(/images/menu/level_1_active.gif) left top no-repeat"}}}}function ActiveSubMenu(b,c,a){CloseSubMenu(c,a);document.getElementById(b).style.display="";document.getElementById("topmenu").style.background="url(/images/menu/level_1_bg.gif) top repeat-x";document.getElementById("top"+b).style.background="url(/images/menu/level_1_active_sub.gif) left top no-repeat";document.getElementById("toplast").style.display="none"}function ShowActiveSubMenu(b,a){document.getElementById(b).style.display="";document.getElementById("topmenu").style.background="url(/images/menu/level_1_bg.gif) top repeat-x";document.getElementById("top"+b).style.background="url(/images/menu/level_1_active_sub.gif) left top no-repeat";if(a==0){document.getElementById("toplast").style.display="none"}}function LiveSupport(h,c,d,b,a,f){if(window.screen){if(f){if(f=="true"){var e=(screen.width-b)/2;var g=(screen.height-a)/2;d+=(d!="")?",":"";d+=",left="+e+",top="+g}}}window.open(h,c,d+((d!="")?",":"")+"width="+b+",height="+a)}function LoadURL(c,e,a,d){var b="/ezpublish/index.php/"+a+"/layout/set/popup/content/view/full/"+c+"/(archive)/show/(offset)/"+e;new Ajax.Updater(d,b,{onCreate:function(){$(d).update("<div style=\"height: 210px; width: 876px; background: url('/images/loading.gif') center no-repeat;\"></div>")},onComplete:function(f){$(d).update(f.responseText)}})}function insertMedia(){for(var b=0,a=arguments.length;b<a;b++){document.write(arguments[b])}}function insertMedia2(c,a){var b=document.getElementById(c);b.innerHTML=a}var images="";var messages="";var buttons="";var imgNumber=0;var Index=0;var AppearValue=2;var AppearValueMsg=0.5;var FadeValue=0.5;var TimerValue=5000;var imgControl="";var msgControl="";var visibleButtons=4;var timer=null;var scrolling=null;function Rotate(){Index=0;images=document.getElementById("images").getElementsByTagName("li");messages=document.getElementById("messages").getElementsByTagName("li");buttons=document.getElementById("buttons").getElementsByTagName("li");for(i=0;i<images.length;i++){images[i].style.display="none";messages[i].style.display="none"}imgNumber=images.length;Show_Next()}function Show_Msg(){if(navigator.appName.indexOf("Internet Explorer")!=-1){document.getElementById("message"+Index).style.display=""}else{Effect.Appear("message"+Index,{duration:AppearValueMsg})}Effect.Appear("msg"+Index,{duration:AppearValueMsg})}function Show_Next(){switch(Index){case 0:Index=(Index+1);ChangeBtnClass("button"+Index,"active");Effect.Appear("image"+Index,{duration:AppearValue});msgControl=setTimeout("Show_Msg()",1000);imgControl=setTimeout("Show_Next()",TimerValue);break;case images.length:scroll_top();ChangeBtnClass("button"+Index,"");Effect.Fade("image"+Index,{duration:FadeValue});Effect.Fade("msg"+Index,{duration:FadeValue});if(navigator.appName.indexOf("Internet Explorer")!=-1){document.getElementById("message"+Index).style.display="none"}else{Effect.Fade("message"+Index,{duration:FadeValue})}Index=0;Show_Next();break;default:ChangeBtnClass("button"+Index,"");Effect.Fade("image"+Index,{duration:FadeValue});Effect.Fade("msg"+Index,{duration:FadeValue});if(navigator.appName.indexOf("Internet Explorer")!=-1){document.getElementById("message"+Index).style.display="none"}else{Effect.Fade("message"+Index,{duration:FadeValue})}Index=(Index+1);if(Index>visibleButtons){scroll_down()}ChangeBtnClass("button"+Index,"active");Effect.Appear("image"+Index,{duration:AppearValue});msgControl=setTimeout("Show_Msg()",1000);imgControl=setTimeout("Show_Next()",TimerValue)}}function Stop(){clearTimeout(imgControl)}function Resume(){imgControl=setTimeout("Show_Next()",TimerValue)}function ChangeBtnClass(a,b){var c=document.getElementById(a);c.setAttribute("class",b);c.setAttribute("className",b)}function HoverButton(a){Stop();switch(a){case Index:break;default:ChangeBtnClass("button"+Index,"");document.getElementById("image"+Index).style.display="none";document.getElementById("message"+Index).style.display="none";document.getElementById("msg"+Index).style.display="none";Index=a;ChangeBtnClass("button"+a,"active");document.getElementById("image"+Index).style.display="";document.getElementById("message"+Index).style.display="";document.getElementById("msg"+Index).style.display=""}}var scrollCount=10;function scroll_up(){var a=document.getElementById("buttons");a.scrollTop=a.scrollTop-10;if(scrollCount==60){scrollCount=10}else{scrollCount=(scrollCount+10);scrolling=window.setTimeout(function(){scroll_up()},100)}}function scroll_down(){var a=document.getElementById("buttons");a.scrollTop=a.scrollTop+10;if(scrollCount==60){scrollCount=10}else{scrollCount=(scrollCount+10);scrolling=window.setTimeout(function(){scroll_down()},100)}}function scroll_top(){var a=document.getElementById("buttons");a.scrollTop=0}function stop_scroll(){window.clearTimeout(scrolling)}function Scroll(b){var a=document.getElementById("buttons");switch(b){case"Up":a.scrollTop=a.scrollTop-10;timer=window.setTimeout(function(){Scroll(b)},100);break;case"Down":a.scrollTop=a.scrollTop+10;timer=window.setTimeout(function(){Scroll(b)},100);break;case"Stop":window.clearTimeout(timer);break;default:}}function LoadSingleBanner(){var a=document.getElementById("banner_text");Effect.Appear("banner",{duration:AppearValue});if(a){bannerControl=setTimeout("LoadSingleText()",1000)}}function LoadSingleText(){if(navigator.appName.indexOf("Internet Explorer")!=-1){document.getElementById("banner_text").style.display=""}else{Effect.Appear("banner_text",{duration:AppearValueMsg})}Effect.Appear("text",{duration:AppearValueMsg})}var tweets="";var tweetNumber=0;var twIndex=0;var twAppearValue=2;var twFadeValue=0.5;var twTimerValue=5000;var twWaitValue=200;var twControl="";var twWaitControl="";function Tweet(){twIndex=0;tweets=document.getElementById("tweets").getElementsByTagName("li");for(twI=0;twI<tweets.length;twI++){tweets[twI].style.display="none"}tweetNumber=tweets.length;twShow_Next()}function twShow_Next(){switch(twIndex){case 0:twIndex=(twIndex+1);Effect.Appear("tweet"+twIndex,{duration:twAppearValue});twControl=setTimeout("twShow_Next()",twTimerValue);break;case tweets.length:Effect.Fade("tweet"+twIndex,{duration:twFadeValue});document.getElementById("tweet"+twIndex).style.display="none";twIndex=0;twShow_Next();break;default:Effect.Fade("tweet"+twIndex,{duration:twFadeValue});document.getElementById("tweet"+twIndex).style.display="none";twIndex=(twIndex+1);Effect.Appear("tweet"+twIndex,{duration:twAppearValue});twControl=setTimeout("twShow_Next()",twTimerValue)}}function twWait(){twIndex=(twIndex+1);Effect.Appear("tweet"+twIndex,{duration:twAppearValue});twControl=setTimeout("twShow_Next()",twTimerValue)}function twStop(){clearTimeout(twControl)}function twResume(){twControl=setTimeout("twShow_Next()",twTimerValue)};