var strOldLayer = 'under65';
var domain = 'staysure';
var phoneNum = '0870<span>&nbsp;</span>046 4560';

function showName(){
	document.write('staysure.co.uk');
}
function showAddress(){
	document.write('staysure.co.uk limited');
}
function goToURL(){
	url = document.getElementById('productTypes').value;
	alert(url);
	if (url!='any'){
		window.location=url;
	}
}
function showInfoEmail(){
	document.write('<a href="mailto:info@staysure.co.uk" class="udrline">info@staysure.co.uk</a>');
}
function showClaimsEmail(){
	document.write('<a href="mailto:claims@staysure.co.uk" class="udrline">claims@staysure.co.uk</a>');
}
function closeCal(){
	document.getElementById('calDiv').style.display='none';
	document.getElementById('calParentDiv').style.display='none';
}
function primaryClick(objTD, blnNewWindow) {

	if (blnNewWindow == true) {
		window.open(objTD.children[0].href, "newWindow");
	} else {
		window.location = objTD.children[0].href;
	}

}
function  changeBg(objTD,useImage) {
	if (useImage==null)	objTD.style.backgroundImage = "url('img/btnbk2.gif')";
	else if (useImage=='no') objTD.style.backgroundImage = "url(null)";
	else objTD.style.backgroundImage = "url('img/"+useImage+"')";
}
function findPos(obj) {
	var curleft = curtop = 0;
	if (obj.offsetParent) {
		curleft = obj.offsetLeft
		curtop = obj.offsetTop
		while (obj = obj.offsetParent) {
			curleft += obj.offsetLeft
			curtop += obj.offsetTop
		}
	}
	return [curleft,curtop];
}

function showCal(type){
	if (type=='depart_'){
		document.getElementById('calTitle').innerHTML = 'Departure Date';
		dateCalendar.openDateChooser(type);
	}
	if (type == 'return_'){
		document.getElementById('calTitle').innerHTML = 'Return Date';
		dateCalendar.openDateChooser(type);
	}
	document.getElementById('calDiv').style.display = '';
	document.getElementById('calParentDiv').style.display = '';
}

function bookMark() { 
	title = "Travel Insurance Provider  - staysure.co.uk"; 
	url = "http://www.staysure.co.uk/"; 
	if (window.sidebar) { 
	// Mozilla Firefox Bookmark 
	window.sidebar.addPanel(title, url,""); 
	} else if( window.external ) { 
	// IE Favorite 
	window.external.AddFavorite( url, title); 
	} 
	else if(window.opera && window.print) { 
	// Opera Hotlist 
	return true; } 
}



function isAffiliateSet(){	
	var stylrString1 = " style='display:true' ";
	var stylrString2 = " style='display:none' ";
	try{
		var affiliate = document.getElementById('affiliate').value;
		if (affiliate != 'none') return stylrString2;	
	}
	catch(e){
	}
	return stylrString1;
}
		
function switchTabs(strLayerID) {
	hideLayer('lyr' + strOldLayer);
	showLayer('lyr' + strLayerID);			
	changeBGColor('tab' + strOldLayer, '#748BDB');
	changeBGColor('tab' + strLayerID, '#2B1B62');						
	strOldLayer = strLayerID;
}


function hideLayer(strLayerName) {
	objLayer = document.getElementById(strLayerName);	
	objLayer.style.visibility = 'hidden';
	objLayer.style.display = 'none';
}

function showLayer(strLayerName) {
	var objLayer = document.getElementById(strLayerName);	
	objLayer.style.visibility = 'visible';
	objLayer.style.display = 'block';		
}

function changeBGColor(strLayerName, strColor) {
	var objLayer = document.getElementById(strLayerName);
	objLayer.style.backgroundColor = strColor;
}


function intertrav() {
	try{
		parent.frames[0].document.userData.user_id.value;
		alert('You are already logged in');
	}
	catch(e){
  		var url = 'https://www.staysure.co.uk/admin/index.html';
  		w = screen.availWidth-10;
  		h = screen.availHeight-50;
  		features = "width="+w+",height="+h;
  		features += ",left=0,top=0,scrollbars=1,resizable=1,status=0";

  		window.open(url, "", features);
	}
}

function mivaSearch(){
	var queryStr = document.getElementById('miva').value;
	//alert(queryStr);
	window.location = 'mivaSearch?query='+queryStr;
	//document.open('mivaSearch?'+queryStr);
}

