$(function() {
$("ul.nav").each(function() {
$(this).mouseover(function() {
$('li.top_nav a',this).css('text-decoration','underline');
$('li.sub_nav',this).css('display','block');
})
$(this).mouseout(function() {
$('li.top_nav a',this).css('text-decoration','none');
$('li.sub_nav',this).css('display','none');
})
})
$("#cart ul").click(function() {
$(this).find('li.sub').slideDown(40);
$("#cart").css('height','37px');
$(this).css('position','relative').css('z-index','1');
})
$("#cart ul").mouseleave(function() {
$(this).find('li.sub').css('display','none');
})
$(".trail a:last-child").css('background','#0b9ed1').css('color','#FFF').css('text-decoration','underline');
$("div#whatelse div.an_item").css('border','none');
$("div#whatelse div.an_item").each(function() {
$(this).mouseover(function() {
$(this).find("a").css('color','#F18718');
})
$(this).mouseout(function() {
$(this).find("a").css('color','');
})
})
$(".thedeptimages").each(function() {
$(this).mouseenter(function(){ 
$(this).find("a").css('color','#F18718');
$(this).find("img").animate({
opacity: 0.75
							}, 5)
						   })
$(this).mouseleave(function() {
$(this).find("a").css('color','');
$(this).find("img").animate({
opacity: 1.0
							}, 5)
						  })
								 })
$("div#home_content").append($('div.Welcome').show());
if($("div#home_content div").hasClass('Welcome') === true) {
$("div.home_trail:first-child").addClass("home_trail_selected");
}
$("div#firstcol div.home_trail").each(function() {
$(this).click(function() {
if($(this).hasClass("home_trail") === true){
$(this).removeClass('home_trail').addClass('home_trail_selected');
$(this).siblings().removeClass('home_trail_selected').addClass('home_trail');
}
content = $("div#home_content");
content.removeClass('home_trail');
$("div#get_support").removeClass('home_trail').removeClass('home_trail_selected');
var make_sure = $("div").hasClass($(this).text());
var good_div = $("div."+$(this).text()+"");
if(make_sure === true && good_div.size() <= 1) {
content.append(good_div.fadeIn(130));
good_div.siblings().hide();
$("#helpme").removeClass('home_trail_selected').removeClass('home_trail');
}
else {alert('this application is not running properly')}
								  })
 })
$("div#home_con").append($("div.FeaturedToday").show());
$("div#two_elements div.home_trail").each(function() {
$(this).click(function() {
if($(this).hasClass('home_trail')) {
$(this).removeClass('home_trail').addClass('home_trail_selected');
$(this).siblings().removeClass('home_trail_selected').addClass('home_trail');
$("div#home_con").removeClass('home_trail_selected').removeClass('home_trail');
$("div#two_elements").find("a.sign-inhome").removeClass('home_trail_selected').removeClass('home_trail');
}
var good_div2 = $("div#home_con").find(("div."+$(this).text().replace(/ /g,'')+""));
var tested = $("div").hasClass($(this).text().replace(/ /g,'')+"");
var theContent = $("div#home_con");
if(good_div2.size() != -1 && tested === true) {
	good_div2.siblings().hide();
theContent.apppend(good_div2.fadeIn(130));
}
					   })
												   })
var theDate = new Date().toString();
$("span#bsh").append("&nbsp;<strong>"+theDate.substring(0,10)+"</strong>");
$("span.partytab:first-child").css('border','1px solid #0186b4').css('background','#FFF').css('height','21px').css('border-bottom','none').css('color','#00b3f0');
$("div#party_content").children().css('display','none');
$("div#party_content").find(".Recipes").fadeIn(10).show().css('display','block');
$("span.partytab").each(function() {
$(this).click(function() {
if($("div#party_content").find("div."+$(this).text()+"")){
	$("div#party_content").children().fadeOut(150).hide();
	$("div#party_content").find("div."+$(this).text()+"").append().fadeIn(150).show().css('display','block');
	$(this).siblings().css('background','#00b3f0').css('color','#FFF').css('height','20px');
	$(this).css('border','1px solid #0186b4').css('background','#FFF').css('height','21px').css('border-bottom','none').css('color','#00b3f0');
}
								 }) })


		   })
						

