//----------------------------------------//
//画像切り替え//
//----------------------------------------//

function swapImage(btnObj,sURL)
{
btnObj.src = sURL;
}

function swapImgRestore() { //v3.0
  var i,x,a=document.sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function preloadImages() { //v3.0
 var d=document; if(d.images){ if(!d.p) d.p=new Array();
   var i,j=d.p.length,a=preloadImages.arguments; for(i=0; i<a.length; i++)
   if (a[i].indexOf("#")!=0){ d.p[j]=new Image; d.p[j++].src=a[i];}}
}



//----------------------------------------//
//別Windowを開く//
//----------------------------------------//
function openBrWindow(theURL,winName,features) { 
myWin=window.open(theURL,winName,features);
myWin.focus();
}


//----------------------------------------//
//別Windowを開く(SANYO DESIGN専用)//
//----------------------------------------//
function openDesignWindow(theURL) {
	openedWindow=window.open(theURL,'SANYO_DESIGN','scrollbars=no,resizable=no,width=980,height=640');
	x = (screen.width - 980)/2;
	y = (screen.height - 640)/2;
	openedWindow.moveTo(x, y);
	openedWindow.focus();
}



//----------------------------------------//
//検索フォームのvalueクリア//
//----------------------------------------//
function setvalue(id,sw){
	if (sw == 'on'){
		if (id.value.indexOf('サイト内検索') > -1) {
			id.value='';
		}
	} else {
		if (id.value == '') {
			id.value = 'サイト内検索';
		}
	}
}

