function SetTitle()
{
   document.getElementById("tdTitle").innerHTML = "&nbsp;&nbsp;Welcome to DocEdge.com";
}

// Modified this function to get resized window of live support in Opera - By Manasa
function LiveSupport()
{
   day = new Date();
   id = day.getTime();
   nWidth = 500;
   nHeight = 387;
   nLeft = (screen.width - nWidth) / 2;
   nTop = (screen.height - nHeight) / 3;

   //strSettings = "width = " + nWidth + ", height = " + nHeight + ", left = " + nLeft + ", top = " + nTop + ", location = 0, scrollbars = 0, resizable = 0, menubar = 0, status = 0, toolbar = 0, location = 0, directories = 0";

   //wndLiveSupport = window.open("live_support/live_support_customer/live_support_request.asp", "LIVECHAT", strSettings);
   wndLiveSupport = eval("page" + id + " = window.open('./live_support/live_support_customer/live_support_request.asp', 'LIVECHAT', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=1,width=500,height=387,left = ' + ((screen.width - nWidth)/2) + ',top = ' + ((screen.height - nHeight) / 3));");
   wndLiveSupport.focus();
}

function Feedback()
{
   nWidth = 500;
   nHeight = 387;
   nLeft = (screen.width - nWidth) / 2;
   nTop = (screen.height - nHeight) / 3;

   strSettings = "width = " + nWidth + ", height = " + nHeight + ", left = " + nLeft + ", top = " + nTop + ", location = 0, scrollbars = 0, resizable = 0, menubar = 0, status = 0, toolbar = 0, location = 0, directories = 0";

   wndFeedback = window.open("feedback.asp", "FEEDBACK", strSettings);
   wndFeedback.focus();
}

nStaticButton = 0;

//out1 = new Image();
//out1.src = "images/doc_button.jpg";
//out2 = new Image();
//out2.src = "images/my_account_button.jpg";
//out3 = new Image();
//out3.src = "images/help_button.jpg";
//out4 = new Image();
//out4.src = "images/product_info_button.jpg";
//out5 = new Image();
//out5.src = "images/geo_coverage_button.jpg";
//out6 = new Image();
//out6.src = "images/abstractor_button.jpg";
//out7 = new Image();
//out7.src = "images/batch_button.jpg";

//over1 = new Image();
//over1.src = "images/doc_button_over.jpg";
//over2 = new Image();
//over2.src = "images/my_account_button_over.jpg";
//over3 = new Image();
//over3.src = "images/help_button_over.jpg";
//over4 = new Image();
//over4.src = "images/product_info_button_over.jpg";
//over5 = new Image();
//over5.src = "images/geo_coverage_button_over.jpg";
//over6 = new Image();
//over6.src = "images/abstractor_button_over.jpg";
//over7 = new Image();
//over7.src = "images/batch_button_over.jpg";

function outButton(buttonID) 
{
   if (buttonID == 1 && nStaticButton != 1) 
      document.doc_button.src = out1.src;	
   else if (buttonID == 2 && nStaticButton != 2) 
      document.my_account_button.src = out2.src;
   else if (buttonID == 3 && nStaticButton != 3) 
      document.help_button.src = out3.src;
   else if (buttonID == 4 && nStaticButton != 4) 
      document.product_info_button.src = out4.src;
   else if (buttonID == 5 && nStaticButton != 5)
      document.geo_coverage_button.src = out5.src;
   else if (buttonID == 6 && nStaticButton != 6)
      document.abstractor_button.src = out6.src;
   else if (buttonID == 7 && nStaticButton != 7)
      document.batch_button.src = out7.src;
}

function overButton(buttonID) 
{
   if (buttonID == 1) 
      document.doc_button.src = over1.src;
   else if (buttonID == 2) 
      document.my_account_button.src = over2.src;	
   else if (buttonID == 3) 
      document.help_button.src = over3.src;	
   else if (buttonID == 4) 
      document.product_info_button.src = over4.src;	
   else if (buttonID == 5) 
      document.geo_coverage_button.src = over5.src;
   else if (buttonID == 6) 
      document.abstractor_button.src = over6.src;
   else if (buttonID == 7) 
      document.batch_button.src = over7.src;
}

function SetStaticNavButton(nButtonID)
{
   nStaticButton = nButtonID;

   if (nStaticButton == 1) 
      document.doc_button.src = over1.src;
   else if (nStaticButton == 2) 
      document.my_account_button.src = over2.src;	
   else if (nStaticButton == 3) 
      document.help_button.src = over3.src;	
   else if (nStaticButton == 4) 
      document.product_info_button.src = over4.src;	
   else if (nStaticButton == 5) 
      document.geo_coverage_button.src = over5.src;
   else if (nStaticButton == 6) 
      document.abstractor_button.src = over6.src;
   else if (nStaticButton == 7) 
      document.batch_button.src = over7.src;
}

function DisplayTrusecure()
{
   document.getElementById("trusecure").style.display = "inline";
}

function DisplayDemo()
{
   document.getElementById("demo").style.display = "inline";
}

function BannerPopup(nWidth, nHeight, strLink)
{
   nLeft = (screen.width - nWidth) / 2;
   nTop = (screen.height - nHeight) / 3;

   strSettings = "width = " + nWidth + ", height = " + nHeight + ", left = " + nLeft + ", top = " + nTop + ", location = 0, scrollbars = 0, resizable = 0, menubar = 0, status = 0, toolbar = 0, location = 0, directories = 0, dependent = 0 ";
   wndLiveSupport = window.open(strLink, "", strSettings);
   childWindowHandles[childWindowHandles.length] = wndLiveSupport;
   wndLiveSupport.focus();
}
