/* -------------------------------------------------
      EMedia Web Design - All Rights Reserved
--------------------------------------------------*/


function Avviso_001(){alert("LINK non disponibile!\nla pagina è in manutenzione per aggiornamento,\ntorna a visitarci più tardi, grazie.")}

// ####### assegna link TUTTI I MENU ##################

var linkJsHost = "";
var nature=location.href;  //indirizzo client
if(nature.lastIndexOf("catalogo-snow")!=-1){linkJsHost="../";}


// ####### assegna link solo per ricerca testa ###########

var linkRicerca = ""
//nature=location.href  //indirizzo client già caricato sopra
if(nature.lastIndexOf("catalogo-snow")==-1){linkRicerca="catalogo-snow/"} 

function Ricerca(){self.location.href=linkRicerca+"ricerca.htm?CercaParola('"+document.getElementById('SurceText_home').value+"')";setTimeout('(document.getElementById("SurceText_home").value="...cerca sul sito!")', 300)}
function Ricerca_clear(){document.getElementById("SurceText_home").value=="...cerca sul sito!" ? document.getElementById("SurceText_home").value="" : r=0}
function Ricerca_ecom(){self.location.href=linkRicerca+"ricerca.htm?CercaParola('"+document.getElementById('SurceText_ecom').value+"')"}

// ####### FINE assegna link ricerca testa ###############


// ###### CONTROLLER DATA  ##########################

  if(nature.lastIndexOf("error_data.htm")==-1){ // controllo omesso solo per error_data.htm
  try{arresta = nomereparto; arresta2 = ART}
  catch(e){location.href=linkRicerca+"error_data.htm"}
  }

// ###### CONTROLLER DATA end #######################


// ###### HEAD TOP ##################

function Head_Top(){
	
/*
	<p style="margin-left: 0; margin-right: 10; margin-top: 0; margin-bottom: 5" align="right" class="ver-0">
        <font color="#FFFFFF">Benvenuto:&nbsp;Accedi | Registrati&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
        <a href="javascript:window.print()">Stampa</a>&nbsp;|&nbsp;&nbsp;</font><a href="javascript:Avviso_001()">FAQ</a> | <a href="service_contatti.htm"> Contatti</font></a></p>
       */

	x_out = "<font color='#FFFFFF'>"
//	x_out += "Benvenuto:&nbsp;Accedi | Registrati&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"
	x_out += "<a class='link_white' href='javascript:window.print()'>Stampa</a>"
	x_out += "&nbsp;|&nbsp;&nbsp;"
	x_out += "<a class='link_white' href='javascript:Avviso_001()'>FAQ</a>"
	x_out += "&nbsp;|&nbsp;&nbsp;"
	x_out += "<a class='link_white' href='"+linkJsHost+"service_contatti.htm'>Contatti</a>"
	x_out += "</font>"

	//document.getElementById('head_link').style.margin-right = "10"
	//document.getElementById('head_link').align = "right"
	//document.getElementById('head_link').class = "ver-0"

	
	document.getElementById('head_link').innerHTML=x_out

}

// ###### HEAD TOP fine ##################