function changePolicyWording(){
	document.getElementById('polword').href='Backpacker_Policy_Wording.pdf';
	document.getElementById('summary').href='keyfacts_young_traveler.pdf';
	//alert(type);	
}

function getRingText(ringTextId){
	var html ="";
	html +=    '  					<div style="position:relative; width :381px;height:98px;text-align:left;top:0px;left:0px;margin-bottom:-98px;">'
	html +=    '  							<div class="time" style="top:13px;padding-left:30px;">&nbsp</div>'
	html +=    '  							<div class="ringText2" style="top: 0px;	padding-left:10px;">Annual</div>'
	html +=    '							<div class="time" style="top:-5px;padding-left:28px;font-size:100%;letter-spacing:-1px;color:#555555"><b>cover</b></div>'
	html +=    '							<div class="time" 	style="top:-8px;padding-left:15px;font-size:60%;">from</div><div class="time" 	style="top:-22px;text-align:left;padding-left:60px;font-size:60%;">under</div>'
	html +=    '							<div class="ringText2" style="top:-31px;padding-left:33px;">25</div>'
	html +=    '							<div class="time" style="top:-51px; padding-left:26px;font-weight:bold">&pound;</div><div class="time" style="top:-64px; text-align:left;padding-left:58px;">.00</div>'
	html +=    '  					</div>'
	return html;
}


function showHeader(ringImg,coukImg,ringTextId,logoText){


}


function showMenu() {

	var html =""
	html += '<ul id="NavigatorUL">'
	html += '<li class="selected"><a href="index.php">Travel Insurance</a></li>'
	html += '<li><a href="policywordings.html">Policy wordings</a></li>'
	html += '<li><a href="claims.html">Claims</a></li>'
	html += '<li><a href="http://www.holidaylettings.co.uk/aboutus.htm" target="_blank">Contact us</a></li>'
	html += '</ul>'
	
	document.write(html);	
}

function showRings(){
	var html ='	<div style="position:relative;width:490px;height:121px; left: 0px;text-align:left;">'
	html+='			<div style="position:relative;width:145px;height:42px; left: 0px;"><img alt="" src="img/sts2.gif" width="145" height="42"></div>'
	html+='			<div style="position:relative;width:82px;height:43px; left: 144px; top: -52px;"><img alt="" src="img/couk2.gif" width="82" height="43"></div>'
	
	html+='			<div style="position:relative;width:86px;height:86px; left: 404px;top:-50px;"><img alt="" src="img/fring2.gif" width="86" height="86"></div>'
	html+='			<div style="position:relative;width:86px;height:86px; left: 324px;top:-136px;"><img alt="" src="img/ring2.gif" width="86" height="86"></div>'
	html+='			<div style="position:relative;width:86px;height:86px; left: 244px;top:-222px;"><img alt="" src="img/ring2.gif" width="86" height="86"></div>'
	html+='			<div style="position:relative;width:86px;height:86px; left: 164px;top:-308px;"><img alt="" src="img/ring2.gif" width="86" height="86"></div>'
	html+='			<div style="position:relative;width:86px;height:86px; left: 84px;top:-394px;"><img alt="" src="img/ring2.gif" width="86" height="86"></div>'
	html+='			<div style="position:relative;width:86px;height:86px; left: 4px;top:-480px;"><img alt="" src="img/ring2.gif" width="86" height="86"></div>'
													
	html+='			<div style="position:relative;width:67px;height:67px; left: 173px; top:-556px;"><img alt="" src="img/circ1.gif" width="67" height="67"></div>'
	html+='			<div style="position:relative;width:67px;height:67px; left: 253px;top:-623px;"><img alt="" src="img/circ2.gif" width="67" height="67"></div>'
	html+='			<div style="position:relative;width:67px;height:67px; left: 333px;top:-690px;"><img alt="" src="img/circ3.gif" width="67" height="67"></div>'
													
	html+='			<div style="position:relative;width:86px;height:86px; left: 13px;top:-776px;">'
	html+='				<div style="position:relative;width:86px;height:86px; left: -9px;top:11px;text-align: center;font-size:20px;font-weight:500; letter-spacing:-1px;	line-height:37px;color:#333333;">the<br>prices</div>'
	html+='				<div  style="position:relative;width:67px;height:27px; left: -1px;top:-52px;font-size:25px;font-weight:500;text-align: center;letter-spacing:-1px;color:#333333;margin-bottom:-27px;" >lowest</div>'
	html+='			</div>'
												
	html+='			<div style="position:relative;width:67px;height:86px; left: 93px;top:-824px;">'
	html+='				<div style="position:relative;width:67px;height:46px; left: 1px;top:-27px;text-align: center;font-size:20px;font-weight:500; letter-spacing:-1px;line-height:37px;color:#333333;">for</div>'
	html+='				<div  style="position:relative;width:67px;height:47px; left: -0px;top:-52px;font-size:28px;font-weight:500;text-align: center;letter-spacing:-1px;color:#333333;line-height:24px;margin-bottom:-47px;" >over<br>50\'s</div>'
	html+='			</div>'
	html+='			<div style="position:relative;width:67px;height:86px; left: 413px;top:-891px;margin-bottom:-983px;">'
	html+='				<div style="position:relative;width:67px;height:67px; left: 1px;top:-42px;text-align: center;font-size:20px;font-weight:500; letter-spacing:-1px;	line-height:22px;color:#ffffff;">you<br>can be</div>'
	html+='				<div  style="position:relative;width:67px;height:30px; left: -0px;top:-65px;font-size:30px;font-weight:500;text-align: center;letter-spacing:-1px;color:#ffffff;line-height:24px;" >sure</div>'
	html+='			</div>'
	html+='		</div>'

document.write(html);
}

