var spShow = false, isext = false, spa = false;

function menuHover() {
	$("#menuHbtn1,#menuHbtn2,#menuHbtn3,#menuHbtn4,#menuHbtn5").mouseover(function() {
			$(this).stop().animate({ opacity: 0 }, 300 );
	});
	$("#menuHbtn1,#menuHbtn2,#menuHbtn3,#menuHbtn4,#menuHbtn5").mouseout(function() {
			$(this).stop().animate({ opacity: 1 }, 300 );
	});
}

function loadSite(loadSiteId) {
	if(loadSiteId == 1) {window.location = "/index"; }
	if(loadSiteId == 2) {window.location = "/test"; }
	if(loadSiteId == 3) {window.location = "/stats"; }
	if(loadSiteId == 4) {window.location = "/member/test/add"; }
	if(loadSiteId == 5) {window.location = "/help"; }
}

function showHidieSp() {
	if(spa == false) {
		spa = true;
		if(spShow == true) {
			$("#partnerS").slideUp({duration: 600, easing: 'easeInOutExpo'}).queue(function() { 
				$("#menuHbtn6").css( {height:"61px", background:"url(/images/header/m6_h.gif)"} ); 
				$(this).dequeue();
				spa = false;
			});
			spShow = false; return; 
		}
		else {
			$("#menuHbtn6").css( {height:"61px", background:"url(/images/header/sprw.gif)"} );
			$("#partnerS").slideDown({duration: 600, easing: 'easeOutBounce'}).queue(function(){
				$(this).dequeue();
				spa = false;
			});
			spShow = true;
		}
	}
}

function icoPartnerHover() {
	$(".foto62").mouseover(function() { $(this).css("border","4px solid #d9d5ce"); });
	$(".foto62").mouseout(function() { $(this).css("border","4px solid #FFF"); });
}

$(document).ready(function(){
	menuHover();
	icoPartnerHover();
});