//sfHover = function() {
//	var sfEls = document.getElementById("nav").getElementsByTagName("LI");
//	for (var i=0; i<sfEls.length; i++) {
//		sfEls[i].onmouseover=function() {
//			this.className+=" sfhover";
//		}
//		sfEls[i].onmouseout=function() {
//			this.className=this.className.replace(new RegExp(" sfhover\\b"), "");
//		}
//	}
//}
//if (window.attachEvent) window.attachEvent("onload", sfHover);


function mycarousel_initCallback(carousel)
{
    // Disable autoscrolling if the user clicks the prev or next button.
    carousel.buttonNext.bind('click', function() {
        carousel.startAuto(0);
    });

    carousel.buttonPrev.bind('click', function() {
        carousel.startAuto(0);
    });

    // Pause autoscrolling if the user moves with the cursor over the clip.
    carousel.clip.hover(function() {
        carousel.stopAuto();
    }, function() {
        carousel.startAuto();
    });
};

$(document).ready(function() {
	$(".content_mods").jCarouselLite({
		vertical: true,
		hoverPause:true,
		visible: 1,
		auto:2000,
		speed:1000
	});
	$(".banner_mods").jCarouselLite({
		vertical: true,
		hoverPause:true,
		visible: 1,
		auto:2000,
		speed:1000
	});

	$('.res_fs_int_wrap').tabs();

	$('#contact_details_wrap').tabs();
	
	$('#search_tabs_wrap').tabs();

	$("a[rel^='prettyPhoto']").prettyPhoto({theme:'light_rounded'});

	//hide the all of the element with class msg_body
	$(".car_body").hide();
	//toggle the componenet with class msg_body
	$(".car_head").click(function(){
		$(this).next(".car_body").slideToggle(600);
	});

});
