
function handleHttpResponse() {   
 if (http.readyState == 4) {
              if(http.status==200) {
              var results=http.responseText;
              document.getElementById('nav').innerHTML = results;
              }
   }
}

function handleHttpResponse2() {   
 if (http.readyState == 4) {
              if(http.status==200) {
              var results=http.responseText;
              document.getElementById('content').innerHTML = results;
              }
   }
}

function offers(id , show){
var id =id;
var show =show;
            http.open("GET", url2 + escape(content) + '&'  +  'id='  + escape(id) + '&'  +  'show='  + escape(show)   , true);
            http.onreadystatechange = handleHttpResponse2;
            http.send(null);

}


function xmlhttpPost(strURL, formid, divid) {
    var xmlHttpReq = false;
    var self = this;
    // Mozilla/Safari
    if (window.XMLHttpRequest) {
        self.xmlHttpReq = new XMLHttpRequest();
    }
    // IE
    else if (window.ActiveXObject) {
        self.xmlHttpReq = new ActiveXObject("Microsoft.XMLHTTP");
    }
    self.xmlHttpReq.open('POST', strURL, true);
    self.xmlHttpReq.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
    self.xmlHttpReq.onreadystatechange = function() {
        if (self.xmlHttpReq.readyState == 4) {
           document.getElementById(divid).innerHTML = self.xmlHttpReq.responseText;
        }
    }
	
	if(divid=='bask'){
    self.xmlHttpReq.send(getquerystring(formid));
	}
	else
	{	
	   self.xmlHttpReq.send(getquerystring(formid));
	}
}

