// JavaScript Document
Shadowbox.loadSkin('classic', '/javascript/shadowbox/skin');
Shadowbox.loadLanguage('it', '/javascript/shadowbox/lang');
Shadowbox.loadPlayer(['html', 'iframe', 'flv', 'img', 'swf'], '/javascript/shadowbox/player');
window.onload = function(){
    Shadowbox.init();
};

function overMenu(idObject) {
	getRef('piscine').style.visibility = "hidden";
	getRef('accessori').style.visibility = "hidden";
	getRef('myrtha').style.visibility = "hidden";
	getRef('competizione').style.visibility = "hidden";
	getRef('giochi').style.visibility = "hidden";
	getRef('BoxMenuOver1').style.visibility = "hidden";
	getRef('BoxMenuOver2').style.visibility = "hidden";
	getRef('BoxMenuOver3').style.visibility = "hidden";
	getRef('BoxSchedaHome').style.visibility = "hidden";
	
	if (idObject == 'piscine' || idObject == 'accessori') getRef('BoxMenuOver1').style.visibility = "visible";
		else getRef('BoxMenuOver1').style.visibility = "hidden";
	
	if (idObject != '') getRef(idObject).style.visibility = "visible";
}

function overMenu2(idObject) {
	getRef('myrtha').style.visibility = "hidden";
	getRef('competizione').style.visibility = "hidden";
	getRef('giochi').style.visibility = "hidden";
	getRef('BoxMenuOver3').style.visibility = "hidden";
	getRef('BoxSchedaHome').style.visibility = "hidden";

	if (idObject == 'myrtha' || idObject == 'competizione' || idObject == 'giochi') getRef('BoxMenuOver2').style.visibility = "visible";
		else getRef('BoxMenuOver2').style.visibility = "hidden";

	if (idObject != '') getRef(idObject).style.visibility = "visible";
}

function overMenu3(idObject) {
	getRef(idObject).style.visibility = "visible";
}

function closeMenu2() {
	getRef('myrtha').style.visibility = "hidden";
	getRef('competizione').style.visibility = "hidden";
	getRef('giochi').style.visibility = "hidden";
	getRef('BoxMenuOver2').style.visibility = "hidden";
	getRef('BoxMenuOver3').style.visibility = "hidden";
	getRef('BoxSchedaHome').style.visibility = "hidden";
}

function closeMenu3(idObject) {
	getRef(idObject).style.visibility = "hidden";
}

function ricerca() {
	document.FormRicerca.submit();
}

function clearInput(idObject) {
	getRef(idObject).value = "";
}

function editBoxSchedaHome(itemName) {
	
	switch (itemName) {

		case 'myrtha_tecnologie': 
			getRef('BoxSchedaHome_img').firstChild.src = "/images/schede_home/img_Home01.jpg";
			getRef('BoxSchedaHome_p1').innerHTML = "The <b>MyrthaŽTechnology</b> is simply the most exclusive and advanced technology in the swimming pool industry. Its patented pre-engineered modular laminated steel panels and buttress system enables MyrthaŽ to obtain perfect waterproofing, efficient installation and low maintenance pools suitable for almost any environment.";
			getRef('BoxSchedaHome_p2').innerHTML = "The <b>MyrthaŽTechnology</b> is the perfect solution for all installations (hotel, camping, fitness clubs, competition pools and more and more).";
			getRef('BoxSchedaHome_a').firstChild.href = "/piscine-myrtha-design.asp";
  		break;	
	
		case 'myrtha_ragioni': 
			getRef('BoxSchedaHome_img').firstChild.src = "/images/schede_home/img_Home01.jpg";
			getRef('BoxSchedaHome_p1').innerHTML = "<b>Why MyrthaŽ?:</b><br><br>Swimming pools built using <b>MyrthaŽ</b> Technology have a virtually unlimited life and can be built in a very short time, thanks to their pre-engineered design. <b>MyrthaŽ</b> Technology is adaptable to fit every type of pool project and it is suitable for both precise competitive situations as well as the most elaborate freeform pool design.";
			getRef('BoxSchedaHome_p2').innerHTML = "There are many and many reasons to choose a pool builts with <b>MyrthaŽ</b> Technology.";
			getRef('BoxSchedaHome_a').firstChild.href = "/piscine-myrtha-ragioni.asp";
  		break;

		case 'myrtha_fasi': 
			getRef('BoxSchedaHome_img').firstChild.src = "/images/schede_home/img_Home02.jpg";
			getRef('BoxSchedaHome_p1').innerHTML = "<b>Key Components:</b><br><br>The base frame that outlines the swimming pool is made up of bolted steel sections that act as the supporting structure for the <b>MyrthaŽ</b> wall panels. The panels are pre-manufactured in factory and treaded with a permanently welded layer of hard PVC.";
			getRef('BoxSchedaHome_p2').innerHTML = "The standard floor is formed using a concrete slab waterproofed by a reinforced PVC membrane.";
			getRef('BoxSchedaHome_a').firstChild.href = "/piscine-myrtha-fasi.asp";
  		break;

		case 'myrtha_varianti': 
			getRef('BoxSchedaHome_img').firstChild.src = "/images/schede_home/img_Home03.jpg";
			getRef('BoxSchedaHome_p1').innerHTML = "<b>Built to order:</b><br><br><b>MyrthaŽ</b> has an exceptionally wide range of standard finishes, from the traditional skimmers structure, to the most modern overflow system.";
			getRef('BoxSchedaHome_p2').innerHTML = " It is also possible to combine the various options within the same project, or design to suit.";
			getRef('BoxSchedaHome_a').firstChild.href = "/piscine-myrtha-varianti.asp";
  		break;
  
		default :
		getRef('BoxSchedaHome_img').firstChild.src = "/images/img_Home.jpg";
		getRef('BoxSchedaHome_p1').innerHTML = "";
		getRef('BoxSchedaHome_p2').innerHTML = "";
		getRef('BoxSchedaHome_a').firstChild.href = "#";
	} 
	
}
