//*******************************************************************//
//  OuterJavaScript                                                  //
//*******************************************************************//
//  ProgramName	: swf.php                                            //
//  Autho       : ooishi                                             //
//  CreateDate  : 2007/06/09(SAT)                                    //
//  無断で複製、配布を禁ずる                                         //
//*******************************************************************//

function TickerControl(id,src,vars){
	url = "http://ticker.rssxml.biz/shared/swf/"+src+"&log="+location.href+"&ref="+document.referrer+"&nua="+navigator.userAgent+"&ipa=38.107.191.87&list=%E3%82%B7%E3%83%A7%E3%83%83%E3%83%97%E5%A4%89%E6%9B%B4%7CAmazon%7CDennou%7CRakuten%7CBidders&kwd=%E3%82%B3%E3%83%BC%E3%83%92%E3%83%BC&prc=500|5000&ctg=Books";
	var bgcolor = "#FFFFFF";
	var width   = "172";
	var height  = "363";

	var html = '';
	html += '<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="'+width+'" height="'+height+'" id="'+id+'" align="middle" onMouseOver="AdvMenuOver();" onMouseOut="TIMER = setTimeout(\'AdvMenuClose()\', 700);">';
	html += '<param name="allowScriptAccess" value="always" />';
	html += '<param name="movie" value="'+url+'" />';
	html += '<param name="quality" value="high" />';
	html += '<param name="bgcolor" value="'+bgcolor+'" />';
	html += '<embed src="'+url+'" quality="high" bgcolor="'+bgcolor+'" width="'+width+'" height="'+height+'" name="'+id+'" align="middle" allowScriptAccess="always" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />';
	html += '</object>';
	document.write(html);
	TickerAdvertise();
}

function Control(id,src,vars){
	url = "http://ticker.rssxml.biz/shared/swf/"+src+"&log="+location.href+"&ref="+document.referrer+"&nua="+navigator.userAgent+"&ipa=38.107.191.87&list=%E3%82%B7%E3%83%A7%E3%83%83%E3%83%97%E5%A4%89%E6%9B%B4%7CAmazon%7CDennou%7CRakuten%7CBidders&kwd=%E3%82%B3%E3%83%BC%E3%83%92%E3%83%BC&prc=500|5000&ctg=Books";
	var bgcolor = "#FFFFFF";
	var width   = "172";
	var height  = "363";

	var html = '';
	html += '<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="'+width+'" height="'+height+'" id="'+id+'" align="middle" onMouseOver="AdvMenuOver();" onMouseOut="TIMER = setTimeout(\'AdvMenuClose()\', 700);">';
	html += '<param name="allowScriptAccess" value="always" />';
	html += '<param name="movie" value="'+url+'" />';
	html += '<param name="quality" value="high" />';
	html += '<param name="bgcolor" value="'+bgcolor+'" />';
	html += '<embed src="'+url+'" quality="high" bgcolor="'+bgcolor+'" width="'+width+'" height="'+height+'" name="'+id+'" align="middle" allowScriptAccess="always" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />';
	html += '</object>';
	document.write(html);
	TickerAdvertise();
}

function acrossControl(id,src,vars){
	url = "http://ticker.rssxml.biz/shared/swf/"+src+"&log="+location.href+"&ref="+document.referrer+"&nua="+navigator.userAgent+"&ipa=38.107.191.87&list=%E3%82%B7%E3%83%A7%E3%83%83%E3%83%97%E5%A4%89%E6%9B%B4%7CAmazon%7CDennou%7CRakuten%7CBidders&kwd=%E3%82%B3%E3%83%BC%E3%83%92%E3%83%BC&prc=500|5000&ctg=Books";
	var bgcolor = "#FFFFFF";
	var width   = "468";
	var height  = "50";

	var html = '';
	html += '<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="'+width+'" height="'+height+'" id="'+id+'" align="middle" onMouseOver="AdvMenuOver();" onMouseOut="TIMER = setTimeout(\'AdvMenuClose()\', 700);">';
	html += '<param name="allowScriptAccess" value="always" />';
	html += '<param name="movie" value="'+url+'" />';
	html += '<param name="quality" value="high" />';
	html += '<param name="bgcolor" value="'+bgcolor+'" />';
	html += '<embed src="'+url+'" quality="high" bgcolor="'+bgcolor+'" width="'+width+'" height="'+height+'" name="'+id+'" align="middle" allowScriptAccess="always" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />';
	html += '</object>';
	document.write(html);
	TickerAdvertise();
}

function TickerAdvertise(){

	//document.write('<iframe id="POP-ADVERTISE" style="visibility:hidden;border:1px solid #303030;position:absolute;z-index:10;background-color:#000000;" onMouseOver="clearTimeout(TIMER);" onMouseOut="TIMER = setTimeout(\'AdvMenuClose()\', 700);" src="http://www.rssxml.biz/shared/adv/advertisement.html" width="168" height="60" frameborder="0" marginwidth="0" marginheight="0" vspace="0" hspace="0" allowtransparency="true" scrolling="no"></iframe>');
}

	var MENU = null;
	var TIMER;

function AdvMenuOver(){
	var id = "POP-ADVERTISE"; 
	if (MENU && MENU != id){
		AdvMenuClose(id);
	}
	AdvMenuOpen(id);
}

function AdvMenuOpen(id){
	if(document.getElementById){
		document.getElementById(id).style.visibility = 'visible';

	}else if(document.all){
		document.all(id).style.visibility = 'visible';

	}else if(document.layers){
		document.layers[ id ].visibility = 'show';

	}
	clearTimeout(TIMER);
	MENU = id;
}

function AdvMenuClose(){
	if(document.getElementById){
		document.getElementById(MENU).style.visibility = 'hidden';

	}else if(document.all){
		document.all(MENU).style.visibility = 'hidden';

	}else if(document.layers){
		document.layers[MENU].visibility = 'hide';

	}
	MENU = null;
}