function showSteps(img){

	var html ='<div   style="position:relative; top:-12px;left: -2px; width: 190px;height:22px;background-image:url(\'img/ygrad.gif\');background-position:right;font-size:14px;font-weight:600;color:#666633;padding-top:5px;padding-left:6px;letter-spacing:-1px;" >online in 3 simple steps</div>'
	html    +='<div   style="position:relative; top:-43px;left: 157px; width: 99px;height:34px;" ><img alt="" src="'+img+'" width="99" height="34"></div>'
	html    +='<div   style="position:relative; top:-77px;left: 257px; width: 47px;height:34px;margin-bottom:-90px;" ><img alt="" src="img/bp.gif" width="47" height="34"></div>'

	document.write(html);

}

	
function showComp(){
	var html = '<div style="position:relative;width:490px;height:80px;text-align:left;padding-top:10px;">'
	html+='								<div style="position:relative;width:200px;height:22px; left: 20px;top:0px;font-size:22px;font-weight:600;text-align: center;letter-spacing:1px;color:#A3B0E5;" >price comparison</div>'
	html+='								<div style="position:relative;width:443px;height:53px;text-align:left;background-image:url(\'img/bgrad.gif\');"><div style="position:relative;width:443px;height:53px; left: 0px;top:10px;	text-align: left;font-size:11px;	line-height:14px; padding-left:8px;font-weight:bold;color:#493768" >staysure aims to be competitive across all policy types and regularly<br>check our prices against the top 20 providers. <a style="color:#6600CC;text-decoration:underline;" href="comparisonsingletrip.php">See comparison tables</a></div></div>'							
	html+='								<div style="position:relative;width:76px;height:76px; left: 415px;top:-65px;margin-bottom:-76px;" ><a href="comparisonsingletrip.php"><img alt="" src="img/bring.gif" width="76" height="76" border="0"></a></div>' 
	html+='								<div style="position:relative; height:75px; width:75px; top:-62px; left:432px;color: #000000;font-size: 10px;letter-spacing:-1px;font-weight:500;line-height:33px;margin-bottom:-75px;">click to view<br>comparison</div>'
	html+='								<div  class="ringText2" style="position:relative;top:-47px;left: 423px; width: 7px;height:40px; font-size:30px;margin-bottom:-87px;"><a href="comparisonsingletrip.php" style="color:black;text-decoration:none;">price</a></div>'
	html+='		</div>'

	document.write(html);
}


