		
		var root_link = "http://www.elotrecycling.com";
		
		var tempContent = "";
		
		var loadedContent = 1;
		
		var currTimeout = "";
		
		var currLib	= "";
		
		var playerHeight = 0;
		
		var commentsOn = 0;
		
		var popupOpen = 0;
		
		var currLeftNav = 1;
		
		var currCardType = '';
		
		var currNav = '';
		
		var opacityTimeoutVar = new Array();
		
		opacityTimeoutVar[0] = '';
		opacityTimeoutVar[1] = '';
		opacityTimeoutVar[2] = '';
		opacityTimeoutVar[3] = '';
		opacityTimeoutVar[4] = '';
		
		var currDiv = "";
		var currAnchor = "";
		var currFunction = "";
		var secondaryFunction = "";
		var ajaxTimeout = 0;
		
		var divCount = 2;
		var currDiv = 0;
		var openDiv = 0;
		
		var currLeftMenu = -1;
		
		var scrollTimeout = 0;
		
		var origLeft = new Array();
		var origTop = new Array();
		var currLeft = new Array();
		var currTop = new Array();
		var limitLeft = new Array();
		var limitTop = new Array();
		var offsetLeft = new Array();
		var offsetTop = new Array();
		
		origLeft[0] = 362;
		origLeft[1] = 587;
		origTop[0] = 100;
		origTop[1] = 190;
		
		currLeft[0] = 362;
		currLeft[1] = 587;
		currTop[0] = 100;
		currTop[1] = 190;
		limitLeft[0] = 317;
		limitLeft[1] = 707;
		limitTop[0] = 10;
		limitTop[1] = 10;
		offsetLeft[0] = 5;
		offsetLeft[1] = 10;
		offsetTop[0] = 10;
		offsetTop[1] = 15;
		
		var winW = 0;
		var winH = 0;
		
		// Detect if the browser is IE or not.
		// If it is not IE, we assume that the browser is NS.
		var IE = document.all?true:false
		
		// If NS -- that is, !IE -- then set up for mouse capture
		if (!IE) document.captureEvents(Event.MOUSEMOVE)
		
		// Main function to retrieve mouse x-y pos.s
		
		var tempX = 0;
		var tempY = 0;
		
		// Set-up to use getMouseXY function onMouseMove
		// document.onmousemove = getMouseXY;
		
		// Temporary variables to hold mouse x-y pos.s
		var tempMouseX = 0
		var tempMouseY = 0
		
		// Main function to retrieve mouse x-y pos.s
		
		// setWindowProps();
		
		function getMouseXY(e) {
		  if (IE) { // grab the x-y pos.s if browser is IE
			tempMouseX = event.clientX + document.body.scrollLeft
			tempMouseY = event.clientY + document.body.scrollTop
		  } else {  // grab the x-y pos.s if browser is NS
			tempMouseX = e.pageX
			tempMouseY = e.pageY
		  }  
		  // catch possible negative values in NS4
		  if (tempMouseX < 0){tempMouseX = 0}
		  if (tempMouseY < 0){tempMouseY = 0}  
		  // show the position values in the form named Show
		  // in the text fields named MouseX and MouseY
		  
		  if (currFunction != '') {
			
			eval(currFunction);
			
		  }
		  
		  return true
		}
		
		function check_email(email) {
			
			ok = "1234567890qwertyuiop[]asdfghjklzxcvbnm.@-_QWERTYUIOPASDFGHJKLZXCVBNM";
			
			for(i=0; i < email.length ;i++){
				if(ok.indexOf(email.charAt(i))<0){ 
					return (false);
				}	
			}
			
			re = /(@.*@)|(\.\.)|(^\.)|(^@)|(@$)|(\.$)|(@\.)/;
			re_two = /^.+\@(\[?)[a-zA-Z0-9\-\.]+\.([a-zA-Z]{2,4}|[0-9]{1,3})(\]?)$/;
			if (!email.match(re) && email.match(re_two)) {
				return (-1);		
			} 
			
		
		}
		
		function getScrollOffset() {
		
			// setWindowProps();
		
			tempX = 0;
			tempY = 0;
			
			if (IE) { // grab the x-y pos.s if browser is IE
				tempX = document.body.scrollLeft;
				tempY = document.body.scrollTop;
			} else {
				tempX = window.pageXOffset;
				tempY = window.pageYOffset;
			}
			
			// catch possible negative values in NS4
			if (tempX < 0){tempX = 0}
			if (tempY < 0){tempY = 0}
			
			//alert(tempX + " " + tempY); 
		
		}

		function setWindowProps() {
			
			if (parseInt(navigator.appVersion)>3) {
				if (navigator.appName=="Netscape") {
					winW = window.innerWidth;
					winH = window.innerHeight;
				}
				if (navigator.appName.indexOf("Microsoft")!=-1) {
					winW = (document.body.offsetWidth-21);
					winH = (document.body.offsetHeight-4);
				}
			}
			
		}
		
		function setOpacity(divName,value) {
			document.getElementById(divName).style.opacity = value/10;
			document.getElementById(divName).style.filter = 'alpha(opacity=' + value*10 + ')';
		}
		
		function displayOpacity(divName,value,counter) {
			
			if (value == 10) {
				setOpacity(divName,value);
				clearTimeout(opacityTimeoutVar[counter]);
			} else {
				setOpacity(divName,value);
				opacityTimeoutVar[counter] = window.setTimeout("displayOpacity('"+divName+"',"+(value+1)+","+counter+")",50);
			}
			
		}
		
		function init(resize) {
			
			/*
			setWindowProps();
		
			document.getElementById('bodyContent').style.height = (winH)+"px"
			if (!IE) {
				document.getElementById('topNav').style.width = (winW-17)+"px";
				if (document.getElementById('leftNav')) {
					var leftOffset = Math.round((winW-957)/2)+15;
					document.getElementById('leftNav').style.left = leftOffset+"px";
					document.getElementById('leftNav').style.visibility = "visible";
				}
			} else {
				document.getElementById('topNav').style.width = (winW)+"px";
				if (document.getElementById('leftNav')) {
					var leftOffset = Math.round((winW-940)/2)+15;
					document.getElementById('leftNav').style.left = leftOffset+"px";
					document.getElementById('leftNav').style.visibility = "visible";
				}
			}
			document.getElementById('topNav').style.visibility = "visible";
			*/
			
		}
		
		function setVisit() {
		
			currIp = document.getElementById('CurrIp').value;
			currMember = document.getElementById('CurrMem').value;
			currSession = document.getElementById('CurrSession').value;
		
			currHref = document.location.href;
			
			questionLocation = currHref.indexOf('?');
			
			variables = '';
			currPage = currHref;
			
			if (questionLocation != -1) {
				variables = currHref.split('?');
				currPage = variables[0];
				variables = variables[1].split('&');
			}
			
			//alert("functions.php?PageView=1&currPage="+currPage+"&variables="+variables+"&currMember="+currMember+"&currIp="+currIp+"&currSession="+currSession);
			
			currDiv = 'test';
			sendAjax("functions.php?PageView=1&currPage="+currPage+"&variables="+variables+"&currMember="+currMember+"&currIp="+currIp+"&currSession="+currSession,processAjax);
			
		}
		
		function cardValidator(cardNumber, cardType)
		{
		  var isValid = false;
		  var ccCheckRegExp = /[^\d ]/;
		  isValid = !ccCheckRegExp.test(cardNumber);
		
		  if (isValid)
		  {
			var cardNumbersOnly = cardNumber.replace(/ /g,"");
			var cardNumberLength = cardNumbersOnly.length;
			var lengthIsValid = false;
			var prefixIsValid = false;
			var prefixRegExp;
		
			switch(cardType)
			{
			  case "Mastercard":
				lengthIsValid = (cardNumberLength == 16);
				prefixRegExp = /^5[1-5]/;
				break;
		
			  case "Visa":
				lengthIsValid = (cardNumberLength == 16 || cardNumberLength == 13);
				prefixRegExp = /^4/;
				break;
		
			  case "Discover":
				lengthIsValid = (cardNumberLength == 16);
				prefixRegExp = /^6/;
				break;
		
			  case "American Express":
				lengthIsValid = (cardNumberLength == 15);
				prefixRegExp = /^3(4|7)/;
				break;
		
			  default:
				prefixRegExp = /^$/;
				alert("Card type not found");
			}
		
			prefixIsValid = prefixRegExp.test(cardNumbersOnly);
			isValid = prefixIsValid && lengthIsValid;
		  }
		
		  if (isValid)
		  {
			var numberProduct;
			var numberProductDigitIndex;
			var checkSumTotal = 0;
		
			for (digitCounter = cardNumberLength - 1; 
			  digitCounter >= 0; 
			  digitCounter--)
			{
			  checkSumTotal += parseInt (cardNumbersOnly.charAt(digitCounter));
			  digitCounter--;
			  numberProduct = String((cardNumbersOnly.charAt(digitCounter) * 2));
			  for (var productDigitCounter = 0;
				productDigitCounter < numberProduct.length; 
				productDigitCounter++)
			  {
				checkSumTotal += 
				  parseInt(numberProduct.charAt(productDigitCounter));
			  }
			}
		
			isValid = (checkSumTotal % 10 == 0);
		  }
			
			return isValid;
			
		}
					
		function IsNumericOnly(sText) {
		
			var ValidChars = "0123456789";
			var IsNumber=true;
			var Char;
		 
			for (i = 0; i < sText.length && IsNumber == true; i++) { 
				Char = sText.charAt(i); 
				if (ValidChars.indexOf(Char) == -1) {
					IsNumber = false;
				}
			}
			
			return IsNumber;
		   
		}
				
		function IsNumeric(sText) {
		
			var ValidChars = "0123456789.,";
			var IsNumber=true;
			var Char;
		 
			for (i = 0; i < sText.length && IsNumber == true; i++) { 
				Char = sText.charAt(i); 
				if (ValidChars.indexOf(Char) == -1) {
					IsNumber = false;
				}
			}
			
			return IsNumber;
		   
		}

		function nothing() {}
		
		function sendAjax(urlContent,returnFunc) {
		
			if (currLib != '') {
				urlContent	+= "&LibName="+currLib;
			}
		
			thisWidth = document.getElementById(currDiv).style.width.substring(0,((document.getElementById(currDiv).style.width.length*1)-2))*1;
			thisHeight = document.getElementById(currDiv).style.height.substring(0,((document.getElementById(currDiv).style.height.length*1)-2))*1;
			topPadding = Math.round(thisHeight/2);
			leftPadding = Math.round(thisWidth/2);
			
			document.getElementById(currDiv).innerHTML = '<div align="center" style="padding: '+topPadding+'px 0px 0px '+leftPadding+'px"><img src="'+root_link+'/images/main/ajax_loader.gif"></br></div>';
		
			createRequest();			
			
			request.open("GET", root_link + "/includes/scripts/" + urlContent, true);
			request.onreadystatechange = eval(returnFunc);
			request.send(null);
			/*
			window.clearTimeout(ajaxTimeout);
			ajaxTimeout = window.setTimeout("request.send(null)",500);
			*/
			
		}
		
		function processAjax() {
		
			if(request.readyState == 4) {
				
				if(request.status == 200) {
				
					//alert(trim(request.responseText));
				
					if((document.getElementById(currDiv)) && (trim(request.responseText) != '')) {
						//alert(document.getElementById('hoverMain').innerHTML);
						document.getElementById(currDiv).innerHTML = trim(request.responseText);
						document.getElementById(currDiv).style.visibility = "visible";
						//setOpacity(currDiv,9.7);
						/*
						clearTimeout(opacityTimeoutVar);
						displayOpacity(currDiv,1);
						*/
						//document.getElementById(currDiv).style.visibility = "visible";
						
						if (secondaryFunction != '') {
							eval(secondaryFunction);
							secondaryFunction = '';
						}
						
						if (currAnchor != '') {
							document.location.href = currAnchor;
							currAnchor = '';
						}
						
						tempContent = '';
						loadedContent = 1;
						
						/*
						if (waitFunction != '') {
							eval(waitFunction);	
						}
						*/
						
					}
					
				}
				
			}
		
		}
		
		function pageScroll() {
			getScrollOffset();
			if ((tempY+winH) < 570) {
				window.scrollBy(0,10); // horizontal and vertical scroll increments
				scrolldelay = setTimeout("pageScroll()",20); // scrolls every 100 milliseconds
			}
		}
		
		function trim(stringToTrim) {
			return stringToTrim.replace(/^\s+|\s+$/g,"");
		}
		
		function check_errors(formName,Lang) {
			
			var submitOk = 1;
			var errorInfo = 0;
			var errorPayment = 0;
			var errorContent = 'Please make sure you fill out the fields which are highlighted';
			
			if (formName == 'information') {
			
				FirstName			= document.information.FirstName.value;
				LastName			= document.information.LastName.value;
				Email				= document.information.Email.value;
				Phone				= document.information.Phone.value;
				Fax					= document.information.Fax.value;
				Company				= document.information.Company.value;
				Address				= document.information.Address.value;
				City				= document.information.City.value;
				State				= document.information.State.selectedIndex;
				Zip					= document.information.Zip.value;
				
				BillingFirstName	= document.information.BillingFirstName.value;
				BillingLastName		= document.information.BillingLastName.value;
				BillingCompany		= document.information.BillingCompany.value;
				BillingAddress		= document.information.BillingAddress.value;
				BillingCity			= document.information.BillingCity.value;
				BillingState		= document.information.BillingState.value;
				BillingEmail		= document.information.BillingEmail.value;
				BillingPhone		= document.information.BillingPhone.value;
				BillingZip			= document.information.BillingZip.value;
				
				CardName			= document.information.CardName.value;
				CardType			= document.information.CardType.value;
				CardNumber			= document.information.CardNumber.value;
				CardCvc				= document.information.CardCvc.value;
				CardExpiresMonth	= document.information.CardExpiresMonth.value;
				CardExpiresYear		= document.information.CardExpiresYear.value;
				
				document.getElementById('FirstNameField').style.color = '#525252';
				document.getElementById('LastNameField').style.color = '#525252';
				document.getElementById('EmailField').style.color = '#525252';
				document.getElementById('PhoneField').style.color = '#525252';
				document.getElementById('FaxField').style.color = '#525252';
				document.getElementById('CompanyField').style.color = '#525252';
				document.getElementById('AddressField').style.color = '#525252';
				document.getElementById('CityField').style.color = '#525252';
				document.getElementById('StateField').style.color = '#525252';
				document.getElementById('ZipField').style.color = '#525252';
				
				document.getElementById('BillingFirstNameField').style.color = '#525252';
				document.getElementById('BillingLastNameField').style.color = '#525252';
				document.getElementById('BillingCompanyField').style.color = '#525252';
				document.getElementById('BillingAddressField').style.color = '#525252';
				document.getElementById('BillingEmailField').style.color = '#525252';
				document.getElementById('BillingPhoneField').style.color = '#525252';
				document.getElementById('BillingCityField').style.color = '#525252';
				document.getElementById('BillingStateField').style.color = '#525252';
				document.getElementById('BillingZipField').style.color = '#525252';
				
				document.getElementById('CardNameField').style.color = '#525252';
				document.getElementById('CardTypeField').style.color = '#525252';
				document.getElementById('CardNumberField').style.color = '#525252';
				document.getElementById('CardCvcField').style.color = '#525252';
				document.getElementById('CardExpiresField').style.color = '#525252';
				
				if (FirstName == '') {
					submitOk = 0;
					errorInfo = 1;
					document.getElementById('FirstNameField').style.color = 'red';
				}
				
				if (LastName == '') {
					submitOk = 0;
					errorInfo = 1;
					document.getElementById('LastNameField').style.color = 'red';
				}
				
				if (Phone == '') {
					submitOk = 0;
					errorInfo = 1;
					document.getElementById('PhoneField').style.color = 'red';
				}
				
				/*
				if (Fax == '') {
					submitOk = 0;
					document.getElementById('FaxField').style.color = 'red';
				}
				
				if (Company == '') {
					submitOk = 0;
					document.getElementById('CompanyField').style.color = 'red';
				}
				*/
				
				if (Address == '') {
					submitOk = 0;
					errorInfo = 1;
					document.getElementById('AddressField').style.color = 'red';
				}
				
				if (City == '') {
					submitOk = 0;
					errorInfo = 1;
					document.getElementById('CityField').style.color = 'red';
				}
				
				if (State == '') {
					submitOk = 0;
					errorInfo = 1;
					document.getElementById('StateField').style.color = 'red';
				}
				
				if ((Zip == '') || (!IsNumericOnly(Zip)) || (Zip.length != 5)) {
					submitOk = 0;
					errorInfo = 1;
					document.getElementById('ZipField').style.color = 'red';
				}
				
				if ((Email == '')) {
					submitOk = 0;
					errorInfo = 1;
					document.getElementById('EmailField').style.color = 'red';
				} else if (!check_email(Email)) {
					submitOk = 0;
					errorInfo = 1;
					document.getElementById('EmailField').style.color = 'red';
				}
				
				if (BillingFirstName == '') {
					submitOk = 0;
					errorInfo = 1;
					document.getElementById('BillingFirstNameField').style.color = 'red';
				}
				
				if (BillingLastName == '') {
					submitOk = 0;
					errorInfo = 1;
					document.getElementById('BillingLastNameField').style.color = 'red';
				}
				
				if (BillingPhone == '') {
					submitOk = 0;
					errorInfo = 1;
					document.getElementById('BillingPhoneField').style.color = 'red';
				}
				
				if (BillingAddress == '') {
					submitOk = 0;
					errorInfo = 1;
					document.getElementById('BillingAddressField').style.color = 'red';
				}
				
				if (BillingCity == '') {
					submitOk = 0;
					errorInfo = 1;
					document.getElementById('BillingCityField').style.color = 'red';
				}
				
				if (BillingEmail == '') {
					submitOk = 0;
					errorInfo = 1;
					document.getElementById('BillingEmailField').style.color = 'red';
				}
				
				if (BillingState == '') {
					submitOk = 0;
					errorInfo = 1;
					document.getElementById('BillingStateField').style.color = 'red';
				}
				
				if ((BillingZip == '') || (!IsNumericOnly(BillingZip)) || (BillingZip.length != 5)) {
					submitOk = 0;
					errorInfo = 1;
					document.getElementById('BillingZipField').style.color = 'red';
				}
				
				if (CardName == '') {
					submitOk = 0;
					errorPayment = 1;
					document.getElementById('CardNameField').style.color = 'red';
				}
				
				if (CardType == '') {
					submitOk = 0;
					errorPayment = 1;
					document.getElementById('CardTypeField').style.color = 'red';
				}
				
				if (CardNumber == '') {
					submitOk = 0;
					errorPayment = 1;
					document.getElementById('CardNumberField').style.color = 'red';
				} else {
					//if (CardType != 'Discover') {
						if (!cardValidator(CardNumber, CardType)) {
							submitOk = 0;
							errorPayment = 1;
							document.getElementById('CardNumberField').style.color = 'red';
						}
					//}
				}
				
				if (CardCvc == '') {
					submitOk = 0;
					errorPayment = 1;
					document.getElementById('CardCvcField').style.color = 'red';
				} else {
					if (!IsNumericOnly(CardCvc)) {
						submitOk = 0;
						errorPayment = 1;
						document.getElementById('CardCvcField').style.color = 'red';
					} else if (((CardCvc.length != 3) && ((CardType == 'Discover') || (CardType == 'Visa') || (CardType == 'Mastercard'))) || ((CardCvc.length != 4) && ((CardType == 'American Express'))))  {
						submitOk = 0;
						errorPayment = 1;
						document.getElementById('CardCvcField').style.color = 'red';
					}
				}
				
				
				if ((CardExpiresMonth == '') || (CardExpiresYear == '')) {
					submitOk = 0;
					errorPayment = 1;
					document.getElementById('CardExpiresField').style.color = 'red';
				} else {
					
					var todayDate = new Date();
					var todayMonth = todayDate.getMonth()+1;
					var todayYear = todayDate.getFullYear();
					
					if (CardExpiresMonth.charAt(0) == 0) {
						CardExpiresMonth = CardExpiresMonth.charAt(1);	
					}
					
					if (((CardExpiresYear == todayYear) && (CardExpiresMonth < todayMonth))) {
						submitOk = 0;
						errorPayment = 1;
						document.getElementById('CardExpiresField').style.color = 'red';
					}
						
				}
				
			}
			
			if (submitOk == 1) {
				eval('document.'+formName).submit();	
			} else {
				if (errorInfo == 1) {
					document.location = '#ErrorMessage';					
				} else {
					document.location = '#ErrorPayment';
				}
				document.getElementById('ErrorMessage').style.color = 'red';
				
				return false;
			}
		
		}
		
		
	function defaultField(fieldValue,fieldObject,fieldState) {
		
		//var fieldObject = eval('document.'+fieldForm+'.'+fieldName);
		//fieldForm,fieldName
		
		if ((fieldState == 0) && (fieldObject.value == fieldValue)) {
			fieldObject.value = '';	
		} else if ((fieldState == 1) && (fieldObject.value == '')) {
			fieldObject.value = fieldValue;	
		}
	
	}
	
	function fieldType(fieldType,fieldObject) {
		
	}
	
	function shiftLeftMenu(divNum) {
		
		var divName = 'menuLeft'+divNum;
		
		if (currLeftMenu != divNum) {
			
			if (currLeftMenu != -1) {
				document.getElementById('menuLeft'+currLeftMenu+'On').style.zIndex = 0;
				document.getElementById('menuLeft'+currLeftMenu+'Off').style.zIndex = 1;
				document.getElementById('menuLeft'+currLeftMenu+'Off').style.left = "30px";
				document.getElementById('menuLeft'+currLeftMenu+'On').style.left = "0px";
				document.getElementById('menuLeft'+currLeftMenu+'On').style.visibility = "hidden";
				document.getElementById('menuLeft'+currLeftMenu+'Off').style.visibility = "visible";
				moveLeft('menuLeft'+currLeftMenu+'Off',30,0,-5);
				if (document.getElementById('rightContent'+divNum)) {
					document.getElementById('rightContent'+currLeftMenu).style.visibility = "hidden";
					moveLeft('rightContent'+currLeftMenu,0,-620,-103);
				}
			}
			
			currLeftMenu = divNum;
			document.getElementById(divName+'Off').style.visibility = "hidden";
			document.getElementById(divName+'On').style.visibility = "visible";
			document.getElementById(divName+'Off').style.zIndex = 0;
			document.getElementById(divName+'On').style.zIndex = 1;
			moveLeft(divName+'On',0,30,5);
			
			if (document.getElementById('rightContent'+divNum)) {
				document.getElementById('rightContent'+divNum).style.visibility = "visible";
				moveLeft('rightContent'+divNum,-620,0,103);
			}
			
		}
		
	}
	
	function moveLeft(divName,startPos,endPos,offset) {
		
		if (((offset < 0) && (startPos < endPos)) || ((offset > 0) && (startPos > endPos))) {
			document.getElementById(divName).style.left = endPos+"px";
		} else {
			document.getElementById(divName).style.left = startPos+"px";
			window.setTimeout('moveLeft("'+divName+'",'+(startPos+offset)+','+endPos+','+offset+')',50);
		}
	
	}
	
	function setPopup(Width,Height) {
	
		getScrollOffset();
		
		leftOffset	= Math.floor((winW-Width)/2)+tempX;
		topOffset	= Math.floor((winH-Height)/2)+tempY;
		
		if (IE) {
			Width += 18;
		}
		
		document.getElementById('popupShadow').style.left = leftOffset + "px";
		document.getElementById('popupShadow').style.top = topOffset + "px";
		document.getElementById('popupShadow').style.width = Width + "px";
		document.getElementById('popupShadow').style.height = Height + "px";
		
		document.getElementById('popupContent').style.left = (leftOffset+10) + "px";
		document.getElementById('popupContent').style.top = (topOffset+10) + "px";
		document.getElementById('popupContent').style.width = (Width-20) + "px";
		document.getElementById('popupContent').style.height = (Height-20) + "px";
		
		document.getElementById('popupShadow').style.visibility = "visible";
		document.getElementById('popupContent').style.visibility = "visible";
		
		popupOpen = 1;
	
	}
	
	function closePopup() {
		
		document.getElementById('popupShadow').style.left = "0px";
		document.getElementById('popupShadow').style.top = "0px";
		document.getElementById('popupShadow').style.width = "0px";
		document.getElementById('popupShadow').style.height = "0px";
		
		document.getElementById('popupContent').style.left = "0px";
		document.getElementById('popupContent').style.top = "0px";
		document.getElementById('popupContent').style.width = "0px";
		document.getElementById('popupContent').style.height = "0px";
		
		document.getElementById('popupShadow').style.visibility = "hidden";
		document.getElementById('popupContent').style.visibility = "hidden";
		
		document.getElementById('popupContentInside').innerHTML = '';
		
		document.body.style.overflow = "auto";
		
		popupOpen = 0;
		
	}
	
	function displayNewsItem(ItemId) {
		
		//document.body.style.overflow = "hidden";
	
		getScrollOffset();
		
		Width = 600;
		Height = 400;
			
		setPopup(Width,Height);
	
	}
	
	function featureLoader(divName,folder,imageName,counter) {
		
		//alert(divName+counter+" url('"+root_link+"/images/features/"+folder+"/"+imageName+(counter+1)+".jpg')");
		setOpacity(divName+counter,0);
		document.getElementById(divName+counter).innerHTML = '<img src="'+root_link+'/images/features/'+folder+'/'+imageName+(counter+1)+'.jpg"><br>';
		displayOpacity(divName+counter,0,counter);
		
		//document.getElementById(divName+counter).style.backgroudImage = "url('"+root_link+"/images/features/"+folder+"/"+imageName+(counter+1)+".jpg')";
		//alert(document.getElementById(divName+counter).style.backgroudImage);
		if (counter < 4) {
			window.setTimeout("featureLoader('"+divName+"','"+folder+"','"+imageName+"',"+(counter+1)+")",200)	;
		}
		
	}
	
	function moveMenu(loaded) {
		
		if (document.getElementById('topNav')) {
			
			getScrollOffset();
			
			document.getElementById('topNav').style.top = (tempY)+'px';
				
		}
	
	}
	
	function leftNavItem(ItemId,counter,setLink) {
		
		getScrollOffset();
			
		if (setLink == 1) {
			//document.location = '#'+WebsiteId;
		
			var tempElem = document.getElementById('bodyContent').scrollTop;
			var limit = document.getElementById(ItemId).offsetTop;
			
			limit -= 160;	
			
			var tempLimit = document.getElementById('bodyContent').scrollHeight;
			
			//alert(limit + ' '+ (tempLimit-winH));
			
			if (IE) {
				limit += 170;	
			}
			
			if (limit > (tempLimit-winH)) {
				limit = (tempLimit-winH);	
			}
			
			if (tempElem < limit) {
			scrollSmooth(limit,1,15);
			} else {
			scrollSmooth(limit,0,15);
			}
			//window.scrollTo(0,document.getElementById(WebsiteId).offsetTop)
			//window.scrollTo(0);
			//.offset().top
		}
	
		document.getElementById("leftNavLink"+currLeftNav).className = "leftNav";
		currLeftNav = counter;
		document.getElementById("leftNavLink"+currLeftNav).className = "leftNavOn";
	
	}
	
	function scrollSmooth(limit,direction,increment) {
		
		//getScrollOffset();
		
		clearTimeout(scrollTimeout);
		
		increment++;
		
		var tempElem = document.getElementById('bodyContent').scrollTop;
		
		if ((direction == 1) && ((tempElem+increment) < limit)) {
			document.getElementById('bodyContent').scrollTop = (tempElem+increment);
			scrollTimeout = window.setTimeout("scrollSmooth("+limit+","+direction+","+increment+")",5);
		} else if ((direction == 0) && ((tempElem-increment) > limit)) {
			document.getElementById('bodyContent').scrollTop = (tempElem-increment);
			scrollTimeout = window.setTimeout("scrollSmooth("+limit+","+direction+","+increment+")",5);
		} else {
			document.getElementById('bodyContent').scrollTop = (limit);
		}
		
	}
	
	function dispNav(divName) {
		
		if (document.getElementById(divName)) {
			
			clearTimeout(currTimeout);
			
			if (currNav != '') {
				hideNav(currNav);
			}
			
			currNav = divName;
			document.getElementById(divName).style.visibility = "visible";
		
		}
		
	}
	
	function hideNavTimer(divName) {
		
		if (document.getElementById(divName)) {
			currTimeout = window.setTimeout('hideNav(\''+divName+'\')',200);
		}
		
	}
	
	function hideNav(divName) {
		document.getElementById(divName).style.visibility = "hidden";
	}
	
	function verifyBillingAddress(fieldState) {
	
		if (fieldState == true) {
			
			FirstName			= document.information.FirstName.value;
			LastName			= document.information.LastName.value;
			Email				= document.information.Email.value;
			Phone				= document.information.Phone.value;
			Fax					= document.information.Fax.value;
			Company				= document.information.Company.value;
			Address				= document.information.Address.value;
			City				= document.information.City.value;
			State				= document.information.State.selectedIndex;
			Zip					= document.information.Zip.value;
			
			document.information.BillingFirstName.value		= FirstName;
			document.information.BillingLastName.value		= LastName;
			document.information.BillingCompany.value		= Company;
			document.information.BillingAddress.value		= Address;
			document.information.BillingCity.value			= City;
			document.information.BillingEmail.value			= Email;
			document.information.BillingFax.value			= Fax;
			document.information.BillingPhone.value			= Phone;
			document.information.BillingState.selectedIndex	= State;
			document.information.BillingZip.value			= Zip;
			
			document.information.BillingFirstName.readOnly = true;
			document.information.BillingLastName.readOnly = true;
			document.information.BillingCompany.readOnly = true;
			document.information.BillingAddress.readOnly = true;
			document.information.BillingEmail.readOnly = true;
			document.information.BillingFax.readOnly = true;
			document.information.BillingPhone.readOnly = true;
			document.information.BillingCity.readOnly = true;
			document.information.BillingState.readOnly = true;
			document.information.BillingZip.readOnly = true;
			
		} else {
			
			document.information.BillingFirstName.value		= '';
			document.information.BillingLastName.value		= '';
			document.information.BillingCompany.value		= '';
			document.information.BillingAddress.value		= '';
			document.information.BillingCity.value			= '';
			document.information.BillingEmail.value			= '';
			document.information.BillingFax.value			= '';
			document.information.BillingPhone.value			= '';
			document.information.BillingState.selectedIndex	= 0;
			document.information.BillingZip.value			= '';
			
			document.information.BillingFirstName.readOnly = false;
			document.information.BillingLastName.readOnly = false;
			document.information.BillingCompany.readOnly = false;
			document.information.BillingAddress.readOnly = false;
			document.information.BillingEmail.readOnly = false;
			document.information.BillingFax.readOnly = false;
			document.information.BillingPhone.readOnly = false;
			document.information.BillingCity.readOnly = false;
			document.information.BillingState.readOnly = false;
			document.information.BillingZip.readOnly = false;
			
		}
	
	}
	
	function submitOrder() {
	
		var OrderSubmitted = document.OrderForm.OrderSubmitted.value;
		
		if (OrderSubmitted == 0) {
			document.OrderForm.submit();
			document.OrderForm.OrderSubmitted.value = 1;
			var contentDisp	= '<span style="font-size: 14px;">';
			contentDisp	+= 'PLACE ';
			contentDisp	+= '<img src="'+root_link+'/images/main/button-epak.png" width="43" height="17" hspace="0" vspace="0" border="0">';
			contentDisp	+= ' ORDER';
			contentDisp	+= '</span>';
			document.getElementById('OrderSubmitButton').innerHTML = contentDisp;
		} else {
			nothing();
		}
	
	}