/*Roll Over & Out
-------------------------------------------------------------------------------------------------------- */

var $cc = new Object();
$cc.Img = function($mouseover, $mouseout) {
  this.mouseover = $mouseover;
  this.mouseout = $mouseout;
}
$cc.Base = function() {
  var $undefined;
  return arguments[0] == $undefined ? '' : arguments[0];
}
$cc.Cache = function($obj) {
  for(var $p in $obj) {
    eval('this.'+$p+' = new Object()');
    for(var $p2 in eval('$obj.'+$p)) {
      eval('this.'+$p+'.'+$p2+' = new Image()');
      eval('this.'+$p+'.'+$p2+'.src = $cc.Cache.base+$obj.'+$p+'.'+$p2);
    }
  }
}
$cc.Load = function($id, $obj) {
  eval('$obj.'+$id+'.mouseout.src = $obj.'+$id+'.mouseover.src');
  eval('document.'+$id+'.src = $obj.'+$id+'.mouseover.src');
}
$cc.Mouseover = function($id, $obj) {
  eval('document.'+$id+'.src = $obj.'+$id+'.mouseover.src');
}
$cc.Mouseout = function($id, $obj) {
  eval('document.'+$id+'.src = $obj.'+$id+'.mouseout.src');
}
$cc.img = new Object();


/* Global Navi */
$cc.img.gn_home = new $cc.Img("common/img/frame/gn_home_over.gif", "common/img/frame/gn_home.gif");
$cc.img.gn_product = new $cc.Img("common/img/frame/gn_product_over.gif", "common/img/frame/gn_product.gif");
$cc.img.gn_casestudy = new $cc.Img("common/img/frame/gn_casestudy_over.gif", "common/img/frame/gn_casestudy.gif");
$cc.img.gn_event = new $cc.Img("common/img/frame/gn_event_over.gif", "common/img/frame/gn_event.gif");
$cc.img.gn_ir = new $cc.Img("common/img/frame/gn_ir_over.gif", "common/img/frame/gn_ir.gif");
$cc.img.gn_profile = new $cc.Img("common/img/frame/gn_profile_over.gif", "common/img/frame/gn_profile.gif");
$cc.img.gn_inquiry = new $cc.Img("common/img/frame/gn_inquiry_over.gif", "common/img/frame/gn_inquiry.gif");


/* Search Button */
$cc.img.btn_search = new $cc.Img("common/img/frame/btn_search_over.gif", "common/img/frame/btn_search.gif");


/* Index Product Button */
$cc.img.btn_product_category = new $cc.Img("img_index/btn_product_category_over.gif", "img_index/btn_product_category.gif");
$cc.img.btn_product_keyword = new $cc.Img("img_index/btn_product_keyword_over.gif", "img_index/btn_product_keyword.gif");
$cc.img.btn_product_list = new $cc.Img("img_index/btn_product_list_over.gif", "img_index/btn_product_list.gif");


/* Solution Index Button */
$cc.img.btn_index_all = new $cc.Img("product/img/btn_index_all_over.gif", "product/img/btn_index_all.gif");
$cc.img.btn_index_search_n = new $cc.Img("product/img/btn_index_search_n_over.gif", "product/img/btn_index_search_n.gif");
$cc.img.btn_index_search_j = new $cc.Img("product/img/btn_index_search_j_over.gif", "product/img/btn_index_search_j.gif");
$cc.img.btn_index_search_k = new $cc.Img("product/img/btn_index_search_k_over.gif", "product/img/btn_index_search_k.gif");
$cc.img.btn_index_search_w = new $cc.Img("product/img/btn_index_search_w_over.gif", "product/img/btn_index_search_w.gif");
$cc.img.btn_index_jirei = new $cc.Img("product/img/btn_index_jirei_over.gif", "product/img/btn_index_jirei.gif");
$cc.img.btn_index_catalog = new $cc.Img("product/img/btn_index_catalog_over.gif", "product/img/btn_index_catalog.gif");







/* Header Search Form Input Area Text
-------------------------------------------------------------------------------------------------------- */

// OBJがフォーカスを得たとき
function eraseTA(obj){
	if (obj.value == obj.defaultValue) obj.value = "";
}







/* Form Input Area Color
-------------------------------------------------------------------------------------------------------- */

// OBJがフォーカスを得たとき
function getf(OBJ) {
	OBJ.style.background="#FFF4E8";
	//OBJ.style.border="solid 1px #FF0000";
}
// OBJがフォーカスを失ったとき
function lostf(OBJ) {
	OBJ.style.background="#FFFFFF";
	//OBJ.style.border="solid 1px #DDDDDD";
}







/* Center Open Window
-------------------------------------------------------------------------------------------------------- */
function openWin(url,height,width,name) {
  var str="height=" + height + ",innerHeight=" + height;
  str+=",width=" + width + ",innerWidth=" + width;
  if (window.screen) {
    var ah=screen.availHeight-30;
    var aw=screen.availWidth-10;

    var xc=(aw-width)/2;
    var yc=(ah-height)/2;

    str+=",left="+xc+",screenX="+xc;
    str+=",top="+yc+",screenY="+yc;
  }
  str+=",scrollbars=no,status =yes,resizable =no";
  return window.open(url,name,str);
}

function openWin2(url,height,width,name) {
  var str="height=" + height + ",innerHeight=" + height;
  str+=",width=" + width + ",innerWidth=" + width;
  if (window.screen) {
    var ah=screen.availHeight-30;
    var aw=screen.availWidth-10;

    var xc=(aw-width)/2;
    var yc=(ah-height)/2;

    str+=",left="+xc+",screenX="+xc;
    str+=",top="+yc+",screenY="+yc;
  }
  str+=",scrollbars=yes,resizable =no";
  return window.open(url,name,str);
}





/* TopPage Systemkun Flash
-------------------------------------------------------------------------------------------------------- */
function systemFlash()
{
    document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width="25" height="25" id="img_campaign_system" align="middle">\n');
    document.write('<param name="allowScriptAccess" value="sameDomain">\n');
	document.write('<param name="movie" value="img_index/img_campaign_system.swf">\n');
    document.write('<param name="quality" value="high">\n');
	document.write('<param name="bgcolor" value="#FFFFFF">\n');
	document.write('<embed src="img_index/img_campaign_system.swf" quality="high" bgcolor="#FFFFFF" width="25" height="25" name="img_campaign_system" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer">\n');
	document.write('</object>\n');
	
}

//\n は改行コード