function displayHTML(){var inf=document.getElementById('mainContent').innerHTML;win=window.open("print.html",'print','scrollbars=yes,toolbar=no,width=650,height=650,resizable=yes');var styles='* {font-family:Verdana; font-size:12px; line-height:15px;} #closepage {float:right;margin-top:-30px;} hr {border:0; border-bottom:1px solid #666; height:1px; width:100%;}img {display:none;}a, a:link { color:#22aefe; text-decoration:underline;}a:visited {color:#785FA1;}a:hover { color:#f27501;}#hxlogo {background:url(/images/holidayextras/logo.png); width:212px; height:42px;}';var starthtml="<html><head><title>"+pagetitle+"<\/title><style type='text/css'>"+styles+"<\/style><\/head><body><div id='hxlogo'><\/div><div id='closepage'><a onclick='javascript:window.close();'>Close<\/a><\/div><hr /><a onclick='javascript:window.print();'>Print this Page<\/a><hr />";var endhtml='<\/body><\/html>';win.document.write(starthtml+inf+endhtml);win.document.close();}function bookmark(title,url){if(window.sidebar)window.sidebar.addPanel(title,url,urladdress);else if(window.opera&&window.print){var elem=document.createElement('a');elem.setAttribute('href',url);elem.setAttribute('title',title);elem.setAttribute('rel','sidebar');elem.click();}else if(document.all)window.external.AddFavorite(url,title);}function popwin(aPage,aTarget,w,h,var1,var2){x=(640-w)/2,y=(480-h)/2;if(screen){y=(screen.availHeight-h)/2;x=(screen.availWidth-w)/2;}window.open(aPage,aTarget,'status=no,top=0,left=0,scrollbars=yes,resizable='+((var1=='resize'||var2=='resize')?'yes':'no')+',width='+w+',height='+h+',screenX='+x+',screenY='+y+',top='+y+',left='+x);}var title=0;var name="";var email="";var errorTitle="Please select your title.";var errorName="Please enter your surname.";var erroremail="Please enter your e-mail address.";var invalidAddress="Please enter a valid e-mail address.\nAddress must be in the format user@domain.com";function setTitleIndex(selectElement){title=selectElement.selectedIndex;}function checkAddress(){var atIndex=email.indexOf("@");var dotIndex=email.lastIndexOf(".");var atIndexPlus=atIndex+2;var emailLength=email.length-1;if(atIndex<1){return false;}if(dotIndex<atIndexPlus){return false;}if(dotIndex==emailLength){return false;}else{return true;}}
function checkSignup(){name=document.sendmail.surname.value;email=document.sendmail.email.value;if(title==0){alert(errorTitle);return false;}if(name.length==0){alert(errorName);document.sendmail.surname.focus();return false;}else if(email.length==0){alert(erroremail);document.sendmail.email.focus();return false;}else if(!checkAddress()){alert(invalidAddress);return false;}else{var exdate=new Date();exdate.setDate(exdate.getDate()+92);document.sendmail.submit();}}
function enterSubmit(){if(window.event&&window.event.keyCode==13){checkSignup();return!(window.event&&window.event.keyCode==13);}else{return true;}}function openwin(url){window.open(url,'mywindow','width=770,height=300, scrollbars=yes');}function setImage(imgId,imgStyle,imgUrl,imgAlt,el,overwrite){imgDiv='<'+'div class="lpcarousel_item"><'+'img id="'+imgId+'" style="'+imgStyle+'" src="'+imgUrl+'" alt="'+imgAlt+'" title="'+imgAlt+'"/><'+'/div>';if(typeof(el) == 'undefined'){el='imgCarousel';}elContent=document.getElementById(el).innerHTML;if(overwrite){document.getElementById(el).innerHTML=imgDiv;}else{document.getElementById(el).innerHTML=elContent+imgDiv;}}
if(window.jQuery){$(function(){$('img.rounded').each(function(){newdiv=document.createElement('DIV');newdiv.className=$(this)[0].className;var width=$(this).width();$(newdiv).insertAfter(this);$(this).appendTo(newdiv);corners='<div class="topLeft"></div><div class="topRight"></div><div class="repeatBottom"></div><div class="bottomLeft"></div><div class="bottomRight"></div>';$(newdiv).append(corners);if($(this).is('.fr'))$(newdiv).css({'margin':'5px 0 15px 5px'});if($(this).is('.fl'))$(newdiv).css({'margin':'5px 5px 15px 0'});if(!width)width='auto';$(newdiv).css('width',width);$(this)[0].className="";});style={'background':'url(/images/holidayextras/carouselSprite.gif) 0 1px no-repeat','top':'-2px','left':'-1px','position':'absolute','padding':'2px 3px','height':'1px'};$('.topLeft').css(style);style={'background':'url(/images/holidayextras/carouselSprite.gif) -197px 1px no-repeat','top':'-2px','right':'-1px','position':'absolute','padding':'2px 3px','height':'1px'};$('.topRight').css(style);style={'background':'url(/images/holidayextras/carouselSprite.gif) 0 -127px no-repeat','bottom':'-16px','left':'-1px','position':'absolute','padding':'0 15px 20px 0','height':'1px'};$('.bottomLeft').css(style);style={'background':'url(/images/holidayextras/roundedRepeatImage.gif) top left repeat-x','bottom':'-19px','left':'0','position':'absolute','padding':'0 0 20px 0','width':'100%','height':'1px'};$('.repeatBottom').css(style);style={'background':'url(/images/holidayextras/carouselSprite.gif) -184px -127px no-repeat','bottom':'-16px','right':'-1px','position':'absolute','padding':'0 20px 20px 0','height':'1px'};$('.bottomRight').css(style);if($.browser.msie&&$.browser.version.substr(0,1)=='6'){$('.bottomLeft').css({'padding-bottom':'8px','bottom':'-20px'});$('.bottomRight').css({'padding-bottom':'8px','bottom':'-20px'});$('.repeatBottom').css({'padding-bottom':'8px','bottom':'-23px'});}
$('div.rounded').css({'padding':'5px','border':'1px solid #77C8FA','border-bottom':'0','background':'#F4F5F6','position':'relative'});});}