///////////////////////// POP UP //////////////////////////////////////	
//Math.floor(Math.random()*11),
function popup(url,wdt,hgt) {
w=screen.width;
h=screen.height;
leftm=(w-wdt)/2;
topm=(h-hgt)/2;
window.open(url, 'Finestra','left='+leftm+',top='+topm+',width='+wdt+',height='+hgt+',menubar=no,scrollbars=no,resizable=no,toolbar=no,location=no');
}

//////////////////////////// CARICAMENTO FILE FLASH ///////////////////////////
function loadFlash(swf, w, h, oid) {
document.write('<object wmode="transparent" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/" width="' + w + '" height="' + h + '" id="' + oid + '"> \n');
document.write('<param name="movie" value="' + swf + '"> \n');
document.write('<param name="quality" value="high"> \n');	  
document.write('<param name="wmode" value="transparent"> \n');
document.write('<embed wmode="transparent" src="' + swf + '" width="' + w + '" height="' + h + '" type="application/x-shockwave-flash" pluginspace="http://www.macromedia.com/go/getflashplayer" id="' + oid + '"> \n');
document.write('</embed></object> \n');
}	
   
//////////////////////////// MOSTRA/NASCONDI DIV ///////////////////////////
function apri_chiudi(div){
if(document.getElementById(div).style.display == 'block'){
document.getElementById(div).style.display = 'none';
} else {
document.getElementById(div).style.display = 'block';
}
}  	
 
 /*
function ajaxLoader(url,id) {
  if (document.getElementById) {
    var x = (window.ActiveXObject) ? new ActiveXObject("Microsoft.XMLHTTP") : new XMLHttpRequest();
  }
  if (x) {
    x.onreadystatechange = function() {
      if (x.readyState == 4 && x.status == 200) {
        el = document.getElementById(id);
        el.innerHTML = x.responseText;
      }
    }
    x.open("GET", url, true);
    x.send(null);
  }
}  
*/	 
/*
$(document).ready(function(){
	
	$(".ajaxcont").hide();
 
	$("a.contdin").toggle(function(){
		$(this).addClass("active"); 
		}, function () {
		$(this).removeClass("active");
	});		 
	
	
	$("a.contdin").click(function(){
		$(this).next(".ajaxcont").slideToggle("slow,");
	});
 
});
*/


