function avail(hotel,lang,form){ var x = 750; var y = 550; var win = null; var centerwidth=(screen.width/2)-(x/2); var centerheight=(screen.height/2)-(y/2); var features = "scrollbars = yes,resizable = no,status = no,location = no,toolbar = no,width = "+x+",height = "+y+",top = "+centerheight+",left = "+centerwidth if(form){ form.action = "http://www.bookingevolution.com/availability/step2.html"; form.target = hotel; form.method = "POST"; if (window.pageTracker !== undefined){ pageTracker._linkByPost(form); } win=window.open("",hotel,features); } else{ var url = "http://www.bookingevolution.com/availability/step1.html?id="+hotel+"&lan="+lang; if (window.pageTracker !== undefined){ win = window.open(pageTracker._getLinkerUrl(url), hotel, features); } else{ win = window.open(url, hotel, features); } } win.focus(); } function avail_carlton(hotel,lang,form){ var x = screen.width-50; var y = screen.height; var win = null; var centerwidth=(screen.width/2)-(x/2); var centerheight=(screen.height/2)-(y/2); var features = "scrollbars = yes,resizable = no,status = no,location = no,toolbar = no,width = "+x+",height = "+y+",top = "+centerheight+",left = "+centerwidth if(form){ form.action = "http://www.bookingevolution.com/availability/step2_carlton.html"; form.target = hotel; form.method = "POST"; if (window.pageTracker !== undefined){ pageTracker._linkByPost(form); } win=window.open("",hotel,features); } else{ var url = "http://www.bookingevolution.com/availability/step1.html?id="+hotel+"&lan="+lang; if (window.pageTracker !== undefined){ win = window.open(pageTracker._getLinkerUrl(url), hotel, features); } else{ win = window.open(url, hotel, features); } } win.focus(); } if (typeof jQuery != 'undefined') { jQuery(document).ready(function(){ var hotel = jQuery('#bookingevolution').attr('hotel'); var lingua = jQuery('#bookingevolution').attr('lan'); var css = jQuery('#bookingevolution').attr('css'); var w = jQuery('#bookingevolution').attr('w'); var h = jQuery('#bookingevolution').attr('h'); var longdate = jQuery('#bookingevolution').attr('longdate'); var ga = jQuery('#bookingevolution').attr('ga'); var hd = jQuery('#bookingevolution').attr('hd'); if (longdate==undefined){longdate=0;} jQuery('#bookingevolution').html(''); if(jQuery('#beframe').length){ if(ga==1){ document.getElementById("beframe").src = pageTracker._getLinkerUrl("http://www.bookingevolution.com/availability/step1.html?id="+hotel+"&lan="+lingua+"&jq=1&css="+css+"&longdate="+longdate+"&hd="+hd); } else{ document.getElementById("beframe").src = "http://www.bookingevolution.com/availability/step1.html?id="+hotel+"&lan="+lingua+"&jq=1&css="+css+"&longdate="+longdate+"&hd="+hd; } jQuery('iframe#beframe').load(function(){ if(w!="undefined" && h!="undefined"){ this.style.height=h+"px"; this.style.width=w+"px"; } }); } }); }