var baSite={start:function(){if($("fancymenu")){
myFancymenu=new MorphList($("fancymenu").getElement("ul"))}
if($$(".ac-switcher")&&$$("div.show")){myAccordion=new Accordion(".ac-switcher","div.show",{duration:600,opacity:false,alwaysHide:false/*BEGIN HACK - Josh*/,onActive:function(B,A){/*MARKER FOR ACTIVE - A is the Element*/updateSS(A.id);}/*END HACK*/})}
if($$("div.product-toggler")&&$$("ul.product-elem")){myAccordion=new Accordion("div.product-toggler","ul.product-elem",{duration:300,opacity:false,alwaysHide:false,onActive:function(B,A){B.removeClass("ac-active");B.addClass("ac-deactive")},onBackground:function(B,A){B.removeClass("ac-deactive");B.addClass("ac-active")}});baSite.getImgProducts("ul.product-elem li")}if($$(".hlinks")){baSite.paintElements(".hlinks",{duration:300,link:"cancel"},{color:"#F8DE57"},{color:"#f1f6f8"})}if($$(".pinputs")){baSite.paintElements(".pinputs",{duration:300,link:"cancel"},{"background-color":"#153e51"},{"background-color":"#0D3040"})}if($$(".fbtns")){baSite.paintElements(".fbtns",{duration:300,link:"cancel"},{"background-color":"#75acc7"},{"background-color":"#4A809A"})}if($("ba-cform")){baSite.makeRequest("ba-cform","ba-loads")
}



if($("mygallery")){myGallery=new gallery($("mygallery"),{timed:true,slideInfoZoneOpacity:0,fadeDuration:600})}},paintElements:function(D,B,C,A){$$(D).each(function(E){E.addEvents({mouseover:function(){new Fx.Morph(this,B).start(B)},mouseleave:function(){new Fx.Morph(this,B).start(A)}})})},makeRequest:function(A,B){$(A).addEvent("submit",function(D){D.stop();var C=$(B).empty().addClass("loading");this.set("send",{evalScripts:true,update:C,onComplete:function(E){C.removeClass("loading");$(B).set("html",E)}}).send()})},getImgProducts:function(A){$$(A).each(function(B){B.addEvents({click:function(D){new Event(D).stop();var C=$("product-img").empty();this.addClass("prod-current");myElem=this.get("id");var E=new Request({method:"get",url:"get_image.php",data:{imagen:myElem},onComplete:function(F){$("product-img").set("html",F)}}).send()},mouseenter:function(){new Fx.Morph(this,{duration:200,link:"cancel"}).start({url:"../imag/home_over.png"})},mouseleave:function(){new Fx.Morph(this,{duration:200,link:"cancel"}).start({color:"#FF9900"})}})})}};window.addEvent("domready",baSite.start);

function updateSS(idS)
{
	switch(idS)
	{
		case("home_area"):
		{
			document.getElementById('imgSlides').innerHTML="<div class=\"imageElement\"><h3></h3><p></p><img src=\"photos/1-Home/full/1.jpg\" alt=\"\" class=\"full\"/></div><div class=\"imageElement\"><h3></h3><p></p><img src=\"photos/1-Home/full/2.jpg\" alt=\"\" class=\"full\"/></div><div class=\"imageElement\"><h3></h3><p></p><img src=\"photos/1-Home/full/3.jpg\" alt=\"\" class=\"full\"/></div><div class=\"imageElement\"><h3></h3><p></p><img src=\"photos/1-Home/full/4.jpg\" alt=\"\" class=\"full\"/></div><div class=\"imageElement\"><h3></h3><p></p><img src=\"photos/1-Home/full/5.jpg\" alt=\"\" class=\"full\"/></div><div class=\"imageElement\"><h3></h3><p></p><img src=\"photos/1-Home/full/6.jpg\" alt=\"\" class=\"full\"/></div>";
			myGallery=new gallery($("mygallery"),{timed:true,slideInfoZoneOpacity:0,fadeDuration:600})
			break;
		}
		case("about_area"):
		{
			document.getElementById('imgSlides').innerHTML="<div class=\"imageElement\"><h3></h3><p></p><img src=\"photos/2-About/1.jpg\" alt=\"\" class=\"full\"/></div>";
			myGallery=new gallery($("mygallery"),{timed:true,slideInfoZoneOpacity:0,fadeDuration:600})
			break;
		}
		case("facilities_area"):
		{
			document.getElementById('imgSlides').innerHTML="<div class=\"imageElement\"><h3></h3><p></p><img src=\"photos/3-Facility/vanquish-studios.jpg\" alt=\"\" class=\"full\"/></div>";
			myGallery=new gallery($("mygallery"),{timed:true,slideInfoZoneOpacity:0,fadeDuration:600})
			break;
		}
		case("equipment_area"):
		{
			document.getElementById('imgSlides').innerHTML="<div class=\"imageElement\"><h3></h3><p></p><img src=\"photos/4-Equipment/full/1.jpg\" alt=\"\" class=\"full\"/></div><div class=\"imageElement\"><h3></h3><p></p><img src=\"photos/4-Equipment/full/2.jpg\" alt=\"\" class=\"full\"/></div><div class=\"imageElement\"><h3></h3><p></p><img src=\"photos/4-Equipment/full/3.jpg\" alt=\"\" class=\"full\"/></div><div class=\"imageElement\"><h3></h3><p></p><img src=\"photos/4-Equipment/full/4.jpg\" alt=\"\" class=\"full\"/></div><div class=\"imageElement\"><h3></h3><p></p><img src=\"photos/4-Equipment/full/5.jpg\" alt=\"\" class=\"full\"/></div><div class=\"imageElement\"><h3></h3><p></p><img src=\"photos/4-Equipment/full/6.jpg\" alt=\"\" class=\"full\"/></div><div class=\"imageElement\"><h3></h3><p></p><img src=\"photos/4-Equipment/full/7.jpg\" alt=\"\" class=\"full\"/></div>";
			myGallery=new gallery($("mygallery"),{timed:true,slideInfoZoneOpacity:0,fadeDuration:600})
			break;
		}
		case("news_area"):
		{
			document.getElementById('imgSlides').innerHTML="<div class=\"imageElement\"><h3></h3><p></p><img src=\"photos/5-News/1-Org-1920.jpg\" alt=\"\" class=\"full\"/></div>";
			myGallery=new gallery($("mygallery"),{timed:true,slideInfoZoneOpacity:0,fadeDuration:600})
			break;
		}
		case("contact_area"):
		{
			document.getElementById('imgSlides').innerHTML="<div class=\"imageElement\"><h3></h3><p></p><img src=\"photos/6-Contact/1.jpg\" alt=\"\" class=\"full\"/></div>";
			myGallery=new gallery($("mygallery"),{timed:true,slideInfoZoneOpacity:0,fadeDuration:600})
			break;
		}
	}
	return;
}