
var headerClass;
var globalHeaderClass;

if ( typeof(BannerRenew) == 'undefined' ) {
	BannerRenew = function() {}
};

BannerRenew.Adjust = function(frame_id){
	var frame_height = 0;
	var frame_width = 0;
	
	var obj = document.getElementsByName('bannerFrame')[0];
	// ブラウザ判別
	if(navigator.appName.charAt(0)=="N"){
		// Safari
		if (navigator.userAgent.indexOf("Safari") != -1){
			frame_height = obj.contentDocument.body.scrollHeight;
			frame_width  = obj.contentDocument.body.scrollWidth;
		// FF,NN
		}else {
			frame_height = obj.contentDocument.documentElement.scrollHeight;
			frame_width  = obj.contentDocument.documentElement.scrollWidth;
		}
	}
	// IE
	if( navigator.appName.charAt(0)=="M" && navigator.userAgent.indexOf("Opera") == -1){
		frame_height = obj.contentWindow.document.documentElement.scrollHeight;
		frame_width  = obj.contentWindow.document.documentElement.scrollWidth;
	}
	
	// バナーフレーム高さ・幅設定
	if(frame_id == "bannerFrame"){
		var element = document.getElementsByName('bannerFrame')[0];
		if(element){
			element.setAttribute("height", frame_height);
			element.setAttribute("width", frame_width);
		}
	}
	// ヘッダークラス設定
	headerClass = (frame_width > 470 ? "special_banner" : "normal_banner");
	globalHeaderClass = headerClass;
	var elementH = document.getElementById("commonHeader");
	if(navigator.appName.charAt(0)=="N"){
		// Safari
		if (navigator.userAgent.indexOf("Safari") != -1){ elementH.setAttribute("class", headerClass); }
		// FF,NN
		else { elementH.setAttribute("class", headerClass); }
	}
	// IE
	if( navigator.appName.charAt(0)=="M" && navigator.userAgent.indexOf("Opera") == -1){
		if(navigator.appVersion.indexOf("MSIE 8") != -1) {
			elementH.setAttribute("class", headerClass);
		} else {
			elementH.setAttribute("className", headerClass);
		}
	}
}
BannerRenew.prototype.isEmpty = function(obj){ return (obj == null || obj == undefined || obj == '') ? true : false; }


document.write('<link rel="stylesheet" type="text/css" href="/css/2009/wait.css" />');
document.write('<link rel="stylesheet" type="text/css" href="/css/2009/header.css" />');
document.write('<script type="text/javascript" src="/js/2009/prototype.js" charset="UTF-8"></script>');
document.write('<script type="text/javascript" src="/js/2009/jquery-1.2.3.pack.js" charset="UTF-8"></script>');
document.write('<script type="text/javascript" src="/js/2009/cookiemanager.js" charset="UTF-8"></script>');
document.write('<script type="text/javascript" src="https://site10.dga.jp/ytv/search_tool.js" charset="UTF-8"></script>');
document.write('<script type="text/javascript" src="/js/2009/wait.js" charset="UTF-8"></script>');
document.write('<script type="text/javascript" src="/press/js/jquery.cookie.js" charset="UTF-8"></script>');
document.write('<script type="text/javascript" src="/js/2009/checkPDA.js" charset="UTF-8"></script>');



document.write('<div id="commonWapper">');
document.write('<div id="commonHeader" style="display:block;" class="special_banner">');
document.write('<div style="position:absolute; top:14px; left:0px;">');
if(globalHeaderClass == 'normal_banner') {
	document.write('<object width="479" height="57" id="logo_normal">');
	document.write('<param name="allowScriptAccess" value="always" />');
	document.write('<param name="allowFullScreen" value="false" />');
	document.write('<param name="movie" value="/logo_normal.swf" />');
	document.write('<param name="quality" value="high" />');
	document.write('<param name="bgcolor" value="#FFFFFF" />');
	document.write('<param name="wmode" value="window" />');
	document.write('<embed src="/logo_normal.swf" wmode="window" quality="high" bgcolor="#FFFFFF" width="479" height="57" name="logo_normal" allowScriptAccess="always" allowFullScreen="false" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />');
	document.write('</object>');
} else {
	document.write('<object width="223" height="86" id="logo_big">');
	document.write('<param name="allowScriptAccess" value="always" />');
	document.write('<param name="allowFullScreen" value="false" />');
	document.write('<param name="movie" value="/logo_big.swf" />');
	document.write('<param name="quality" value="high" />');
	document.write('<param name="bgcolor" value="#FFFFFF" />');
	document.write('<param name="wmode" value="window" />');
	document.write('<embed src="/logo_big.swf" wmode="window" quality="high" bgcolor="#FFFFFF" width="223" height="86" name="logo_big" allowScriptAccess="always" allowFullScreen="false" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />');
	document.write('</object>');
}
document.write('</div>');

document.write('<div id="common_banner">');
document.write('<p>');


document.write('<iframe width="1" height="1" marginwidth="0" scrolling="no" frameborder="0" name="bannerFrame" id="bannerFrame" onload="BannerRenew.Adjust(\'bannerFrame\')" src="/banner/yatterman_15491.html"></iframe>');


document.write('</p>');
document.write('</div>');
document.write('</div>');

document.write('<div id="all_search">');

document.write('<object width="960" height="47">');
document.write('<param name="allowScriptAccess" value="always" />');
document.write('<param name="allowFullScreen" value="false" />');
document.write('<param name="movie" value="/header.swf" />');
document.write('<param name="quality" value="high" />');
document.write('<param name="bgcolor" value="#FFFFFF" />');
document.write('<param name="wmode" value="transparent" />');
document.write('<embed src="/header.swf" wmode="transparent" quality="high" bgcolor="#FFFFFF" width="960" height="47" allowScriptAccess="always" allowFullScreen="false" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />');
document.write('</object>');
document.write('</div>');
document.write('</div>');