// ###### MENU TOP ##################


	//var ron="#C0C0C0"; // Colore al MouseOver
	//var roff="#E6E6E6"; // Colore di default
	//var roff="#E6E6E6; filter:alpha(opacity=90); opacity:0.8"; // Colore di default

	var ron=linkJsHost+"img/file_comuni/gradient_box_02.jpg"; // Colore al MouseOver
	var roff=linkJsHost+"img/file_comuni/gradient_box_01.jpg"; // Colore di default
	var leftmargin=0; // margine sinistro 
	var topmargin=0; // margine superiore 
	var largo=140; // larghezza sottomenu

	var x_new = "<img border=\"0\" src='"+linkJsHost+"img/file_comuni/new-mini.gif' width=\"23\" height=\"11\">"
	var x_saldi= "<img border=\"0\" src='"+linkJsHost+"img/file_comuni/saldi.gif' width=\"45\" height=\"10\">"
	var x_fbook= "<img border=\"0\" src='"+linkJsHost+"img/file_comuni/fbook.jpg' width=\"12\" height=\"12\">"

	var voci=new Array();
	voci[0]=new Array("Home Page");
	voci[1]=new Array("Negozio On-Line","Offerte Outlet","Usato Garantito","Tavole "+x_saldi,"Attacchi "+x_saldi,"Scarponi "+x_saldi,"Protezioni","Maschere","Dvd - Video","Sacche Portatavola","Pads Antiscivolo","Scioline Additivi","Manutenzione","Accessori Bandane","Parti di Ricambio")
	voci[2]=new Array("Noleggio Attrezzatura","Listino Prezzi","Offerta Week-End","Qualità & Servizio");
	voci[3]=new Array("Servizi e Consigli","Sciolinatura Tavole","Riparazione Tavole","Scelta della Tavola",x_new+" BoardsMeter","Fare Manutenzione");
	voci[4]=new Array("Virtual School","curve in Fronside","curve in Backside","fare l'Ollie","il Fakie Riding");
	voci[5]=new Array("Snowboard Club","Home Club","Calendario Uscite","Calendario Corsi","Iscrizioni OnLine","Sconti SkiPass","PhotoStory","Staff Center","FAQs sul Club",x_fbook+" Facebook Club");
	voci[6]=new Array("Informazioni","Dove Siamo","Orari di Apertura","Come Contattarci","Opzioni Pagamento","Info Spedizione","Note Legali","MailingList","FAQs");
	

	var links=new Array(); var jx="javascript:"
	links[0]=new Array(linkJsHost+"index.htm")
	links[1]=new Array("Reload Menu",jx+"Ck_listVideo(0,0)",jx+"Ck_listVideo(15,0)",jx+"Ck_listReport(1)",jx+"Ck_listReport(2)",jx+"Ck_listReport(4)",jx+"Ck_listReport(7)",jx+"Ck_listReport(6)",jx+"Ck_listVideo(11,0)",jx+"Ck_listVideo(5,0)",jx+"Ck_listVideo(8,0)",jx+"Ck_listVideo(8,1)",jx+"Ck_listVideo(8,2)",jx+"Ck_listVideo(9,2)",jx+"Ck_listReport(10)")
	links[2]=new Array("Reload Menu",linkJsHost+"service_noleggio_0.htm",linkJsHost+"service_noleggio_2.htm",linkJsHost+"service_noleggio_1.htm")
	links[3]=new Array("Reload Menu",linkJsHost+"service_laboratorio.htm",linkJsHost+"service_riparazione.htm",linkJsHost+"service_scelta_tavola.htm",linkJsHost+"service_boardsmeter.htm",linkJsHost+"service_consigli.htm")
	links[4]=new Array("Reload Menu",linkJsHost+"service_school_0.htm",linkJsHost+"service_school_1.htm",linkJsHost+"service_school_2.htm",linkJsHost+"service_school_3.htm")
	links[5]=new Array("Reload Menu",linkJsHost+"club/homepage/home.htm",linkJsHost+"club/gite/gite.htm",linkJsHost+"club/corsi/corsi.htm",linkJsHost+"club/servizi-online/servizionline.htm",linkJsHost+"club/sconti/sconti-skipass.htm",linkJsHost+"club/gite/photo/photo.htm",linkJsHost+"club/staff/staff.htm",linkJsHost+"club/faq/faq.htm","http://www.facebook.com/group.php?gid=33353644890")
	links[6]=new Array("Reload Menu",linkJsHost+"service_dovesiamo.htm",linkJsHost+"service_orariapertura.htm",linkJsHost+"service_contatti.htm",linkRicerca+"terms_1.htm",linkRicerca+"terms_2.htm",linkRicerca+"terms_0.htm",linkJsHost+"service_registrati.htm","#")
	
	//var nn=document.layers?true:false,conta=0,last=0;
	var nn=true,conta=0,last=0;

function Visualizza_Menu(){
	
	se_click=""
	out_menu="<table border=0 cellpadding=0 cellspacing=0><tr>"  // fix in disuso
	
	for(n=0;n<voci.length;n++){
	if(links[n][0].lastIndexOf("Reload Menu")!=-1){se_click="onClick=\""+jx+"timer=setTimeout('Visualizza_Sottomenu()',150)\""} //setTimeout(Visualizza_Menu(),50)
	else{se_click="onClick=\"self.location.href='"+links[n][0]+"'\""}

	out_menu+="<td id=\"mtop"+n+".\" style=\"height:20;background-image:url('"+roff+"');width:"+largo+";cursor:pointer\" onMouseOver=\"MostraMenu("+n+");mroll('mtop"+n+".');conta++\" onMouseOut=\"last="+n+";unmroll('mtop"+n+".');conta--\" "+se_click+"><div align=\"center\" CLASS=\"srv_menu_1\">"+voci[n][0]+"</DIV></td>"
//	out_menu+="<td id=\"mtop"+n+".\" style=\"height:20;background-image:url('"+roff+"');width:"+largo+";cursor:pointer\" onMouseOver=\"MostraMenu("+n+");mroll('mtop"+n+".');conta++\" onMouseOut=\"last="+n+";unmroll('mtop"+n+".');conta--\" onClick=\"self.location.href='"+links[n][0]+"'\"><div align=\"center\" CLASS=\"srv_menu_1\">"+voci[n][0]+"</DIV></td>"
//	out_menu+="<td id=\"mtop"+n+".\" style=\"height:20;background:"+roff+";width:"+largo+";cursor:pointer\" onMouseOver=\"MostraMenu("+n+");mroll('mtop"+n+".');conta++\" onMouseOut=\"last="+n+";unmroll('mtop"+n+".');conta--\" onClick=\"self.location.href='"+links[n][0]+"'\"><div align=\"center\" CLASS=\"srv_menu_1\">"+voci[n][0]+"</DIV></td>";
	}
	out_menu+="</tr></table>"
	document.getElementById('Menu_Position').innerHTML=out_menu
	Visualizza_Sottomenu()
}

	
var TMPsetTop, TMPsetLef, topmargin, leftmargin

function Out_Posizione_Menu(){   // estrae posizione menu

	if(document.getElementById('Menu_Position')){
	document.getElementById('Menu_Position').style.position = "absolute"  //  ***  determina la posizione top  (ex  mtop0.)
	el = document.getElementById("Menu_Position")
	topmargin = el.offsetTop 
	leftmargin = el.offsetLeft
	document.getElementById("Menu_Position").style.position = "static"
	}
}


function Monitor_Menu(){   // monitorizza posizione menu in caso di ridimensionamento pagina
	
	Out_Posizione_Menu()	
	//alert(topmargin+" - "+leftmargin)
//	if(TMPsetTop!=topmargin || TMPsetLeft!=leftmargin){this.location.reload()}
	if(TMPsetTop!=topmargin || TMPsetLeft!=leftmargin){Visualizza_Menu()}
	
}

