$(document).ready(function(){
	if (iee==false) {
		$(".sH").hide();
		//Animate main banner
		$("#hp_mainBan").fadeIn(2000 , function(){
			$(".ico").fadeIn(1000 , function(){
				$("#hp_navi").fadeIn(1000);
				$("#hp_bottomLinks").fadeIn(1000);	
				$("#hp_bottomNews").fadeIn(1000);	
			});
		});
		//Animate logo
		$("#mainLogo").fadeIn(2500);
	}
	//$(".aniG").fadeTo(0,0.65);
	$(".aniX").fadeTo(0,0.65);
	//Animate navi		
		$(".ani").mouseover(function(){
			//$(this).fadeTo(300,0.4);
			$(this).animate({
				opacity: '0.7',
				top: '+=1',
				}, 300
			);
		});
		$(".ani").mouseout(function(){
			//$(this).fadeTo(500,1.0);
			$(this).animate({
				opacity: '1.0',
				top: '-=1',
				}, 300
			);
		});
	//Animate naviX		
		$(".aniX").mouseover(function(){
			$(this).fadeTo(300,1.0);
		});
		$(".aniX").mouseout(function(){
			$(this).fadeTo(500,0.65);
		});
	//Ani gallery
		$(".aniG").mouseover(function(){
			var W = $(".aniG").width();
			var H = $(".aniG").height();
			$(this).animate({
				opacity: '0.7',
				top: '+=1',
				}, 300
			);
		});
		$(".aniG").mouseout(function(){
			$(this).animate({
				opacity: '1.0',
				top: '-=1',
				}, 300
			);
		});
	//Submit click
	$("input.submit150").mousedown(function(){
		$(this).css("top","2px");
	});
	$("input.submit150").mouseup(function(){
		$(this).css("top","0px").fadeTo("fast",0.3);
	});
	/*
	//Resources
	$("div.resource a.more").click(function(){
		$(this).parent("div").addClass("rBorder");
		$(this).siblings("div").slideToggle();
		return false;
	});
	//General
	$("a[rel='gal']").colorbox({transition:"fade",maxHeight:"90%"});
	*/
	$("a.map").colorbox({width:"90%",height:"95%",iframe:true});
	$("a[rel='gal'] , a.scbox").colorbox({transition:"elastic",maxHeight:"97%"});
});
//Toggle hidden div
function unhide(id) {
	$("#"+id).slideToggle();
}
function scrollPage(itemId) {
	$("html, body").animate({
		scrollTop: $("#"+itemId).offset().top }, 800);
}
