// browser detection:

my_browser = "nn3";
my_mac = false;
	if(document.getElementById) my_browser = "nn6";
	if(document.all) my_browser = "ie";
	if(document.layers) my_browser = "nn";
	if(navigator.userAgent.toLowerCase().indexOf("mac")) my_mac = true;
	if(navigator.userAgent.toLowerCase().indexOf("ppc")) my_mac = true;
	if(navigator.userAgent.toLowerCase().indexOf("powerpc")) my_mac = true;
	document.write("<script language=\"JavaScript1.2\" src=\"my_"+my_browser+".js\"></script>");

var ua = navigator.userAgent;
var ie = (navigator.appName.toLowerCase().indexOf("internet explorer")!=-1)?1:0;
var ns = (navigator.appName.toLowerCase().indexOf("netscape")!=-1)?1:0;
var ns4 = (document.layers)?1:0;
var ns6 = (document.getElementById && ns)?1:0;
var mac = (navigator.userAgent.toLowerCase().indexOf("mac")!=-1)?1:0;
var macie4 = (mac && !ns && parseInt(ua.substr(ua.indexOf("MSIE")+4,2)) <= 4)?1:0;
var macie = (mac && !ns)?1:0;

if (ns4) document.write('<LINK rel="stylesheet" href="style_ns.css" type="text/css">');
else document.write('<LINK rel="stylesheet" href="styles.css" type="text/css">');

// processing the page ID:
//AICI AM MODIFICAT EU pageID = "";
var leftID="";

// START: fixing the page content on resize >>>
FixNSWindow();
function FixNSWindow() {
	if (ns6 || ns && (parseInt(navigator.appVersion) == 4)) {
		if (typeof document.NS == 'undefined') document.NS = new Object;
		if (typeof document.NS.NS_scaleFont == 'undefined') {
			document.NS.FixCssInNS = new Object;
			document.NS.FixCssInNS.initWindowWidth = window.innerWidth;
			document.NS.FixCssInNS.initWindowHeight = window.innerHeight;
		}
		window.onresize = FixCssInNS;
	}
}
function FixCssInNS() {
	if (document.NS.FixCssInNS.initWindowWidth != window.innerWidth || document.NS.FixCssInNS.initWindowHeight != window.innerHeight) document.location = document.location;
}
ReloadWindow();
function ReloadWindow(){if (!ns && (ua.toLowerCase()).indexOf("windows")<0) setTimeout("window.onresize=new Function('window.location.reload()')",200);}
// <<< END: fixing the page content on resize

var imgNameOff = new Array("images/btn_submit_off.gif","images/btn_next_off.gif","images/btn_back_off.gif","images/btn_reset_off.gif");
var imgNameOn = new Array("images/btn_submit_on.gif","images/btn_next_on.gif","images/btn_back_on.gif","images/btn_reset_on.gif");

var imgObjOff = new Array(imgNameOff.length);
var imgObjOn = new Array(imgNameOn.length);
Preload()

//preloading images:
function Preload(){
	for (i = 0; i<imgNameOff.length; i++)
	{
		imgObjOff[i] = new Image();
		imgObjOff[i].src = imgNameOff[i];
		imgObjOn[i] = new Image();
		imgObjOn[i].src = imgNameOn[i];
	}
}
//mouseover fumction:
function swapIn(nume, i)
{
	var o = eval("document." + nume);
	o.src = imgObjOn[i].src;
}
//mouseout fumction:
function swapOut(nume,i)
{
	var o = eval("document." + nume);
	o.src = imgObjOff[i].src;
}

var newWinImg;
function OpenImage(imgFile){
	if (new String(newWinImg)!="undefined" && newWinImg!=null) if (!newWinImg.closed) newWinImg.close();
	var newWinImg=window.open("","ReservedItemsPicture","width=233,height=385,top=0,left=0,location=no,directories=no,hotkeys=no,copyhistory=no,resizable=no,menubar=no,status=no,toolbar=no,scrollbars=no,z-lock=yes");
	newWinImg.document.write('<HTML><HEAD><TITLE>Leclite.com</TITLE></HEAD><BODY marginwidth=0 marginheight=0 leftmargin=0 topmargin=0 alink="#0033CC bgcolor="#E5F2FF" onload="window.resizeTo(parseInt(document.images[\'img\'].width)+10,parseInt(document.images[\'img\'].height)+29)"><IMG src="' + imgFile + '" name=img></BODY></HTML>')
	newWinImg.document.close()
	newWinImg.focus();
}

//-->
