<!--
var sales = 2;
var ChatURLSales;

var support = 3;
var ChatURLSupport;

var billing = 4;
var ChatURLBilling;

//true shows dropdowns, false does not.
var blnDropDown = false;

//These functions are used sitewide to show and hide images
function ShowDiv(DivName)
{
    if (DivName == 'LIVEHELP') {
        ShowLiveHelpDiv(sales,364,193)
    } else if (DivName == 'LIVEHELP_old') {
        ShowLiveHelpDiv(sales,364,193)
    } else {
	    if	(document.layers) {
		    document.layers[DivName].visibility="visible"; 
	    } else if (document.getElementById) {
		    document.getElementById(DivName).style.display="";
		    document.getElementById(DivName).style.visibility="visible";
	    } else if (document.all) {
		    document.all(DivName).style.display="";
		    document.all(DivName).style.visibility="visible";	
	    }
	}
}
	
function HideDiv(DivName) 
{
     if (DivName == 'LIVEHELP') { HideDiv('SupportSales'); HideDiv('SupportBilling'); }
    
     if	(document.layers)         { document.layers[DivName].visibility="hidden"; } 
else if (document.getElementById) { document.getElementById(DivName).style.visibility="hidden"; } 
else if (document.all)            { document.all(DivName).style.visibility="hidden"; }
}

//type should be 'sales', 'billing' or 'support'
//x is a percentage from the left side
//y is a pixel amount from the top
function ShowLiveHelpDiv(type,x,y)
{
    ChatURLSales   = 'https://livechat1.brinkster.com/SightMaxAgentInterface/PreChatSurvey.aspx?accountID=1&siteID=1&queueID=2'
    ChatURLSupport = 'https://livechat1.brinkster.com/SightMaxAgentInterface/PreChatSurvey.aspx?accountID=1&siteID=1&queueID=3'
    ChatURLBilling = 'https://livechat1.brinkster.com/SightMaxAgentInterface/PreChatSurvey.aspx?accountID=1&siteID=1&queueID=4'

	document.getElementById('LIVEHELP').style.left = x + "%";
	document.getElementById('LIVEHELP').style.top = y + "px";
	document.getElementById('LIVEHELP').style.visibility='visible';

	var arewegood=0;

	if (type == 2) { //sales
	    document.getElementById('SupportSales').style.visibility='visible';
	    document.getElementById('SupportSales').style.display='block'; 
	    arewegood=1; }
	
	if (type == 3) { //support
	    document.getElementById('SupportSales').style.visibility='visible';
	    document.getElementById('SupportSales').style.display='block'; 
	    arewegood=1; }

	if (type == 4) { //billing
	    document.getElementById('SupportBilling').style.visibility='visible';
	    document.getElementById('SupportBilling').style.display='block'; 
	    arewegood=1; }

	if (arewegood==0) {
	    document.getElementById('SupportSales').style.visibility='visible';
	    document.getElementById('SupportSales').style.display='block'; }

}

//These functions are used for the mouseover and drop down nav in the main nav
function HideDiv2(DivName, Div2Name, ImageName) {
    if (blnDropDown)
	document.getElementById(DivName).style.display='none';
}
function ShowDiv2(DivName, Div2Name, ImageName) {
    if (blnDropDown)
	document.getElementById(DivName).style.display='block';
}
   
    /*if (navigator.userAgent.indexOf("Opera") > -1) { 
        var windowWidth = window.innerWidth;
        if (windowWidth < 950) {
            document.all('txt').value = windowWidth;
            document.all('SharedDiv').style.left = "578px";
        }
        
        if (windowWidth > 950) {
            document.all('SharedDiv').style.left    = "496px";
            document.all('DedicatedDiv').style.left = "628px";
            document.all('SupportDiv').style.left   = "791px";
        }
    } */

//This function is used for the Jump Menu on some pages in www/hosting
function MM_jumpMenu(tgt, url, i) { location.href=url.value; }

//This function is used for the domain search on the main home page
function SubmitDomain() {
		var domain;
		var extension;

		var theform;
		if (window.navigator.appName.toLowerCase().indexOf("netscape") > -1) {
			theform = document.forms["DomainForm"];
			domain = theform.DomainSearch.value;
			extension = theform.DomainExtension.options[theform.DomainExtension.selectedIndex].text;
		}
		else {
			theform = document.DomainForm;
			domain = theform.DomainSearch.value;
			extension = theform.DomainExtension.options[theform.DomainExtension.selectedIndex].text;
		}

		if (domain!='Domain Name Search')
			theform.InitialDomainSearch.value = domain + extension;

		theform.submit();
}

//This function is used for the support search on the main home page
function SubmitSupportSearch() {
		var support;
		var theform;

		if (window.navigator.appName.toLowerCase().indexOf("netscape") > -1) {
			theform = document.forms["SupportForm"];
			support = theform.sSearch.value;
		}
		else {
			theform = document.SupportForm;
			support = theform.sSearch.value;
		}

		if (support!=' Search Support')
		if (support!='')
			theform.submit();
}

//These functions are used for Image Swaps on various pages, mainly the top control.
function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}
function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

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_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}

//-->