$(function(){
//rollover
	var postfix = '_on';
	$('img.imgover').not('[src*="'+ postfix +'."]').each(function() {
		var img = $(this);
		var src = img.attr('src');
		var src_on = src.substr(0, src.lastIndexOf('.'))
			+ postfix
			+ src.substring(src.lastIndexOf('.'));
		$('<img>').attr('src', src_on);
		img.hover(
			function() {
				img.attr('src', src_on);
			},
			function() {
				img.attr('src', src);
			}
		);
	});
	
//pulldown2
	//gNav IE6 以下
	if($.browser.msie && $.browser.version < 7){
		$("#gNav .pulldown .drop").bgiframe();
		$("#gNav .pulldown").hover(
			function(){ $(".drop", this).fadeIn(0); },
			function(){ $(".drop", this).fadeOut(0); }
		);
	}
	//gNav モダンブラウザ
	else{
		$("#gNav .pulldown .drop").each(function(){
			$(this).css("display", "block");
			var wid = $(this).width();
			$(this).css("width", wid);
			$(this).css("position", "absolute");
		});
		
		$("#gNav .pulldown").hover(
			function(){
				$(".drop" ,this).css("visibility", "visible");
			},
			function(){
				$(".drop" ,this).css("visibility", "hidden");
			}
		);
	}
	
	//myMenu IE6
	if($.browser.msie && $.browser.version < 7){
		$("#myMenu .pulldown .drop").bgiframe();
		$("#myMenu .pulldown").hover(
			function(){ $(".drop", this).fadeIn(0); },
			function(){ $(".drop", this).fadeOut(0); }
		);
	}
	//myMenu モダンブラウザ
	else{
		$("#myMenu .pulldown").hover(
			function(){ $(".drop", this).fadeIn(0); },
			function(){ $(".drop", this).fadeOut(0); }
		);
	}
	
//iepngfix
	$("img[src$=.png]").addClass("iepngfix");
	});

//window.onunload= function(){}
jQuery(window).unload(function(){});