function showSmith(){
var html = '<table cellSpacing=0 cellPadding=0 border=0>'
html+='<tr>'
html+='		<td colspan="4"><img alt="" src="img/trnsp.gif" width="491" height="10"></td>'
html+='	</tr>'

html+='	<tr>'
html+='		<td colspan="4"><img alt="" src="img/couple.gif" width="491" border="0" ></td>'
html+='		</tr>'
html+='		<tr>'
html+='			<td><img alt="" src="img/trnsp.gif" width="300" height="5"></td>'
html+='			<td><img alt="" src="img/trnsp.gif" width="148" height="5"></td>'
html+='			<td><img alt="" src="img/trnsp.gif" width="10" height="5"></td>'
html+='			<td><img alt="" src="img/trnsp.gif" width="33" height="5"></td>'
html+='	</tr>'

html+='	<tr>'
html+='			<td  valign="bottom" style="text-align:left;"><span style="	font-size: large;color: #4B369E;">"Very happy - what more can I say?"</span><br><span class="heading" style="color:#4B369E;font-size:14px; letter-spacing:0px;font-weight:bold;">&nbsp;&nbsp;Mrs E Duncan, Perth&nbsp;</span></td>'
									
html+='			<td style="text-align:right;"><a href=\'http://www.staysure.co.uk/media-centre/\' title=\'Travel Insurance Blog\' ><span class="sts" style="padding-top:0px;text-align:right;font-weight:bold;line-height:15px;color:#C0C0C0">travel blog<br>have your say</span></a></td>'
html+='			<td>&nbsp;</td>'
html+='			<td><a href=\'http://www.staysure.co.uk/media-centre/?feed=rss2\' title=\'Travel Insurance Blog\'><img src="img/rss.gif" width="30" height="30" border="0" alt="RSS feed"></a></td>'
html+='	</tr>'
html+='	<tr>'
html+='			<td colspan="4"><img alt="" src="img/trnsp.gif" width="491" height="10"></td>'
html+='	</tr>'


html+='</table>'
document.write(html);
}
function showWhy(){
	
	/*var test = isAffiliateSet();
	if (test == " style='display:none' ") if (check!='donothide') return;

	var keyFactsFileName = 'keyfacts_all.pdf';
	try{
		var landing = document.getElementById('landingType').value;
		if (landing=='backpacker') keyFactsFileName = 'keyfacts_young_traveler.pdf';
	}
	catch(e){
	
	}*/
	/*html = '<div style="text-align:center; margin:7px; margin-top:0px;">'
	html+= '	<a href="http://www.staysure.co.uk/" title="Travel Insurance provided by Staysure" target="_blank"><img src="images/powerd_by.gif" alt="Powerd by Staysure.co.uk Limited"></a>'
	html+= '</div>'*/
	html= '<div class="right-box">'
	html+= '<div class="box-top-soild">'
	html+= '<div class="box-bottom right-box-mid-content">'
	html+= '<h2>why choose Staysure?</h2>'
	html+= '<ul>'
	html+= '	'
	html+= '	<li>ABTA Travel Industry Partner</li>'
	html+= '	<li>FSA authorised</li>'
	html+= '	<li>Excellent value for money</li>'
	html+= '	<li>Instant cover in 3 simple steps</li>'
	html+= '	<li>Most medical conditions covered</li>'
	html+= '	<li>Outstanding customer service</li>'
	html+= '	<li>No medical excess with EHIC card</li>'
	html+= '	<li>24-hour emergency helpline</li>'
	html+= '	<li>Efficient claims service</li>'
	html+= '	<li>14 day refund policy</li>'
	html+= '	<li>Choice of upgrades available</li>'
	html+= '</ul>'
	html+= '<div style="text-align:center;">'
	html+= '	<img src="images/fsa.gif" alt="fsa" style="padding-right:3px;">'
	html+= '	<img src="images/thawte.gif" alt="thawte" style="padding-right:3px; display:none;">'
	html+= '	<img src="images/tip.gif" alt="Travel Industry Partner" style="padding-right:3px;">'
	html+= '</div>'
	html+= '</div>'
	html+= '</div>'	
	html+= '</div>'
	html+= '<div class="right-box">'
	html+= '<div class="box-top-soild">'
	html+= '<div class="box-bottom right-box-mid-content">'
	html+= '	<h2>Medical Conditions</h2>'
	html+= '    <p>This needn\'t be a concern at this stage. In step 2 we spell out exactly what we cover together with any restrictions. </p>'
	html+= '</div>'
	html+= '</div>'
	html+= '</div>'
	document.write(html);
}
function showWhatClientsSay(){
var html ='<table  cellSpacing=0 cellPadding=0 width=100% border=0 >'
html+='<tr bgcolor="#abbbf6">'
html+='		<td class="whysts" height="36" style="background-image:url(\'img/suit.gif\');background-repeat:no-repeat;background-position:right;margin-right:20px;letter-spacing:-1px;">what our clients say</td>'
html+='</tr>'
html+='<tr>'
html+='		<td   class="formT2" style="padding-left:20px;padding-top:8px; background-color:#ccd4f9;text-align:left; color:#493768;line-height:16px;">&nbsp;"I required medical assistance in Spain and was very pleased with the level of service. It was professional and there were no delays. Thank you"</td>'
html+='</tr>'
html+='<tr>'
html+='		<td  style="padding-right:20px;padding-top:8px; background-color:#ccd4f9;text-align:right; color:#493768;line-height:10px;font-family:Verdana;font-size:11px;font-weight:normal;">Mrs. M Clack, Gloucester</td>'
html+='</tr>'
html+='<tr>'
html+='		<td  style="padding-left:20px;padding-top:8px; background-color:#ccd4f9;text-align:left; color:#493768;line-height:16px;">&nbsp;</td>'
html+='</tr>'
html+='<tr>'
html+='		<td class="formT2" style="padding-left:20px;padding-top:8px; background-color:#ccd4f9;text-align:left; color:#493768;line-height:16px;">&nbsp;&quot;I wouldn\'t go anywhere else now! We had a claim in Turkey and were treated perfectly."</td>'
html+='</tr>'
html+='<tr>'
html+='		<td  style="padding-right:20px;padding-top:8px; background-color:#ccd4f9;text-align:right; color:#493768;line-height:10px;font-family:Verdana;font-size:11px;font-weight:normal;">Mrs. M Balser, Lincolnshire</td>'
html+='</tr>'
html+='<tr>'
html+='		<td  style="padding-right:20px;padding-top:8px; padding-bottom:8px; background-color:#ccd4f9;text-align:right; color:#493768;line-height:16px;">&nbsp;</td>'
html+='</tr>'

html+='</table>'
document.write(html);

}

