var win = null;
function NewWindow(mypage,myname,w,h,scroll){
LeftPosition = (screen.width) ? (screen.width-w)/2 : 0;
TopPosition = (screen.height) ? (screen.height-h)/2 : 0;
settings =
'height='+h+',width='+w+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+scroll+',resizable'
win = window.open(mypage,myname,settings)
}



// 2008.09.24 Felix. add for popup special offer. begin.
// ajax-shmajax
function content()
	{
		 
		var url = 'http://www.booklimo.co.uk/special-offers/sp-offers-source.php';
	
		if(typeof XMLHttpRequest != "undefined")
		{ /* Code for: IE 7 Firefox, Mozilla etc Safari Opera */ 
		  httpRequest = new XMLHttpRequest(); 
		} 
		else if(typeof window.ActiveXObject != "undefined")
		{ /*  Code for: IE 5 IE 6 */ 
		  httpRequest = new ActiveXObject("Msxml2.XMLHTTP"); 
		}
		httpRequest.open("GET", url, true);
		httpRequest.onreadystatechange= function () {contentprocessRequest('popup'); } ;
		httpRequest.send(null);
	}
	
			
	function contentprocessRequest(mistoZobrazenivec)
	{
		if (httpRequest.readyState == 4)
		{
			if(httpRequest.status == 200)
			{
				 var mistoZobrazeniVar = document.getElementById(mistoZobrazenivec);
				     mistoZobrazeniVar.innerHTML = httpRequest.responseText;
			}
		}
	}

// for show ajax 

var only_one=true;
function showing()
 {
	 var special_pop_up = document.getElementById("special_offer_limo");
     special_pop_up.style.visibility='visible';
 }

function work_it()
 {
	 if (only_one)
	  {
		  content();
		  showing();
		  only_one=false;
	  }
 }

setInterval("work_it()", 7000);

// 2008.09.24 Felix. add for popup special offer. end.