var showAd=1; //change to 0 if u dont wana show the ad
var sawMessage=0;
var lessThenTen=1;
var myWidth = 0, myHeight = 0;
var mytime=setTimeout('moreThenTen()',10000);
if (document.layers) document.captureEvents(Event.MOUSEMOVE);
document.onmousemove=mtrack;

function mtrack(e) {
   var text = 'Coordinates: ';
   if (document.layers) text += e.pageX + ',' + e.pageY
   else text += event.x + ',' + event.y;
  // window.defaultStatus = text;
   if (event.y<20) {
  	 hdr();
   }
   	if (event.y>20) {
		if (sawMessage<2){
			sawMessage=1;
		}
	}
}

  if( typeof( window.innerWidth ) == 'number' ) {
    //Non-IE
    myWidth = window.innerWidth;
    myHeight = window.innerHeight;
  } else if( document.documentElement && ( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) {
    //IE 6+ in 'standards compliant mode'
    myWidth = document.documentElement.clientWidth;
    myHeight = document.documentElement.clientHeight;
  } else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) {
    //IE 4 compatible
    myWidth = document.body.clientWidth;
    myHeight = document.body.clientHeight;
  }

function moreThenTen(){
	lessThenTen=0
}
function hdr() {
	if (sawMessage==1) {
		if (lessThenTen) {
			if (showAd) {
				theWindow.style.display = "";
			}
			sawMessage=2;
		}
	}
}
document.write('<div id="theWindow" style="position:absolute;left:'+((myWidth/2)-175)+'px;top:'+((myHeight/2)-150) +'px;width:350px;height:250px;display: none;background-color:#ffffff;z-index:1"><table width="350" height="250" cellpadding="0" cellspacing="0" style="border:#FF0000 solid 1px"><tr bgcolor="#ffffff"><td width=335>&nbsp;</td><td width="15" style="cursor:pointer;height:10px" onClick="theWindow.style.display =\'none\'"><font face="Arial, Helvetica, sans-serif" color="#fe0000">X</font></td></tr><tr><td colspan="2" height="190" align=left valign=top> <img src="dontLeave.gif"></td></tr></table></div>');