document.domain = "harrowhouse.com";

$(document).ready(function(){
	$(".News .ControlStrip, .News .ControlStrip a").click(function () {
	      $(".News .Content").slideToggle("slow");
		  $(".Info .Content").slideUp("slow");
		  return false;
	});
	
	$(".Info .ControlStrip, .Info .ControlStrip a").click(function () {
	      $(".Info .Content").slideToggle("slow");
		  $(".News .Content").slideUp("slow");
		  return false;
	});
	
	$('.Enhance2InvoicePaymentWrap #ArrivalDate, .Enhance2InvoicePaymentWrap #DepartureDate').datepicker({dateFormat: 'dd-mm-yy', showOn: 'button', buttonImageOnly: true, buttonImage: '/skin/images/jqueryui/calendar.gif' });
});

function doIframe(){
	o = document.getElementsByTagName('iframe');
	for(i=0;i<o.length;i++){
		if (/\bautoHeight\b/.test(o[i].className)){
			setHeight(o[i]);
			addEvent(o[i],'load', doIframe);
		}
	}
}

function setHeight(e){
	if(e.contentDocument){
		e.height = e.contentDocument.body.offsetHeight + 85;
	} else {
		e.height = e.contentWindow.document.body.scrollHeight + 85;
	}
}

function addEvent(obj, evType, fn){
	if(obj.addEventListener)
	{
	obj.addEventListener(evType, fn,false);
	return true;
	} else if (obj.attachEvent){
	var r = obj.attachEvent("on"+evType, fn);
	return r;
	} else {
	return false;
	}
}

if (document.getElementById && document.createTextNode){
 addEvent(window,'load', doIframe);	
}
