/*
stLight.options({
	publisher:'09168ac6-67d0-4441-bad2-a582c0a013d9',
	offsetLeft:'0'
});
*/
$(function(){


	//$("a.large_flyer").colorbox();

	//alert("chrome2");
	//$("a[rel='example1']").colorbox();
	//var getHash = window.location.hash.toLowerCase().replace("#","");
	//loadTab(getHash,{$info.mem_id});
	// Our simple event handler, called from onChange and onSelect
	// event handlers, as per the Jcrop invocation above
	//compose_to_input
	//$("input#compose_to_input").autoSuggest(data.items, {selectedItemProp: "name", searchObjProps: "name" , retrieveLimit: 10});

	$('.calInput').datepick({showOnFocus: true, showTrigger: '#calImg'});
	$('.trip_cal').datepick({showOnFocus: true, showTrigger: '#calImg'});
	
	/*
	$('#start_date , #end_date').datepick({showOnFocus: true, showTrigger: '#calImg'});
	$('#ft_trip_locator_input_sdate_value , #ft_trip_locator_input_edate_value').datepick({showOnFocus: true, showTrigger: '#calImg'});
	$('#search_sdate , #search_edate').datepick({showOnFocus: true, showTrigger: '#calImg'});
	*/

	$("div.sub_ft_menu_myfrenchtuesdays_three").bgiframe();
	$("div.sub_ft_menu_nextevent_three").bgiframe();
	$("div.sub_ft_menu_sam_connected_three").bgiframe();
	$("div.div_lightbox").bgiframe();
	
	$.single=function(a){return function(b){a[0]=b;return a}}($([1]));
	/*@cc_on
	  if (!window.XMLHttpRequest) {
		$('.hoverable').each(function () {
		  this.attachEvent('onmouseenter', function (evt) { $.single(evt.srcElement).addClass('hover'); });
		  this.attachEvent('onmouseleave', function (evt) { $.single(evt.srcElement).removeClass('hover'); });
		});
	  }
	@*/

	var check=false;
	$("#sam_text").mouseover(function(){
		//
	}).mouseout(function(){
		$("div.sam_email_error_msg").hide();
	});
	
	$("div.ft_top_left_menu > div").mouseover(function(){
		$("div.ft_chair_carousel_container").css("zIndex" , "-1");
		check=true;
		var eleclass = $(this).attr("class");
		var getPosition = $(this).position();
		$("span#sp-"+eleclass).css("color" , "#666666");
		$("span#sp-"+eleclass+">a").css("color" , "#666666");
	}).mouseout(function(){
		var eleclass = $(this).attr("class");
		$("div.ft_chair_carousel_container").css("zIndex" , "0");
		var eleclass = $(this).attr("class");
		$("div#"+eleclass).css({"display":"none" , "visibility":"hidden"});
		$("span#sp-"+eleclass).css("color" , "#cccccc");
		$("span#sp-"+eleclass+">a").css("color" , "#cccccc");
	});
	
	$("div.ft_top_right_menu > div").mouseover(function(){
		$("div.ft_chair_carousel_container").css("zIndex" , "-1");
		check=true;
		var eleclass = $(this).attr("class");
		var getPosition = $(this).position();
		$("div.ft_top_right_menu").css("zIndex" , "100001");
		$("div#"+eleclass).css({"right":"-1px" , "top": 25+getPosition.top+"px", "display":"block" , "visibility":"visible" , "zIndex":"0"});
	}).mouseout(function(){
		var eleclass = $(this).attr("class");
		$("div.ft_chair_carousel_container").css("zIndex" , "0");
		var eleclass = $(this).attr("class");
		$("div#"+eleclass).css({"display":"none" , "visibility":"hidden"});
	});
	
	$("div.fttoprightmenu > div").mouseover(function(){
		$("div.ft_chair_carousel_container").css("zIndex" , "-1");
	}).mouseout(function(){
		$("div.ft_chair_carousel_container").css("zIndex" , "0");
	});
	
	$("div.fttoprightmenu > div").mouseover(function(){
		$("div.ft_main_content_container").css("zIndex" , "-1");
	}).mouseout(function(){
		$("div.ft_main_content_container").css("zIndex" , "0");
		if($("span#lgn").hasClass("isActive")==true){
			//$("div.sub_ft_menu_login_three").css("zIndex" , "2");
		}
	});

	/* added */
	
	/*
	$("div#ft_menu_login").mouseover(function(){
		$("div.sub_ft_menu_login_two").css({"display":"block" , "visibility":"visible"});
		$("div.sub_ft_menu_login_three").css({"display":"block" , "visibility":"visible"});
	}).mouseout(function(){
		$("div.sub_ft_menu_login_two").css({"display":"none" , "visibility":"hidden"});
		$("div.sub_ft_menu_login_three").css({"display":"none" , "visibility":"hidden"});
	});
	*/
});
