function bodyLoad(){
jQuery("#candyNavMenuPromo").hide();
var candyNavMenuPromo = jQuery("a[name='candyNavMenuPromo']");
candyNavMenuPromo.mouseup(candyNavMenu);
		var shareClose = jQuery("img[class='shareClose']");
		shareClose.mouseup(closeShare);
		}
		
function toogleComment(){
var cond = jQuery(this).parents("table[class='feedbackTable']" ).next();
var condStyle = cond.css("display");
if(condStyle=="none"){
jQuery(this).append("<span class='cross'>&nbsp;X</span>");
}else{
jQuery(this).children("span[class='cross']").hide();
}
cond.toggle("fast");

}
function addX(){
hide();
alert("sdf");
}
function candyNavMenu(){
jQuery("#candyNavMenuPromo").slideToggle("fast");
}

function closeShare(){
jQuery(this).parent().hide();
jQuery("#brandShareGlobe").show();
}
function showPromo(){
jQuery("#promoShare").show();
jQuery("#commentShare").hide();
jQuery("#topicShare").hide();
jQuery("#brandShareGlobe").hide();
}
function showComment(){
jQuery("#commentShare").show();
jQuery("#brandShareGlobe").hide();
jQuery("#promoShare").hide();
jQuery("#topicShare").hide();
}
function showTopic(){
jQuery("#topicShare").show();
jQuery("#brandShareGlobe").hide();
jQuery("#commentShare").hide();
jQuery("#promoShare").hide();
}
// search Form effect 
function initSearch(){
	jQuery("#headerSearch").focus(function(){
		jQuery(this).addClass("searchInputFoc");
	})
	jQuery("#headerSearch").blur(function(){
		jQuery(this).removeClass("searchInputFoc");
	})
	jQuery(".searchEvery").hover(
		function(){jQuery(this).addClass("searchEveryFoc")},
		function(){jQuery(this).removeClass("searchEveryFoc")}
	)
	jQuery(".searchBrand").hover(
		function(){jQuery(this).addClass("searchBrandFoc")},
		function(){jQuery(this).removeClass("searchBrandFoc")}
	)
}
// end search form effect



//Tab Script
function initCloudTagTab(){
	var tabHead = jQuery(".tagnav")
	var tabItem = jQuery(".tagnav span a")
	var tabBox = jQuery(".tagnav ~ div.tagCloud")
	
	jQuery(".tagnav span").not(".tabSelectecd").bind("mouseover",tabHover);
	
	jQuery(".tagnav span a").each(function(){
		if(jQuery(this).parent().is(":last-child")){
			jQuery(this).addClass("lastTab")
		}else{
		jQuery(this).addClass("generalTab");
		}
	})
	jQuery(tabItem).each(function(i){
		jQuery(this).bind("click",switchTab)

		jQuery(this).attr("name","tab_"+i)
	})
	jQuery(tabBox).each(function(i){
		jQuery(this).attr("name","tab_"+i)
	})
}
function switchTab(){
	var tabCond = jQuery(this).attr("name");
	jQuery(this).parent().siblings("span.tabSelected").bind("mouseover",tabHover);
	jQuery(this).parent().siblings("span.tabSelected").find("a").bind("click",switchTab);
	jQuery(this).parent().siblings("span.tabSelected").removeClass("tabSelected");
	jQuery(this).parents(".tagnav").find("span.afterSelected").removeClass("afterSelected");
	
	jQuery(this).unbind("click");
	jQuery(this).parent().removeClass("tabHover");
	jQuery(this).parent().addClass("tabSelected");
	jQuery(this).parent().next().toggleClass("afterSelected");
	jQuery(this).parent().unbind("mouseover");
	
	jQuery(this).parents("div.tagnav").siblings("div:visible").hide("");
	jQuery("div[name='"+tabCond+"']").fadeIn("fast");
//var oldTabCond = jQuery(".tagnav span[class:contain('tabSelected')]")
}
function tabHover(){
	jQuery(this).addClass("tabHover");
	jQuery(this).bind("mouseout",function(){
		jQuery(this).removeClass("tabHover");
		jQuery(this).unbind("mouseout");
	});
}
// end Tab Script 