	function xstooltip_findPosX(obj) 
	{
		var curleft = 0;
		if (obj.offsetParent) 
		{
			while (obj.offsetParent) 
	        {
	            curleft += obj.offsetLeft
	            obj = obj.offsetParent;
	        }
	    }
	    else if (obj.x)
	    	curleft += obj.x;
	    return curleft;	       
	}
	
	function xstooltip_findPosY(obj) 
	{
	    var curtop = 0;
	    if (obj.offsetParent) 
	    {
	        while (obj.offsetParent) 
	        {
	            curtop += obj.offsetTop
	            obj = obj.offsetParent;
	        }
	    }
	    else if (obj.y)
	        curtop += obj.y;
	    return curtop;
	}
	
	function xstooltip_show(tooltipId, parentId, posX, posY)
	{
	    it = document.getElementById(tooltipId);
	    
	    if ((it.style.top == '' || it.style.top == 0) 
	        && (it.style.left == '' || it.style.left == 0))
	    {
	        // need to fixate default size (MSIE problem)
	        it.style.width = it.offsetWidth + 'px';
	        it.style.height = it.offsetHeight + 'px';
	        
	        img = document.getElementById(parentId); 
	    
	        // if tooltip is too wide, shift left to be within parent 
	        if (posX + it.offsetWidth > img.offsetWidth) posX = img.offsetWidth - it.offsetWidth;
	        if (posX < 0 ) posX = 0; 
	        
	        x = xstooltip_findPosX(img) + posX;
	        y = xstooltip_findPosY(img) + posY;
	        
	        it.style.top = y + 'px';
	        it.style.left = x + 'px';
	    }
	    
	    it.style.visibility = 'visible'; 
	}


	function xstooltip_hide(id)
	{
	    it = document.getElementById(id); 
	    it.style.visibility = 'hidden'; 
	}


	function validate() 
	{
		document.form_save_top_5.submit()
		return true;
	}
	

	//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
	//                                                                                                                                      //
	//      DISABLE RIGHT MOUSE CLICK SCRIPT                                                                                                //
	//                                                                                                                                      //
	//      Disable function by Maximus (maximus@nsimail.com) mods by DynamicDrive: http://www.dynamicdrive.com                             //
	//                                                                                                                                      //
	//      Alert Box Alternative by William and Mari Bontrager: http://www.willmaster.com/library/javascript/alert-box-alternative.php     //
	//                                                                                                                                      //
	//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
		
	
	function DisplayAlert(id,left,top) 
	{
		document.getElementById(id).style.left=left+'px';
		document.getElementById(id).style.top=top+'px';
		document.getElementById(id).style.display='block';
	}

	document.oncontextmenu = new Function("DisplayAlert('AlertBox',100,250);return false")

	function Show_Alert() 
	{
		DisplayAlert('AlertBox',500,300);
	}


	function clickIE4()
	{
		if (event.button==2)
		{
			Show_Alert();
			return false;
		}
	}
	
	function clickNS4(e)
	{
		if (document.layers||document.getElementById&&!document.all)
		{
			if (e.which==2||e.which==3)
			{
				Show_Alert();
				return false;
			}
		}
	}
	
	if (document.layers)
	{
		document.captureEvents(Event.MOUSEDOWN);
		document.onmousedown=clickNS4;
	}
	else if (document.all&&!document.getElementById)
	{
		document.onmousedown=clickIE4;
	}
	
	document.oncontextmenu = new Function("Show_Alert();return false")
	
	
	//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
	//                                                                                                                                      //
	//      REMOVING ALT TOOLTIPS IN IE WITH JAVASCRIPT                                                                                     //
	//                                                                                                                                      //
	//      by Jon Gibbins http://dotjay.co.uk/                                                                                             //
	//                                                                                                                                      //
	//      http://dotjay.co.uk/2007/apr/removing-alt-tooltips-in-ie-with-javascript                                                        //
	//                                                                                                                                      //
	//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

	
	var objFixIeTooltip = 
	{
	// methods
		init : function() 
		{
			// detect support
			if (!document.getElementById || !document.getElementsByTagName) return;
			// detect IE - leave out if using conditional comments
			var isIE = navigator.userAgent.indexOf("MSIE");
			if (isIE < 1) return;
			// find the image(s) - tweak to your needs
			var elContainer=document.getElementById("header");
			if (!elContainer) return;
			var elImg=elContainer.getElementsByTagName("img")[0];
			if (!elImg) return;
			// if there isn't already a title attribute set on the image, set the title attribute to blank, thus overriding the alt tooltip behaviour
			// use == '' because IE always thinks title is a string (cannot distinguish between undefined and empty attributes)
			if (elImg.getAttribute('title') == '') elImg.setAttribute('title','');
		}
	};
	addLoadEvent(objFixIeTooltip.init);

	var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
	document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));

	var pageTracker = _gat._getTracker("UA-3580155-1");
	pageTracker._initData();
	pageTracker._trackPageview();

