Show ="no";

linkClienti="Alcantara&reg; Clients";

stp = "PRINT"
// Set OffY in pixels to a negative number 
// somewhat larger than the width of the menu.

var OffY = 180;

// Set the PosY and PosY variables
// to the location on the screen where the
// menu should position (in pixels) when stopped.


var PosY =  50;//verticale

// Usually, use the settings shown; but you can
// change the speed and the increment of motion
// across the screen, below.

var speed        = 1;
var increment    = 4;
var incrementNS4 = 5; // for slower NS4 browsers

// do not edit below this line
// ===========================

var is_NS = navigator.appName=="Netscape";
var is_Ver = parseInt(navigator.appVersion);
var is_NS4 = is_NS&&is_Ver>=4&&is_Ver<5;
var is_NS5up = is_NS&&is_Ver>=5;

var SelY=PosY;
var sPosY=PosY;
var sOffY=OffY;

if (Show=="yes"){
sPosY=OffY;
sOffY=PosY;
SelY=sPosY;
}

if (is_NS4){
	increment=incrementNS4;
	Lq="document.layers.";
	Sq="";	
	}else{
	Lq="document.all.";
	Sq=".style";	
	}  

function allvar() { 
	if (is_NS4){	
	eval(Lq+'menuSelect'+Sq+'.left=sPosY');
	eval(Lq+'menuSelect'+Sq+'.top=PosY');	
	}else{	
	document.getElementById('menuSelect').style.left=sPosY+"px";
	document.getElementById('menuSelect').style.top=PosY+"px";
	}  
}

function moveOffSelector(langId){
if (SelY<OffY){ 
SelY=SelY+increment;
if (is_NS5up){
document.getElementById('menuSelect').style.top=SelY+"px";
}else{
eval(Lq+'menuSelect'+Sq+'.top=SelY');
}
setTimeout('moveOffSelector(\'' + langId + '\')',speed);
document.getElementById('divChiudi').innerHTML = '<a href="javascript:moveOnSelector(\'' + langId + '\');"><img src="/' + langId + '/img/div_apri.gif" alt="" width="107" height="17" border="0" hspace="10" name="img_chiudi"></a>';
}
}

function moveOnSelector(langId){
if (SelY>PosY){ 
SelY=SelY-increment;
if (is_NS5up){
document.getElementById('menuSelect').style.top=SelY+"px";
}else{
eval(Lq+'menuSelect'+Sq+'.top=SelY');
}
setTimeout('moveOnSelector(\'' + langId + '\')',speed);
document.getElementById('divChiudi').innerHTML = '<a href="javascript:moveOffSelector(\'' + langId + '\')"><img src="/' + langId + '/img/div_chiudi.gif" alt="" width="107" height="17" border="0" hspace="10" name="img_chiudi"></a>';
}
}

function openmenuselect(langId) {	
	num_img=1;
	MM_preloadImages('/' + langId + '/img/div_apri.gif','/' + langId + '/img/div_chiudi.gif'); 
	allvar();
	SelY=180;
	document.getElementById('menuSelect').style.top=SelY;
	document.getElementById('divChiudi').innerHTML = '<a href="javascript:moveOnSelector(\'' + langId + '\');"><img src="/' + langId + '/img/div_apri.gif" alt="" width="107" height="17" border="0" hspace="10" name="img_chiudi"></a>';
}

function submit_form() {
	document.iscriviti.submit()
}
		
//preload images
function MM_preloadImages() { //v3.0
	var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
  var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
  if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function swapImg(idPosition){	
	MM_swapImage('azienda_thumb_' + current,'',eval('awfImgPiccolaOff' + current),'azienda_img','',eval('awfImgMedia' + idPosition),'azienda_thumb_' + idPosition,'',eval('awfImgPiccolaOn' + idPosition),1)
	imgBig = eval('awfImgGrande' + idPosition);
	current = idPosition;
	test = new Image;
	test.src = imgBig;
	
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}

function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function openvr(lang) {
	window.open("/" + lang + "/swf/qvr/openvr.shtml", "openvr","width=320,height=240")
}

function openWin(title, img) {
	if (title == "") title = "Alcantara";
	heightFoto = 0;
	widthFoto = 0;
	test = new Image;
	test.src = img;
	heightFoto = test.height;
	widthFoto = test.width;												
	if (heightFoto != 0 && heightFoto != 0){
		PFW=window.open("",'zoomimg','scrollbars=no,toolbar=no,menubar=no,width=' + widthFoto + ',height=' + heightFoto + ',resizable');
	}	else {	
		PFW=window.open("",'zoomimg','scrollbars=yes,toolbar=no,menubar=no,width=450,height=450,resizable');
	}
	var frameString='<html><head><title>';
	frameString= frameString + title + '</title></head>';
	frameString= frameString + '<body bgcolor="#FFFFFF" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0"  style="margin:0px:padding:0px;" onload="self.focus();resize()">';
	frameString= frameString + '<img src="' + img +'">';
	frameString= frameString + '<script>function resize(){test = new Image;test.src = "' + img + '";window.resizeTo(test.width, test.height + 50);}</script>';
	frameString= frameString + '</body></html>';
	
  PFW.document.open();
  PFW.document.write(frameString);
  PFW.document.close();
	PFW.focus();
}

function privacy(){
	window.open('/en_TH/privacy.shtml','privacy','scrollbars=yes,toolbar=no,menubar=no,width=520,height=580,resizable');
}