var notescapes = (navigator.appName.indexOf("Microsoft")==-1)? true:false;
//Llibreria creada e ideada per Marc
 
function canviaMidaImatge(id,nomfoto,width1,height1)
{
var height=height1*parent.factorx;
var width=width1*parent.factory; 
 if (notescapes)
 {
 	alert(document.foto1.document.images["image1"].width);
    document.foto1.document.images["image1"].width=86;
 	eval("document."+id+".document.images["+nomfoto+"].width="+width);
	eval("document."+id+".document.images["+nomfoto+"].height="+height);
 }
 else
 {
    document.images[nomfoto].width=width;
	document.images[nomfoto].height=height;
 }
}



function mou(id,left,top)
{
 if (notescapes)
 {
  	if (top!=-1) eval("document."+id+".top="+top);
	if (left!=-1) eval("document."+id+".left="+left);	
 }
 else 
 {
 	 if (left!=-1) document.all[id].style.left = left;
	 if (top!=-1) document.all[id].style.top = top;
 }
}

function moufill(pareid,fillid,left,top)
{
 if (notescapes)
 {
  	if (top!=-1) eval("document."+pareid+".document."+fillid+".top="+top);
	if (left!=-1) eval("document."+pareid+".document."+fillid+".left="+left);	
 }
 else 
 {
 	 if (left!=-1) document.all[fillid].style.left = left;
	 if (top!=-1) document.all[fillid].style.top = top;
 }
}



//OK


function volcar(id,text)
{
 if (document.all) document.all[id].innerHTML=text;
 else {
 	   eval("document."+id+".document.open()");
	   eval("document."+id+".document.write("+'"'+text+'"'+")");
	   eval("document."+id+".document.close()");
	   }
}


function ensenya(id)
{
 if (notescapes) eval("document."+id+".visibility='show'");
 else document.all[id].style.visibility='visible';
}

function amaga(id)
{
 if (notescapes) eval("document."+id+".visibility='hide'");
 else document.all[id].style.visibility='hidden';
}

//KO

function ensenyafill(pareid,fillid)
{
 if (notescapes) eval("document."+pareid+".document."+fillid+".visibility='show'");
 else document.all[fillid].style.visibility='visible';
}


function amagafill(pareid,fillid)
{
 if (notescapes) eval("document."+pareid+".document."+fillid+".visibility='hide'"); 
 else document.all[fillid].style.visibility='hidden';
}


function midalletra(id,mida)
{
	if (notescapes)
		{
		
		}
	else 
		document.all[id].style.fontSize = mida;
}
