/* noscript
-------------------------------------------------------------------------------------------------*/

document.write('<style type="text/css">body #all {position: relative;top: 0px!important;}</style>');

//jquery
$(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);
			}
		);
	});
	
	//png
	$("img[src$=.png]").addClass("iepngfix");
	
	//サイト内検索
	$("#header > #header2 > .sub > .search > form > input.text").focus(function(){
		 if(this.value == "サイト内検索"){
				$(this).val("").css("color","#333");
		 }
	});
	$("#header > #header2 > .sub > .search > form > input.text").blur(function(){
		 if(this.value == ""){
				$(this).val("サイト内検索").css("color","#999");
		 }
	});
});