// ------ monitor rullover --------------------------
// --------------------------------------------------
//function PlayOn_MonitorMenu(){T_ofrt = window.setInterval("Monitor_Menu()", 1000)}; PlayOn_MonitorMenu()
// --------------------------------------------------
	


function Visualizza_Sottomenu(){

	Out_Posizione_Menu()      // restituisce posizione menu
	
	TMPsetTop = topmargin     // registra su TMP la posizione Top
	TMPsetLeft = leftmargin   // registra su TMP la posizione Left
	out_div=""
	
	if(document.all){leftmargin--}  // stabilizza discrepanze pixel tra su IE
	for(i=0;i<voci.length;i++){
	var n=i;
	for (l=1;l<voci[i].length;l++){
//	document.write("<DIV ID=mdep"+i+"."+l+" STYLE=\"position:absolute;left:"+eval(leftmargin+largo*i)+";top:"+eval(topmargin+20*l)+";width:"+largo+";height:20;background:"+roff+";visibility:hidden;cursor:pointer\" onMouseOver=mroll('mdep"+n+"."+l+"');conta++ onMouseOut=unmroll('mdep"+n+"."+l+"');conta-- onClick=\"self.location.href='"+links[i][l]+"'\"><DIV ALIGN=center CLASS=srv_menu_1>&nbsp;"+voci[i][l]+"</DIV></DIV>");
	out_div+="<DIV ID=mdep"+i+"."+l+" STYLE=\"position:absolute;left:"+eval(leftmargin+largo*i)+";top:"+eval(topmargin+20*l)+";width:"+largo+";height:20;background-image:url('"+roff+"');visibility:hidden;cursor:pointer\" onMouseOver=mroll('mdep"+n+"."+l+"');conta++ onMouseOut=unmroll('mdep"+n+"."+l+"');conta-- onClick=Vai('"+links[i][l]+"',"+i+","+l+")><DIV ALIGN=center CLASS=srv_menu_1>&nbsp;"+voci[i][l]+"</DIV></DIV>";
	}
	}
	document.getElementById('AddMenu_Position').innerHTML=out_div

	setInterval("NascondiMenu()",500)
}



function NascondiMenu(){

	if (conta==0){
	coloratutti(true)
	timer=setTimeout("coloratutti(false)",200);
	timer=setTimeout("showdeps(last,false)",250);
	}
}

function coloratutti(col){

	colore=col?ron:roff;
	for(i=0;i<voci.length;i++){
		for(j=1;j<voci[i].length;j++){
		document.getElementById('mdep'+i+"."+j).style.background="url("+colore+")";
	//	document.getElementById('mdep'+i+"."+j).style.background=colore;
		}
	}
}

function Vai(dove,r,c){
	if(dove=="#"){Avviso_001();return;}
	conta=0; 
	showdeps(r,false)
	if(dove.lastIndexOf("facebook")!=-1){clb=window.open();timer=setTimeout("clb.location.href='"+dove+"'",50);Visualizza_Menu();return;}
//	if(dove.lastIndexOf("club/")!=-1){clb=window.open();setTimeout("clb.location.href='"+dove+"'",50);Visualizza_Menu();return;}
	if(dove.lastIndexOf("club/")!=-1){timer=setTimeout("window.open().location.href='"+dove+"'",50);Visualizza_Menu();return;}

	
	timer=setTimeout("self.location.href='"+dove+"'",50)
	
}

function MostraMenu(n){
	
	showdeps(last,false);
	showdeps(n,true);
	last=n;
}


function showdeps(n,act){
	
	if(conta==0){
	//act?stat="visible":stat="hidden";
	if(act==true){stat="visible"}
	else{stat="hidden"}
	for (i=1;i<voci[n].length;i++){document.getElementById('mdep'+n+"."+i).style.visibility=stat;}
	}
}

function mroll(l){
	
	document.getElementById(l).style.background="url("+ron+")";
	document.getElementById(l).style.cursor="pointer"
}

function unmroll(l){

	document.getElementById(l).style.background="url("+roff+")";
}


// playzza con Visualizza_Menu()

// ###### FINE MENU TOP ##################

// ###### MENU FinePagina ##################