function showMedicalConditions(){
var html='<table  cellSpacing=0 cellPadding=0 width=100% border=0 >'
html+='<tr bgcolor="#abbbf6">'
html+='		<td class="whysts" height="36" style="background-image:url(\'img/suit.gif\');background-repeat:no-repeat;background-position:right;margin-right:20px;letter-spacing:0px;">medical conditions</td>'
html+='</tr>'
html+='<tr>'
html+='		<td  class="formT2" style="padding-left:20px;padding-top:8px;padding-bottom:8px;padding-right:20px; background-color:#ccd4f9;color:#493768;text-align:left;" >This needn\'t be a concern with your<br> staysure booking. In step 2 we spell out exactly what we cover together with any restrictions. </td>'
html+='</tr>'
html+='</table>'

document.write(html);
}

function showBlog(){
var html='<table  cellSpacing=0 cellPadding=0 width=100% border=0 >'
html+='										<tr bgcolor="#abbbf6">'
html+='											<td class="whysts" height="36" style="background-image:url(\'img/suit.gif\');background-repeat:no-repeat;background-position:right;margin-right:20px;">blog update<a href=\'http://www.staysure.co.uk/media-centre/?feed=rss2\' title=\'Travel Insurance Blog\'><img src="img/rss.gif" width="30" height="30" border="0" alt="RSS feed" style="position:relative;right:-64px;top:3px;"></a></td>'
html+='										</tr>'
html+='										<tr>'
html+='											<td  class="formT2" style="padding-left:20px;padding-top:8px;padding-bottom:8px;padding-right:20px; background-color:#ccd4f9;color:#493768;text-align:left;" >'
html+='													latest topics<br>'
html+='													<div class="blogDiv" style="line-height:20px">'
html+='													<a  href="http://www.staysure.co.uk/media-centre/?p=35">airport security - avoid terminal chaos</a><br>'
html+='													<a  href="http://www.staysure.co.uk/media-centre/?p=16">travel insurance - buying through an agent</a><br>'
html+='													<a  href="http://www.staysure.co.uk/media-centre/?p=19 ">EHIC - what are the benefits?</a><br>'
html+='													</div>'

html+='											</td>'
html+='										</tr>'
html+='									</table>'
document.write(html);
}

