//----------
function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

function WIN(theurl){
	link = window.open(theurl,"Link1","toolbar=0,location=0,directories=0,status=1,menubar=0,scrollbars=1,resizable=1,width=800,height=600");
} 

function WIN2(theurl){
	link = window.open(theurl,"Link1","toolbar=0,location=0,directories=0,status=1,menubar=0,scrollbars=1,resizable=1,width=300,height=200");
} 

function MM_jumpMenu(selObj,restore){ //v3.0
	//eval("location='"+selObj.options[selObj.selectedIndex].value+"'");
	//if (restore) selObj.selectedIndex=0;
	
	var newwin = window.open(selObj.options[selObj.selectedIndex].value,'_blank','');
	newwin.focus();  
}


function AutoResize(img){ 
foto1= new Image(); 
foto1.src=(img); 
Controlla(img); 
} 
function Controlla(img){ 
if((foto1.width!=0)&&(foto1.height!=0)){ 
viewFoto(img); 
} 
else{ 
funzione="Controlla('"+img+"')"; 
intervallo=setTimeout(funzione,20); 
} 
} 
function viewFoto(img){ 
largh=foto1.width+20; 
altez=foto1.height+20; 
stringa="width="+largh+",height="+altez; 
finestra=window.open('/template/builder/00000008/photo_viewer.asp?image='+img,"",stringa); 
} 
//----------

function setPng24(obj) {
obj.width=obj.height=1;
obj.className=obj.className.replace(/\bpng24\b/i,'');
obj.style.filter =
"progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+ obj.src +"',sizingMethod='image');"
obj.src=''; 
return '';
}