

<!-- Begin
var expDays = 0; // number of days the cookie should last


function GetCookie (name) {  
var arg = name + "=";  
var alen = arg.length;  
var clen = document.cookie.length;  
var i = 0;  
while (i < clen) {    
var j = i + alen;    
if (document.cookie.substring(i, j) == arg)      
return getCookieVal (j);    
i = document.cookie.indexOf(" ", i) + 1;    
if (i == 0) break;   
}  
return null;
}
function SetCookie (name, value) {  
var argv = SetCookie.arguments;  
var argc = SetCookie.arguments.length;  
var expires = (argc > 2) ? argv[2] : null;  
var path = (argc > 3) ? argv[3] : null;  
var domain = (argc > 4) ? argv[4] : null;  
var secure = (argc > 5) ? argv[5] : false;  
document.cookie = name + "=" + escape (value) + 
((expires == null) ? "" : ("; expires=" + expires.toGMTString())) + 
((path == null) ? "" : ("; path=" + path)) +  
((domain == null) ? "" : ("; domain=" + domain)) +    
((secure == true) ? "; secure" : "");
}
function DeleteCookie (name) {  
var exp = new Date();  
exp.setTime (exp.getTime() - 1);  
var cval = GetCookie (name);  
document.cookie = name + "=" + cval + "; expires=" + exp.toGMTString();
}
var exp = new Date(); 
exp.setTime(exp.getTime() + (expDays*24*60*60*1000));

function getCookieVal(offset) {
var endstr = document.cookie.indexOf (";", offset);
if (endstr == -1)
endstr = document.cookie.length;
return unescape(document.cookie.substring(offset, endstr));
}

function checkCount() {
var count = GetCookie('count');

if (count == null) {
count=1;
SetCookie('count', count);

//placeIt();
showIt();

}
else {
//count++;
SetCookie('count', count);
   }
}
//  End -->


function discountPop(){
showIt();	
	
}


var y1 =280;   // change the # on the left to adjuct the Y co-ordinate
(document.getElementById) ? dom = true : dom = false;

function hideIt() {
  if (dom) {document.getElementById("floatlayer").style.display='none';}
  if (document.layers) {document.layers["floatlayer"].visibility='none';} }

function showIt() {
  if (dom) {document.getElementById("floatlayer").style.display='';}
  if (document.layers) {document.layers["floatlayer"].display='';} }
  






<!--
floatX=10;
floatY=10;
layerwidth=400;
layerheight=430;
halign="center";
valign="center";
delayspeed=3;


NS6=false;
IE4=(document.all);
if (!IE4) {NS6=(document.getElementById);}
NS4=(document.layers);

function adjust() {

// START NN SPECIFIC CODE
 if ((NS4) || (NS6)) {
  if (lastX==-1 || delayspeed==0)
  {
   lastX=window.pageXOffset + floatX;
   lastY=window.pageYOffset + floatY;
  }
  else
  {
   var dx=Math.abs(window.pageXOffset+floatX-lastX);
   var dy=Math.abs(window.pageYOffset+floatY-lastY);
   var d=Math.sqrt(dx*dx+dy*dy);
   var c=Math.round(d/10);
   if (window.pageXOffset+floatX>lastX) {lastX=lastX+delayspeed+c;}
   if (window.pageXOffset+floatX<lastX) {lastX=lastX-delayspeed-c;}
   if (window.pageYOffset+floatY>lastY) {lastY=lastY+delayspeed+c;}
   if (window.pageYOffset+floatY<lastY) {lastY=lastY-delayspeed-c;}
  }
  if (NS4){
   document.layers['floatlayer'].pageX = lastX;
   document.layers['floatlayer'].pageY = lastY;
  }
  if (NS6){
   document.getElementById('floatlayer').style.left=lastX+'px';
   document.getElementById('floatlayer').style.top=lastY+'px';
  }
 }
// END NN SPECIFIC CODE


// START IE SPECIFIC CODE
 else if (IE4)
 {
  if (document.documentElement && document.documentElement.scrollTop){
   posNowX = document.documentElement.scrollLeft;
   posNowY = document.documentElement.scrollTop;
  } 
  else if (document.body){
   posNowX = document.body.scrollLeft;
   posNowY = document.body.scrollTop;
  }
  if (lastX==-1 || delayspeed==0)
  {
   lastX=posNowX + floatX;
   lastY=posNowY + floatY;
  }
  else
  {
   var dx=Math.abs(posNowX+floatX-lastX);
   var dy=Math.abs(posNowY+floatY-lastY);
   var d=Math.sqrt(dx*dx+dy*dy);
   var c=Math.round(d/10);
   if (posNowX+floatX>lastX) {lastX=lastX+delayspeed+c;}
   if (posNowX+floatX<lastX) {lastX=lastX-delayspeed-c;}
   if (posNowY+floatY>lastY) {lastY=lastY+delayspeed+c;}
   if (posNowY+floatY<lastY) {lastY=lastY-delayspeed-c;}
  }
  document.all['floatlayer'].style.posLeft = lastX;
  document.all['floatlayer'].style.posTop = lastY;
//alert(document.body.scrollTop+':'+document.scrollTop);
//  alert(document.all['floatlayer'].style.posTop+':'+lastY);
 } 
// END IE SPECIFIC CODE

 //setTimeout('adjust()',50);

}