function showFooterIcons(){
var html ='<div id="foterIcons" class="middleClass" style="height:74px;">'
html+='	<table  class="foxcent" cellSpacing=0 cellPadding=0 width=953 border=0>'
html+='		<tr>'
html+='			<td style="height: 16px" class="style3">additional support and advice</td>'
html+='			<td style="height: 16px"><img alt="" src="img/trnsp.gif" width=4 height="1"></td>'
html+='			<td style="height: 16px" class="style3">travel partners</td>'
html+='		</tr>'
html+='		<tr>'
html+='			<td><img alt="" src="img/trnsp.gif" width=494 height="2"></td>'
html+='			<td><img alt="" src="img/trnsp.gif" width=4 height="7"></td>'
html+='			<td><img alt="" src="img/trnsp.gif" width=455 height="2"></td>'
html+='		</tr>'
html+='		<tr>'
html+='			<td>'
html+='								<table cellSpacing=0 cellPadding=0 border=0 style="text-align:center;"><tr>'
html+='																<td  style="border-style:solid; border-width: 1px; width:81px;height:39px;border-color:#3399FF;background-color:#3399FF" ><a  class="boldText" href="http://matrixstats.free-spirit.com/click?765239-10326" target="_blank" style="color:white;">Free<br>Spirit</a></td>'
html+='																<td><img alt="" src="img/trnsp.gif" width="5" height="41" border="0"></td>'
html+='																<td  style="border-style:solid; border-width: 1px; width:81px;height:39px;border-color:#FEE46D; background-color:white;background-color:#FEE46D" ><a  class="boldText" href=\'privacypolicy.html\' rel=\'nofollow\'>privacy<br>policy</a></td>'
html+='																<td><img alt="" src="img/trnsp.gif" width="5" height="41" border="0"></td>'
html+='																<td  style="border-style:solid; border-width: 1px; width:81px;height:39px;border-color:#FEE46D; background-color:white;background-color:#FEE46D" ><a  class="boldText" href=\'sitemap.html\'>sitemap</a></td>'
html+='																<td><img alt="" src="img/trnsp.gif" width="5" height="41" border="0"></td>'
html+='																<td  style="border-style:solid; border-width: 1px; width:81px;height:39px;border-color:#FEE46D; background-color:white;background-color:#FEE46D" ><a href=\'statusdisclosure.html\' rel=\'nofollow\' class="boldText">status<br>disclosure</a></td>'
html+='																<td><img alt="" src="img/trnsp.gif" width="5" height="41" border="0"></td>'
html+='																<td><a href=\'http://www.fco.gov.uk\' rel=\'nofollow\' target=\'new\'><img alt="" src="img/fcologo.gif" width="140" height="41"  border="0"></a></td>'
html+='															</tr>'
html+='								</table>'
html+='			</td>'
html+='			<td><img alt="" src="img/trnsp.gif" width=1 height="41"></td>'
html+='			<td>'
html+='				<table cellSpacing=0 cellPadding=0 border=0 style="text-align:center;"><tr>'
html+='																<td  style="height:41px; width:86px; background-color:black;" ><img alt="" src="img/bw.gif" width=43 height="39" ></td>'
html+='																<td><img alt="" src="img/trnsp.gif" width="5" height="41" border="0"></td>'
html+='																<td  style="border-style:solid; border-width: 1px; width:84px;border-color:#000099; background-color:white;" ><img alt="" src="img/hilton.gif" width=56 height="39" ></td>'
html+='																<td><img alt="" src="img/trnsp.gif" width="5" height="41" border="0"></td>'
html+='																<td><img alt="" src="img/lodge.gif" width="86" height="41" border="0"></td>'
html+='																<td><img alt="" src="img/trnsp.gif" width="5" height="41" border="0"></td>'
html+='																<td  style="width:86px; background-color:#E20125;" ><img alt="" src="img/ibis.gif" width=33 height="41" ></td>'
html+='																<td><img alt="" src="img/trnsp.gif" width="5" height="41" border="0"></td>'
html+='																<td style="border-style:solid; border-width: 1px; border-color:#FF3300; height:39px; width:84px; background-color:white;" ><img alt="" src="img/hyatt.gif" width=84 height="24" ></td>'
html+='															</tr>'
html+='				</table>'
html+='			</td>'
html+='		</tr>'
html+='		<tr>'
html+='			<td colspan="3"><img alt="" src="img/trnsp.gif" width=953 height="7"></td>'
html+='		</tr>'
html+='		<tr>'
html+='			<td colspan="3" style="background-image:url(\'img/menubkT.gif\')" height="2"></td>'
html+='		</tr>'
html+='	</table>'
html+='</div>'

document.write(html);

}
function showFooterLinks(){
	var html='	<div id="footerLinks"class="middleClass" style="height:35px;">'
	html+='	<a title="single trip travel insurance UK" href="index.php">single trip travel insurance UK</a> |'
	html+='	<a title="over 65 travel insurance" href="over65.php">over 65 travel insurance</a> |'
	html+='	<a title="long stay" href="longstay.php">long stay</a> |'
	html+='	<a title="winter sports" href="wintersports.php">winter sports</a> |'
	//html+='	<a title="back packer travel insurance" href="backpacker.php">back packer travel insurance</a> |'
	html+='	<a title="travel insurance claims" href="claims.html">travel insurance claims</a> |'
	html+='	<a title="about insureme4" href="statusdisclosure.html">about insureme4</a> |'
	html+='	<a title="privacy policy" href="privacypolicy.html">privacy policy</a> |'
	html+='	<a title="contact us" href="contactus.html">contact us</a> |'
	html+='	<a title="travel resources" href="resources.html">travel resources</a> |'
	html+='	<a title="sitemap" href="sitemap.html">sitemap</a> |'
	html+='	<a title="online travel insurance" href="index.php">online travel insurance</a> |'
	html+='	<a href=\'http://www.insureme4.co.uk/travelinsurance/travel-insurance-over-65.html\' title=\'Travel Insurance Over 65\'>Travel Insurance Over 65</a> |'
	html+='	<a href=\'http://www.insureme4.co.uk/travelinsurance/travel-insurance-over-70.html\' title=\'Travel Insurance Over 70\'>Travel Insurance Over 70</a> |'
	html+='	<a href=\'http://www.insureme4.co.uk/travelinsurance/over-65-travel-insurance.html\' title=\'Over 65 Travel Insurance\'>Over 65 Travel Insurance</a> |'
	html+='	<a href=\'http://www.insureme4.co.uk/travelinsurance/travel-insurance-over-75.html\' title=\'Travel Insurance Over 75\'>Travel Insurance Over 75</a> |'
	html+='	<a href=\'http://www.insureme4.co.uk/travelinsurance/travel-insurance-for-over-65.html\' title=\'Travel Insurance For Over 65\'>Travel Insurance Over 65</a> |'
	html+='	<a href=\'http://www.insureme4.co.uk/travelinsurance/over-70s-travel-insurance.html\' title=\'Over 70s Travel Insurance\'>Over 70s Travel Insurance</a> |'
	html+='	<a href=\'http://www.insureme4.co.uk/travelinsurance/travel-insurance-elderly.html\' title=\'Travel Insurance Elderly\'>Travel Insurance Elderly</a> |'
	html+='	<a href=\'http://www.insureme4.co.uk/travelinsurance/travel-insurance-senior-citizen.html\' title=\'Travel Insurance Senior Citizen\'>Travel Insurance Senior Citizen</a> |'
	html+='	<a href=\'http://www.insureme4.co.uk/travelinsurance/holiday-insurance-65.html\' title=\'Holiday Insurance Over 65\'>Holiday Insurance Over 65</a> |'
	html+='	<a href=\'http://www.insureme4.co.uk/travelinsurance/over-65s-travel-insurance.html\' title=\'Over 65s Travel Insurance\'>Over 65s Travel Insurance</a> |'
	html+='	<a href=\'http://www.cheap-travelinsurance.org\' title=\'Cheap travel insurance\'>Cheap Travel Insurance</a> |';
	html+='	<a href=\'http://www.travelinsurance-uk.org\' title=\'Travel insurance UK\'>Travel Insurance UK</a>';
	html+='</div>'
	document.write(html);

}

