// Popupvotar

var persistclose=1;
var startX = 50;
var startY = 70;
var verticalpos="frombottom";

function iecompattest()
{
  return (document.compatMode && document.compatMode!="BackCompat")? document.documentElement : document.body;
}

function set_cookie(name, value, expires)
{
  document.cookie = name + "=" + escape(value) + "; path=/" + ((expires == null) ? "" : "; expires=" + expires.toGMTString());
} 

function get_cookie(Name)
{
  var search = Name + "="
  var returnvalue = "";
  if (document.cookie.length > 0)
  {
    offset = document.cookie.indexOf(search)
    if (offset != -1)
    {
      offset += search.length
      end = document.cookie.indexOf(";", offset);
      if (end == -1) end = document.cookie.length;
      returnvalue=unescape(document.cookie.substring(offset, end))
    }
  }
  return returnvalue;
}

function closebar()
{
  var expirebar = new Date();
  expirebar.setTime(expirebar.getTime() + (1000 * 60 * 60 * 24)); // 24 horas
  set_cookie("l2votebar", "1", expirebar);
  
  if (persistclose)
  document.cookie="remainclosed=1"
  document.getElementById("topbar").style.visibility="hidden"
}

function staticbar()
{
  barheight=document.getElementById("topbar").offsetHeight
  var ns = (navigator.appName.indexOf("Netscape") != -1) || window.opera;
  var d = document;
  function ml(id)
  {
    var el=d.getElementById(id);
    
    if (!persistclose || persistclose && get_cookie("remainclosed")=="")
      if (get_cookie("l2votebar")=="")
        el.style.visibility="visible"
        
    if(d.layers)el.style=el;
    el.sP=function(x,y){this.style.left=x+"px";this.style.top=y+"px";};
    el.x = startX;
    if (verticalpos=="fromtop")
    el.y = startY;
    else{
    el.y = ns ? pageYOffset + innerHeight : iecompattest().scrollTop + iecompattest().clientHeight;
    el.y -= startY;
    }
    return el;
  }
  window.stayTopLeft=function()
  {
    if (verticalpos=="fromtop")
    {
      var pY = ns ? pageYOffset : iecompattest().scrollTop;
      ftlObj.y += (pY + startY - ftlObj.y)/8;
    }
    else{
      var pY = ns ? pageYOffset + innerHeight - barheight: iecompattest().scrollTop + iecompattest().clientHeight - barheight;
      ftlObj.y += (pY - startY - ftlObj.y)/8;
    }
    ftlObj.sP(ftlObj.x, ftlObj.y);
    setTimeout("stayTopLeft()", 10);
  }
  ftlObj = ml("topbar");
  stayTopLeft();
}

if (window.addEventListener)
window.addEventListener("load", staticbar, false)
else if (window.attachEvent)
window.attachEvent("onload", staticbar)
else if (document.getElementById)
window.onload=staticbar;


var widthvote = 280
var heightvote = 260
var bgcolorvote = "#5796CB"
var fontcolor = "#FFFFCC"
var urlvote = "http://www.gsmspain.com/topsites/vote.php?ID=634"
var imgvote = "http://www.gsmspain.com/topsites/images/buttons/01.gif"
var imgwidthvote = 90
var imgheightvote = 60
var altimgvote = "Juegosymbian"
var messagevote1 = "Juegosymbian"
var messagevote2 = " Votanos para que mas gente nos conozca"
var messagevote3 = "<br>Si nos votas esta ventana desaperece"


document.write('<div id="topbar"><TABLE WIDTH="200" BORDER="0" CELLPADDING="0" CELLSPACING="0"><TR><TD COLSPAN="3"><IMG SRC="http://www.foro-symbian.com/img/1.gif" WIDTH=200 HEIGHT=9 ALT=""></TD></TR><TR><TD background="http://www.foro-symbian.com/img/2.gif" WIDTH=200 HEIGHT=12 COLSPAN=3><p align="center"><font color="#FFFFFF">Votanos</font></TD></TR><TR><TD COLSPAN=3><IMG SRC="http://www.foro-symbian.com/img/3.gif" WIDTH=200 HEIGHT=18 ALT=""></TD></TR><TR><TD background="http://www.foro-symbian.com/img/4.gif" WIDTH="21" HEIGHT="142"></TD><TD background="http://i37.tinypic.com/fy2ulj.gif" WIDTH=159 HEIGHT=142><center><a onClick="closebar();" href="'+urlvote+'" target="_blank"><img src="'+imgvote+'" border="0" width="'+imgwidthvote+'" height="'+imgheightvote+'" alt="'+altimgvote+'"></a><br /><br>Si nos votas esta ventana desaperece<br><br></center></TD><TD background="http://www.foro-symbian.com/img/6.gif" WIDTH=20 HEIGHT=142></TD></TR><TR><TD><IMG SRC="http://www.foro-symbian.com/img/7.gif" WIDTH=21 HEIGHT=19 ALT=""></TD><TD><IMG SRC="http://www.foro-symbian.com/img/8.gif" WIDTH=159 HEIGHT=19 ALT=""></TD><TD><IMG SRC="http://www.foro-symbian.com/img/9.gif" WIDTH=20 HEIGHT=19 ALT=""></TD></TR></TABLE></div>');