function Menu_FinePagina(){

 out_m="<div align='center'><center>"
 out_m+="<table border='0' cellpadding='0' cellspacing='0' width='966' height='120' bgcolor='#F4F4F4' style='border: 1px solid #C0C0C0; margin-top: 5px; margin-bottom: 5px'><tr><td width='100%'>"
 out_m+="<div align='center'><table border='0' cellpadding='0' cellspacing='0' width='99%' bgcolor='#F4F4F4' height='90'>"
 out_m+="<tr><td width='20%' style='border-right: 1px solid #C0C0C0' valign='top' class='ver-1'>"
 out_m+="<p style='margin-left: 10; margin-top: 0px; margin-bottom: 10px'><b><font color='#666666'>SETTIMO SPORT</font></b></p>"
 out_m+="<p style='margin-left: 10; margin-top: 0px; margin-bottom: 2px'><font color='#666666'><a href='"+linkJsHost+"service_dovesiamo.htm' class='link_bottom'>Dove siamo</a></font></p>"
 out_m+="<p style='margin-left: 10; margin-top: 0px; margin-bottom: 2px'><font color='#666666'><a href='"+linkJsHost+"service_orariapertura.htm' class='link_bottom'>Orari di apertura</a></font></p>"

 out_m+="<p style='margin-left: 10; margin-top: 0px; margin-bottom: 2px'><font color='#666666'><a href='"+linkJsHost+"service_contatti.htm' class='link_bottom'>Come contattarci</a></font></p>"
 out_m+="</td><td width='20%' style='border-left: 2px solid #FFFFFF; border-right: 1px solid #C0C0C0' valign='top' class='ver-1'>"
 out_m+="<p style='margin-left: 10; margin-top: 0px; margin-bottom: 10px'><b><font color='#666666'>Acquisti Sicuri</font></b></p>"
 out_m+="<p style='margin-left: 10; margin-top: 0px; margin-bottom: 2px'><font color='#666666'><a href='"+linkRicerca+"terms_1.htm' class='link_bottom'>Opzioni di pagamento</a></font></p>"
 out_m+="<p style='margin-left: 10; margin-top: 0px; margin-bottom: 2px'><font color='#666666'><a href='"+linkRicerca+"terms_2.htm' class='link_bottom'>Spedizioni e Consegne</a></font></p>"
 out_m+="<p style='margin-left: 10; margin-top: 0px; margin-bottom: 2px'><font color='#666666'><a href='"+linkRicerca+"terms_3.htm' class='link_bottom'>Diritto di recesso</a></font></p>"
 out_m+="<p style='margin-left: 10; margin-top: 0px; margin-bottom: 2px'><font color='#666666'><a href='"+linkRicerca+"terms_4.htm' class='link_bottom'>Protezione della Privacy</a></font></p>"
 out_m+="</td><td width='20%' style='border-left: 2px solid #FFFFFF; border-right: 1px solid #C0C0C0' valign='top' class='ver-1'>"
 out_m+="<p style='margin-left: 10; margin-top: 0px; margin-bottom: 10px'><font color='#666666'><b>Assistenza Snowboard</b></font></p>"
 out_m+="<p style='margin-left: 10; margin-top: 0px; margin-bottom: 2px'><font color='#666666'><a href='"+linkJsHost+"service_laboratorio.htm' class='link_bottom'>Lamine e Sciolina</a></font></p>"
 out_m+="<p style='margin-left: 10; margin-top: 0px; margin-bottom: 2px'><font color='#666666'><a href='"+linkJsHost+"service_riparazione.htm' class='link_bottom'>Riparazione</a>&nbsp;</font></p>"
 out_m+="<p style='margin-left: 10; margin-top: 0px; margin-bottom: 2px'><font color='#666666'><a href='"+linkJsHost+"service_consigli.htm' class='link_bottom'>Manutenzione</a></font></p>"
 out_m+="<p style='margin-left: 10; margin-top: 0px; margin-bottom: 2px'><font color='#666666'><a href='"+linkJsHost+"service_noleggio_1.htm' class='link_bottom'>Noleggio Attrezzatura</a></font></p>"
 out_m+="</td><td width='20%' style='border-left: 2px solid #FFFFFF; border-right: 1px solid #C0C0C0' valign='top' class='ver-1'>"
 out_m+="<p style='margin-left: 10; margin-top: 0px; margin-bottom: 10px'><font color='#666666'><b>Risorse Gratuite</b></font></p>"
 out_m+="<p style='margin-left: 10; margin-top: 0px; margin-bottom: 2px'><font color='#666666'><a href='"+linkJsHost+"service_registrati.htm' class='link_bottom'>Servizio Mailing List</a></font></p>"
 out_m+="<p style='margin-left: 10; margin-top: 0px; margin-bottom: 2px'><font color='#666666'><a href='"+linkJsHost+"service_boardsmeter.htm' class='link_bottom'>BoardsMeter</a></font></p>"
 out_m+="<p style='margin-left: 10; margin-top: 0px; margin-bottom: 2px'><font color='#666666'><a href='"+linkJsHost+"service_school_0.htm' class='link_bottom'>Virtual School</a></font></p>"
 out_m+="</td><td width='20%' style='border-left: 2px solid #FFFFFF' valign='top' class='ver-1'>"
 out_m+="<p style='margin-left: 10; margin-top: 0px; margin-bottom: 10px'><font color='#666666'><b>Eventi sulla Neve</b></font></p>"
 out_m+="<p style='margin-left: 10; margin-top: 0px; margin-bottom: 2px'><font color='#666666'><a href='"+linkJsHost+"club/gite/gite.htm' class='link_bottom' target='_blank'>Calendario Uscite</a></font></p>"
 out_m+="<p style='margin-left: 10; margin-top: 0px; margin-bottom: 2px'><font color='#666666'><a href='"+linkJsHost+"club/corsi/corsi.htm' class='link_bottom' target='_blank'>Corsi Snowboard</a></font></p>"
 out_m+="<p style='margin-left: 10; margin-top: 0px; margin-bottom: 2px'><font color='#666666'><a href='"+linkJsHost+"club/servizi-online/servizionline.htm' class='link_bottom' target='_blank'>Iscrizioni OnLine</a></font></p>"
 out_m+="<p style='margin-left: 10; margin-top: 0px; margin-bottom: 2px'><font color='#666666'><a href='"+linkJsHost+"club/faq/faq.htm' class='link_bottom' target='_blank'>Domande frequenti FAQ</a></font></p>"
 out_m+="</td></tr></table></div></td></tr></table></center></div>"

	document.write(out_m)
}