function showFooter(){
	var html =' <div class="middleClass" style="height:44px;">'
	html+='	<div id="fsaIntervestText" class="foxcent" style="position:relative;height:44px;width:953px;">'
	html+='		<table class="foxcent" cellSpacing=0 cellPadding=0 width=953 border=0>'
	html+='			<tr><td style="height: 7px"><img alt="" src="img/ygrad.gif" width=953 height="3"></td></tr>'
	html+='			<tr align="left"><td><span  style="font-size:70%;font-weight:bold;text-align:left;">staysure.co.uk Limited is authorised and regulated by the Financial Services Authority (FSA Registration number: 436804).</span></td></tr>'
	html+='			<tr><td><img alt="" src="img/ygrad.gif" width=953 height="3"></td></tr>'
	html+='			<tr><td><img alt="" src="img/trnsp.gif" width=953 height="3"></td></tr>'
	html+='			<tr><td style="	font-size: 10px;	text-align: left;	font-family: Arial, Helvetica, sans-serif;	color: #808080;	vertical-align: middle;">Powered by Intervest. Global solutions for the travel market</td></tr>'
	html+='		</table>'
	html+='	</div>'
	html+='</div>'

	document.write(html);
}




function showAdvertisement(width,height,id){
	
	var src = '../ads/ad'+id+'.html';
	
	html="<iframe src='"+src+"' frameborder='0' scrolling='no' width='"+width+"' height='"+height+"' "+isAffiliateSet()+"></iframe>";
	document.write(html);				
}


