// JavaScript Document

$(document).ready(function() {
	//Menu
	$("ul#menu li a img").fadeTo(0,1);
	$("ul#menu li a.on img").fadeTo(0,0);
	
	$("ul#menu li a").hover(function(){
		//id = $("ul#menu li").attr("rel");
		id = $(this).attr("rel");
		$("ul#menu li#m"+id+" a img").fadeTo(350,0);
	},
	function(){
		chk = $(this).attr("class");
		if(chk=="on"){
			var wo = $(this).attr("rel");
		}
		if(id!=wo){
			$("ul#menu li#m"+id+" a img").fadeTo(250,1);
		}
	});
	
	//Download
	$("#download a img").fadeTo(0,1);
	$("#download a img").hover(function(){
		$(this).fadeTo(300,0);
	},
	function(){
		$(this).fadeTo(300,1);
	});	

	//PDF
	$("#footer .pdf a img").fadeTo(0,0);
	$("#footer .pdf a img").hover(function(){
		$(this).fadeTo(300,1);
	},
	function(){
		$(this).fadeTo(300,0);
	});	

	//Top
	$("#footer .top a img").fadeTo(0,0);
	$("#footer .top a img").hover(function(){
		$(this).fadeTo(200,1);
	},
	function(){
		$(this).fadeTo(200,0);
	});	

});
function popup(n,w,h){
	var option = 'width='+w+', height='+h+', menubar=no, toolbar=no, scrollbars=yes';
	window.open(n, 'window', option);
}