// ###### FINE MENU FinePagina ##################



// ###### VISUALIZZA + ADD SHARE CONDIVIDI ##################
		
	outSHR="<script type=\"text/javascript\" src=\"http://s7.addthis.com/js/152/addthis_widget.js\"></script>"
	
	var addthis_options = 'facebook, myspace, twitter, more';
//	var addthis_exclude = 'print';

	outSHR+="<p class='ver-0' style='margin-left: 0; margin-right: 0; margin-top: 5; margin-bottom: 10' align='center'>"
	
	outSHR+="<img style=\"cursor: pointer\" src=\""+linkJsHost+"img/file_comuni/lg-share-print.gif\" width=\"67\" height=\"16\" border=\"0\" alt=\"Stampa pagina\" title=\"Stampa pagina\"/ "
	outSHR+="onclick=\"javascript:print()\">"
	outSHR+="&nbsp;&nbsp;"	
	
	outSHR+="<img style=\"cursor: pointer\" src=\""+linkJsHost+"img/file_comuni/lg-share-email.gif\" width=\"54\" height=\"16\" border=\"0\" alt=\"Email\"/ "
	outSHR+="onclick=\"return addthis_open(this, 'email', '[URL]', '[TITLE]')\">" // onmouseout=\"addthis_close()\"
	outSHR+="&nbsp;&nbsp;"
	
	outSHR+="<img style=\"cursor: pointer\" src=\""+linkJsHost+"img/file_comuni/lg-share-it.gif\" width=\"125\" height=\"16\" alt=\"\" style=\"border:0\"/ "
	outSHR+="onclick=\"return addthis_open(this, '', '[URL]', '[TITLE]')\">" // onmouseout=\"addthis_close()\"
	
	outSHR+="</p>"
	var ButtonAdd  = outSHR

// ###### VISUALIZZA + ADD SHARE CONDIVIDI end   ##################




// ###### MENU SHOP ALA ##################


// ******* file comuniFlag_menu_shop() e Index_menu_shop() ******

	function over_MenuShop(selet){selet.style.background='#666666'; selet.style.color='white'} // selet.style.fontWeight='bold'
   	function out_MenuShop(selet){selet.style.background=''; selet.style.color='#666666'} //  selet.style.fontWeight='bold'
  	
 //	x_new = " <img border=\"0\" src=\""+linkJsHost+"img/file_comuni/new-mini.gif\" width=\"23\" height=\"11\">"
 //  	x_saldi = " <img border=\"0\" src=\""+linkJsHost+"img/file_comuni/saldi.gif\" width=\"45\" height=\"10\">"
	x_outlet = " <img border=\"0\" src=\""+linkJsHost+"img/file_comuni/outlet.gif\" width=\"15\" height=\"10\">"

	M_SHOP=new Array()
	M_SHOP[0]=new Array("Offerte Outlet "+x_outlet,"Ck_listVideo(0,0)")
	M_SHOP[1]=new Array("Usato Garantito","Ck_listVideo(15,0)")
	M_SHOP[2]=new Array("Tavole "+x_saldi,"Ck_listReport(1)")
	M_SHOP[3]=new Array("Attacchi "+x_saldi,"Ck_listReport(2)")
	M_SHOP[4]=new Array("Scarponi "+x_saldi,"Ck_listReport(4)")
	M_SHOP[5]=new Array("Ricambi","Ck_listReport(10)")
	M_SHOP[6]=new Array("Maschere","Ck_listReport(6)")
	M_SHOP[7]=new Array("Protezioni","Ck_listReport(7)")
	M_SHOP[8]=new Array("Dvd Video","Ck_listVideo(11,0)")
	M_SHOP[9]=new Array("Sacche Portatavola","Ck_listVideo(5,0)")
	M_SHOP[10]=new Array("Pads antiscivolo","Ck_listVideo(8,0)")
	M_SHOP[11]=new Array("Scioline Additivi","Ck_listVideo(8,1)")
	M_SHOP[12]=new Array("","Ck_listVideo(8,1)")
	M_SHOP[13]=new Array("Tools Manutenzione","Ck_listVideo(8,2)")
	M_SHOP[14]=new Array("Accessori Bandane","Ck_listVideo(9,2)")
	M_SHOP[15]=new Array("","Ck_listVideo(11,0)")

// ******* file comuni Flag_menu_shop() e Index_menu_shop() ******

function Flag_menu_shop(){
	
	out_s="<table border='0' cellpadding='0' cellspacing='0' width='135' height='240' style='margin-top: 10'>"
     	out_s+="<tr><td class='box_ali'><p class='srv_boxali' align='left'><font color='#333333'>Menu Shop OnLine</font></p>"
     	out_s+="</td></tr><tr><td width='100%' style='border: 1px solid #C0C0C0'>"

	out_s+="<p class='ver' align='left' style='margin-top: 0px; margin-bottom: 0px'></p>"
   	cic="class='ver-1' align='left' style='margin-left: 2px; margin-right: 2px;  margin-top: 0px; margin-bottom: 2px; cursor: pointer' onmouseover='over_MenuShop(this)' onmouseout='out_MenuShop(this)'"
   	for(x=0; x<M_SHOP.length; x++){if(M_SHOP[x][0]!=""){out_s+="<font color='#666666'><p "+cic+" onclick='"+M_SHOP[x][1]+"'>&nbsp;"+M_SHOP[x][0]+"</p></font>"}}

  	out_s+="</td></tr></table>"

	return(out_s);
}

