function openChat(chatID,session)
 {
  var chatURL='http://support.bridesunion.com/chat.php?chatID='+chatID+'&ses='+session;
  win1 = window.open(chatURL,'win1','location=0,status=0,width=380,height=440,resizable=0');
  win1.window.focus();
 }

// Отображение подменю Ladies
var sTShowTime=0;
var sTHideTime=0;
var shownSearchType=0;

function showSearchTypes()
 {
  clearInterval(sTHideTime);
  clearInterval(sTShowTime);
  if (shownSearchType<5)
   {
    shownSearchType=shownSearchType+1;
    var sTID='searchType'+shownSearchType;
    document.getElementById(sTID).style.display='block';
    sTShowTime = setInterval(showSearchTypes,300);
   }
 }

function hideSearchTypes()
 {
  clearInterval(sTShowTime);
  clearInterval(sTHideTime);
  if (shownSearchType>0)
   {
    var sTID='searchType'+shownSearchType;
    document.getElementById(sTID).style.display='none';
    shownSearchType=shownSearchType-1;
    sTShowTime = setInterval(hideSearchTypes,300);
   }
 }

// Отображение подменю Mail Services
var mTShowTime=0;
var mTHideTime=0;
var shownMailType=0;
var freeInbox=0;

function showMailTypes()
 {
  clearInterval(mTHideTime);
  clearInterval(mTShowTime);
  if (shownMailType<5)
   {
    shownMailType=shownMailType+1;
    var mTID='mailType'+shownMailType;
    document.getElementById(mTID).style.display='block';
    mTShowTime = setInterval(showMailTypes,300);
   }
 }

function hideMailTypes()
 {
  clearInterval(mTShowTime);
  clearInterval(mTHideTime);
  if (shownMailType>freeInbox)
   {
    var mTID='mailType'+shownMailType;
    document.getElementById(mTID).style.display='none';
    shownMailType=shownMailType-1;
    mTShowTime = setInterval(hideMailTypes,300);
   }
 }

// Отображение подменю Gifts & Flowers Services
var gTShowTime=0;
var gTHideTime=0;
var shownGiftType=0;

function showGiftTypes()
 {
  clearInterval(gTHideTime);
  clearInterval(gTShowTime);
  if (shownGiftType<1)
   {
    shownGiftType=shownGiftType+1;
    var gTID='giftType'+shownGiftType;
    document.getElementById(gTID).style.display='block';
    gTShowTime = setInterval(showGiftTypes,300);
   }
 }

function hideGiftTypes()
 {
  clearInterval(gTShowTime);
  clearInterval(gTHideTime);
  if (shownGiftType>0)
   {
    var gTID='giftType'+shownGiftType;
    document.getElementById(gTID).style.display='none';
    shownGiftType=shownGiftType-1;
    gTShowTime = setInterval(hideGiftTypes,300);
   }
 }

// Отображение подменю Mail Services
var cTShowTime=0;
var cTHideTime=0;
var shownCustType=0;
var freeCust=0;

function showCustTypes()
 {
  clearInterval(cTHideTime);
  clearInterval(cTShowTime);
  if (shownCustType<2)
   {
    shownCustType=shownCustType+1;
    var cTID='custType'+shownCustType;
    document.getElementById(cTID).style.display='block';
    cTShowTime = setInterval(showCustTypes,300);
   }
 }

function hideCustTypes()
 {
  clearInterval(cTShowTime);
  clearInterval(cTHideTime);
  if (shownCustType>freeCust)
   {
    var cTID='custType'+shownCustType;
    document.getElementById(cTID).style.display='none';
    shownCustType=shownCustType-1;
    cTShowTime = setInterval(hideCustTypes,300);
   }
 }

