
	loaded = 0; winx = screen.width/2 - 150; winy = screen.height/2 - 150;
	
	ua   = navigator.userAgent.toLowerCase();
	ie6  = (ua.indexOf("msie") && document.all && ua.indexOf("netscape") == -1);
	nnf  = (ua.indexOf("netscape")  != -1 && ua.indexOf("gecko") != -1);
	nni  = (ua.indexOf("netscape")  != -1 && ua.indexOf("msie") != -1);
	nn6  = (ua.indexOf("netscape")  != -1);
	gek  = (ua.indexOf("gecko")     != -1);
	ff1  = (ua.indexOf("firefox")   != -1);
	opr  = (ua.indexOf("opera")     != -1);
	mac  = (ua.indexOf("mac")       != -1);
	web  = (ua.indexOf("webtv")     != -1);
	saf  = (ua.indexOf("safari")    != -1);
	kon  = (ua.indexOf("konqueror") != -1);
	nn4  = (document.layers);
	
	mainDomain = '.linuxhostingplans.com';
	nDays      = 60;
	
	function checkWI(f){
		dom = f.dn.value;
		if(dom == ""){
			alert("Enter a domain name you wish to search for");
			f.dn.focus();
			return false;
		}
		if(dom.search(/\./) >= 0){
			alert("Please remove any dots or domain suffixes from your entry");
			f.dn.focus();
			return false;
		}
	}
	
	function printCookies(w){
		cName = "";
		pCOOKIES = new Array();
		pCOOKIES = document.cookie.split('; ');
		for(bb = 0; bb < pCOOKIES.length; bb++){
			NmeVal  = new Array();
			NmeVal  = pCOOKIES[bb].split('=');
			if(NmeVal[0] == w){
				cName = NmeVal[1];
			}
		}
		return cName;
	}
	
	function ged(noDays){
		today = new Date();
		expr  = new Date(today.getTime() + noDays*24*60*60*1000);
		return expr.toGMTString();
	}
	
	popup1 = "";
	function hosting_guarantee(){
	    if(popup1){
	        if(popup1.closed){
	            popup1 = window.open("/hosting_guarantee.html", "popup1", "top=" + ((screen.availHeight/2) - (500 / 2)) + ",left=" + ((screen.availWidth/2) - (500 / 2)) + ",width=500,height=500,resizable=1,toolbar=0,scrollbars=0,location=0,status=0,menubar=0")
	        } else { 
	            popup1.focus();
	        }
	    } else {
	        popup1 = window.open("/hosting_guarantee.html", "popup1", "top=" + ((screen.availHeight/2) - (500 / 2)) + ",left=" + ((screen.availWidth/2) - (500 / 2)) + ",width=500,height=500,resizable=1,toolbar=0,scrollbars=0,location=0,status=0,menubar=0")
	    }
	}
	
	function err(mess){
		if(!loaded){ mess = 'Page has not completely loaded, you may need to reload the page'; }
		alert(mess); 
	}
	
	// 1 = up
	// 2 = left
	scrollerDirection = 1;
	
	// width and height of visible area
	stageWidth = 220;
	stageHeight = 150;
	
	// width and height of entire content area
	backStageWidth  = 210;
	backStageHeight = 476;
	
	stageBorderWidth = 0;
	stageBorderColor = "black";
	stageBorderStyle = "solid";
	
	// speed, higher this number is, faster it scrolls
	scrollSpeed = 1;
	
	sTimer = "";
	pixelPos = 0;
	
	function sDown(){
		pixelPos += scrollSpeed;
		
		if(scrollerDirection == 1){
			document.getElementById("stageDiv").scrollTop = pixelPos;
		} else if(scrollerDirection == 2){
			document.getElementById("stageDiv").scrollLeft = pixelPos;
		}
		
		if(scrollerDirection == 1){
			if(document.getElementById("stageDiv").scrollTop >= backStageHeight){
				pixelPos = 0; // sStop(); return;
			}
		} else if(scrollerDirection == 2){
			if(document.getElementById("stageDiv").scrollLeft >= backStageWidth){
				pixelPos = 0; // sStop(); return;
			}
		}
		
		//document._f.y.value = pixelPos;
		
		sTimer = setTimeout("sDown()",30);
	}
	
	function sStop(){
		sTimer = clearTimeout(sTimer);
	}
	
	function sInit(){
		document.getElementById("stageDiv").style.width  = stageWidth + "px";
		document.getElementById("stageDiv").style.height = stageHeight + "px";
		
		document.getElementById("backStageDiv").width  = backStageWidth + "px";
		document.getElementById("backStageDiv").height = backStageHeight + "px";
		
		document.getElementById("stageDiv").style.border  = stageBorderWidth + "px " + stageBorderColor + " " + stageBorderStyle;
		
		if(scrollerDirection == 2){
			document.getElementById("backStageDiv").align = "left";
		}
		
		document.getElementById("stageDiv").innerHTML = document.getElementById("stageDiv").innerHTML + document.getElementById("stageDiv").innerHTML;
		
		//alert(document.getElementById("backStageDiv").height)
	}
	
	newWin = "";
	newTrg = "";
	winx = (screen.width - 420) / 2 + 210;
	winy = (screen.height - 330) / 2 - 165;
	function infoWin(url){
		if(newWin){
			if(newWin.closed){
				newWin = window.open(url, newTrg, 'location=0, statusbar=0, menubar=0, resizable=1, scrollbars=1, top=' + winy + ',left=' + winx + ', width=420, height=330');
			} else {
				newWin.location = url;
				newWin.focus();
			}
		} else {
			newWin = window.open(url, newTrg, 'location=0, statusbar=0, menubar=0, resizable=1, scrollbars=1, top=' + winy + ',left=' + winx + ', width=420, height=330');
		}
	}
	
	function showTT(t, event, keepIt){
		if(!loaded){ return; }
		
		if(document.getElementById("tt")){
			theTTDoc = document;
			theTTDiv = theTTDoc.getElementById("tt");
		}
		
		if(self.parent.document.getElementById("tt")){
			theTTDoc = self.parent.document;
			theTTDiv = theTTDoc.getElementById("tt");
		}
		
		yPlus = 0;
		xPlus = 0;
		if(self.name){
			ttScT   = parseInt(document.body.scrollTop, 10);
			
			yPlus = (getPageOffsetTop(self.parent.document.getElementById(self.name))) - ttScT;
			xPlus = (getPageOffsetLeft(self.parent.document.getElementById(self.name)));
		}
		
		shiftLeft = 0;
		
		if(theTTDiv){
			if(event){
				if(ie6){
					ttX = getPageOffsetLeft(event.srcElement) + xPlus - 20; 
					ttY = getPageOffsetTop(event.srcElement) + yPlus + event.srcElement.offsetHeight + 1;
				} else {
					ttX = getPageOffsetLeft(event.target) + xPlus - 20; 
					ttY = getPageOffsetTop(event.target) + yPlus + event.target.offsetHeight + 1;
				}
				if(ttX > theTTDoc.body.clientWidth - 350){
					shiftLeft = theTTDoc.body.clientWidth - ttX;
					ttX = theTTDoc.body.clientWidth - shiftLeft - 280;
				}
			} else {
				keepIt = 1;
				ttX = theTTDoc.body.clientWidth / 2 - 175; 
				ttY = theTTDoc.body.clientHeight / 2 + parseInt(document.body.scrollTop, 10);
			}
			
			theTTDiv.style.top     = ttY;
			theTTDiv.style.left    = ttX;
			theTTDiv.style.display = "";
			
			theContent  = '';
			
			theContent += '<table cellpadding="0" cellspacing="0" width="350"><tr><td><img src="/images/tt_1.gif" width="16" height="32" alt=""></td>';
			
			if(shiftLeft){
				theContent += '<td background="/images/tt_3.gif" width="100%"><img src="/images/tt_3.gif" width="1" height="32" alt=""></td><td><img src="/images/tt_2.gif" width="32" height="32" alt=""></td>';
			} else {
				theContent += '<td><img src="/images/tt_2.gif" width="32" height="32" alt=""></td><td background="/images/tt_3.gif" width="100%"><img src="/images/tt_3.gif" width="1" height="32" alt=""></td>';
			}
			
			theContent += '<td><img src="/images/tt_4.gif" width="20" height="32" alt=""></td></tr><tr><td background="/images/tt_5.gif"><img src="/images/tt_5.gif" width="16" height="1" alt=""></td><td colspan="2" bgcolor="#ffffff"><table cellpadding="0" cellspacing="0">';
			
			if(keepIt){
				theContent += '<tr><td><img src="/images/ico_info_16.gif" width="16" height="16" align="absmiddle" border="0"></td><td nowrap><b>&nbsp; Helpful Info &nbsp;</b></td><td width="100%"><a href="javascript:hideTT();"><img src="/images/off.gif" width="16" height="16" align="absmiddle" border="0"></a></td></tr><tr><td colspan="3"><br></td></tr><tr><td colspan="3"><div id="ttContent" style="display: block;">';
			} else {
				theContent += '<tr><td><img src="/images/ico_info_16.gif" width="16" height="16" align="absmiddle" border="0"></td><td width="100%"><b>&nbsp; Helpful Info</b></td></tr><tr><td colspan="2"><br></td></tr><tr><td colspan="2"><div id="ttContent" style="display: block;">';
			}
			
			theContent += t + '</div></td></tr></table></td><td background="/images/tt_6.gif"><img src="/images/tt_6.gif" width="20" height="1" alt=""></td></tr><tr><td><img src="/images/tt_7.gif" width="16" height="20" alt=""></td><td background="/images/tt_8.gif" colspan="2"><img src="/images/tt_8.gif" width="1" height="20" alt=""></td><td><img src="/images/tt_9.gif" width="20" height="20" alt=""></td></tr></table>';
			
			theTTDiv.innerHTML = theContent;
			
			if(theTTDoc.getElementById("ttContent").scrollHeight > 200){
				theTTDoc.getElementById("ttContent").style.height = 200 + "px";
				theTTDoc.getElementById("ttContent").style.overflow = "auto";
			}
			
			if(theTTDoc.getElementById("ttContent").scrollWidth > 300){
				theTTDoc.getElementById("ttContent").style.overflow = "auto";
			}
			
			theTTDiv.style.visibility = "visible";
		}
	}
	
	function hideTT(keepIt){
		if(!loaded){ return; }
		if(keepIt) return;
		if(document.getElementById("tt")){
			theTTDoc = document;
			theTTDiv = theTTDoc.getElementById("tt");
		}
		if(self.parent.document.getElementById("tt")){
			theTTDoc = self.parent.document;
			theTTDiv = theTTDoc.getElementById("tt");
		}
		
		if(theTTDiv){
			theTTDiv.style.visibility = "hidden";
			theTTDiv.style.height = "";
			theTTDiv.style.display = "none";
		}
	}
	
	function getPageOffsetLeft(el){
		var x = 0;
		
		if(el){
			if(el.offsetLeft != null){
				x = el.offsetLeft;
				if(el.offsetParent != null){
					x += getPageOffsetLeft(el.offsetParent);
				}
			}
		}
		return x;
	}
	
	function getPageOffsetTop(el){
		var y = 0;
		if(el){
			if(el.offsetTop != null){
				y = el.offsetTop;
				if(el.offsetParent != null){
					y += getPageOffsetTop(el.offsetParent);
				}
			}
		}
		return y;
	}
