function NewWindow() {
var w=490;
var h=550;
var myname="payme";
var winl = (screen.width - w) / 2;
var wint = (screen.height - h) / 2;
winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars=yes,resizable=yes';
win = window.open('bye.php', 'bye', winprops);
if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }
}

// sticky functions
aktiv = 0;
StickStatus=0;
function sticky () {
  window.scrollTo(0, 0);
}
function startStick() {
  aktiv = window.setInterval("sticky()", 100);
  StickStatus=1;
  //document.all.linkBlock.style.visibility="hidden";
  document.getElementById("linkBlock").className = "divHide";
}
function stopStick() {
  window.clearInterval(aktiv);
  StickStatus=0;
  //document.all.linkBlock.style.visibility="visible";
  document.getElementById("linkBlock").className = "divShow";
}
function switchStick() {
  if(StickStatus==1){
    stopStick();
  } else {
    startStick();
  }
}
// end sticky functions

// adserver definition (exchange/other)
var start_value=0;
var start_exit=(Math.round((Math.random()*8)+3));
function subform()
{
  document.get_ad_data.submit();
}
function teatime(){
  //frames['adbanners'].location.href="adbanners.php";
  document.get_ad_data.submit();
  if(start_value > start_exit){
      terminate();
   } else {
      startAds();
   }
}
function start_location(){
   var delay = 4000+(start_value * 3152);
   setTimeout('teatime()', delay);
   start_value = start_value+1;
}
function terminate(){
   // terminate %this%
}
function startAds(){
  start_location();
}
