﻿//*********page modules created by yugo asato 20oct2008*************

//********copyright display**********

function copyRightDisplay(){
	
	// Get the current date
	date_now = new Date();
		
	// Add the year
	date_text = date_now.getFullYear();
	document.write(date_text);

}

//********date display**********

function dateDisplay(){
	
	// This array holds the "friendly" month names
	var month_names = new Array(12);
	month_names[0] = "january";
	month_names[1] = "february";
	month_names[2] = "march";
	month_names[3] = "april";
	month_names[4] = "may";
	month_names[5] = "june";
	month_names[6] = "july";
	month_names[7] = "august";
	month_names[8] = "september";
	month_names[9] = "october";
	month_names[10] = "november";
	month_names[11] = "december";
	

	// Get the current date
	date_now = new Date();


	// Figure out the friendly month name
	month_value = date_now.getMonth();
	date_text = month_names[month_value];


	// Add the year
	date_text += ", " + date_now.getFullYear();



	document.write(date_text);
}

//************ add to favorites
function JSSleep(sec) {
	var start = new Date;
	while (1) {
		var cur = new Date;
		if (sec * 1000 <= cur.getTime() - start.getTime()) {
		break;
		}
	}
}

//************ add to favorites
function addBookmark(title,url) {
	if (window.sidebar) {
	window.sidebar.addPanel(title, url,"");
	} else if( document.all ) {
	window.external.AddFavorite( url, title);
	} else if( window.opera && window.print ) {
	return true;
	}
}


//************ privacy popup
function popup(url)
{
	newwindow=window.open(url,'name','height=600,width=800,top=0,left=0,menubar=1,toolbar=1,resizable=1,scrollbars=1');
	if (window.focus) {newwindow.focus()}
}

//************ 300x250 amazon
function amazon_ad_300(){

	var randnum = Math.floor( Math.random() * 100 );
	
	if (randnum < 51){
	document.write('<SCRIPT charset="utf-8" type="text/javascript" src="http://ws.amazon.co.jp/widgets/q?ServiceVersion=20070822&MarketPlace=JP&ID=V20070822/JP/footballmovie-22/8006/ec15a1fb-65b0-4bf7-b349-6245c3268362"> </SCRIPT>');
	}else{
	document.write('<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://fpdownload.macromedia.com/get/flashplayer/current/swflash.cab" id="Player_c2193964-e968-412a-98e6-90e2e042fded"  WIDTH="336px" HEIGHT="280px"> <PARAM NAME="movie" VALUE="http://ws.amazon.co.jp/widgets/q?ServiceVersion=20070822&MarketPlace=JP&ID=V20070822%2FJP%2Ffootballmovie-22%2F8009%2Fc2193964-e968-412a-98e6-90e2e042fded&Operation=GetDisplayTemplate"><PARAM NAME="quality" VALUE="high"><PARAM NAME="bgcolor" VALUE="#FFFFFF"><PARAM NAME="allowscriptaccess" VALUE="always"><embed src="http://ws.amazon.co.jp/widgets/q?ServiceVersion=20070822&MarketPlace=JP&ID=V20070822%2FJP%2Ffootballmovie-22%2F8009%2Fc2193964-e968-412a-98e6-90e2e042fded&Operation=GetDisplayTemplate" id="Player_c2193964-e968-412a-98e6-90e2e042fded" quality="high" bgcolor="#ffffff" name="Player_c2193964-e968-412a-98e6-90e2e042fded" allowscriptaccess="always"  type="application/x-shockwave-flash" align="middle" height="280px" width="336px"></embed></OBJECT> <NOSCRIPT><A HREF="http://ws.amazon.co.jp/widgets/q?ServiceVersion=20070822&MarketPlace=JP&ID=V20070822%2FJP%2Ffootballmovie-22%2F8009%2Fc2193964-e968-412a-98e6-90e2e042fded&Operation=NoScript">Amazon.co.jp ウィジェット</A></NOSCRIPT>');
	}
}

