// JavaScript Document
var engine;

function HScript(src) {
    document.write('<' + 'script src="' + src + '"' + ' type="text/javascript"><' + '/script>');
}
function HCSS(src) {
    document.write('<' + 'link  rel="stylesheet" type="text/css" href="' + src + '"' + ' type="text/javascript"><' + '/link>');
}


function HLoadMapsScript() {
   
        HScript("http://www.hermeshotels.com/newbol/server/flXHR.js");
		HScript("http://www.hermeshotels.com/newbol/server/varslist.js");
		HScript("http://www.hermeshotels.com/newbol/server/main.js");
		HScript("http://www.hermeshotels.com/newbol/server/language_help.js");
		HScript("http://www.hermeshotels.com/newbol/server/jquery-1.4.2.min.js");
		HScript("http://www.hermeshotels.com/newbol/server/jquery.mousewheel.js");
		HScript("http://www.hermeshotels.com/newbol/server/jScrollPane.js");
		HScript("http://www.hermeshotels.com/newbol/server/jScrollPanenew.js");
		HScript("http://www.hermeshotels.com/newbol/server/overlay.js");
		HScript("http://www.hermeshotels.com/newbol/server/blockui.js");
		HScript("http://www.hermeshotels.com/newbol/server/spin.js");
		HScript("http://www.hermeshotels.com/newbol/server/jquery.stylish-select.js");
	    HCSS("http://www.hermeshotels.com/newbol/server/overlay.css");
		HCSS("http://www.hermeshotels.com/newbol/server/calendarscroller.css");
		HCSS("http://www.hermeshotels.com/newbol/server/stylish-select.css");
		HCSS("http://www.hermeshotels.com/newbol/server/jScrollPane.css");
		HCSS("http://www.hermeshotels.com/newbol/server/jScrollPanenew.css");
		HScript("http://www.hermeshotels.com/newbol/server/bookdates.js");
		
}

function initTheApi()
{
  HLoadMapsScript();
}


initTheApi();

function callTheApi1(lan,caid,hoid)
{  
   var caid =  caid;
   var hoid = hoid;
   engine = new BookingEngine(1,lan,caid,hoid,0);
}
     
function callTheApi2(lan,caid,hoid){
	var caid =  caid;
    var hoid = hoid;
  	engine = new BookingEngine(2,lan,caid,hoid,0);
}

function callTheApi3(lan,caid,hoid,mtid){
	var caid =  caid;
    var hoid = hoid;
	var mtid = mtid
  	engine = new BookingEngine(1,lan,caid,hoid,mtid);
}

   

