
function NewWindow(mypage, myname, w, h, scroll) {
var winl = 20;
var wint = 20;
winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars='+scroll+',resizable=0,status=0'
win = window.open(mypage, myname, winprops)
if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }
}

function openPopup(theURL)
{
	// Popup width and height are optional second and third parameters to this function
	var theHeight = 600;
	var theWidth = 800;
	if (openPopup.arguments.length == 3)
	{
		theWidth = openPopup.arguments[1];
		theHeight = openPopup.arguments[2];
	}
	window.open (theURL, 'infowindow','width='+theWidth+',height='+theHeight+',left=60,top=20,location=no,resizable=yes,scrollbars=yes,menubar=yes,status=yes');
}


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 show(object) {
     if (document.layers && document.layers[object])
         document.layers[object].visibility = 'visible';
     else if (document.all) {
         document.all[object].style.visibility = 'visible';

     }
 }
 function hide(object) {
     if (document.layers && document.layers[object])
         document.layers[object].visibility = 'hidden';
     else if (document.all){
         document.all[object].style.visibility = 'hidden';
 }
}


buy5 = new Image(153,16)
buy5.src="http://nehomeproducts.com/images/buy5.jpg"
navarrow = new Image(28,11)
navarrow.src="http://nehomeproducts.com/images/nav_arrow1.gif"


/***********************************************
* Ajax Includes script- © Dynamic Drive DHTML code library (www.dynamicdrive.com)
* This notice MUST stay intact for legal use
* Visit Dynamic Drive at http://www.dynamicdrive.com/ for full source code
***********************************************/

//To include a page, invoke ajaxinclude("afile.htm") in the BODY of page
//Included file MUST be from the same domain as the page displaying it.

var rootdomain="http://"+window.location.hostname

function ajaxinclude(url) {
var page_request = false
if (window.XMLHttpRequest) // if Mozilla, Safari etc
page_request = new XMLHttpRequest()
else if (window.ActiveXObject){ // if IE
try {
page_request = new ActiveXObject("Msxml2.XMLHTTP")
} 
catch (e){
try{
page_request = new ActiveXObject("Microsoft.XMLHTTP")
}
catch (e){}
}
}
else
return false
page_request.open('GET', url, false) //get page synchronously 
page_request.send(null)
writecontent(page_request)
}

function writecontent(page_request){
if (window.location.href.indexOf("http")==-1 || page_request.status==200)
document.write(page_request.responseText)
}

function openPopup1 (theURL)
{
	// Popup width and height are optional second and third parameters to this function
	var theHeight = 600;
	var theWidth = 500;
	if (openPopup1.arguments.length == 3)
	{
		theWidth = openPopup1.arguments[1];
		theHeight = openPopup1.arguments[2];
	}
	window.open (theURL, 'infowindow','width='+theWidth+',height='+theHeight+',left=50,top=20,location=no,resizable=yes,menubar=no,status=no,toolbar=no,scrollbars=yes');
}