function Index_menu_shop(){
	
	out_s="<table border='0' cellpadding='0' cellspacing='0' width='135' height='240' style='margin-top: 0'>"
     	out_s+="<tr><td class='box_ali'><p class='srv_boxali' align='left'><font color='#333333'>Menu Shop OnLine</font></p>"
     	out_s+="</td></tr><tr><td width='100%' style='border: 1px solid #C0C0C0'>"

	out_s+="<p class='ver' align='left' style='margin-top: 0px; margin-bottom: 0px'></p>"
   	cic="class='ver-1' align='left' style='margin-left: 2px; margin-right: 2px;  margin-top: 0px; margin-bottom: 2px; cursor: pointer' onmouseover='over_MenuShop(this)' onmouseout='out_MenuShop(this)'"
   	for(x=0; x<M_SHOP.length; x++){if(M_SHOP[x][0]!=""){out_s+="<font color='#666666'><p "+cic+" onclick='"+M_SHOP[x][1]+"'>&nbsp;"+M_SHOP[x][0]+"</p></font>"}}

  	out_s+="</td></tr></table>"

	return(out_s);
}

// ###### FINE MENU SHOP ALA ##############



// ###### MINI OFFERTE ALA ################
function Flag_miniofferte(){

	out_e="<table border='0' cellpadding='0' cellspacing='0' width='135' style='margin-top: 10'>"
  	out_e+="<tr><td class='box_ali'><p class='srv_boxali' align='left'><font color='#333333'>Articoli in Offerta</font></p>"
    	out_e+="</td></tr><tr><td width='100%' style='border: 1px solid #C0C0C0'>"
    	out_e+="<p style='margin-top: 3; margin-bottom: 0' align='center'><a id='displayHref' href='' target='_self'><img class='box_miniofferta' id='displaySpot' border='0' src='' width='130' height='130'></a></p>"
  	out_e+="<center>"
    	out_e+="<p id='displayText0' style='border-top: 1px solid #C0C0C0; margin-left: 5; margin-right: 5; margin-top: 3; margin-bottom: 0' class='ver-0'>&nbsp;</p><!-- descrizione articolo  -->"
    	out_e+="<p id='displayText1' style='margin: 0' class='ver-0'>&nbsp;</p><!-- descrizione articolo  -->"
    	out_e+="<p id='displayText2' style='margin: 0' class='ver-1'>&nbsp;</p><!-- valori sconto -->"
    	out_e+="<p id='displayText3' style='border-bottom: 1px solid #C0C0C0; margin-left: 5; margin-right: 5; margin-top: 0; margin-bottom: 3' class='ver-1'>&nbsp;</p><!-- prezzo / sconto  -->"
    	out_e+="<p class='ver-0' style='margin: 0'><font color='#666666'>scopri altre offerte nel</font></p>"
	out_e+="<p class='ver-0' style='margin-left: 0; margin-right: 0; margin-top: 0; margin-bottom: 5'><a href='catalogo-snow/listino.htm' class='link_ali'><b>CATALOGO ONLINE</b></a></p>"
	out_e+="</center>"
	out_e+="</td></tr></table>"
	
	return(out_e);
}


// ###### LINK AZIENDE ALA ##########
function Flag_link_aziende(){ 

	
	var FKTRY = new Array()
	FKTRY[0] = new Array("http://www.5150snowboarding.com","5150")
	FKTRY[1] = new Array("http://www.apo-snowboards.com","Apo")
	FKTRY[2] = new Array("http://www.northwave.com","Bakoda")
	FKTRY[3] = new Array("http://www.blackholesnowboards.com","BlackHole")
	FKTRY[4] = new Array("http://www.boostersnowgear.com","Booster")
	FKTRY[5] = new Array("http://www.custommadesnowboards.com","Custom Made")
	FKTRY[6] = new Array()
	FKTRY[7] = new Array()
	FKTRY[8] = new Array()
	FKTRY[9] = new Array()
	FKTRY[10] = new Array()
	FKTRY[11] = new Array()
	FKTRY[12] = new Array()
	FKTRY[13] = new Array()
	FKTRY[14] = new Array()
	FKTRY[15] = new Array()
	FKTRY[16] = new Array()
	FKTRY[17] = new Array()
	FKTRY[18] = new Array()
	FKTRY[19] = new Array()
	FKTRY[20] = new Array()
/*	
	<select onChange="FactoryLinks(this)" size="1" class="ver-1">
                    
                   
                    <option value="http://www.demonsnow.com">Demon</option>
                    <option value="http://www.deeluxe-hardboots.com">Deeluxe-hard</option>
                    <option value="http://www.northwave.com">Drake</option>
                    <option value="http://www.elansnowboards.com">Elan</option>
		   <option value="http://www.ftwo-international.com">FTWO</option>
		   <option value="http://www.f2-snow.com">F2 Hard</option>
		   <option value="http://www.flow.com">Flow</option>
		   <option value="http://www.holmenkol.com">Holmenkol</option>
		   <option value="http://www.k2snowboarding.com">K2</option>
		   <option value="http://www.kuusport.ca">Kuu</option>
                    <option value="http://www.northwave.com">Northwave</option>
                    <option value="http://www.palmersnowboards.com">Palmer</option>
                    <option value="http://www.phksnow.com">PHK</option>
                    <option value="http://www.protein-italy.com">Protein</option>
                    <option value="http://www.ridesnowboards.com">Ride</option>
                    <option value="http://www.scskate.com">Santa Cruz</option>
                    <option value="http://www.smithsport.com">Smith</option>
                    <option value="http://www.spyoptic.com">Spy</option>
                    <option value="http://www.ufoplast.com">Ufo</option>
                    <option value="http://www.uvex-sports.de">Uvex</option>
                    <option value="http://www.virus-snowboards.de">Virus</option>
                    
                  </select>
		*/




	out_a="<table border='0' cellpadding='0' cellspacing='0' width='135' style='margin-top: 10'>"
    	out_a+="<tr><td class='box_ali'><p class='srv_boxali' align='left'><font color='#333333'>Link Aziende</font></p>"
    	out_a+="</td></tr><tr><td width='100%' style='border: 1px solid #C0C0C0'>"
	out_a+="<p class='ver-1' style='margin-top: 3; margin-bottom: 0' align='center'>"
	out_a+="<select onChange='FactoryLinks(this)' size='1' class='ver-1'>"
	
	for(x=0; x<FKTRY.length; x++){
	out_a+="<option value='"+FKTRY[x][1]+">"+FKTRY[x][1]+"</option>"
	}
	
	out_a+="</select></p>"
    	out_a+="</td></tr></table>"

	return(out_a);
}