function getquerystring(formid) {
    var form    = document.forms[formid];
	var name = form.name.value;
	var company = form.company.value;
	var email = form.email.value;
	var phone = form.phone.value;
	var location = form.location.value;	
	var offer_id = form.offer_id.value;
    qstr = 	 'name='  + escape(name) + '&company='  + escape(company) + '&email='  + escape(email) + '&phone='  + escape(phone) + '&location='  + escape(location) + '&offer_id='  + escape(offer_id);  
    return qstr;
}



 function getclient(content, subcontent, client) {  
 var content = content;
 //alert(client);
			var subcontent = subcontent;
           http.open("GET", url1 + escape(content) + '&'  +  'subcontent='  + escape(subcontent)  , true);
            http.onreadystatechange = handleHttpResponse;
            http.send(null);
			var home = body[client];
		    document.getElementById('top_end').innerHTML = home;
			
			
 }

 function getnav(content, subcontent) {     
			var content = content;
			var subcontent = subcontent;
            http.open("GET", url1 + escape(content) + '&'  +  'subcontent='  + escape(subcontent)  , true);
            http.onreadystatechange = handleHttpResponse;
            http.send(null);
			if (subcontent == "address" ) {
		    var home = "<img src=\"images/address2.gif\" width=\"770\" height=\"80\"  border=\"0\" usemap=\"#email\">";
		    document.getElementById('body').innerHTML = home; 
			}
		 else{
			var home = body[subcontent];
		    document.getElementById('body').innerHTML = home; 
			}
			//alert(subcontent);
			    if (subcontent == "media"  ) {
				var home= "<img src=\"images/mediatop.gif\" width=\"935\" height=\"110\"  border=\"0\">"+
				"<object classid=\"clsid:d27cdb6e-ae6d-11cf-96b8-444553540000\" codebase=\"http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0\" "+
				"width=\"935\" height=\"287\" id=\"media\" align=\"middle\"> "+
				"<param name=\"movie\" value=\"flash/media.swf\" /><param name=\"quality\" value=\"high\" /><param name=\"bgcolor\" value=\"#000000\" /> "+
				"<embed src=\"flash/media.swf\" quality=\"high\" bgcolor=\"#000000\" width=\"935\" height=\"287\" name=\"media\" align=\"middle\"  type=\"application/x-shockwave-flash\" "+
				"pluginspage=\"http://www.macromedia.com/go/getflashplayer\" />"+
				"</object>";
				document.getElementById('content').innerHTML = home; 
				}    
				else if (subcontent == "serv"  ) {
				var home= "<img src=\"images/servtop.gif\" width=\"935\" height=\"110\"  border=\"0\">"+
				"<object classid=\"clsid:d27cdb6e-ae6d-11cf-96b8-444553540000\" codebase=\"http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0\" "+
				"width=\"935\" height=\"287\" id=\"media\" align=\"middle\"> "+
				"<param name=\"movie\" value=\"flash/media.swf\" /><param name=\"quality\" value=\"high\" /><param name=\"bgcolor\" value=\"#000000\" /> "+
				"<embed src=\"flash/media.swf\" quality=\"high\" bgcolor=\"#000000\" width=\"935\" height=\"287\" name=\"media\" align=\"middle\"  type=\"application/x-shockwave-flash\" "+
				"pluginspage=\"http://www.macromedia.com/go/getflashplayer\" />"+
				"</object>";
				document.getElementById('content').innerHTML = home; 
				}
				else if (subcontent == "roll" ) {
			var home= "<div id=\"top_end\"><img src=\"images/clientstop1.gif\" width=\"935\" height=\"110\"  border=\"0\"></div>"+
			"<img src=\"images/clientstop.gif\" width=\"935\" height=\"287\"  border=\"0\" usemap=\"#clients\">"
				document.getElementById('content').innerHTML = home; 
					var home2= "<img src=\"images/roll2.gif\"  border=\"0\"  usemap=\"#pdf\">"
				document.getElementById('body').innerHTML = home2; 
				}
				else if (subcontent == "peep" ) {
			var home= "<img src=\"images/peep1.gif\" width=\"935\" height=\"397\"  border=\"0\" >"
				document.getElementById('content').innerHTML = home; 
					var home2= "<img src=\"images/peep2.gif\"  border=\"0\">"
				document.getElementById('body').innerHTML = home2; 
				}
				else if (subcontent == "motor" ) {
				}
			
				else if (subcontent == "marketing" ) {
				}
				else if (subcontent == "recruitment" ) {
				}
				else if (subcontent == "public" ) {
				}
				else if (subcontent == "online" ) {
				}
				else if (subcontent == "events" ) {
				}
				else if (subcontent == "transport" ) {
				}
				else if (subcontent == "leisure" ) {
				}
				else if (subcontent == "health" ) {
				}
				else if (subcontent == "charity" ) {
				}
				else if (subcontent == "creative" ) {
				
				}
				else{
				var home = top[subcontent];
			    document.getElementById('content').innerHTML = home; 
				}
			}
		
		 function getnav2(content, subcontent) {     			
		 if (subcontent == "address" ) {
		    var home = "<img src=\"images/address2.gif\" width=\"770\" height=\"80\"  border=\"0\" usemap=\"#email\">";
		    document.getElementById('body').innerHTML = home; 
			}
		 else{
			var home = body[subcontent];
		    document.getElementById('body').innerHTML = home; 
			}
			
			if (subcontent == "media" ) {
							var home= "<div id=\"top_end\"><img src=\"images/mediatop.gif\" width=\"935\" height=\"110\"  border=\"0\"></div>"+
				"<object classid=\"clsid:d27cdb6e-ae6d-11cf-96b8-444553540000\" codebase=\"http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0\" "+
				"width=\"935\" height=\"287\" id=\"media\" align=\"middle\"> "+
				"<param name=\"movie\" value=\"flash/media.swf\" /><param name=\"quality\" value=\"high\" /><param name=\"bgcolor\" value=\"#000000\" /> "+
				"<embed src=\"flash/media.swf\" quality=\"high\" bgcolor=\"#000000\" width=\"935\" height=\"287\" name=\"media\" align=\"middle\"  type=\"application/x-shockwave-flash\" "+
				"pluginspage=\"http://www.macromedia.com/go/getflashplayer\" />"+
				"</object>";
				document.getElementById('content').innerHTML = home; 
								}
						else if (subcontent == "roll" ) {
						//alert (subcontent );
						var home= "<div id=\"top_end\"><img src=\"images/clientstop1.gif\" width=\"935\" height=\"110\"  border=\"0\"></div>"+
			"<img src=\"images/clientstop.gif\" width=\"935\" height=\"287\"  border=\"0\" >"
				document.getElementById('content').innerHTML = home; 
					var home2= "<img src=\"images/roll2.gif\"  border=\"0\">"
				document.getElementById('body').innerHTML = home2; 
				}
				else if (subcontent == "motor" ) {
				}
				else if (subcontent == "media" ) {
				var topend= "<img src=\"images/mediatop.gif\" width=\"935\" height=\"397\"  border=\"0\" >"
				document.getElementById('content').innerHTML = topend; 
				}
				else if (subcontent == "marketing" ) {
				}
				else if (subcontent == "recruitment" ) {
				}
				else if (subcontent == "public" ) {
				var topend= "<img src=\"images/prtop.gif\" width=\"935\" height=\"110\"  border=\"0\" >"
				document.getElementById('top_end').innerHTML = topend; 
				}
				else if (subcontent == "online" ) {
				var topend= "<img src=\"images/ontop.gif\" width=\"935\" height=\"110\"  border=\"0\" >"
				document.getElementById('top_end').innerHTML = topend; 
				}
				else if (subcontent == "events" ) {
				var topend= "<img src=\"images/evtop.gif\" width=\"935\" height=\"110\"  border=\"0\" >"
				document.getElementById('top_end').innerHTML = topend; 
				}
				else if (subcontent == "exhibitions" ) {
				var topend= "<img src=\"images/extop.gif\" width=\"935\" height=\"110\"  border=\"0\" >"
				document.getElementById('top_end').innerHTML = topend; 
				}
				else if (subcontent == "international" ) {
				var topend= "<img src=\"images/intop.gif\" width=\"935\" height=\"110\"  border=\"0\" >"
				document.getElementById('top_end').innerHTML = topend; 
				}
				else if (subcontent == "transport" ) {
				}
				else if (subcontent == "leisure" ) {
				}
				else if (subcontent == "healthxx" ) {
				}
				else if (subcontent == "charity" ) {
				}
				else if (subcontent == "creative" ) {
				var topend= "<img src=\"images/creativetop.gif\" width=\"935\" height=\"110\"  border=\"0\" >"
				document.getElementById('top_end').innerHTML = topend; 
				}
				else if (subcontent == "web" ) {
				var home= "<img src=\"images/webtop.gif\" width=\"935\" height=\"82\"  border=\"0\">"+
					"<object classid=\"clsid:d27cdb6e-ae6d-11cf-96b8-444553540000\" codebase=\"http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0\" "+
				"width=\"620\" height=\"310\"  style=\"margin: 0px;\"> "+
				"<param name=\"movie\" value=\"flash/online.swf\" /><param name=\"quality\" value=\"high\" /><param name=\"bgcolor\" value=\"#000000\" /> "+
				"<embed src=\"flash/online.swf\" quality=\"high\" bgcolor=\"#000000\" width=\"620\" height=\"310\"   type=\"application/x-shockwave-flash\" "+
				"pluginspage=\"http://www.macromedia.com/go/getflashplayer\" />"+
				"</object>"+
				"<img src=\"../images/webbot.gif\" width=\"288\" height=\"310\"  border=\"0\" style=\"margin-left: 20px;\">";
				document.getElementById('content').innerHTML = home; 
				
				}
					else if (subcontent == "offers" ) {
			var content = content;
			var subcontent = subcontent;
            http.open("GET", url2 + escape(content)   , true);
            http.onreadystatechange = handleHttpResponse2;
            http.send(null);
			
				    var home = "<img src=\"images/web2.gif\" width=\"770\" height=\"80\"  border=\"0\" >";
		    document.getElementById('body').innerHTML = home; 
				}
				else if (subcontent == "studio" ) {
				var home= "<img src=\"images/studiotop.gif\" width=\"935\" height=\"82\"  border=\"0\">"+
						"<object classid=\"clsid:d27cdb6e-ae6d-11cf-96b8-444553540000\" codebase=\"http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0\" "+
				"width=\"620\" height=\"310\"  style=\"margin: 0px;\"> "+
				"<param name=\"movie\" value=\"flash/creative.swf\" /><param name=\"quality\" value=\"high\" /><param name=\"bgcolor\" value=\"#000000\" /> "+
				"<embed src=\"flash/creative.swf\" quality=\"high\" bgcolor=\"#000000\" width=\"620\" height=\"310\"   type=\"application/x-shockwave-flash\" "+
				"pluginspage=\"http://www.macromedia.com/go/getflashplayer\" />"+
				"</object>"+
				"<img src=\"../images/studiobot.gif\" width=\"288\" height=\"310\"  border=\"0\" style=\"margin-left: 20px;\">";
				document.getElementById('content').innerHTML = home; 
				
				}
				else if (subcontent == "mpr" ) {
				var home= "<img src=\"images/mprtop.gif\" width=\"935\" height=\"82\"  border=\"0\">"+
						"<object classid=\"clsid:d27cdb6e-ae6d-11cf-96b8-444553540000\" codebase=\"http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0\" "+
				"width=\"620\" height=\"310\"  style=\"margin: 0px;\"> "+
				"<param name=\"movie\" value=\"flash/marketing.swf\" /><param name=\"quality\" value=\"high\" /><param name=\"bgcolor\" value=\"#000000\" /> "+
				"<embed src=\"flash/marketing.swf\" quality=\"high\" bgcolor=\"#000000\" width=\"620\" height=\"310\"   type=\"application/x-shockwave-flash\" "+
				"pluginspage=\"http://www.macromedia.com/go/getflashplayer\" />"+
				"</object>"+
				"<img src=\"../images/mprbot.gif\" width=\"288\" height=\"310\"  border=\"0\" style=\"margin-left: 20px;\">";
				document.getElementById('content').innerHTML = home; 
				
				}
				else{
				var home = top[subcontent];
			    document.getElementById('content').innerHTML = home; 
				}
			}
	   
		function fill_copy(){
		 var home= "<img src=\"images/home2.gif\" width=\"575\" height=\"80\" border=\"0\" style=\"float: right\">";	
		 document.getElementById('body').innerHTML = home; 
		 //var content = "<img src=\"images/home1.gif\" width=\"935\" height=\"200\" border=\"0\">";	
		 var content = "<img src=\"images/homex1.gif\" width=\"935\" height=\"200\" border=\"0\"><img src=\"images/homex2.gif\" width=\"755\" height=\"197\" border=\"0\" style=\"float: left\"><object classid=\"clsid:d27cdb6e-ae6d-11cf-96b8-444553540000\" codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0\" width=\"180\" height=\"124\" id=\"MiniFlip07\" align=\"left\" style=\"margin-top: 60px\"> <param name=\"allowScriptAccess\" value=\"sameDomain\" /> <param name=\"allowFullScreen\" value=\"false\" /> <param name=\"quality\" value=\"high\" /> <param name=\"scale\" value=\"noscale\" /> <param name=\"salign\" value=\"lt\" /> <param name=\"bgcolor\" value=\"#000000\" /> <param name=\"movie\" value=\"http://edition.pagesuite-professional.co.uk/MiniFlip07.swf?pbid=b2936cf6-2fef-4176-93dc-71e289b6e89d&pages=12&w=80&speed=4\" /> <embed src=\"http://edition.pagesuite-professional.co.uk/MiniFlip07.swf?pbid=b2936cf6-2fef-4176-93dc-71e289b6e89d&pages=12&w=80&speed=4\" quality=\"high\" scale=\"noscale\" salign=\"lt\" bgcolor=\"#000000\" width=\"180\" height=\"124\" name=\"MiniFlip07\" align=\"left\" allowScriptAccess=\"sameDomain\" allowFullScreen=\"false\" type=\"application/x-shockwave-flash\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\" /> </object>"

		 document.getElementById('content').innerHTML = content;
	       http.open("GET", url5, true);
            http.onreadystatechange = handleHttpResponse;
            http.send(null);
			//preloadImages();
			preload();
		}

		
function getHTTPObject() {
  var xmlhttp;

  if(window.XMLHttpRequest){
    xmlhttp = new XMLHttpRequest();
  }
  else if (window.ActiveXObject){
    xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
    if (!xmlhttp){
        xmlhttp=new ActiveXObject("Msxml2.XMLHTTP");
    }
   
}
  return xmlhttp;

 
}
var http = getHTTPObject(); // We create the HTTP Object