function define()
{
if ((NS4) || (NS6)) 
{ 
if (halign=="left") {floatX=ifloatX};
if (halign=="right") {floatX=window.innerWidth-ifloatX-layerwidth-20};
if (halign=="center") {floatX=Math.round((window.innerWidth-100)/2)-Math.round(layerwidth/2)};
if (valign=="top") {floatY=ifloatY};
if (valign=="bottom") {floatY=window.innerHeight-ifloatY-layerheight};
if (valign=="center") {floatY=Math.round((window.innerHeight-113)/2)-Math.round(layerheight/2)};
}
if (IE4) 
{
		
 if (window.offsetWidth){
  theWidth = window.offsetWidth;
  theHeight = window.offsetHeight;
 }
 else if (document.documentElement && document.documentElement.offsetWidth)
 {
  theWidth = document.documentElement.offsetWidth;
  theHeight = document.documentElement.offsetHeight;
 }
 else if (document.body)
 {
  theWidth = document.body.offsetWidth;
  theHeight = document.body.offsetHeight;
 }


if (halign=="left") {floatX=ifloatX};
if (halign=="right") {floatX=theWidth-ifloatX-layerwidth-20}
if (halign=="center") {floatX=Math.round((theWidth-100)/2)-Math.round(layerwidth/2)}
if (valign=="top") {floatY=ifloatY};
if (valign=="bottom") {floatY=theHeight-ifloatY-layerheight}
if (valign=="center") {floatY=Math.round((theHeight-100)/2)-Math.round(layerheight/2)}
}
}
//-->


function chkBirdLogin(){
	strRemail=/^[\x09\]+[_a-zA-Z0-9-]+(\.[_a-zA-Z0-9-]+)*@*.[a-zA-Z0-9-]+(\.[a-zA-Z0-9-]+)*$/ ;
	strEvalue=document.frmBird.txtBirdEmail.value;
   	strIndex=strEvalue.indexOf("@");
   	
	if (document.frmBird.txtBirdEmail.value=="") {
		alert("Please enter in your email address.");
		document.frmBird.txtBirdEmail.focus();
		return false;		
	}
	else if(document.frmBird.txtBirdEmail.value.charAt(0)==' ')	
	{	
		alert("You have not entered this field properly.\nPlease remove the leading spaces");
		document.frmBird.txtBirdEmail.focus();
		return false;	
	}
	else if((!strRemail.test(strEvalue)) || strIndex==-1)
   	{
      	alert ("Please enter in a valid email address.");
      	document.frmBird.txtBirdEmail.focus();
      	return false;	
	}
	else if(document.frmBird.chkBirdPerm.checked ==false)	
	{	
		alert("You need to tick the box to qualify for the early bird discount rush.");
		document.frmBird.chkBirdPerm.focus();
	}
	else
	{
		
		showBird(document.frmBird.txtBirdEmail.value,document.frmBird.txtBirdContact.value);
	}
}



var xmlHttp

function showBird(str,strcn)
{ 
var url="earlybird.asp?txtBirdEmail=" + str + "&txtBirdContact=" + strcn + "&r=" + new Date().getTime();


xmlHttp=GetXmlHttpObject(stateChanged)
xmlHttp.open("GET", url , true)
xmlHttp.send(null)
} 

function stateChanged() 
{ 
	
if(xmlHttp.readyState == 1){
document.getElementById('txtHint').innerHTML = 'Please Wait.. processing ...';
}
	
if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")
{ 
document.getElementById("txtHint").innerHTML=xmlHttp.responseText 
} 
} 

function GetXmlHttpObject(handler)
{ 
var objXmlHttp=null

if (navigator.userAgent.indexOf("Opera")>=0)
{
alert("This example doesn't work in Opera") 
return 
}
if (navigator.userAgent.indexOf("MSIE")>=0)
{ 
var strName="Msxml2.XMLHTTP"
if (navigator.appVersion.indexOf("MSIE 5.5")>=0)
{
strName="Microsoft.XMLHTTP"
} 
try
{ 
objXmlHttp=new ActiveXObject(strName)
objXmlHttp.onreadystatechange=handler 
return objXmlHttp
} 
catch(e)
{ 
alert("Error. Scripting for ActiveX might be disabled") 
return 
} 
} 
if (navigator.userAgent.indexOf("Mozilla")>=0)
{
objXmlHttp=new XMLHttpRequest()
objXmlHttp.onload=handler
objXmlHttp.onerror=handler 
return objXmlHttp
}
} 