//************ 728 amazon
function amazon_ad_728(){

	var randnum = Math.floor( Math.random() * 100 );
	
	if (randnum < 51){
	document.write('<iframe src="http://rcm-jp.amazon.co.jp/e/cm?t=footballmovie-22&o=9&p=48&l=ur1&category=special_apparel&f=ifr" width="728" height="90" scrolling="no" border="0" marginwidth="0" style="border:none;" frameborder="0"></iframe>');
	}else{
	document.write('<iframe src="http://rcm-jp.amazon.co.jp/e/cm?t=footballmovie-22&o=9&p=48&l=ur1&category=pc&banner=0MJSHRP3MKD5WRJRF002&f=ifr" width="728" height="90" scrolling="no" border="0" marginwidth="0" style="border:none;" frameborder="0"></iframe>');
	}
}

//************ 160 amazon
function amazon_ad_160(){

	var randnum = Math.floor( Math.random() * 100 );
	
	if (randnum < 51){
	document.write('<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://fpdownload.macromedia.com/get/flashplayer/current/swflash.cab" id="Player_6e754274-81b3-4944-ab65-9dc12e1272ea"  WIDTH="160px" HEIGHT="400px"> <PARAM NAME="movie" VALUE="http://ws.amazon.co.jp/widgets/q?ServiceVersion=20070822&MarketPlace=JP&ID=V20070822%2FJP%2Ffootballmovie-22%2F8009%2F6e754274-81b3-4944-ab65-9dc12e1272ea&Operation=GetDisplayTemplate"><PARAM NAME="quality" VALUE="high"><PARAM NAME="bgcolor" VALUE="#FFFFFF"><PARAM NAME="allowscriptaccess" VALUE="always"><embed src="http://ws.amazon.co.jp/widgets/q?ServiceVersion=20070822&MarketPlace=JP&ID=V20070822%2FJP%2Ffootballmovie-22%2F8009%2F6e754274-81b3-4944-ab65-9dc12e1272ea&Operation=GetDisplayTemplate" id="Player_6e754274-81b3-4944-ab65-9dc12e1272ea" quality="high" bgcolor="#ffffff" name="Player_6e754274-81b3-4944-ab65-9dc12e1272ea" allowscriptaccess="always"  type="application/x-shockwave-flash" align="middle" height="400px" width="160px"></embed></OBJECT> <NOSCRIPT><A HREF="http://ws.amazon.co.jp/widgets/q?ServiceVersion=20070822&MarketPlace=JP&ID=V20070822%2FJP%2Ffootballmovie-22%2F8009%2F6e754274-81b3-4944-ab65-9dc12e1272ea&Operation=NoScript">Amazon.co.jp ウィジェット</A></NOSCRIPT>');
	}else{
	document.write('<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://fpdownload.macromedia.com/get/flashplayer/current/swflash.cab" id="Player_9ccbd6b4-c2b1-45ea-9ae6-c87554532cbd"  WIDTH="160px" HEIGHT="600px"> <PARAM NAME="movie" VALUE="http://ws.amazon.co.jp/widgets/q?rt=tf_cw&ServiceVersion=20070822&MarketPlace=JP&ID=V20070822%2FJP%2Ffootballmovie-22%2F8010%2F9ccbd6b4-c2b1-45ea-9ae6-c87554532cbd&Operation=GetDisplayTemplate"><PARAM NAME="quality" VALUE="high"><PARAM NAME="bgcolor" VALUE="#FFFFFF"><PARAM NAME="allowscriptaccess" VALUE="always"><embed src="http://ws.amazon.co.jp/widgets/q?rt=tf_cw&ServiceVersion=20070822&MarketPlace=JP&ID=V20070822%2FJP%2Ffootballmovie-22%2F8010%2F9ccbd6b4-c2b1-45ea-9ae6-c87554532cbd&Operation=GetDisplayTemplate" id="Player_9ccbd6b4-c2b1-45ea-9ae6-c87554532cbd" quality="high" bgcolor="#ffffff" name="Player_9ccbd6b4-c2b1-45ea-9ae6-c87554532cbd" allowscriptaccess="always"  type="application/x-shockwave-flash" align="middle" height="600px" width="160px"></embed></OBJECT> <NOSCRIPT><A HREF="http://ws.amazon.co.jp/widgets/q?rt=tf_cw&ServiceVersion=20070822&MarketPlace=JP&ID=V20070822%2FJP%2Ffootballmovie-22%2F8010%2F9ccbd6b4-c2b1-45ea-9ae6-c87554532cbd&Operation=NoScript">Amazon.co.jp ウィジェット</A></NOSCRIPT>');
	}
}



