//SearchForm

			var setobj = null;
			var hidestr = "cruises_price";
			function showBgColor(objstr) {
				var obj = document.getElementById(objstr);
				if (obj.style.backgroundColor=="#990000"){
					return;
				}
				if (obj != setobj) {
					obj.style.backgroundColor="#ff3366";
				}
			}
			function unsetColor(objstr) {
				var obj = document.getElementById(objstr);
				if (obj.style.backgroundColor=="#990000"){
					return;
				}
				if (obj != setobj) {
					obj.style.backgroundColor="#cc3333";
				}
			}
			function setColor(objstr,showstr) {
				var obj = document.getElementById(objstr);
				if (setobj == null){
					setobj = document.getElementById("cruise_bar_price");
				}
				if (setobj == obj){
					return;
				}
				if (hidestr != showstr){
					var hideobj = document.getElementById(hidestr);
					var showobj = document.getElementById(showstr);
					hideobj.style.display = "none";
					showobj.style.display = "block";
					hidestr = showstr;
				}
				setobj.style.backgroundColor="#cc3333";
				obj.style.backgroundColor="#990000";
				setobj = obj;
			}


$(document).ready(function(){				   
	$('.searchInput').focus(
		function() {
			if($(this).val() == '输入关键字') {
				$(this).val('').css({color:"#222"});
			}
		}
	).blur(
		function(){
			if($(this).val() == '') {
				$(this).val('输入关键字').css({color:"#787878"});
			}
		}
	);
	
	var j = 0; 
	$("#cruise_bar li").mousemove( 
	function(){ 
		if (j==$("#cruise_bar li").index(this)){
			return false;
		}
		$(this).css('background-color','#ff3366');
	} 
	); 
	$("#cruise_bar li").mouseout( 
	function(){ 
		if (j==$("#cruise_bar li").index(this)){
			return false;
		}
		$(this).css('background-color','#cc3333');
	} 
	); 


	$('#cruise_bar li').click(function(){
		var i = $("#cruise_bar li").index(this); 
		if (j == i)	{
			return false; 
		}
		$('#cruise_bar li').css('background-color','#cc3333');
		j = i;
		$(this).css('background-color','#990000');
		$('#cruise_price').hide();
		$('#cruise_facility').hide();
		$('#cruise_travel').hide();
		$('#cruise_truepic').hide();
		$('#cruise_deckpic').hide();
		$('#cruise_food').hide();
		if (i==0){
			$('#cruise_price').show();
		}
		if (i==1){
			$('#cruise_facility').show();
		}
		if (i==2){
			$('#cruise_travel').show();
		}
		if (i==3){
			$('#cruise_truepic').show();
		}
		if (i==4){
			$('#cruise_deckpic').show();
		}
		if (i==5){
			$('#cruise_food').show();
		}

		return false; 
	});
	
	$("#cruise_facility .t").click(function(){
		$('#cruise_bar li').eq(1).css('background-color','#cc3333');
		$('#cruise_bar li').eq(5).css('background-color','#990000');
		$('#cruise_facility').hide();
		$('#cruise_food').show();
		j = 5;
	});
	$("#cruise_head .line_foot").click(function(){
		$('#cruise_bar li').css('background-color','#cc3333');
		$('#cruise_bar li').eq(4).css('background-color','#990000');
		$('#cruise_price').hide();
		$('#cruise_facility').hide();
		$('#cruise_travel').hide();
		$('#cruise_truepic').hide();
		$('#cruise_deckpic').show();
		$('#cruise_food').hide();
		j = 4;
	});
	$('#cruise_facility').hide();
	$('#cruise_travel').hide();
	$('#cruise_truepic').hide();
	$('#cruise_deckpic').hide();
	$('#cruise_food').hide();
});
// SubPage
$(function() {
	$(".pagemenu li ul").css({display: "none"}); // Opera Fix
	$(".pagemenu li").hover(function(){
		$(this).find('ul:first').show("fast").css({visibility: "visible",display: "block"});
	},function(){
		$(this).find('ul:first').hide("fast").css({visibility: "hidden"});
	});
});
// SubCategories
$(function() {
	$(".widget_categories ul li ul").css({display: "none"}); // Opera Fix
	$(".widget_categories ul li").hover(function(){
		$(this).find('ul:first').show("fast").css({visibility: "visible",display: "block"});
	},function(){
		$(this).find('ul:first').hide("fast").css({visibility: "hidden"});
	});
});
// Menu First li nb
$(function() {
	$(".catsmenu li:first").addClass("nl"); // HeaderMenu First li no border
	$(".footpage li:first").addClass("nb"); // FooterMenu First li no border
});

