	
	
	
var brand7997=1;
var lin7997=1;

var theLocation=encodeURIComponent(window.location.toString());
theLocation=theLocation.replace(/%/g,"**");

var daURL = "http://www.eu-survey.com/webprod/cgi-bin/askiaext.dll?Action=StartSurvey&T1=AN_dpcore&brand="+brand7997+"&lin="+lin7997+"&ref="+theLocation;
var expDays = 180;
var daPatH = "/";
var daDom = null;
var ModE = 2;
var ChancE=99999999999;



// ---INITIALIZATION---------------------------------------
var exp = new Date();
if (Roulette() == 1){
	exp.setTime(exp.getTime() + (expDays*24*60*60*1000));
	if (!GetCookie('ANDprofilingW1')) { //CHECKS IF COOKIES ARE ON
		SetCookie('ANDprofilingW1','1',exp,daPatH,daDom);
		if (GetCookie('ANDprofilingW1') != null) {
			if (GetCookie('ANDprofilingW1') == 2) {
				SetCookie('ANDprofilingW1',ModE,exp,daPatH,daDom);
			} else {
				WriteLayer();
				PopuP();
				SetCookie('ANDprofilingW1',ModE,exp,daPatH,daDom);
			}
		}
	} else if (GetCookie('ANDprofilingW1') != "2") {
		WriteLayer();
		PopuP();
		PopdowN();
		SetCookie('ANDprofilingW1',ModE,exp,daPatH,daDom);
	} else {
		SetCookie('ANDprofilingW1',ModE,exp,daPatH,daDom);
	}
}

//BROSWER COMPATABILITY/////////////
var daBrowseR = "IE";
if (navigator.appName=="Netscape") {
	daBrowseR="NS";
}
if (daBrowseR=="NS") {
	doc_ref="document.getElementById";
	style_ref=".style";
} else {
	doc_ref="document.all";
	style_ref=".style";
}


function WriteLayer()
 {
//LAYER CONTENT/////////////////////
document.write('<div id="surveyOverlay7997" style="background-color:#ffffff; position:absolute; visibility:hidden;');
document.write('top:200px; left:200px;');
document.write(' width:1; height:1; background-color:#ffffff; layer-background-color:#ffffff; z-index:1000;">');
document.write('<table style="border-style:ridge; border-width=2px;" bgcolor="#ffffff" cellspacing="0" cellpadding="0" width="270">');
document.write('<tr>');
document.write('<td>');
document.write('	<table border=0 cellspacing="0" cellpadding="0" width="270">');
document.write('	<tr>');
document.write('		<td align="right">');
document.write('			<a href="javascript:endclick7997()"><img src="http://reporting.eu-survey.com/overlays/img/closebutton.jpg" alt="close" border="0"></a>');
document.write('		</td>');
document.write('	</tr>');
document.write('	</table>');
document.write('</td>');
document.write('</tr>');
document.write('<tr>');
document.write('<td>');
document.write('	<table cellpadding="5" cellspacing="5" width="270" border=0>');
document.write('	<tr>');
document.write('		<td colspan=2>');
document.write('			<img src="http://reporting.eu-survey.com/overlays/AND/profiling/logos/1/logo.gif">');
document.write('		</td>');
document.write('	</tr>');
document.write('	<tr>');
document.write('		<td colspan=2>');
document.write('			<font color="#000000" face="Verdana" size="2">');
document.write('				<B>Visitor Survey and Prize Draw</B>');
document.write('			</font color="#000000">');
document.write('		</td>');
document.write('	</tr>');
document.write('	<tr>');
document.write('		<td colspan=2>');
document.write('			<p><font color="#000000" face="Verdana" size="1">');
document.write('				We are conducting a survey about your usage of our website and other media and would very much appreciate your feedback.<br><br>The survey will take about 10 minutes of your time, and in return you will be entered into a draw to win one of ten <b>&pound;50 Amazon or M&S vouchers</b> (Total prize draw of &pound;500).');
document.write('			</font color="#000000">');
document.write('		</td>');
document.write('	</tr>');
document.write('	<tr>');
document.write('		<td colspan=2>');
document.write('			<font color="#000000" face="Verdana" size="1">');
document.write('				<b>Would you like to take part?</b>');
document.write('			</font color="#000000">');
document.write('		</td>');
document.write('	</tr>');
document.write('	<tr >');
document.write('		<td align="center">');
document.write('			<a href="javascript:startclick7997()"><img src="http://reporting.eu-survey.com/overlays/img/nowbutton2.jpg" border="0" alt="now" /></a>');
document.write('		</td>');
document.write('		<td align="center">');
document.write('			<a href="javascript:endclick7997()"><img src="http://reporting.eu-survey.com/overlays/img/nobutton2.jpg" alt="nothanks" border="0" /></a>');
document.write('		</td>');
document.write('	</tr>');
document.write('	</table>');
document.write('</td>');
document.write('</tr>');
document.write('</table>');
document.write('</div>');
 }

// ---FUNCTIONS--------------------------------------------

function PopuP() {

	setTimeout("ShowLayer('surveyOverlay7997')",2000);
}

function PopdowN() {

	setTimeout("HideLayer('surveyOverlay7997')",200000);
}


function ShowLayer(layerName) {

	if (daBrowseR == "IE") {

		eval(doc_ref + '["' + layerName + '"]' + style_ref + '.visibility="visible"');
	} else {

		eval(doc_ref + '("' + layerName + '")' + style_ref + '.visibility="visible"');
	}
}

function HideLayer(layerName){

	if (daBrowseR == "IE") {

		eval(doc_ref + '["' + layerName + '"]' + style_ref + '.display="none"');
	} else {

		eval(doc_ref + '("' + layerName + '")' + style_ref + '.display="none"');
	}
}

function startclick7997(){
	pview=open(daURL,"survey1","toolbar=no,menubar=no,scrollbars=yes,resizable=yes,width=850,height=750");
	HideLayer('surveyOverlay7997');
}

function endclick7997(){
	HideLayer('surveyOverlay7997');
}



function GetCookie(name) { //GETS THE COOKIE VALUE FROM THE BROWSER
	var StartpoinT = document.cookie.indexOf(name+"=");
	var NameLenghT = StartpoinT+name.length+1;
	if ((!StartpoinT) && (name != document.cookie.substring(0,name.length))) return null;
	if (StartpoinT == -1) return null;
	var EnD = document.cookie.indexOf(";",NameLenghT);
	if (EnD == -1) EnD = document.cookie.length;
	return unescape(document.cookie.substring(NameLenghT,EnD));
}

function SetCookie (name, value) { //THIS FORMATS AND SETS THE COOKIE IN THE BROWSER
	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 Roulette() {
	return Math.floor( 1 + Math.random() * ChancE);
}

// ---Copyright© 2005 By Survey.com. All Rights Reserved.--	