function showNavi(index,withBackPacker){
var backpacker = false;
if 	(withBackPacker=='yes') backpacker = true; 
	
	var html='<ul>'
	if (index == 1){
        html+='<li><a id="active-tab" href="#"><img src="images/single_trip.png" width="119" height="27" alt="Single trip up to 100 days"></a></li>'
        html+='<li><a href="longstay.php"><img src="images/long-stay.png" width="119" height="27" alt="Long stay"></a></li>'
        html+='<li><a href="wintersports.php"><img src="images/winter-sports.png" width="119" height="27" alt="Winter Sports"></a></li>'
    }
    else if (index == 2) {
    	html+='<li><a  href="index.php"><img src="images/single_trip.png" width="119" height="27" alt="Single trip up to 100 days"></a></li>'
        html+='<li><a id="active-tab" href="#"><img src="images/long-stay.png" width="119" height="27" alt="Long stay"></a></li>'
        html+='<li><a href="wintersports.php"><img src="images/winter-sports.png" width="119" height="27" alt="Winter Sports"></a></li>'
    	
    }
    else if (index == 3) {        
    	
        html+='<li><a  href="index.php"><img src="images/single_trip.png" width="119" height="27" alt="Single trip up to 100 days"></a></li>'
        html+='<li><a  href="longstay.php"><img src="images/long-stay.png" width="119" height="27" alt="Long stay"></a></li>'
        html+='<li><a id="active-tab" href="#"><img src="images/winter-sports.png" width="119" height="27" alt="Winter Sports"></a></li>'
    }
        
        
    html+='</ul>'
	

document.write(html);
}

function showHowHear(){
var html='';
html+='<table width="100%"  border="0" cellspacing="0" cellpadding="0" align="center">'
html+='                                 <tr class="qRow1">'
html+='                                         <td align="left"  style="padding:8px;color:#2B1B62;letter-spacing:0px;font-size:small; width: 314px;" >We would be grateful if you could tell us what<br>brought you to Holidaylettings on this occasion (optional)</td>'
html+='                                         <td align="left">'
html+='                                                 <select id="howHear" name="howHear" >'
html+='                                                                                                 <option value="">Please Select</option>'
html+='                                                                                                 <option value="">--------------</option>'
html+='                                                                                                 <option value=""></option>'
html+='<option value="Recommendation by friend or family">Recommendation by friend or family</option>'
html+='<option value="Google search">Google search</option>'
html+='<option value="Yahoo search">Yahoo search</option>'
html+='<option value="Other search engine">Other search engine</option>'
html+='<option value="TV">TV</option>'
html+='<option value="Yours Magazine">Yours Magazine</option>'
html+='<option value="Legion Magazine">Legion Magazine</option>'
html+='<option value="Active Life Magazine">Active Life Magazine</option>'
html+='<option value="Heritage Today">Heritage Today</option>'
html+='<option value="Mature Times">Mature Times</option>'
html+='<option value="National Trust Magazine">National Trust Magazine</option>'
html+='<option value="World of Cruising">World of Cruising</option>'
html+='<option value="Used Holidaylettings before">Used Holidaylettings before</option>'
html+='<option value="Email newsletter">Email newsletter</option>'
html+='<option value="Postal newsletter">Postal newsletter</option>'
html+='<option value="Daily Telegraph Sunday Telegraph">DailyTelegraph / Sunday Telegraph</option>'
html+='<option value="Daily Mail  Mail on Sunday">Daily Mail / Mail on Sunday</option>'
html+='<option value="Website advert">Website advert</option>'
html+='<option value="Website recommendation">Website recommendation</option>'
html+='<option value="Comparison website">Comparison website</option>'
html+='<option value="Radio">Radio</option>'
html+='<option value="None of the above">None of the above</option>'
html+='                                                 </select>'
html+='                                         </td>'
html+='                                 </tr>'
html+='                         </table>'

document.write(html);
}

function clickclear(thisfield, defaulttext) {
if (thisfield.value == defaulttext) {
thisfield.value = "";
}
}

function clickrecall(thisfield, defaulttext) {
if (thisfield.value == "") {
thisfield.value = defaulttext;
}
}