var popCustomerService = function()
{
  if (cls.tisie())
  {
    var twidth = 644;
    var theight = 544;
    var tURL = 'http://bizapp.qq.com/webc.htm?new=0&sid=800035240&o=www.64783333.com&q=7';
    var tleftsize = (screen.width)? (screen.width - twidth)/2: 0;
    var ttopsize = (screen.height)? (screen.height - theight)/2: 0;
    var tnewWindow = window.open(tURL, '_blank', 'width=' + twidth + ',height=' + theight + ',left=' + tleftsize + ',top=' + ttopsize + ',toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no');
  }
  else alert('请通过IE浏览器来使用在线客服系统');
};

var popChatRoom = function()
{
  var twidth = 1020;
  var theight = 700;
  var tURL = 'beachhoney/chatroom';
  var tleftsize = (screen.width)? (screen.width - twidth)/2: 0;
  var ttopsize = (screen.height)? (screen.height - theight)/2: 0;
  var tnewWindow = window.open(tURL, '_blank', 'width=' + twidth + ',height=' + theight + ',left=' + tleftsize + ',top=' + ttopsize + ',toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no');
};

var popGroupBuy = function(_lang)
{
  var tlang = _lang;
  if (!tlang) tlang = 'cn';
  var twidth = 800;
  var theight = 560;
  var tURL = 'htmldata/groupbuy_' + tlang + '.htm';
  var tleftsize = (screen.width)? (screen.width - twidth)/2: 0;
  var ttopsize = (screen.height)? (screen.height - theight)/2: 0;
  var tnewWindow = window.open(tURL, '_blank', 'width=' + twidth + ',height=' + theight + ',left=' + tleftsize + ',top=' + ttopsize + ',toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no');
};

var popContactUs = function(_lang)
{
  var tlang = _lang;
  if (!tlang) tlang = 'cn';
  var twidth = 800;
  var theight = 560;
  var tURL = 'htmldata/contactus_' + tlang + '.htm';
  var tleftsize = (screen.width)? (screen.width - twidth)/2: 0;
  var ttopsize = (screen.height)? (screen.height - theight)/2: 0;
  var tnewWindow = window.open(tURL, '_blank', 'width=' + twidth + ',height=' + theight + ',left=' + tleftsize + ',top=' + ttopsize + ',toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no');
};

var popInstruction = function(_lang)
{
  var tlang = _lang;
  if (!tlang) tlang = 'cn';
  var twidth = 820;
  var theight = 650;
  var tURL = 'htmldata/instruction_' + tlang + '.htm';
  var tleftsize = (screen.width)? (screen.width - twidth)/2: 0;
  var ttopsize = (screen.height)? (screen.height - theight)/2: 0;
  var tnewWindow = window.open(tURL, '_blank', 'width=' + twidth + ',height=' + theight + ',left=' + tleftsize + ',top=' + ttopsize + ',toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no');
};

var popTicketPrice = function(_lang)
{
  var tlang = _lang;
  if (!tlang) tlang = 'cn';
  var twidth = 900;
  var theight = 390;
  var tURL = 'htmldata/ticketprice_' + tlang + '.htm';
  var tleftsize = (screen.width)? (screen.width - twidth)/2: 0;
  var ttopsize = (screen.height)? (screen.height - theight)/2: 0;
  var tnewWindow = window.open(tURL, '_blank', 'width=' + twidth + ',height=' + theight + ',left=' + tleftsize + ',top=' + ttopsize + ',toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no');
};

var popHoursOfOpening = function(_lang)
{
  var tlang = _lang;
  var twidth = 870;
  var theight = 400;
  if (!tlang) tlang = 'cn';
  if (tlang == 'en')
  {
    var twidth = 870;
    var theight = 480;
  };
  var tURL = 'htmldata/hoursofopening_' + tlang + '.htm';
  var tleftsize = (screen.width)? (screen.width - twidth)/2: 0;
  var ttopsize = (screen.height)? (screen.height - theight)/2: 0;
  var tnewWindow = window.open(tURL, '_blank', 'width=' + twidth + ',height=' + theight + ',left=' + tleftsize + ',top=' + ttopsize + ',toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no');
};

var popStatement20110816 = function()
{
  var tHTML = '<div class="jimgPreview"><img src="common/images/img.20110816.jpg" class="hidden" onload="this.className = \'hand\'; cls.mask.tSetStyle();" border="0" onclick="cls.mask.tClose();" style="cursor:pointer;border:#999999 5px solid" /></div>';
  cls.mask.tShow(tHTML);
  cls.mask.tSetStyle();
};

alipay = {
  tShow: function(_strType, _strURL)
  {
    var tstrType = _strType;
    var tstrURL = _strURL;
    if (tstrURL)
    {
      var tHTML = '<div class="jimgPreview">';
      tHTML += '<map name="alipayFPMap0">';
      tHTML += '  <area href="' + tstrURL + '" target="_blank" onclick="alipay.tClose();" shape="rect" coords="122, 120, 211, 146" />';
      tHTML += '  <area href="javascript: alipay.tClose();" shape="rect" coords="231, 120, 320, 146" />';
      tHTML += '</map>';
      tHTML += '<img src="common/images/img.11.' + tstrType + '.jpg" class="hidden" onload="this.className = \'hand\'; cls.mask.tSetStyle();" usemap="#alipayFPMap0" border="0" /></div>';
      cls.mask.tShow(tHTML);
      cls.mask.tSetStyle();
    };
  },
  tClose: function()
  {
    cls.mask.tClose();
  }
};
