/************************************************************************************************************
Ajax dynamic list
Copyright (C) September 2005  DTHMLGoodies.com, Alf Magne Kalleland

This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2.1 of the License, or (at your option) any later version.

This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
Lesser General Public License for more details.

You should have received a copy of the GNU Lesser General Public
License along with this library; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA

Dhtmlgoodies.com., hereby disclaims all copyright interest in this script
written by Alf Magne Kalleland.

Alf Magne Kalleland, 2006
Owner of DHTMLgoodies.com
	
************************************************************************************************************/	
function showToolTip(e,text){
	if(document.all)e = event;
	
	var obj = document.getElementById('bubble_tooltip');
	obj.innerHTML = text;
	obj.style.display = 'block';
	var st = Math.max(document.body.scrollTop,document.documentElement.scrollTop);
	if(navigator.userAgent.toLowerCase().indexOf('safari')>=0)st=0; 
	var leftPos = e.clientX - 100;
	if(leftPos<0)leftPos = 0;
	obj.style.left = leftPos + 'px';
	obj.style.top = e.clientY - obj.offsetHeight -1 + st + 'px';
}	

function hideToolTip()
{
	timeOuts();
	//setTimeout("timeOuts()",1000);
	
}

function timeOuts(){
	document.getElementById('bubble_tooltip').style.display = 'none'
}


function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_showHideLayers() { //v6.0
  var i,p,v,obj,args=MM_showHideLayers.arguments;
  for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) { v=args[i+2];
    if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v=='hide')?'hidden':v; }
    obj.visibility=v; }
}

function browserChk(){
  if(jQuery.browser.msie && parseFloat(jQuery.browser.version) < 6){
    window.open('/member/browser_verup.html', null);
    return false;
  }else if(jQuery.browser.safari && parseFloat(jQuery.browser.version) < 528){
    window.open('/member/browser_verup.html', null);
    return false;
  }else if(jQuery.browser.mozilla && parseFloat(jQuery.browser.version) < 1.9){
    window.open('/member/browser_verup.html', null);
    return false;
  }else{
    //▼2010/06/30 #注文フロー改修2010年6月 新デザイン対応(econe fuse)(ここではメッセージを表示しない)
    //alert('ご注文の操作では\nブラウザの[戻る][進む]ボタンは\nお使いにならないようにお願いいたします。'); 
    //▲2010/06/30 #注文フロー改修2010年6月 新デザイン対応(econe fuse)(ここではメッセージを表示しない)
    self.location.href='/member/order.html';
    return false;
  }
}

function browserChk_autoLogin(){
  if(jQuery.browser.msie && parseFloat(jQuery.browser.version) < 6){
    window.open('/member/browser_verup.html', null);
    return false;
  }else if(jQuery.browser.safari && parseFloat(jQuery.browser.version) < 528){
    window.open('/member/browser_verup.html', null);
    return false;
  }else if(jQuery.browser.mozilla && parseFloat(jQuery.browser.version) < 1.9){
    window.open('/member/browser_verup.html', null);
    return false;
  }else{
    //▼2010/06/30 #注文フロー改修2010年6月 新デザイン対応(econe fuse)(ここではメッセージを表示しない)
    //alert('ご注文の操作では\nブラウザの[戻る][進む]ボタンは\nお使いにならないようにお願いいたします。'); 
    //▲2010/06/30 #注文フロー改修2010年6月 新デザイン対応(econe fuse)(ここではメッセージを表示しない)
    self.location.href='/member/autoLogin_approval.html?al=1';
    return false;
  }
}




