
var d = document;




function gotoUrl(url)
{
 if (url!='') document.location.href = url;
}







function getElement(i)
{ 
 var ob = d.all?d.all[i]:d.layers?d.layers[i]:d.getElementById(i); 
 return ob; 
} 








function getTopElement(i)
{ 
 var ob = topdoc.all?topdoc.all[i]:topdoc.layers?topdoc.layers[i]:topdoc.getElementById(i); 
 return ob; 
} 







function changeDIVcontent(div_id, content, doc)
{
 if (doc=='') doc=document;
 
 if(doc.layers)
 with(doc.layers[div_id+""].document)
  {
   write(content);
   close();
  }
 else
  {
   if(doc.getElementById)
    doc.getElementById(div_id+"").innerHTML=content;
   
   else
    if(doc.all)
     doc.all[div_id+""].innerHTML=content;
  }

}



function runPNGfix()
{
 if (!/AppleWebKit/.test(navigator.userAgent)) $(document).pngFix();
}