// ###### ASSISTENZA CLIENTI ALA ##########
function Flag_assistenza_clienti(){ 

	out_a="<table border='0' cellpadding='0' cellspacing='0' width='135' style='margin-top: 10'>"
    	out_a+="<tr><td class='box_ali'><p class='srv_boxali' align='left'><font color='#333333'>Assistenza Clienti</font></p>"
    	out_a+="</td></tr><tr><td width='100%' style='border: 1px solid #C0C0C0'>"
	out_a+="<p class='ver-1' style='margin-top: 3; margin-bottom: 0' align='center'><font color='#666666'>per informazioni</font></p>"
    	out_a+="<p class='ver-1' style='margin-top: 0; margin-bottom: 0' align='center'><font color='#666666'>chiama il nostro Staff</font></p>"
    	out_a+="<p class='alfa2' style='border-top: 2px solid #668DAA; border-bottom: 2px solid #668DAA; margin-left: 3; margin-right: 3; margin-top: 5; margin-bottom: 0' align='center'>02.3350.3768</p>"
    	out_a+="<p class='ver-1' style='margin-top: 5; margin-bottom: 5' align='center'><font color='#666666'><b>Lunedì - Sabato</b></font></p>"
    	out_a+="<p class='ver-1' style='margin-top: 0; margin-bottom: 0' align='center'><b><font color='#666666'>09:30 - 12:30</font></b></p>"
    	out_a+="<p class='ver-1' style='margin-top: 0; margin-bottom: 5' align='center'><b><font color='#666666'>15:30 - 19:30</font></b></p>"
    	out_a+="<div align='center'><table border='0' cellpadding='0' cellspacing='0' style='text-align: center; border: 1px solid #668DAA; margin-top: 5; margin-bottom: 5' width='125'>"
    	out_a+="<tr><td><p align='center' style='margin-left: 2; margin-top: 2; margin-bottom: 2'><img border='0' src='"+linkJsHost+"img/file_comuni/email.jpg'></td>"
    	out_a+="<td><p class='ver-3' align='center'><b><a href='mailto:info@settimosport.com' class='link_ali'>INVIA EMAIL</a></b></p>"
    	out_a+="</td></tr></table>"
    	out_a+="</div></td></tr></table>"

	return(out_a);
}


