    var agent = navigator.userAgent;
    browser = navigator.appName;
    version = parseInt(navigator.appVersion);
    var ns6 = (browser == "Netscape" && parseInt(version) >= 5);
    var ns4 = (browser == "Netscape" && version >= 4  && version < 5);
    var ie4 = (browser == "Microsoft Internet Explorer" && version >= 4);

    // Preload Images Here (if required) - like so:
    // a = new Image();
    // a.src = "/images/1.on.jpg";

    // Swap Function
    function Swap(url, image)
    {
       if (ns6) document[image].src = url;
       if (ns4) document[image].src = url;
       if (ie4) document[image].src = url;
    }

    // The famous do nothing function
    function doIt()
    {
       // do nothing.
    }

    // OpenWindow Function
    function openWindow(theURL,winName,features)
    {
       window.open(theURL,winName,features);
    }

    // Hide All for layers functions
    function HideAll()
    {
        if (ns4)
          {document.layers["INSTRUCTIONS"].visibility = 'hidden';}
        else if (ie4)
          {document.all.INSTRUCTIONS.style.visibility = 'hidden';}
        else if (ns6)
          {document.getElementById("INSTRUCTIONS").style.visibility = "hidden";}
    }

    // ShowIt for layers functions
    function ShowIt(LayerNameVar)
    {
        if (ns4)
          {document.layers[LayerNameVar].visibility = 'visible';}
        else if (ie4)
          {document.all[LayerNameVar].style.visibility = 'visible';}
        else if (ns6)
          {document.getElementById(LayerNameVar).style.visibility = 'visible';}
    }

    // Right-Click Copyright feature added 06/04/2010
    var message="Copyright Wawak.com\n\n";

    function rightClickDisable()
    {
   
                alert(message);
                return false;
    }


    function resizeWidth()
    {
        try {
			var myWidth = 0;
			if (typeof(window.innerWidth) == 'number') {
				//Non-IE
				myWidth = window.innerWidth;
			}
			else 
				if (document.documentElement && (document.documentElement.clientWidth || document.documentElement.clientHeight)) {
					//IE 6+ in 'standards compliant mode'
					myWidth = document.documentElement.clientWidth;
				}
				else 
					if (document.body && (document.body.clientWidth || document.body.clientHeight)) {
						//IE 4 compatible
						myWidth = document.body.clientWidth;
					}
			if (((parseInt(myWidth) / 1024.0) < .95) && ((parseInt(myWidth) / 800.0) >= .95)) 
				document.getElementById('bodyLayoutTable').width = 760;
			else 
				if ((parseInt(myWidth) / 1024.0) >= .95) 
					document.getElementById('bodyLayoutTable').width = 880;
			//if ((myWidth / 1024.0) >= .97)    // 1024 width (or close)
			//    document.getElementById('bodyLayoutTable').width = 880;
			//else if ((myWidth / 800.0) >= .97)    // 800 width (or close)
			//    document.getElementById('bodyLayoutTable').width = 760;
			//alert("resized");
		} 
		catch (err) {
		}
    }

    window.onload = resizeWidth;
    window.onresize = resizeWidth;
