// 発信ロガー概要
function winopen(url,winName,w,h) {//■ポップアップウィンドウ
 window.open(url,winName,"toolbar=no,location=no,directories=no,status=yes,menubar=0,scrollbars=yes,resizable=yes,width="+ w +',height='+ h +"").focus();
}
//**open window*********************************************

	//**catalog window***************
	function openWindow(url)
	{
		popupWin = window.open(url, "newwin", "toolbar=no, scrollbars=yes, scrolling=yes,resizable=yes, menubar=yes,width=720,height=450");
	}

	//**docodemo window***************gps flash window***************
	function docoWin(url)
	{
		temp = window.open(url,"docowin", "toolbar=no, scrollbars=yes, scrolling=yes ,resizable=yes, menubar=yes,width=800,height=450");
	}
	
	//**download window************
	
	function downWin(url)
	{
		temp = window.open(url,"downloadWin", "toolbar=no, scrollbars=yes, scrolling=yes ,resizable=yes, menubar=yes,width=750,height=450");
	}
	//**explain window**************
	function explainWin(url)
	{
		temp = window.open(url,"explainwin", "toolbar=no, scrollbars=yes, scrolling=yes ,resizable=yes, menubar=yes,width=600,height=450");
	}
	
	//**catalog window***************
	function linkWin(url)
	{
		temp = window.open(url, "newwin", "toolbar=no, scrollbars=no, scrolling=yes ,resizable=yes, menubar=no,width=600,height=350");
	}

	//**gps flash window***************
	function gpsWin(url)
	{
		temp = window.open(url, "gpswin", "toolbar=no, scrollbars=no, scrolling=no ,resizable=yes, menubar=no,width=720,height=535");
	}

	//**gps flash window***************
	function autoCallWin(url)
	{
		temp = window.open(url, "autoCallWin", "toolbar=no, scrollbars=no, scrolling=no ,resizable=yes, menubar=no,width=850,height=570");
	}
	//**その他 flash window***************
	function printWin(url)
	{
		temp = window.open(url, "print", "toolbar=no, scrollbars=no, scrolling=no ,resizable=yes, menubar=no,width=810,height=610");
	}
//**********************************************************

//** CTI window ******************
function naviWindow(url,width,height)
	{
		popupWin = window.open(url, "newwin", "'toolbar=no, scrollbars=yes, scrolling=yes,resizable=yes, menubar=no,width="+width+",height="+height+",left=5,top=5'");
                popupWin.focus();
	}

function openWindow1(url,width,height)
	{
		popupWin = window.open(url, "newwin", "'toolbar=no, scrollbars=yes, scrolling=yes,resizable=yes, menubar=no,width="+width+",height="+height+",left=5,top=5'");
	}

function naviWindow2(url,width,height)
	{
		popupWin = window.open(url, "newWin1", "'toolbar=no, scrollbars=yes, scrolling=yes,resizable=yes, menubar=no,width="+width+",height="+height+",left=5,top=5'");
	}

//**********************************************************
//Flashバナー連続表示
var i = 1;
var timeID;

function slid_swf(){
	clearInterval(timeID);
//	if(i == 1){	slid_swf01(); }
//	else if(i == 2){ slid_swf02(); }
//	else if(i == 3){ slid_swf03(); }
//	else if(i == 4){ slid_swf04(); }
//	else if(i >= 5){
//		i = 1;
//		slid_swf();
//	}
	if (i == 1) { slid_swf05(); }
	else if (i == 2) { slid_swf03(); }
	else if (i == 3) { slid_swf01(); }
	else if (i >= 4) {
	  i = 1;
	  slid_swf();
	}
	
	// なぜか #～ が連続して入ってしまうので対策
	// 2007/09/10 adachi
	s = document.title;
	pt = s.indexOf("#", 0);
	if (pt > 0) {
		document.title = s.substr(0, pt);
	}
}

//eセールスマネージャー
function slid_swf01(){
	document.getElementById("header-banner").innerHTML = "<embed src='/cti/images/index/esm_navi.swf' width='739' height='75' align='middle' type='application/x-shockwave-flash' pluginspage='http://www.macromedia.com/go/getflashplayer' />";
	i++;
	timeID=setInterval("slid_swf()",14000);
}

//どこDEMO
function slid_swf02(){
	document.getElementById("header-banner").innerHTML = "<embed src='/cti/images/index/dokodemobana.swf' width='739' height='75' align='middle' type='application/x-shockwave-flash' pluginspage='http://www.macromedia.com/go/getflashplayer' />";
	i++;
	timeID=setInterval("slid_swf()",8000);
}

//接客ナビ
function slid_swf03(){
	document.getElementById("header-banner").innerHTML = "<embed src='/cti/images/index/new_navi.swf' width='739' height='75' align='middle' type='application/x-shockwave-flash' pluginspage='http://www.macromedia.com/go/getflashplayer' />";
	i++;
	timeID=setInterval("slid_swf()",18000);
}

//タイプH
function slid_swf04(){
	document.getElementById("header-banner").innerHTML = "<embed src='/cti/images/index/type_h.swf' width='739' height='75' align='middle' type='application/x-shockwave-flash' pluginspage='http://www.macromedia.com/go/getflashplayer' />";
	i++;
	timeID=setInterval("slid_swf()",21000);
}

//接着剤
function slid_swf05(){
	document.getElementById("header-banner").innerHTML = "<embed src='/cti/images/index/settyaku.swf' width='739' height='75' align='middle' type='application/x-shockwave-flash' pluginspage='http://www.macromedia.com/go/getflashplayer' />";
	i++;
	timeID=setInterval("slid_swf()",24000);
}

//Flashバナーランダム表示
function random_swf(){
	var flashurl = ["/cti/images/index/esm_navi.swf","/cti/images/index/dokodemobana.swf","/cti/images/index/semina.swf","/cti/images/index/new_navi.swf","/cti/images/index/type_h.swf"];
	flashurl = flashurl[Math.floor(Math.random() * flashurl.length)];
	document.write('<embed src="' + flashurl + '" width="739" height="75" align="middle" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />');
}

