
var IsNetscape = (navigator.appName.indexOf("Netscape") != -1);
var px = document.layers ? "" : "px";



function OpenFinder() {
	params  = GetWindowOpenParams(100, 300, 670, 300);
	ProcessOpenWindow2("http://www.mountfinder.com/OptUmf/Products/MFPopup.aspx?hide=T&store=51&logo=1&model=u&links=1&fnd=1&dedicatedtoid=0&shoppingcart=0", "configurator", params, false);
}
	  

function ProcessOpenWindow(url, windowName, params, noCaching)
{
	agent = navigator.userAgent;
	try{
	// close the window to vary the window size
	if (typeof(win) == "object" && !win.closed){win.close();}
	}catch(e){}
	win = OpenWindow(url, windowName, params, noCaching);
	if (agent.indexOf("Mozilla/2") != -1 && agent.indexOf("Win") == -1) 
	win = OpenWindow(url, windowName, params, noCaching);
	try{
		if (!win.opener) {
			win.opener = window;
		}
	}catch(e){}
  	// bring the window to the front
	try{
		win.focus();	
	}catch(e){}
}


function ProcessOpenWindow2(url, windowName, params, noCaching)
{
	agent = navigator.userAgent;
	try{
	// close the window to vary the window size
	if (typeof(win) == "object" && !win.closed){win.focus();}
	else {
	win = OpenWindow(url, windowName, params, noCaching);
	if (agent.indexOf("Mozilla/2") != -1 && agent.indexOf("Win") == -1) 
	win = OpenWindow(url, windowName, params, noCaching);
	}
	
	}catch(e){}
	
	try{
		if (!win.opener) {
			win.opener = window;
		}
	}catch(e){}
  	
  	// bring the window to the front
	try{
		win.focus();	
	}catch(e){}
}





function OpenWindow(url, windowName, params, noCaching)
{
	if (noCaching == true)
		return window.open(url + '&nc=true', windowName , params);
	else
		return window.open(url, windowName , params);
}

function GetWindowOpenParams(top, left, width, height)
{
	params = "toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=0,";
	params += "top=" + top + ",";
	params += "left=" + left + ",";
	if (width) {
	 	params += "width=" + width+ ",";
		params += "height=" + height;
	}
	else {
		params += "width=0,height=0";
	}
	return params;
}