// ###### VISUALIZZA CARRELLO ALA ##########
function Flag_car_display(){ 
	

	AggiornaVarCarrello() // legge e restituisce PakAD00346 ePakAD00347
	qta_carrello=0	
	for(de=0; de<PakAD00347.length;){qta_carrello =  qta_carrello + parseInt(PakAD00347[de]); de++}

	PakAD00346.length==1 ? xxart=PakAD00346[0] : xxart=PakAD00346[PakAD00346.length-1]
//	alert("PakAD00346: "+PakAD00346+"  PakAD00346.length: "+PakAD00346.length+"   xxart: "+xxart);
 
	car_001=ART[xxart][2]+" "+des[xxart][0]
	ART[xxart][5]>0 ? car_002="€ "+dueDecimali(ART[xxart][3]+0.001) : car_002="€. "+dueDecimali(ART[xxart][3]+0.001)
	
	BK024 = 0
 	for(x=0; x<PakAD00346.length; x++){
	  
	  ART[PakAD00346[x]][5]>0 ? BK020 = ART[PakAD00346[x]][5] : BK020 = ART[PakAD00346[x]][3]
	  BK021 = PakAD00347[x]
	  BK020_BK021 = BK020*BK021
	  BK024 += BK020_BK021
	}

	out_a="<table border='0' cellpadding='0' cellspacing='0' width='135' style='margin-top: 10'>" 
    	out_a+="<tr><td class='box_ali'><p class='srv_boxali' align='left'><font color='#333333'>Carrello Acquisti</font></p>"
    	out_a+="</td></tr><tr><td width='100%' style='border: 1px solid #C0C0C0' background='"+linkJsHost+"img/file_comuni/gradient_car_1.jpg'>"
    	out_a+="<div align='center'><table border='0' cellpadding='0' cellspacing='0' width='95%' style='border: 1px solid #668DAA; margin-top: 5; margin-bottom: 5'>"
	out_a+="<tr><td width='100%' bgcolor='#83A3BA'><p align='center' class='ver-0'><font color='#FFFFFF'>ultimo prodotto inserito</font></td></tr>"
    	out_a+="<tr><td width='100%'><p class='ver-0' style='margin-top: 3; margin-bottom: 0; margin-left: 3; margin-right: 3' align='center'><b>"+car_001+"</b></p>"
    	out_a+="<p class='ver-1' style='margin-top: 0; margin-bottom: 3' align='center'><font color='#666666'>prezzo: </font><b>"+car_002+"</b></p>"
    	out_a+="</td></tr></table></div>"
    	out_a+="<div align='center'><table border='0' cellpadding='0' cellspacing='0' width='95%' style='border: 1px solid #668DAA; margin-top: 0; margin-bottom: 5'>"
    	out_a+="<tr><td width='100%' bgcolor='#83A3BA'><p align='center' class='ver-0'><font color='#FFFFFF'>Totale nel carrello</font></td></tr>"
    	out_a+="<tr><td width='100%'><p class='ver-1' style='margin-top: 3; margin-bottom: 0' align='center'><font color='#666666'>q.tà articoli:&nbsp</font><b>"+qta_carrello+"</b></p>"
    	out_a+="<p class='ver-1' style='margin-top: 0; margin-bottom: 3' align='center'><font color='#666666'>Totale: </font><b>€ "+dueDecimali(BK024+0.001)+"&nbsp;</b></p></td></tr></table></div>"
    	
	out_a+="<div align='center'><table border='0' cellpadding='0' cellspacing='0' style='text-align: center; border: 1px solid #668DAA; margin-top: 0; margin-bottom: 5' width='125'>"
    	out_a+="<tr><td width='23'><p align='center' style='margin-left: 2; margin-top: 0; margin-bottom: 0'><font color='#333333'><img border='0' src='"+linkJsHost+"img/file_comuni/cart.gif'></font></td>"
    	out_a+="<td width='96'><p class='ver-2' align='left'><b><a href='"+linkRicerca+"carcontrol.htm' class='link_ali'>Vai al carrello</a></b></p></td></tr></table></div>"
    	out_a+="</td></tr></table>"

	return(out_a);
	
}

// ############ FLAG SPOT #################


//	BOX_155 = new Array() // declare data.js

function Flag_spot_155(respond){


	grafic=linkJsHost+BOX_155[respond][0]
	selflink="void(0)"
	BOX_155[respond][1].lastIndexOf("javascript:")!=-1 ? selflink=BOX_155[respond][1] : selflink=linkJsHost+BOX_155[respond][1]

	out_x="<table border='0' cellpadding='0' cellspacing='0' width='135' style='border: 1px solid #C0C0C0; margin-top: 10'>"
      	out_x+="<tr><td><p align='center'><a href='"+selflink+"'><img border='0' src='"+grafic+"' hspace='2' vspace='4'></a></p>"
      	out_x+="</td></tr></table>"
	return(out_x);
}



// ######  MENU BOTTOM   ##################
	
function MenuBottom(xxx){

	if(xxx==1){
	outsr="<table border='0' cellpadding='0' cellspacing='0' width='665'><tr><td>"
	outsr+="<p class='ver-0' style='margin-left: 0; margin-right: 0; margin-top: 0; margin-bottom: 10' align='center'>"
 	outsr+="<a class='serra_in' href='listino.htm' class='serra_in'>HOME SHOP</a>"
 	outsr+="&nbsp;|&nbsp;<a class='serra_in' href='terms_0.htm' class='serra_in'>CONDIZIONI DI VENDITA</a>"
  	outsr+="&nbsp;|&nbsp;<a href='../service_dovesiamo.htm' class='serra_in'>DOVE SIAMO</a>"
  	outsr+="&nbsp;|&nbsp;<a href='../service_orariapertura.htm' class='serra_in'>ORARI DI APERTURA</a>"
 	if(LifeCookieControl(ceck_car)){outsr+="&nbsp;|&nbsp;<a href='carcontrol.htm'><font color='#FF0000'>IL MIO ORDINE</font></a>"}
 	outsr+="</p>"
	outsr+="</td></tr></table>"
	document.write(outsr)
	}

	if(xxx==2){
	outsr="<table border='0' cellpadding='0' cellspacing='0' width='100%'><tr><td>"
	outsr+="<p class='ver-0' style='margin-left: 0; margin-right: 0; margin-top: 20; margin-bottom: 0' align='center'>"
      	outsr+="<a class='serra_in' href='listino.htm' class='serra_in'>CONTINUA SHOPPING</a>&nbsp;|&nbsp;"
      	outsr+="<a class='serra_in' href='javascript:OpenCart()' class='serra_in'>VISUALIZZA CARRELLO</a>&nbsp;|&nbsp;"
      	outsr+="<a class='serra_in' href='javascript:popUpWindow(&quot;condizioni.htm&quot;)' class='serra_in'>CONDIZIONI DI VENDITA</a>&nbsp;|&nbsp;"
      	outsr+="<a class='serra_in' href='javascript:AnnullaOrdine()' class='serra_in'>ANNULLA ORDINE</a></p>"
	outsr+="</td></tr></table>"
	document.write(outsr)
	}
}
// ###### END MENU BOTTOM ##################


