/*** HeaderNaviRollOver ***/

function BtnOver(objName){
	var imgUrl = '/common/img/' + objName + '03.gif';
	document.images[objName].src = imgUrl;
}

function BtnOut(objName){
	var imgUrl = '/common/img/' + objName + '01.gif';
	document.images[objName].src = imgUrl;
}

function BtnChange(objName,objUrlName){
	document.images[objName].src = objUrlName;
}


/*** popup ***/
// popup Ver.0.9
// 2002.04.19
function popupwin(tgturl, winname, winwidth, winheight, winscroll, winresize, xpos, ypos) {
	if (xpos == 'center') {
		xpos = (screen.width - winwidth) / 2;
	}
	if (ypos =='center') {
		ypos = (screen.height - winheight) / 2;
	}
	winoption = "left="+xpos+",top="+ypos+",width="+winwidth+",height="+winheight+",scrollbars="+winscroll+",resizable="+winresize;
	subwin = window.open(tgturl, winname, winoption);
}


/*** flash_base ***/
function writeFlash( swf , width , height )
{
  var htm = ""
  htm+="<object classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000'"
  htm+="        codebase='http://download.macromedia.com/pub/shockwave/"
                    htm+="cabs/flash/swflash.cab'"
  htm+="        width   = " + width
  htm+="        height  = " + height + ">"
  htm+="<param  name    = movie value=" + swf + ">"
  htm+="<param  name    = quality value=high>"
  htm+="<param  name    = 'wmode' value='transparent'>"
  htm+="<embed  src     = " + swf + " "
  htm+="        quality = high  "
  htm+="        width   = "+ width + " "
  htm+="        height  = " + height + " "
  htm+="        wmode = 'transparent'  "
  htm+="        type    = 'application/x-shockwave-flash' "
  htm+="        pluginspage='http://www.macromedia.com/go/getflashplayer'>"
  htm+="</embed>"
  htm+="</object>"
  
  document.write(htm)
}