	var bwr = navigator.appName;
	var ver = parseInt(navigator.appVersion, 10);
	NS = (bwr.indexOf("Netscape")!=-1 ) ? 1:0;
	NS4 = (NS && (ver==4)) ? 1:0;
	NS6 = (NS && (ver==6)) ? 1:0;
	NS7 = (NS && (ver==7)) ? 1:0;

	IE = (bwr.indexOf("Microsoft")!=-1) ? 1:0;
	IE4 = (IE && (ver==4)) ? 1:0;	
	IE5 = (IE && (ver==5)) ? 1:0;	
	if (NS && (ver>=4)) 
	{
		doc = "document.getElementById";
		styles = "";
		html = ".document";
		xpos = "e.pageX";
		ypos = "e.pageY";
	}
	else if (IE && (ver>=4))
	{
		doc = "document.all";
		styles = ".style";
		html = "";
		xpos = "event.x";
		ypos = "event.y";
	}

function myOpen(url, width, height, windowName,top,left)
{
	if (!(top > 0) || !(left > 0))
	{
	        top = (screen.height-height)/2;
	        left = (screen.width-width)/2;
	}
	window.open(url, windowName, 'toolbar=no,resizable=no,scrollbars=no,width=' + width + ',height=' + height +',top='+top+',left='+left);
}

function openFreePopUp(url, width, height, windowName)
{
     var top = (screen.height-height)/2;
     var left = (screen.width-width)/2;
    
     window.open(url, windowName, 'toolbar=no,resizable=yes,width=' + width + ',height=' + height +',top='+top+',left='+left);
}



function openPopUp(url, width, height)
{
        var top = (screen.height-height)/2;
        var left = (screen.width-width)/2;
	window.open(url, null, 'toolbar=no,resizable=no,scrollbars=no,width=' + width + ',height=' + height +',top='+top+',left='+left);
}

function openNewPopUp(url, width, height, name)
{
        var top = (screen.height-height)/2;
        var left = (screen.width-width)/2;
	window.open(url, name, 'toolbar=no,resizable=no,scrollbars=no,width=' + width + ',height=' + height +',top='+top+',left='+left);
}

function openConfig(url){
	  var myWidth = 715;
	  var myHeight = 672;

          var myX=(screen.width-myWidth)/2-2;
          var myY=(screen.height-myHeight)/2-35;
          var myString="width="+myWidth+",height="+myHeight+",left="+myX+",top="+myY+"scrollbars=no,status=no,menubar=no,resizable=no,width="+ myWidth +",height="+ myHeight +"";
	  var NewWindow=window.open(url,"CONFIGURATOR",myString);
          NewWindow.focus();
};
function mouseUnderNavi(object)
{
	
	if(NS)
	{
		object.style.backgroundColor="#999999";
	}
	else
	{
		object.style.backgroundColor="#999999";
	}
}
function mouseOutNavi(object,selected)
{
	if(selected)
	{
		if(NS)
		{
			object.style.backgroundColor="#FFFFFF";
		}
		else
		{
			object.style.backgroundColor="#FFFFFF";
		}
	}
	else
	{
		if(NS)
		{
			object.style.backgroundColor=mainBaseColor;
		}
		else
		{
			object.style.backgroundColor=mainBaseColor;
		}
	}
}

function onUserGoPopUp(url,height,width)
{
	myOpen(url,width,height);
}
function onUserGoNewPopUp(url,height,width)
{
	myOpen(url,width,height, width+height);
}

function onUserGoFreePopUp(url,width,height)
{
    openFreePopUp(url,width,height, width+height);
}


function onUserGo(url,isOpenInNewWindow)
{
	if(isOpenInNewWindow)
	{
		window.open(url);	
	}
	else
	{
		window.location=url;
	}
}
function getProps(obj) 
{
    var result = "";
    for (var i in obj) 
    result +=  "obj." + i + "=" + obj[i] + "   "; 
    return result; 
}
