$(document).ready( function () {
	if ($('.blank') != null) {
    $('.blank').click(function(){
        window.open(this.href, '_blank');
        return false;
    });
	}
});

jQuery.fn.rollover = function(settings){
  settings = jQuery.extend({
    suffix: "_o"
  }, settings);
  return this.each(function(){
    var default_img = $(this).attr("src");
    if (!default_img.match((settings.suffix))) {
      var point = default_img.lastIndexOf(".");
      var mouseover_img = default_img.slice(0, point) + settings.suffix + default_img.slice(point);
      var preload_img = new Image();
      preload_img.src = mouseover_img;
      $(this).hover(
        function(){
        	$(this).attr("src", mouseover_img);
        },
        function(){
        	if ($(this).attr("class") != "active") {
        		$(this).attr("src", default_img);
        	}
        	else {
        		$(this).attr("src", mouseover_img);
        	}
        }
      );
    };
  });
};

$(document).ready(function(){
  if ($(".overAction img") != null) {
	  $(".overAction img").rollover();
  }
});



function openWin(url,windowname,width,height) {
	var features="location=no, menubar=no, status=yes, scrollbars=yes, resizable=yes, toolbar=no";
	if (width) {
		if (window.screen.width > width)
			features+=", left="+(window.screen.width-width)/2;
		else width=window.screen.width;
		features+=", width="+width;
	}
	if (height) {
		if (window.screen.height > height)
			features+=", top="+(window.screen.height-height)/2;
		else height=window.screen.height;
		features+=", height="+height;
	}
	var win = window.open(url, "EnjoyJapan", features);
	win.focus();
}


function checkCreditNon() {
	document.getElementById("SHOP_CREDIT_VISA").checked = false;
	document.getElementById("SHOP_CREDIT_MASTER").checked = false;
	document.getElementById("SHOP_CREDIT_JCB").checked = false;
	document.getElementById("SHOP_CREDIT_AMEX").checked = false;
	document.getElementById("SHOP_CREDIT_DINERS").checked = false;
	document.getElementById("SHOP_CREDIT_GINDEN").checked = false;
	document.getElementById("SHOP_CREDIT_OTHER").checked = false;
}
function checkCredit() {
	document.getElementById("SHOP_CREDIT_NON").checked = false;
}

//	public logout submit
function logout() {
	document.frmLogout.submit();
}


