
	//############################################################################################
	// GET OBJECT BY ID - adott browser alapján visszaadja az ID vel rendelkezo objektumot
	var isDOM = (document.getElementById ? true : false);
	var isIE =  (document.all ? true : false);
	var isIE4 = ((document.all && !isDOM) ? true : false);
	var isNS4 = (document.layers ? true : false);
	
	function getObject(id) {
			if (isDOM) return document.getElementById(id);		// DOM compatible
			if (isIE4) return document.all[id];					// IE4
			if (isNS4) return document.layers[id];				// NS4
			return false;
	}
	//############################################################################################	
	// GET SCROLL POSITION

	function getScrollXY() {																// get the scroll ofset
	  var scrOfX = 0, scrOfY = 0;
	  if( typeof( window.pageYOffset ) == 'number' ) {
		//Netscape compliant
		scrOfY = window.pageYOffset;
		scrOfX = window.pageXOffset;
	  } else if( document.body && ( document.body.scrollLeft || document.body.scrollTop ) ) {
		//DOM compliant
		scrOfY = document.body.scrollTop;
		scrOfX = document.body.scrollLeft;
	  } else if( document.documentElement && ( document.documentElement.scrollLeft || document.documentElement.scrollTop ) ) {
		//IE6 standards compliant mode
		scrOfY = document.documentElement.scrollTop;
		scrOfX = document.documentElement.scrollLeft;	
	  }
	  return [ scrOfX, scrOfY ];
	}

	//############################################################################################
	// GET MOUSE POSITON
	// Set Netscape up to run the "captureMousePosition" function whenever
	// the mouse is moved. For Internet Explorer and Netscape 6, you can capture
	// the movement a little easier.
	
	// Global variables
	xMousePos = 0; // Horizontal position of the mouse on the screen
	yMousePos = 0; // Vertical position of the mouse on the screen
	xMousePosMax = 0; // Width of the page
	yMousePosMax = 0; // Height of the page

	function getmouseposition() {
		if (document.layers) { // Netscape
			document.captureEvents(Event.MOUSEMOVE);
			document.onmousemove = captureMousePosition;
		} else if (document.all) { // Internet Explorer
			document.onmousemove = captureMousePosition;
		} else if (document.getElementById) { // Netcsape 6
			document.onmousemove = captureMousePosition;
		}
	}
	
	getmouseposition();
	
	function captureMousePosition(e) {
		if (document.layers) {
			// When the page scrolls in Netscape, the event's mouse position
			// reflects the absolute position on the screen. innerHight/Width
			// is the position from the top/left of the screen that the user is
			// looking at. pageX/YOffset is the amount that the user has
			// scrolled into the page. So the values will be in relation to
			// each other as the total offsets into the page, no matter if
			// the user has scrolled or not.
			xMousePos = e.pageX;
			yMousePos = e.pageY;
			xMousePosMax = window.innerWidth+window.pageXOffset;
			yMousePosMax = window.innerHeight+window.pageYOffset;
		} else if (document.all) {
			// When the page scrolls in IE, the event's mouse position
			// reflects the position from the top/left of the screen the
			// user is looking at. scrollLeft/Top is the amount the user
			// has scrolled into the page. clientWidth/Height is the height/
			// width of the current page the user is looking at. So, to be
			// consistent with Netscape (above), add the scroll offsets to
			// both so we end up with an absolute value on the page, no
			// matter if the user has scrolled or not.
			xMousePos = window.event.x+document.body.scrollLeft;
			yMousePos = window.event.y+document.body.scrollTop;
			xMousePosMax = document.body.clientWidth+document.body.scrollLeft;
			yMousePosMax = document.body.clientHeight+document.body.scrollTop;
		} else if (document.getElementById) {
			// Netscape 6 behaves the same as Netscape 4 in this regard
			scrollbarpos = getScrollXY();
			xMousePos = e.pageX-scrollbarpos[0];
			yMousePos = e.pageY-scrollbarpos[1];
			xMousePosMax = window.innerWidth+window.pageXOffset;
			yMousePosMax = window.innerHeight+window.pageYOffset;
		}
	}

	//############################################################################################
	//	Change object class by AteDin
		function change_class(obj,style)	// obj = object /this/   style = new style name 
		{
		// o = getObject(obj);
		// o.className=style;
		obj.className=style;
		}

	//############################################################################################
	//	showhideDIV class by AteDin
	// FT - false or ture
	// chkTD - chechkbox 
	// div to change
	// onclick="chboxSHdivFT(this, getObject('fileDIV'),true)"

		function chboxSHdivFT(chkID, divID,FT)
		{
		//alert (chkID.checked+' = '+FT+' - '+chkID.value);
		//alert (divID);
			if (chkID.checked == FT) {
			divID.className='div_hide';
			//alert ('hide');
			} else {
			divID.className='div_show'; 
			//alert ('show');
			}
		}

	//############################################################################################
	// SLIDESIDE
	
	//document.write('<div class="SLIDESIDE" name="divSLIDESIDE" id="divSLIDESIDE"><img src="http://www.atedin.hu/images/atedin-cms v1.gif"/></div>'); // create layer object - PHP ban
	function smoothSLIDE() {
		
		scrollbarpos = getScrollXY();
		getmouseposition();

		obj = getObject('TESZT')			
		Ynow = obj.style.top;
		Yto= scrollbarpos[1] + 5;
		
		if (Ynow >Yto) {
			dir = 1;
			} else dir = -1;

		//alert (dir);
	}

	function moveSLIDESIDE()																	// SLIDESIDE
    {
		scrollbarpos = getScrollXY();
		getmouseposition();

		//smoothSLIDE();

			/*
			x = scrollbarpos[0]+"px";
			y = scrollbarpos[1] + 5+"px";
			obj = getObject('divSLIDESIDE')	
			obj.style.display="block";
			obj.style.left = x;
			obj.style.top = y;
			*/
			
			x = scrollbarpos[0]+ 5 + "px";
			y = scrollbarpos[1] + 5 + "px";
			obj = getObject('TESZT')	
			obj.style.display="block";
			obj.style.left = x;
			obj.style.top = y;

			y = scrollbarpos[1] + 250 + "px";
			x = scrollbarpos[0] + (xMousePosMax/2) - 150 + "px";	
			obj = getObject('systemFLOATmessage')	
			//obj.style.left = x;
			obj.style.top = y;

	}
	
	function showsystemFLOATmessage()																// show systemfloater
    {
			obj = getObject('systemFLOATmessage')	
			obj.style.display="block";

	setTimeout('hidesystemFLOATmessage()', 2300)
	}

	function hidesystemFLOATmessage()																		// hide systemfloater
    {
			obj = getObject('systemFLOATmessage')	
			obj.style.display="none";
    }	

	//############################################################################################
  	// TOOLTIP  and change content dinamicly

	document.write('<div class="TOOLTIP" name="divTOOLTIP" id="divTOOLTIP"></div>');			// create layer object

	function showTOOLTIP(msg)																	// show and move TOOLTIP
    {
		if (msg) {WriteLayer ('divTOOLTIP',null,msg);} else return;								// modify content if 'msg' set
		
		scrollbarpos = getScrollXY();
		getmouseposition();

			x = xMousePos + scrollbarpos[0]+"px";
			y = yMousePos + scrollbarpos[1] +25+"px";
			obj = getObject('divTOOLTIP')	
			obj.style.display="block";
			obj.style.left = x;
			obj.style.top = y;
	}

	function hideTOOLTIP()																		// hide TOOLTIP
    {
			obj = getObject('divTOOLTIP')	
			obj.style.display="none";
    }


		//############################################################################################
  	// PLUMET INFO

	document.write('<div name="plumetinfo" id="plumetinfo"></div>');			// create layer object

	function Pshow(id,duma)																	// show and move TOOLTIP
    {
		scrollbarpos = getScrollXY();
		getmouseposition();
		// setLOADING ('plumetinfo');
		
		// alert ("/kiegeszitok/images/"+id+"_1.jpg");
		
		sText = '<h5>'+duma+'<h5><center><img src="/kiegeszitok/images/'+id+'_1.jpg" alt=""/></center>';
		parentID = null;
		WriteLayer('plumetinfo',parentID,sText);
		
		// new Ajax.Updater('plumetinfo', "/kiegeszitok/show_info.php?kid="+id);

	}
	
	function Pmove()																	// show and move TOOLTIP
    {
			if (xMousePos > 550) Xoffset = -260;
			else Xoffset = 20;
			
			if (yMousePos+ scrollbarpos[1] < 600) Yoffset = 20;
			else if (yMousePos+ scrollbarpos[1] > 800) Yoffset = -220;
			else Yoffset = -110;
			
			x = xMousePos + scrollbarpos[0] + Xoffset +"px";
			y = yMousePos + scrollbarpos[1] + Yoffset + "px";
			obj = getObject('plumetinfo')	
			obj.style.display="block";
			obj.style.left = x;
			obj.style.top = y;
	}	

	function Phide()																		// hide TOOLTIP
    {
			obj = $('plumetinfo')	
			obj.style.display="none";
    }
	
	function setLOADING (ID) {
		sText = '<center><img src="/system/images/atd-loadinganim.gif" alt="loading" width="32" height="32"/></center>';
		parentID = null;
		WriteLayer(ID,parentID,sText);
	}


	//############################################################################################
	// replace DIV/layer content
	
	function WriteLayer(ID,parentID,sText) {													// modify layer content
	 if (document.layers) { 
	   var oLayer; 
	   if(parentID){ 
		 oLayer = eval('document.' + parentID + '.document.' + ID + '.document'); 
	   }else{ 
		 oLayer = document.layers[ID].document; 
	   } 
	   oLayer.open(); 
	   oLayer.write(sText); 
	   oLayer.close(); 
	 } 
	 else if (parseInt(navigator.appVersion)>=5&&navigator. 
	appName=="Netscape") { 
	   document.getElementById(ID).innerHTML = sText; 
	 } 
	 else if (document.all) document.all[ID].innerHTML = sText 
	}
	
	//############################################################################################
	// drag and drop DIV objects
	// http://dunnbypaul.net/js_mouse/	
	var mousex = 0;
	var mousey = 0;
	var grabx = 0;
	var graby = 0;
	var orix = 0;
	var oriy = 0;
	var elex = 0;
	var eley = 0;
	var algor = 0;
	
	var dragobj = null;
	
	function falsefunc() { return false; } // used to block cascading events
	
	function init()
	{
	  document.onmousemove = update; // update(event) implied on NS, update(null) implied on IE
	  update();
	}
 
	function getMouseXY(e) // works on IE6,FF,Moz,Opera7
	{ 
	  if (!e) e = window.event; // works on IE, but not NS (we rely on NS passing us the event)
	 
	  if (e)
	  { 
		if (e.pageX || e.pageY)
		{ // this doesn't work on IE6!! (works on FF,Moz,Opera7)
		  mousex = e.pageX;
		  mousey = e.pageY;
		  algor = '[e.pageX]';
		  if (e.clientX || e.clientY) algor += ' [e.clientX] '
		}
		else if (e.clientX || e.clientY)
		{ // works on IE6,FF,Moz,Opera7
		  // Note: I am adding together both the "body" and "documentElement" scroll positions
		  //       this lets me cover for the quirks that happen based on the "doctype" of the html page.
		  //         (example: IE6 in compatibility mode or strict)
		  //       Based on the different ways that IE,FF,Moz,Opera use these ScrollValues for body and documentElement
		  //       it looks like they will fill EITHER ONE SCROLL VALUE OR THE OTHER, NOT BOTH 
		  //         (from info at http://www.quirksmode.org/js/doctypes.html)
		  mousex = e.clientX + document.body.scrollLeft + document.documentElement.scrollLeft;
		  mousey = e.clientY + document.body.scrollTop + document.documentElement.scrollTop;
		  algor = '[e.clientX]';
		  if (e.pageX || e.pageY) algor += ' [e.pageX] '
		}
	  }
	}
	
	function update(e)
	{
	  getMouseXY(e); // NS is passing (event), while IE is passing (null)
	
	  document.getElementById('span_browser').innerHTML = navigator.appName;
	  document.getElementById('span_winevent').innerHTML = window.event ? window.event.type : '(na)';
	  document.getElementById('span_autevent').innerHTML = e ? e.type : '(na)';
	  document.getElementById('span_mousex').innerHTML = mousex;
	  document.getElementById('span_mousey').innerHTML = mousey;
	  document.getElementById('span_grabx').innerHTML = grabx;
	  document.getElementById('span_graby').innerHTML = graby;
	  document.getElementById('span_orix').innerHTML = orix;
	  document.getElementById('span_oriy').innerHTML = oriy;
	  document.getElementById('span_elex').innerHTML = elex;
	  document.getElementById('span_eley').innerHTML = eley;
	  document.getElementById('span_algor').innerHTML = algor;
	  document.getElementById('span_dragobj').innerHTML = dragobj ? (dragobj.id ? dragobj.id : 'unnamed object') : '(null)';
	}
	
	function grab(context)
	{
	  document.onmousedown = falsefunc; // in NS this prevents cascading of events, thus disabling text selection
	  dragobj = context;
	  dragobj.style.zIndex = 10; // move it to the top
	  document.onmousemove = drag;
	  document.onmouseup = drop;
	  grabx = mousex;
	  graby = mousey;
	  elex = orix = dragobj.offsetLeft;
	  eley = oriy = dragobj.offsetTop;
	  update();
	}
	
	function drag(e) // parameter passing is important for NS family 
	{
	  if (dragobj)
	  {
		elex = orix + (mousex-grabx);
		eley = oriy + (mousey-graby);
		dragobj.style.position = "absolute";
		dragobj.style.left = (elex).toString(10) + 'px';
		dragobj.style.top  = (eley).toString(10) + 'px';
	  }
	  update(e);
	  return false; // in IE this prevents cascading of events, thus text selection is disabled
	}
	
	function drop()
	{
	  if (dragobj)
	  {
		dragobj.style.zIndex = 0;
		dragobj = null;
	  }
	  update();
	  document.onmousemove = update;
	  document.onmouseup = null;
	  document.onmousedown = null;   // re-enables text selection on NS
	}

	//############################################################################################
	// change status message
	function StatusMsg(msgStr) {
		status=msgStr;
		document.returnValue = true;
	}

	//############################################################################################
	// simple js alert popup message

	function popupMsg(msg) {
		alert(msg);
		}
		
	//############################################################################################
	// out this there
	
	function putTHISthere(thisx,therex) {
		objthere = getObject(therex);
		objthere.value = thisx.value;
	}
	
	//############################################################################################
	// restrict input in IE
	
	var phone = "()- 0123456789";
		var numb = "0123456789";
		var alpha = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ ";
		var mailad = "abcdefghijklmnopqrstuvwxyz@.0123456789";	
		var username = "abcdefghijklmnopqrstuvwxyz0123456789";
		var pass = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789";	
		
		function res(t,v) {
		var w = "";
			for (i=0; i < t.value.length; i++) {
			x = t.value.charAt(i);
			if (v.indexOf(x,0) != -1)
			w += x;
			}
		t.value = w;
		}
	
	//############################################################################################
	// return the value of the radio button that is checked
	// return an empty string if none are checked, or
	// there are no radio buttons
	function getCheckedValue(radioObj) {
		if(!radioObj)
			return "";
		var radioLength = radioObj.length;
		if(radioLength == undefined)
			if(radioObj.checked)
				return radioObj.value;
			else
				return "";
		for(var i = 0; i < radioLength; i++) {
			if(radioObj[i].checked) {
				return radioObj[i].value;
			}
		}
		return "";
	}
	
	//############################################################################################
	// set the radio button with the given value as being checked
	// do nothing if there are no radio buttons
	// if the given value does not exist, all the radio buttons
	// are reset to unchecked
	function setCheckedValue(radioObj, newValue) {
		if(!radioObj)
			return;
		var radioLength = radioObj.length;
		if(radioLength == undefined) {
			radioObj.checked = (radioObj.value == newValue.toString());
			return;
		}
		for(var i = 0; i < radioLength; i++) {
			radioObj[i].checked = false;
			if(radioObj[i].value == newValue.toString()) {
				radioObj[i].checked = true;
			}
		}
	}

	//############################################################################################
	// jump to a place
	function relocate(url) {
	document.location = (url);
	}
	
	//############################################################################################
	// open browser window
	function openWindow(url,name,features) {
	  window.open(url,name,features);
	}	

	//############################################################################################
	//	Confirm and go to location
	function confirmGO(msg,url) // msg = message , url = place to go
	  {
	  var r=confirm(msg)
	  if (r==true)
		{
		document.location = (url);
		return;
		}
	  else
		{
		return;
		}
	  }

	//############################################################################################
	/*
		var slideShowSpeed = 2500
		var crossFadeDuration = 3
		var Pic = new Array() 
						
		
		Pic[0] = 'http://www.myadiamond.com/titles/1670/myadiamond_Tiffany_Rousso_and_Clark_384x384-00206-title-01.jpg';
		Pic[1] = 'http://www.myadiamond.com/titles/1670/myadiamond_Tiffany_Rousso_and_Clark_384x384-00206-title-02.jpg';
		Pic[2] = 'http://www.myadiamond.com/titles/1670/myadiamond_Tiffany_Rousso_and_Clark_384x384-00206-title-03.jpg';
		Pic[3] = 'http://www.myadiamond.com/titles/1670/myadiamond_Tiffany_Rousso_and_Clark_384x384-00206-title-04.jpg';
		
		
		// =======================================
		
		var t
		var j = 0
		var p = Pic.length
		var step = 1
		
		var preLoad = new Array()
		for (i = 0; i < p; i++)
		{
		   preLoad[i] = new Image()
		   preLoad[i].src = Pic[i]
		}
		
		function runSlideShow()
		{
		   if (document.all)
		   {
			  document.images.SlideShow.style.filter="blendTrans(duration=2)"
			  document.images.SlideShow.style.filter="blendTrans(duration=crossFadeDuration)"
			  document.images.SlideShow.filters.blendTrans.Apply()      
		   }
		   document.images.SlideShow.src = preLoad[j].src
		   if (document.all)
		   {
			  document.images.SlideShow.filters.blendTrans.Play()
		   }
		   j = j + step
		   if (j > (p-1)) j=0
		   t = setTimeout('runSlideShow()', slideShowSpeed)
		}
		
		function stopfade()
		{
			clearTimeout(t)
		}
		
		function startfade()
		{
			t = setTimeout('runSlideShow()', slideShowSpeed)
		}
	*/
	
	//
		//############################################################################################
	//<!--
	// Ultimate client-side JavaScript client sniff. Version 3.03
	// (C) Netscape Communications 1999-2001.  Permission granted to reuse and distribute.
	// Revised 17 May 99 to add is_nav5up and is_ie5up (see below).
	// Revised 20 Dec 00 to add is_gecko and change is_nav5up to is_nav6up
	//                      also added support for IE5.5 Opera4&5 HotJava3 AOLTV
	// Revised 22 Feb 01 to correct Javascript Detection for IE 5.x, Opera 4, 
	//                      correct Opera 5 detection
	//                      add support for winME and win2k
	//                      synch with browser-type-oo.js
	// Revised 26 Mar 01 to correct Opera detection
	// Revised 02 Oct 01 to add IE6 detection
	
	// Everything you always wanted to know about your JavaScript client
	// but were afraid to ask. Creates "is_" variables indicating:
	// (1) browser vendor:
	//     is_nav, is_ie, is_opera, is_hotjava, is_webtv, is_TVNavigator, is_AOLTV
	// (2) browser version number:
	//     is_major (integer indicating major version number: 2, 3, 4 ...)
	//     is_minor (float   indicating full  version number: 2.02, 3.01, 4.04 ...)
	// (3) browser vendor AND major version number
	//     is_nav2, is_nav3, is_nav4, is_nav4up, is_nav6, is_nav6up, is_gecko, is_ie3,
	//     is_ie4, is_ie4up, is_ie5, is_ie5up, is_ie5_5, is_ie5_5up, is_ie6, is_ie6up, is_hotjava3, is_hotjava3up,
	//     is_opera2, is_opera3, is_opera4, is_opera5, is_opera5up
	// (4) JavaScript version number:
	//     is_js (float indicating full JavaScript version number: 1, 1.1, 1.2 ...)
	// (5) OS platform and version:
	//     is_win, is_win16, is_win32, is_win31, is_win95, is_winnt, is_win98, is_winme, is_win2k
	//     is_os2
	//     is_mac, is_mac68k, is_macppc
	//     is_unix
	//     is_sun, is_sun4, is_sun5, is_suni86
	//     is_irix, is_irix5, is_irix6
	//     is_hpux, is_hpux9, is_hpux10
	//     is_aix, is_aix1, is_aix2, is_aix3, is_aix4
	//     is_linux, is_sco, is_unixware, is_mpras, is_reliant
	//     is_dec, is_sinix, is_freebsd, is_bsd
	//     is_vms
	//
	// See http://www.it97.de/JavaScript/JS_tutorial/bstat/navobj.html and
	// http://www.it97.de/JavaScript/JS_tutorial/bstat/Browseraol.html
	// for detailed lists of userAgent strings.
	//
	// Note: you don't want your Nav4 or IE4 code to "turn off" or
	// stop working when new versions of browsers are released, so
	// in conditional code forks, use is_ie5up ("IE 5.0 or greater") 
	// is_opera5up ("Opera 5.0 or greater") instead of is_ie5 or is_opera5
	// to check version in code which you want to work on future
	// versions.