//************ 300x250 tier1
function as_ad_300_ran(strValue){
	
	var topLoc = top.location.href;
	var freq;
	var clientVal = "ca-pub-4489283753787447";
	var slotVal;
	var wVal;
	var hval;	
	var freq;


	
	freq = $.cookie('uf_300');
	freq = freq * 1;
	//window.alert(freq);
		if (freq < 1) {
			freq = 0;
		}
	
	
	if (freq < 6){
			
		var randnum = Math.floor( Math.random() * 100 );
			
			if (randnum < 50){
					wVal = 300;
					hVal = 250;
					slotVal = "3410773827";
			} else {
					wVal = 336;
					hVal = 280;
					slotVal = "5108294147";

			}
			
			google_ad_client = clientVal;
			google_ad_slot = slotVal;
			google_ad_width = wVal;
			google_ad_height = hVal;

			document.write('<script type="text\/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"><\/script>');
				
	}else{amazon_ad_300();}

		
	freq = freq + parseInt(1);
	$.cookie("uf_300", freq, { expires: 1 });

}


//************ 728x90 tier1
function as_ad_728_ran(strValue){
	
	var topLoc = top.location.href;
	var freq;
	var clientVal = "ca-pub-4489283753787447";
	var slotVal;
	var wVal;
	var hval;	
	var freq;


	
	freq = $.cookie('uf_728');
	freq = freq * 1;
	//window.alert(freq);
		if (freq < 1) {
			freq = 0;
		}
	
	
	if (freq < 6){
			
		var randnum = Math.floor( Math.random() * 100 );
			
			if (randnum < 50){
					wVal = 728;
					hVal = 90;
					slotVal = "3547009907";
			} else {
					wVal = 468;
					hVal = 60;
					slotVal = "0937712287";

			}
			
			google_ad_client = clientVal;
			google_ad_slot = slotVal;
			google_ad_width = wVal;
			google_ad_height = hVal;

			document.write('<script type="text\/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"><\/script>');
				
	}else{amazon_ad_728();}

		
	freq = freq + parseInt(1);
	$.cookie("uf_728", freq, { expires: 1 });

}


//************ 160x600 tier1
function as_ad_160_ran(strValue){
	
	var topLoc = top.location.href;
	var freq;
	var clientVal = "ca-pub-4489283753787447";
	var slotVal;
	var wVal;
	var hval;	
	var freq;


	
	freq = $.cookie('uf_160');
	freq = freq * 1;
	//window.alert(freq);
		if (freq < 1) {
			freq = 0;
		}
	
	
	if (freq < 6){
			
		var randnum = Math.floor( Math.random() * 100 );
			
			if (randnum < 50){
					wVal = 160;
					hVal = 600;
					slotVal = "5373848566";
			} else {
					wVal = 120;
					hVal = 600;
					slotVal = "7850398172";

			}
			
			google_ad_client = clientVal;
			google_ad_slot = slotVal;
			google_ad_width = wVal;
			google_ad_height = hVal;

			document.write('<script type="text\/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"><\/script>');
				
	}else{amazon_ad_160();}

		
	freq = freq + parseInt(1);
	$.cookie("uf_160", freq, { expires: 1 });

}


