function games_popup(url) {
	window.open(url,'webbspelpopup','width=770, height=600, scrollbars=1, status=1, menu=0, location=0, resizable=1');
}

var popurls=new Array()
popurls[0]="http://www.questback.com/enirosverigeab/passagen2006/"

function openpopup(popurl){
var winpops=window.open(popurl,"","width=760,height=550");
self.focus();
}

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

function loadornot(){
if (get_cookie('startpopup')==''){
//openpopup(popurls[Math.floor(Math.random()*(popurls.length))])
//openpopup(popurls[0])
document.cookie="startpopup=yes;domain=.passagen.se;expires=Fri, 28-Jul-2006 00:00:01 GMT;path=/";
}
}
loadornot()