function expresion(url)
{
window.open('','enlace');
document.frames['counter'].location=url;
}

function superpop(url,mwidth,mheight)
{
if (document.all&&window.print) //if ie5
eval('window.showModelessDialog(url,"","help:0;resizable:1;dialogWidth:'+mwidth+'px;dialogHeight:'+mheight+'px")')
else
eval('window.open(url,"","width='+mwidth+'px,height='+mheight+'px,resizable=1,scrollbars=1")')
}

function anchodisponible()
{
document.write(screen.availwidth);
}

function altodisponible()
{
document.write(screen.availheight);
}

function mOvr(src,clrOver) 
{
if (!src.contains(event.fromElement)) 
{
src.style.cursor = 'hand';
src.bgColor = clrOver;
}
}

function mOut(src,clrIn) 
{
if (!src.contains(event.toElement)) 
{
src.style.cursor = 'default';
src.bgColor = clrIn;
}
}

function mClk(src) 
{
if(event.srcElement.tagName=='TD'){
src.children.tags('A')[0].click();
}
}

function fullwin(targeturl)
{
window.open(targeturl,"","fullscreen,scrollbars")
}

var txt="Flasheados                                                                                   tu web de juegos                                                                                   no pares de jugar                                                                                   ";

function scroll()
{
window.status=txt;
txt=txt.substring(1,txt.length)+txt.charAt(0);
window.setTimeout("scroll()",200);
}

function NewWindow(mypage, myname, w, h, scroll)
   {
   var winl = (screen.width - w) / 2;
   var wint = (screen.height - h) / 2;
   winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars='+scroll+',resizable=no,toolbar=no,status=no,location=no'
   win = window.open(mypage, myname, winprops)
   if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }
   }
   
function nuevasinmenu(mypage, myname, w, h, scroll)
   {
   var winl = (screen.width - w) / 2;
   var wint = (screen.height - h) / 2;
   winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars='+scroll+',resizable=yes,toolbar=no,status=no,location=no'
   win = window.open(mypage, myname, winprops)
   if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }
   }
   
function nuevadisponible(mypage, myname, scroll)
   {
   var w = screen.availwidth - 20;
   var h = screen.availheight -40;
   var winl = 5;
   var wint = 5;
   winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars='+scroll+',resizable=yes,toolbar=no,status=no,location=no'
   win = window.open(mypage, myname, winprops)
   if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }
   }
   
function popunder(mypage, myname, w, h, scroll)
   {
   var winl = (screen.width - w) / 2;
   var wint = (screen.height - h) / 2;
   winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars='+scroll+',resizable=yes,toolbar=no,menubar=no,status=no,location=no'
   win = window.open(mypage, myname, winprops);
  win.blur()
  window.focus()
   } 

function high(which2)
   {
   theobject=which2;
   highlighting=setInterval("highlightit(theobject)",75);
   }
   function low(which2)
   {
   clearInterval(highlighting);
   which2.filters.alpha.opacity=75;
   }
   function highlightit(cur2)
   {
   if(cur2.filters.alpha.opacity<100)
   cur2.filters.alpha.opacity+=5
   else if(window.highlighting)
   clearInterval(highlighting)
   }
   
function disableselect(e)
{
   return false
}
function reEnable()
{
   return true
}
//if IE4+
document.onselectstart=new Function ("return false")
//if NS6
if (window.sidebar)
{
   document.onmousedown=disableselect
   document.onclick=reEnable
}

