<!--

	/**
	 * @author Simone Stranieri
	 * @e-mail isendel83@hotmail.com
	 *
	 * @note Please contact me before use this script. Thanks!
	 */
	
	var browser;
	
	function identifyBrowser() {
	 var userA = navigator.userAgent.toLowerCase();
	 if(userA.indexOf('firefox')>-1)
	 	browser = 'MOZ_FIREFOX';
	 else
	 if(userA.indexOf('opera')>-1) {
	 	browser = 'OPERA';
	 	document.getElementById('CONTAINER').style.height = 700;
	 }
	 else
	 	browser = 'INT_EXPLORER';
	}
	
	function daysNames() {
	 this[0] = "Domenica";
	 this[1] = "Lunedì";
	 this[2] = "Martedì";
	 this[3] = "Mercoledì";
	 this[4] = "Giovedì";
	 this[5] = "Venerdì";
	 this[6] = "Sabato";
	}
	
	function monthsNames() {
	 this[0] = "Gennaio";
	 this[1] = "Febbraio";
	 this[2] = "Marzo";
	 this[3] = "Aprile";
	 this[4] = "Maggio";
	 this[5] = "Giugno";
	 this[6] = "Luglio";
	 this[7] = "Agosto";
	 this[8] = "Settembre";
	 this[9] = "Ottobre";
	 this[10] = "Novembre";
	 this[11] = "Dicembre";
	}

	function showData() {
	 var today = new Date();
	 var days = new daysNames();
	 var dayName = days[today.getDay()];
	 var thisDay = today.getDate();
	 var months = new monthsNames();
	 var thisMonth = months[today.getMonth()];
	 var thisYear = today.getYear();
	 if(thisYear <= 200) thisYear+=1900;
		
	 document.write("<table border=0 cellpadding=0 cellspacing=0>");
	 document.write("<tr><td style='text-align: center; font-family: Arial; font-size: 9px; color: #152078;'>");
	 document.write(dayName + " " + thisDay + " " + thisMonth + " " +thisYear);
	 document.write("</td></tr></table>");
	}
	
	function show(who) {
	 identifyBrowser();
	 var leftAdd;
	 var topAdd;
	 if(browser=='MOZ_FIREFOX') {
	  topAdd = 46;
	  if(who=='SUBAZ') leftAdd = 638;
	  else
	  if(who=='ESPO') leftAdd = 764;
	  else leftAdd = 763;
	 }
	 else
	 if(browser=='INT_EXPLORER') {
	  topAdd = 54;
	  if(who=='SUBAZ') leftAdd = 508;
	  else leftAdd = 633;
	 }
	 else{
	  topAdd = 46;
	  if(who=='SUBAZ') leftAdd = 508;
	  else leftAdd = 633;
	 }
	 document.getElementById(who).style.left = leftAdd;
     	 document.getElementById(who).style.top = topAdd;
	}
	
	function hide(s) {
	 document.getElementById(s).style.left = -2000;
	 document.getElementById(s).style.top = -2000;
	}
	
	function positioningMainMenu() {
	 document.getElementById('LEFT-BORDER').style.left = 502;
	 document.getElementById('MAIN_MENU').style.left = 512;
	 document.getElementById('RIGHT-BORDER').style.left = 1012;
	 identifyBrowser();
	 if(browser=='MOZ_FIREFOX') {
	  document.getElementById('LEFT-BORDER').style.top = 27;
	  document.getElementById('MAIN_MENU').style.top = 27;
	  document.getElementById('RIGHT-BORDER').style.top = 27;
	 }
	 else
	 if(browser=='INT_EXPLORER') {
	  document.getElementById('LEFT-BORDER').style.top = 35;
	  document.getElementById('MAIN_MENU').style.top = 35;
	  document.getElementById('RIGHT-BORDER').style.top = 35;
	 }
	 else {
	  document.getElementById('LEFT-BORDER').style.top = 27;
	  document.getElementById('MAIN_MENU').style.top = 27;
	  document.getElementById('RIGHT-BORDER').style.top = 27;
	 }
	}
	
	function goUpLink() {
	 document.write("<a name='START'></a>");
	 document.write("<table border=0 cellspacing=0 cellpadding=0 width=100% style='position: absolute; left: 0; top: 1800;'>");
	 document.write("<tr><td style='width: 100%; height: 100%; vertical-align: bottom; text-align: center;'>");
	 document.write("<a href='#START' style='background-color: yellow; color: blue; font-family: Tahoma; font-size: 12px; text-decoration: none;'>");
	 document.write("Torna su</a></td></tr></table>");
	}

	function locatorLinks() {
	 document.write("<table border=0 cellspacing=0 cellpadding=0 style='width: 100%; background-color: rgb(21, 50, 112);'>");
	 document.write("<tr>");
	 document.write("<td style='text-align: center;'>");
	 document.write("<a href='from1.html#MAP' id='MENU'>");
	 document.write("Vieni da Reggio Calabria</a>");
	 document.write("</td>");
	 document.write("<td style='text-align: center;'>");
	 document.write("<a href='from2.html#MAP' id='MENU'>");
	 document.write("Vieni dal Nord della Calabria</a>");
	 document.write("</td>");
	 document.write("<td style='text-align: center;'>");
	 document.write("<a href='from3.html#MAP' id='MENU'>");
	 document.write("Vieni dalla Costa Ionica</a>");
	 document.write("</td></tr></table>");
	}
	
	function googleSearch() {
	 document.write("<form method='get' action='http://www.google.com/search'>");
	 document.write("<table border=0 cellspacing=0 cellpadding=0 width=100%><tbody><tr><td style='text-align: right; vertical-align: middle;'>");
	 document.write("<a href='http://www.google.com'>");
	 document.write("<img src='resources/img14.gif' height='30' alt='Google' align='middle' border='0'></a>");
	 document.write("<input class='google' name='q' size='25' maxlength='150' type='text'>");
	 document.write("<input name='hl' value='it' type='hidden'>");
	 document.write("<input name='btnG' value='Cerca con Google' type='submit' style='font-size: 12px;'>");
	 document.write("</td></tr></tbody></table></form>");
	}
	
	function createImgLink(imgName, toolTip, alt, site) {
	 document.write("<a id='IMG_LINK' href="+site+">");
	 document.write("<img src="+imgName+" alt="+alt+" title='"+toolTip+"'>");
	 document.write("</a>");
	}
		
	function getEnterLink(title, site) {
	 createImgLink("resources/entersite.png", "Entra nel sito "+title, "Entra", site);
	}
		
	function publicVendor2(prod_img, width, logo, description, title, site, subshow) {
	 document.write("<table border=1 cellspacing=0 cellpadding=0 width=80% style='border: none;'>");
	  document.write("<tr>");
	   document.write("<td style='text-align: center; width: 300px; height:200px; border: none;'>");
	    document.write("<object codebase='http://download.macromedia.com/pub/shockwave/cabs/director/sw.cab#version=8,5,0,0' height=190>");
	    document.write("<param name='quality' value='high'>");
	    document.write("<param name='movie' value='resources/vendors/"+prod_img+"'>");
	    document.write("<param name='wmode' value='transparent'>");
	    document.write("<embed wmode='transparent' src='resources/vendors/"+prod_img+"' pluginspage='http://www.macromedia.com/shockwave/download/' height=190>");
	    document.write("</embed></object>");
	   document.write("</td>");
	   document.write("<td style='border-style: solid; border-color: blue; border-top: none; border-bottom: none; border-right: none;'>");
	    
	    document.write("<table border=0 cellspacing=0 cellpadding=0 width=100%>");
	     
	     document.write("<tr>");
	      document.write("<td width=100% height=80 style='border: none; text-align: center;'>");
	       document.write("<img src='"+logo+"'></img>");
	      document.write("</td>");
	     document.write("</tr>");
	     
	     document.write("<tr>");
	      document.write("<td style='text-align: center; height: 100%;'>");
	      blueCell(description, 'black');
	      document.write("</td>");
	     document.write("</tr>");
	     
	     document.write("<tr>");
	      document.write("<td width=100% style='text-align:center;'>");
	       getEnterLink(title, site);
	      document.write("</td>");
	     document.write("</tr>");
	    
	    document.write("</table>");
	   
	   document.write("</td>");
	  document.write("</tr>");
	  document.write("<tr><td width=300 style='background-color: rgb(21, 50, 112); border: none; text-align: center; font-family: Arial; font-size: 12px; color: yellow;'>");
	  if(subshow=='') document.write("Showroom non disponibile. Visitate il sito cliccando sull'icona a lato!");
	  else {
	   document.write("<a href='"+subshow+"' target='MASTER' style='font-family: Arial; font-size: 12px; color: yellow; text-decoration: none;'>Showroom dei prodotti</a>");
	  }
	  document.write("</td><td></td></tr>");
	 document.write("</table>");	 
	}
	
	function blueCell(param, text_color) {
	 document.write("<table style='width: 100%; height: 100%;' border=0 cellspacing=0 cellpadding=0>");
	 document.write("<tr><td style='height: 36px; width: 36px; background-image: url(resources/11b.png);'></td>");
	 document.write("<td style='background-image: url(resources/topline-blue.png); height: 33px;'></td>");
	 document.write("<td style='height: 36px; width: 36px; background-image: url(resources/12b.png);'></td></tr>");
	 document.write("<tr><td style='background-image: url(resources/leftline-blue.png); width: 33px; height: 100%;'>");
	 document.write("<td style='text-align: giustify; height: 100%;'>");
				
	 document.write("<span style='color: "+text_color+";'>"+param+"</span></td>");
				
	 document.write("<td style='background-image: url(resources/rightline-blue.png); height: 65px; width: 33px;'></tr>");
	 document.write("<tr><td style='height: 38px; width: 37px; background-image: url(resources/21b.png);'></td>");
	 document.write("<td style='background-image: url(resources/bottomline-blue.png); height: 33px;'></td>");
	 document.write("<td style='height: 38px; width: 37px; background-image: url(resources/22b.png);'></td></tr></table>");
	}
	
	function vendor(prod_img, width, logo, description, subshow, site)
	{
	  document.write("<table width=100% border=0 cellspacing=0 cellpadding=4 style='border-bottom: 1px solid #1717b0;'>");
	  document.write("<tr><td rowspan=5 style='border: none;text-align: center; vertical-align: top; padding-right: 20px;'>");
	  document.write("<object codebase='http://download.macromedia.com/pub/shockwave/cabs/director/sw.cab#version=8,5,0,0' height=190>");
	  document.write("<param name='quality' value='high'>");
	  document.write("<param name='movie' value='resources/vendors/"+prod_img+"'>");
	  document.write("<param name='wmode' value='transparent'>");
	  document.write("<embed wmode='transparent' src='resources/vendors/"+prod_img+"' pluginspage='http://www.macromedia.com/shockwave/download/' height=190>");
	  document.write("</embed></object></td></tr>");
	  document.write("<tr><td align=center style='border: none;'><img src='"+logo+"'></td></tr>");
	  document.write("<tr><td width=100% style='border: none;'><hr size=1 width=80% color=blue><span>"+description+"</span><hr size=1 width=80% color=blue></td></tr>");
	  if( subshow!='' )
	  {
	  	document.write("<tr><td align=right style='border: none;'><a href='"+subshow+"' style='font: 11px Tahoma;'>Showroom</a></td></tr>");
	  }
	  if( site!='' )
	  {
	  	document.write("<tr><td align=right style='border: none;'><a href='"+site+"' style='font: 11px Tahoma;;'>Sito del rivenditore</a></td></tr>");
	  }
	  document.write("</table>");
	}

-->