/*

		// convert all characters to lowercase to simplify testing
		var agt=navigator.userAgent.toLowerCase();
	
		// *** BROWSER VERSION ***
		// Note: On IE5, these return 4, so use is_ie5up to detect IE5.
		var is_major = parseInt(navigator.appVersion);
		var is_minor = parseFloat(navigator.appVersion);
	
		// Note: Opera and WebTV spoof Navigator.  We do strict client detection.
		// If you want to allow spoofing, take out the tests for opera and webtv.
		var is_nav  = ((agt.indexOf('mozilla')!=-1) && (agt.indexOf('spoofer')==-1)
					&& (agt.indexOf('compatible') == -1) && (agt.indexOf('opera')==-1)
					&& (agt.indexOf('webtv')==-1) && (agt.indexOf('hotjava')==-1));
		var is_nav2 = (is_nav && (is_major == 2));
		var is_nav3 = (is_nav && (is_major == 3));
		var is_nav4 = (is_nav && (is_major == 4));
		var is_nav4up = (is_nav && (is_major >= 4));
		var is_navonly      = (is_nav && ((agt.indexOf(";nav") != -1) ||
							  (agt.indexOf("; nav") != -1)) );
		var is_nav6 = (is_nav && (is_major == 5));
		var is_nav6up = (is_nav && (is_major >= 5));
		var is_gecko = (agt.indexOf('gecko') != -1);
	
	
		var is_ie     = ((agt.indexOf("msie") != -1) && (agt.indexOf("opera") == -1));
		var is_ie3    = (is_ie && (is_major < 4));
		var is_ie4    = (is_ie && (is_major == 4) && (agt.indexOf("msie 4")!=-1) );
		var is_ie4up  = (is_ie && (is_major >= 4));
		var is_ie5    = (is_ie && (is_major == 4) && (agt.indexOf("msie 5.0")!=-1) );
		var is_ie5_5  = (is_ie && (is_major == 4) && (agt.indexOf("msie 5.5") !=-1));
		var is_ie5up  = (is_ie && !is_ie3 && !is_ie4);
		var is_ie5_5up =(is_ie && !is_ie3 && !is_ie4 && !is_ie5);
		var is_ie6    = (is_ie && (is_major == 4) && (agt.indexOf("msie 6.")!=-1) );
		var is_ie6up  = (is_ie && !is_ie3 && !is_ie4 && !is_ie5 && !is_ie5_5);
	
		// KNOWN BUG: On AOL4, returns false if IE3 is embedded browser
		// or if this is the first browser window opened.  Thus the
		// variables is_aol, is_aol3, and is_aol4 aren't 100% reliable.
		var is_aol   = (agt.indexOf("aol") != -1);
		var is_aol3  = (is_aol && is_ie3);
		var is_aol4  = (is_aol && is_ie4);
		var is_aol5  = (agt.indexOf("aol 5") != -1);
		var is_aol6  = (agt.indexOf("aol 6") != -1);
	
		var is_opera = (agt.indexOf("opera") != -1);
		var is_opera2 = (agt.indexOf("opera 2") != -1 || agt.indexOf("opera/2") != -1);
		var is_opera3 = (agt.indexOf("opera 3") != -1 || agt.indexOf("opera/3") != -1);
		var is_opera4 = (agt.indexOf("opera 4") != -1 || agt.indexOf("opera/4") != -1);
		var is_opera5 = (agt.indexOf("opera 5") != -1 || agt.indexOf("opera/5") != -1);
		var is_opera5up = (is_opera && !is_opera2 && !is_opera3 && !is_opera4);
	
		var is_webtv = (agt.indexOf("webtv") != -1); 
	
		var is_TVNavigator = ((agt.indexOf("navio") != -1) || (agt.indexOf("navio_aoltv") != -1)); 
		var is_AOLTV = is_TVNavigator;
	
		var is_hotjava = (agt.indexOf("hotjava") != -1);
		var is_hotjava3 = (is_hotjava && (is_major == 3));
		var is_hotjava3up = (is_hotjava && (is_major >= 3));
	
		// *** JAVASCRIPT VERSION CHECK ***
		var is_js;
		if (is_nav2 || is_ie3) is_js = 1.0;
		else if (is_nav3) is_js = 1.1;
		else if (is_opera5up) is_js = 1.3;
		else if (is_opera) is_js = 1.1;
		else if ((is_nav4 && (is_minor <= 4.05)) || is_ie4) is_js = 1.2;
		else if ((is_nav4 && (is_minor > 4.05)) || is_ie5) is_js = 1.3;
		else if (is_hotjava3up) is_js = 1.4;
		else if (is_nav6 || is_gecko) is_js = 1.5;
		// NOTE: In the future, update this code when newer versions of JS
		// are released. For now, we try to provide some upward compatibility
		// so that future versions of Nav and IE will show they are at
		// *least* JS 1.x capable. Always check for JS version compatibility
		// with > or >=.
		else if (is_nav6up) is_js = 1.5;
		// NOTE: ie5up on mac is 1.4
		else if (is_ie5up) is_js = 1.3
	
		// HACK: no idea for other browsers; always check for JS version with > or >=
		else is_js = 0.0;
	
		// *** PLATFORM ***
		var is_win   = ( (agt.indexOf("win")!=-1) || (agt.indexOf("16bit")!=-1) );
		// NOTE: On Opera 3.0, the userAgent string includes "Windows 95/NT4" on all
		//        Win32, so you can't distinguish between Win95 and WinNT.
		var is_win95 = ((agt.indexOf("win95")!=-1) || (agt.indexOf("windows 95")!=-1));
	
		// is this a 16 bit compiled version?
		var is_win16 = ((agt.indexOf("win16")!=-1) || 
				   (agt.indexOf("16bit")!=-1) || (agt.indexOf("windows 3.1")!=-1) || 
				   (agt.indexOf("windows 16-bit")!=-1) );  
	
		var is_win31 = ((agt.indexOf("windows 3.1")!=-1) || (agt.indexOf("win16")!=-1) ||
						(agt.indexOf("windows 16-bit")!=-1));
	
		var is_winme = ((agt.indexOf("win 9x 4.90")!=-1));
		var is_win2k = ((agt.indexOf("windows nt 5.0")!=-1));
	
		// NOTE: Reliable detection of Win98 may not be possible. It appears that:
		//       - On Nav 4.x and before you'll get plain "Windows" in userAgent.
		//       - On Mercury client, the 32-bit version will return "Win98", but
		//         the 16-bit version running on Win98 will still return "Win95".
		var is_win98 = ((agt.indexOf("win98")!=-1) || (agt.indexOf("windows 98")!=-1));
		var is_winnt = ((agt.indexOf("winnt")!=-1) || (agt.indexOf("windows nt")!=-1));
		var is_win32 = (is_win95 || is_winnt || is_win98 || 
						((is_major >= 4) && (navigator.platform == "Win32")) ||
						(agt.indexOf("win32")!=-1) || (agt.indexOf("32bit")!=-1));
	
		var is_os2   = ((agt.indexOf("os/2")!=-1) || 
						(navigator.appVersion.indexOf("OS/2")!=-1) ||   
						(agt.indexOf("ibm-webexplorer")!=-1));
	
		var is_mac    = (agt.indexOf("mac")!=-1);
		// hack ie5 js version for mac
		if (is_mac && is_ie5up) is_js = 1.4;
		var is_mac68k = (is_mac && ((agt.indexOf("68k")!=-1) || 
								   (agt.indexOf("68000")!=-1)));
		var is_macppc = (is_mac && ((agt.indexOf("ppc")!=-1) || 
									(agt.indexOf("powerpc")!=-1)));
	
		var is_sun   = (agt.indexOf("sunos")!=-1);
		var is_sun4  = (agt.indexOf("sunos 4")!=-1);
		var is_sun5  = (agt.indexOf("sunos 5")!=-1);
		var is_suni86= (is_sun && (agt.indexOf("i86")!=-1));
		var is_irix  = (agt.indexOf("irix") !=-1);    // SGI
		var is_irix5 = (agt.indexOf("irix 5") !=-1);
		var is_irix6 = ((agt.indexOf("irix 6") !=-1) || (agt.indexOf("irix6") !=-1));
		var is_hpux  = (agt.indexOf("hp-ux")!=-1);
		var is_hpux9 = (is_hpux && (agt.indexOf("09.")!=-1));
		var is_hpux10= (is_hpux && (agt.indexOf("10.")!=-1));
		var is_aix   = (agt.indexOf("aix") !=-1);      // IBM
		var is_aix1  = (agt.indexOf("aix 1") !=-1);    
		var is_aix2  = (agt.indexOf("aix 2") !=-1);    
		var is_aix3  = (agt.indexOf("aix 3") !=-1);    
		var is_aix4  = (agt.indexOf("aix 4") !=-1);    
		var is_linux = (agt.indexOf("inux")!=-1);
		var is_sco   = (agt.indexOf("sco")!=-1) || (agt.indexOf("unix_sv")!=-1);
		var is_unixware = (agt.indexOf("unix_system_v")!=-1); 
		var is_mpras    = (agt.indexOf("ncr")!=-1); 
		var is_reliant  = (agt.indexOf("reliantunix")!=-1);
		var is_dec   = ((agt.indexOf("dec")!=-1) || (agt.indexOf("osf1")!=-1) || 
			   (agt.indexOf("dec_alpha")!=-1) || (agt.indexOf("alphaserver")!=-1) || 
			   (agt.indexOf("ultrix")!=-1) || (agt.indexOf("alphastation")!=-1)); 
		var is_sinix = (agt.indexOf("sinix")!=-1);
		var is_freebsd = (agt.indexOf("freebsd")!=-1);
		var is_bsd = (agt.indexOf("bsd")!=-1);
		var is_unix  = ((agt.indexOf("x11")!=-1) || is_sun || is_irix || is_hpux || 
					 is_sco ||is_unixware || is_mpras || is_reliant || 
					 is_dec || is_sinix || is_aix || is_linux || is_bsd || is_freebsd);
	
		var is_vms   = ((agt.indexOf("vax")!=-1) || (agt.indexOf("openvms")!=-1));
		
	/*
	Here are the results of running that JavaScript code on the browser you are using. The below text has been dynamically generated after checking your browser vendor, version, and operating system from JavaScript. 
	
	Basic Data 
	navigator.appName Microsoft Internet Explorer
	navigator.userAgent Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322; .NET CLR 2.0.50727)
	navigator.appVersion 4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322; .NET CLR 2.0.50727)
	
	
	Version Number 
	major:4
	minor:4
	
	
	Browser Version 
	nav:false
	nav2:false
	nav3:false
	nav4:false
	nav4up:false
	nav6:false
	nav6up:false
	gecko:false
	navonly:false
	
	
	ie:true
	ie3:false
	ie4:false
	ie4up:true
	ie5:false
	ie5up:true
	ie5_5:false
	ie5_5up:true
	ie6:true
	ie6up:true
	
	
	aol:false
	aol3:false
	aol4:false
	aol5:false
	aol6:false
	
	
	opera:false
	opera2:false
	opera3:false
	opera4:false
	opera5:false
	opera5up:false
	
	
	webtv:false
	
	
	hotjava:false
	hotjava3:false
	hotjava3up:false
	
	
	AOL TV(TVNavigator):false
	
	
	JavaScript Version 
	js:1.3
	
	
	OS 
	win:true
	win16:false
	win31:false
	win32:true
	win95:false
	win98:false
	winme:false
	winnt:true
	win2k:false
	
	
	os2:false
	
	
	mac:false
	mac68k:false
	macppc:false
	
	
	unix:false
	sun:false
	sun4:false
	sun5:false
	suni86:false
	irix:false
	irix5:false
	irix6:false
	hpux:false
	hpux9:false
	hpux10:false
	aix:false
	aix1:false
	aix2:false
	aix3:false
	aix4:false
	linux:false
	sco:false
	unixware:false
	mpras:false
	reliant:false
	dec:false
	sinix:false
	bsd:false
	freebsd:false
	
	
	vms:false
	
	*/	
		
	//alert ("You are using: "+navigator.appName);		
	
	//--> end hide JavaScript






