

var obj;

var cnt=0;

var objN;

var obj_ex;



/*ナビゲーション*/

function setNavi(m,ex){

 obj=m.toString();

 objN=m;

 obj_ex=ex;

 umehan(objN);

}



/************フロアマップ　リンク先設定************/

function toFloorMap(){

	if(objN=='top'){

		location.href='../honten/floorindex/index.html';

	}else if(objN=='ladies'){

		location.href='../floorindex/index.html';

	}else if(objN=='inter'){

		location.href='../floorindex/4f.html';

	}else if(objN=='mens'){

		location.href='../floorindex/index.html';

	}else if(objN=='acce'){

		location.href='../floorindex/index.html';

	}else if(objN=='baby'){

		location.href='../floorindex/8f.html';

	}else if(objN=='watch'){

		location.href='../floorindex/8f.html';

	}else if(objN=='kimono'){

		location.href='../floorindex/4f.html';

	}else if(objN=='living'){

		location.href='../floorindex/9f.html';

	}else if(objN=='grocery'){

		location.href='../floorindex/b1f.html';

	}else if(objN=='sport'){

		location.href='../ings/map_index.html';

	}else{

		location.href='../floorindex/index.html';

	}

}



/************ブログ　リンク先設定************/

function toBlog(){

	if(objN=='ladies'){

		location.href='http://umeda-hankyu.jp/LadysFashion/';

	}else if(objN=='inter'){

		location.href='http://umeda-hankyu.jp/WatchEyeware/';

	}else if(objN=='mens'){

		location.href='http://umeda-hankyu.jp/MensFashion/';

	}else if(objN=='acce'){

		location.href='http://umeda-hankyu.jp/FashionCosume/';

	}else if(objN=='baby'){

		location.href='http://umeda-hankyu.jp/BabyKidsGirls/';

	}else if(objN=='watch'){

		location.href='http://umeda-hankyu.jp/WatchEyeware/';

	}else if(objN=='kimono'){

		location.href='http://umeda-hankyu.jp/kimono/museum/';

	}else if(objN=='living'){

		location.href='http://umeda-hankyu.jp/Living/';

	}else if(objN=='grocery'){

		location.href='http://umeda-hankyu.jp/Food/';

	}else if(objN=='sport'){

		location.href='http://umeda-hankyu.jp/Ings/';

	}else{

		location.href='http://umeda-hankyu.jp/';

	}

}



/************ブランドインデックス　リンク先設定************/

function toBrand(){

	if(objN=='top'){

		location.href='../honten/floorindex/brandindex.html';

	}else if(objN=='ladies'){

		location.href='../floorindex/fashion.html';

	}else if(objN=='inter'){

		location.href='../floorindex/brandindex.html';

	}else if(objN=='mens'){

		location.href='../floorindex/mens.html';

	}else if(objN=='acce'){

		location.href='../floorindex/fashion.html';

	}else if(objN=='baby'){

		location.href='../floorindex/child.html';

	}else if(objN=='watch'){

		location.href='../floorindex/jewelry.html';

	}else if(objN=='kimono'){

		location.href='../floorindex/brandindex.html';

	}else if(objN=='living'){

		location.href='../floorindex/interior.html';

	}else if(objN=='grocery'){

		location.href='../floorindex/brandindex.html';

	}else if(objN=='sport'){

		location.href='../floorindex/sports.html';

	}else{

		location.href='../floorindex/brandindex.html';

	}

}



  d=document;

  tosWindow = '';

  

  function setFocus() {

    if (d.getElementById) d.getElementById('yschsp').focus();

  }



  if (d.getElementById) {

     oTog=d.getElementById('yschtg');

     if (oTog) {

        aLnx=oTog.getElementsByTagName('a');

        for (var i=0;i<aLnx.length;i++) {

            aLnx[i].target = "_blank";

            aLnx[i].onclick=passP; 

        }

     }

  }



  function passP(e) {

    e=(e)?e:((window.event)?window.event:"");

    if (e) {

      var o=(e.target)?((e.target.nodeType==3)?e.target.parentNode:e.target):e.srcElement;

      if (o.tagName=='SPAN'||o.tagName=='EM'||o.tagName=='STRONG') o=o.parentNode;  // Local

      var qs="p";

      if (o.href.indexOf("yahoo") == -1) {

         qs="query";  

      }

      var href = o.href; 

      if (window.RegExp&&window.encodeURIComponent) {

        var sP=encodeURIComponent(d.getElementById('yschsp').value);

        var re= new RegExp("(\\?|&)" + qs + "\\=(?:.*?)(&|$)", "i");

        if (href.indexOf(qs + "=")!=-1) {

          href=href.replace(re,"$1" + qs + "="+sP+"$2");

        }

        else {

          href+="&" + qs + "="+sP;

        }

      }

      if (readCookie('ytos') == null) {

        popYTos(href);

        return false;

      }

      o.href = href;

    }

    return true;

  }

function popYTos(href) {

     var ref = href;

     if (window.encodeURIComponent) {

        ref = encodeURIComponent(ref);

     }

     var tosUrl = "tos?yref=" + ref;    

  	 if (!tosWindow.closed && tosWindow.location) {

		tosWindow.close();

	 }

	 tosWindow=window.open(tosUrl,'','height=360,width=325,resizable=yes,scrollbars=yes');

	 if (!tosWindow.opener) tosWindow.opener = self;

  }

function readCookie(name) {

	var nameStr = name + "=";

	var cookieArray = document.cookie.split(';');

	for(var i = 0; i < cookieArray.length;i++) {

	   var cookie = cookieArray[i];

	   while (cookie.charAt(0) == ' ') cookie = cookie.substring(1,cookie.length);

	   if (cookie.indexOf(nameStr) == 0) {

          return cookie.substring(nameStr.length,cookie.length);

       }

	}

	return null;

  }

    function addReferrer(e) {

     if (d.getElementById && window.encodeURIComponent) {

       wref=d.getElementById('wref');

       q=d.getElementById('yschsp');

       url = "/search/sres.php;jsessionid=fiuoc7ur2nku"+"?query="+encodeURIComponent(q.value);

       wref.value = url;

     } 

  }

/*-------------------------営業時間---------------------------------------------------------*/ 

function hours(){

	if(objN=='top'){

		var hoursWin = window.open("information/index.html", "", "width=440, height=520, left=100, top=100, scrollbars=yes");

	}else{

		var hoursWin = window.open("../information/index.html", "", "width=440, height=520, left=100, top=100, scrollbars=yes");

	}

}



/*----------------別ウインドオープン用（gaiyoフォルダ内に使用中のため削除不可）---------------------------------*/



function MM_openBrWindow(theURL,winName,features) { //v2.0

  window.open(theURL,winName,features);

}



