// JavaScript Document

$(function(){	
	$(".showcont").hover(function(){
			$(this).find(".showlist").show();								  
		},function(){
			$(this).find(".showlist").hide();	
		});	
	//current menu
		$.fn.currentMenu=function(settings){
			st=$.extend({
				text: "home",
				style: "curr"
			},settings);
			st.text=st.text.toLowerCase();
			$(this).each(function(n){
				tmpText=$(this).text().toLowerCase();
				tmpText=tmpText.replace(/ /,"");
				if(tmpText==st.text){
					$(this).addClass(st.style);
				}
			});
		}

});

$().ready(function(){
		//initCorners(".subMenu", "0, 10, 10, 10");
		$(".header .nav li").hover(function(){$(this).addClass("active")},function(){$(this).removeClass("active")});
		//back to top
		$(".backTop").hide();
    	$(window).scroll(function () {
			if($(window).scrollTop()=="0") {
				$(".backTop").fadeOut("slow")
			}else {
				$(".backTop").fadeIn("slow")
			}
		});
		$(".backTop").click(function(){
			$('html,body').animate({scrollTop: '0px'}, 800);
		})
		
	})

