function toggle(a){if(YAHOO.util.Dom.get(a).style.display=="none"){YAHOO.util.Dom.get(a).style.display="block"}else{YAHOO.util.Dom.get(a).style.display="none"}}function focusaction(a){a.parentNode.className="formselected";a.value=""}function bluraction(b,a){b.parentNode.className="";if(b.value==""){b.value=a}}function getPreviousNode(a){var b=null;if(a.previousSibling){b=a;do{b=b.previousSibling}while(b.nodeType!==1&&b.previousSibling)}return(b.nodeType===1)?b:null}function SeeNews(e){var c={height:{to:0,unit:"px"}};var b=YAHOO.util.Dom.getElementsByClassName("news_content","div");for(k=0;k<b.length;k++){if(b[k].style.height!="0px"){var d=new YAHOO.util.Anim(b[k].id,c,0.2,YAHOO.util.Easing.easeOut);d.animate();b[k].parentNode.className="new"}else{if(b[k].id=="news_"+e&&b[k].style.height=="0px"){b[k].parentNode.className="new active";var a={height:{from:0,to:b[k].scrollHeight,unit:"px"}};var d=new YAHOO.util.Anim(b[k].id,a,0.2,YAHOO.util.Easing.easeOut);d.animate()}}}}function GetNewsPage(b,a){oAjaxnews=new Ajax();oAjaxnews.AddParameter("page",b);oAjaxnews.AddParameter("lang",a);oAjaxnews.Get("/requests/tools/news.php",function(c){YAHOO.util.Dom.get("news").innerHTML=c[0]})}if(YAHOO.util.Dom.get("concerts")){tabView1=new YAHOO.widget.TabView("concerts")}var Front={aScroll:new Array(),Construct:function(){YAHOO.util.Dom.getElementsBy(function(b){if(b.href.indexOf("#top_")>0){return true}},"a",null,function(b){YAHOO.util.Event.addListener(b,"click",Front.Navigate,b)});YAHOO.util.Dom.getElementsBy(function(b){if(b.href.indexOf("#top")>0){return true}},"a",null,function(b){YAHOO.util.Event.addListener(b,"click",Front.Navigate,b)});YAHOO.util.Event.addListener(window,"scroll",Front.Scroll);Front.ArtistsLink();YAHOO.util.Event.addListener(window,"resize",Front.ViewportHandling);Front.ViewportHandling();if(document.location.hash){var a=document.location.hash.substr(1);document.location.hash="";Front.Page(null,a)}},changefooter:function(b,a){if(a<YAHOO.util.Dom.getY(YAHOO.util.Dom.get("top_artists"))){b=1}if(a>YAHOO.util.Dom.getY(YAHOO.util.Dom.get("top_contact"))){b=5}aFooters=YAHOO.util.Dom.getElementsByClassName("footer");for(i=0;i<aFooters.length;i++){aFooters[i].style.zIndex="98"}if(YAHOO.util.Dom.get("footer_"+b)){YAHOO.util.Dom.get("footer_"+b).style.zIndex="99"}},Navigate:function(a,b){YAHOO.util.Event.preventDefault(a);Front.PageClose();var d=Front.GetAbsoluteTop(b)+1;var c=new YAHOO.util.Anim(null,{scroll:{from:YAHOO.util.Dom.getDocumentScrollTop(),to:d}},0.5,YAHOO.util.Easing.easeBoth);c.setAttribute=function(f,e){if(f=="scroll"){window.scroll(0,e)}};c.animate();return false},GetAbsoluteTop:function(b){if(typeof(b)=="string"){var a=b}else{var a=b.href.substr(b.href.indexOf("#")+1)}return YAHOO.util.Dom.getY(a)},Scroll:function(){if(Front.aScroll.length==0){var d=new Array();YAHOO.util.Dom.getDocumentScrollTop();YAHOO.util.Dom.getElementsBy(function(e){return true},"a","menu",function(e){var f=Front.GetAbsoluteTop(e);if(f){d[Front.GetAbsoluteTop(e)]=e}});Front.aScroll=d}var a=YAHOO.util.Dom.getDocumentScrollTop();Front.changefooter(1,a);var c;for(var b in Front.aScroll){if(YAHOO.lang.hasOwnProperty(Front.aScroll,b)){if(a<=b){Front.ResetMenu();if(c){c.className=c.className+"selected";Front.changefooter(c.id.substr(0,1),a)}return}else{if(a>b&&b==Front.aScroll.length-1){Front.ResetMenu();Front.aScroll[b].className=Front.aScroll[b].className+"selected";Front.changefooter(c.id.substr(0,1),a);return}}c=Front.aScroll[b]}}},ResetMenu:function(){YAHOO.util.Dom.getElementsBy(function(a){return true},"a","menu",function(a){a.className=a.className.replace(/selected/g,"")})},ArtistsLink:function(){YAHOO.util.Dom.getElementsByClassName("artistslink","a",null,function(a){if(!YAHOO.util.Event.getListeners(a)){YAHOO.util.Event.addListener(a,"click",Front.Page,a)}})},Page:function(a,d){var c=typeof(d)=="string"?d:d.href;if(a){YAHOO.util.Event.preventDefault(a)}if(YAHOO.util.Dom.getLastChild("oneartist").className=="contentartist"){var f=new YAHOO.util.Anim("oneartist",{left:{to:-8000}},0.5,YAHOO.util.Easing.easeOut);f.onComplete.subscribe(function(){YAHOO.util.Dom.get("oneartist").removeChild(YAHOO.util.Dom.getLastChild("oneartist"));Front.Page(a,d)});f.animate();return}var b=YAHOO.util.Dom.get("back").style.display=="block"?true:false;if(!b){YAHOO.util.Dom.get("back").style.height=YAHOO.util.Dom.getDocumentHeight()+"px";YAHOO.util.Dom.get("back").style.display="block";YAHOO.util.Event.addListener("back","click",Front.PageClose);YAHOO.util.Dom.setStyle("back","opacity",0);var f=new YAHOO.util.Anim("back",{opacity:{from:0,to:0.8}},0.5,YAHOO.util.Easing.easeOut);f.animate()}var e=YAHOO.util.Connect.asyncRequest("GET",c,{success:function(h){var g=document.createElement("div");g.className="contentartist";g.style.position="relative";g.innerHTML=h.responseText;YAHOO.util.Dom.insertAfter(g,YAHOO.util.Dom.get("oneartist_last"));var l=+1;YAHOO.util.Dom.get("oneartist").style.top=(YAHOO.util.Dom.getDocumentScrollTop()+25)+"px";YAHOO.util.Dom.get("oneartist").style.left="-8000px";YAHOO.util.Dom.get("oneartist").style.display="block";var j=new YAHOO.util.Anim("oneartist",{left:{from:-8000,to:-50}},0.5,YAHOO.util.Easing.easeOut);j.animate();Front.Viewer();Front.ArtistsLink();YAHOO.util.Dom.getElementsByClassName("pageclose",null,null,function(m){YAHOO.util.Event.addListener(m,"click",Front.PageClose,m)})},failure:function(g){console.error("FAILED",g)}},null)},_GetRegion:function(e){var f=YAHOO.util.Dom.getRegion(e),c=YAHOO.util.Dom.getStyle(e,"padding").split(" ");var j=0,d=0;c[0]=YAHOO.util.Dom.getStyle(e,"padding-top");c[1]=YAHOO.util.Dom.getStyle(e,"padding-right");c[2]=YAHOO.util.Dom.getStyle(e,"padding-bottom");c[3]=YAHOO.util.Dom.getStyle(e,"padding-left");for(var g in c){if(YAHOO.lang.hasOwnProperty(c,g)&&c[g]){var h=parseInt(c[g].replace(" px",""));if(g==0||g==2){d+=h}else{j+=h}}}var b=parseInt(f.right-f.left);var a=parseInt(f.bottom-f.top);return{width:b-j,height:a-d}},PageClose:function(a){if(YAHOO.util.Dom.get("back").style.display!="none"){if(a){YAHOO.util.Event.preventDefault(a)}var b=new YAHOO.util.Anim("oneartist",{left:{from:-50,to:-8000}},0.5,YAHOO.util.Easing.easeOut);b.onStart.subscribe(function(){var c=new YAHOO.util.Anim("back",{opacity:{from:0.8,to:0}},0.5,YAHOO.util.Easing.easeOut);c.onComplete.subscribe(function(){YAHOO.util.Dom.get("back").style.display="none"});c.animate()});b.animate()}},iViewerPosition:0,iViewerWidth:315,Viewer:function(){Shadowbox.clearCache();Shadowbox.setup();Front.iViewerPosition=0;var b=0;var c=document.getElementById("pictures");YAHOO.util.Event.on("gotonext","click",function(){b++;if(Front.iViewerPosition+Front.iViewerWidth>=c.scrollWidth){b=0;Front.iViewerPosition=-Front.iViewerWidth}var d=new YAHOO.util.Scroll("visus",{scroll:{to:[Front.iViewerPosition+Front.iViewerWidth,0]}},0.2,YAHOO.util.Easing.easeBoth);d.animate();Front.iViewerPosition+=Front.iViewerWidth});YAHOO.util.Event.on("gotoprev","click",function(){var d=new YAHOO.util.Scroll("visus",{scroll:{to:[Front.iViewerPosition-Front.iViewerWidth,0]}},0.2,YAHOO.util.Easing.easeBoth);d.animate();if(Front.iViewerPosition>0){b--;Front.iViewerPosition-=Front.iViewerWidth}});var a=YAHOO.util.Dom.getElementsBy(function(){return true},"a","pictures");YAHOO.util.Event.on("see","click",function(){Shadowbox.open({content:a[b].href,gallery:"group",player:"img"})})},aViewPortLimit:{live:625,discover:550},ViewportHandling:function(){var a=YAHOO.util.Dom.getViewportHeight();for(var b in Front.aViewPortLimit){if(document.getElementById(b)){if(a<Front.aViewPortLimit[b]){document.getElementById(b).style.display="none"}else{document.getElementById(b).style.display="block"}}}},SubscribeNewsletter:function(b){YAHOO.util.Connect.setForm(b);var a=YAHOO.util.Connect.asyncRequest("POST","/requests/tools_newsletter",{success:function(c){if(Shadowbox.isActive()){document.getElementById("sb-content").innerHTML=c.responseText}else{Shadowbox.open({content:c.responseText,player:"html",height:142,width:510,resizeDuration:0,fadeDuration:0})}},failure:function(c){console.error("FAILED",c)}});return false},LoadMusic:function(a){YAHOO.util.Dom.get("obj_player").loadMusic(a)}};Front.Construct();