function CreaFlash(DivID, CLSID, ObjectID, WIDTH, HEIGHT, URL){
  var d = document.getElementById(DivID);
  d.innerHTML = 
    '<object classid=' + CLSID + ' id=' + ObjectID + ' codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width=' + WIDTH + ' height=' + HEIGHT + ' /><param name="movie" value=' + URL + ' /><param name="quality" value="high"/><embed src='+ URL +' quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width='+ WIDTH +' height=' + HEIGHT +' name=' + ObjectID + '></embed>';
}

function preLoad() {
   if(document.images){ 
   		if(!document.vett) document.vett=new Array();
    	var i,j=document.vett.length,call=preLoad.arguments; 
		for(i=0; i<call.length; i++)
    		if (call[i].indexOf("#")!=0){ document.vett[j]=new Image; document.vett[j++].src=call[i];}
	}
}

function ScanCookie(variable)
	{
	cook = document.cookie;
	variable += "=";
	place = cook.indexOf(variable,0);
	if (place <= -1)
		return("0");
	else
		{
		end = cook.indexOf(";",place)
		if (end <= -1)
			return(unescape(cook.substring(place+variable.length,cook.length)));
		else
			return(unescape(cook.substring(place+variable.length,end)));
		}
	}

function CreationCookie(nom,valeur,permanent)
	{
	if(permanent)
		{
		dateExp = new Date(2020,11,11);
		dateExp = dateExp.toGMTString();
		ifpermanent = '; expires=' + dateExp + ';';
		}
	else
		ifpermanent = '';
	document.cookie = nom + '=' + escape(valeur) + ifpermanent;
	}

function finestra(str) {

        searchWin = window.open(str,'finestra','scrollbars=no,resizable=no,width=400,height=400,status=no,menubar=no,location=no,toolbar=no');
}