<!--

var	getBrowserSize = function()
	{
    	var bodyWidth = document.documentElement.clientWidth;
    	var bodyHeight = document.documentElement.clientHeight;
    	
		var bodyWidth, bodyHeight; 
		if (self.innerHeight){ // all except Explorer 
		 
		   bodyWidth = self.innerWidth; 
		   bodyHeight = self.innerHeight; 
		}  else if (document.documentElement && document.documentElement.clientHeight) {
		   // Explorer 6 Strict Mode 		 
		   bodyWidth = document.documentElement.clientWidth; 
		   bodyHeight = document.documentElement.clientHeight; 
		} else if (document.body) {// other Explorers 		 
		   bodyWidth = document.body.clientWidth; 
		   bodyHeight = document.body.clientHeight; 
		} 
		return [bodyWidth,bodyHeight];		
		
	}
var repositionTransparentDiv = function()
    {
    	this.overlayDiv.style.top = Math.max(document.body.scrollTop,document.documentElement.scrollTop) + 'px';
    	this.overlayDiv.style.left = Math.max(document.body.scrollLeft,document.documentElement.scrollLeft) + 'px';
		var brSize = this.getBrowserSize();
		var bodyWidth = brSize[0];
		var bodyHeight = brSize[1];
    	this.overlayDiv.style.width = bodyWidth + 'px';
    	this.overlayDiv.style.height = bodyHeight + 'px';		
		   	
    }
var	attachEvent2 = function(whichObject,eventType,functionName,suffix)
			{ 
	 		 if(!suffix)suffix = '';
	 		 if(whichObject.attachEvent){ 
	   		 whichObject['e'+eventType+functionName+suffix] = functionName; 
	   		 whichObject[eventType+functionName+suffix] = function(){whichObject['e'+eventType+functionName+suffix]( window.event );} 
	    		whichObject.attachEvent( 'on'+eventType, whichObject[eventType+functionName+suffix] ); 
	  		} else 
	    	whichObject.addEventListener(eventType,functionName,false); 	    
	} 
var screenOverlay = function(getDiv) {

					overlayDiv = document.createElement('DIV');		
					var brSize = this.getBrowserSize();
						var bodyWidth = brSize[0];
						var bodyHeight = brSize[1]
					overlayDiv.id = getDiv;
					overlayDiv.style.border = '1px';
					overlayDiv.style.width = bodyWidth + 'px';
					overlayDiv.style.height = bodyHeight + 'px';
					overlayDiv.style.display = 'block';
					//overlayDiv.innerHTML = getDiv;
					overlayDiv.style.color = '#FFFFFF';
					overlayDiv.style.top = Math.max(document.body.scrollTop,document.documentElement.scrollTop) + 'px';
					this.removeImg = document.createElement('IMG');
					this.removeImg.src = 'images/deletemenuitem.gif';
					
					window.refToModMessage = this;
					
					attachEvent2(window,'scroll',function(e){ window.refToModMessage.repositionTransparentDiv() });
					attachEvent2(window,'resize',function(e){ window.refToModMessage.repositionTransparentDiv() });
					
					document.body.appendChild(overlayDiv);
					addEventHandler(window, 'scroll', set_screen_position);
					
				}

	var removeScreenOverlay = function (getDiv) {
					overlayDiv = document.getElementById(getDiv);
					try{
					document.body.removeChild(overlayDiv);
					}catch(e){
					}
		
	};
	// screen width, size and scroll (keeps the overlay in place
	// screen width, size and scroll (keeps the overlay in place
	var f_clientWidth = function() {
        			return f_filterResults (
        				window.innerWidth ? window.innerWidth : 0,
        				document.documentElement ? document.documentElement.clientWidth : 0,
        				document.body ? document.body.clientWidth : 0
        		);
	}

	var f_scrollLeft = function() {
        			return f_filterResults (
        				window.pageXOffset ? window.pageXOffset : 0,
        				document.documentElement ? document.documentElement.scrollLeft : 0,
        				document.body ? document.body.scrollLeft : 0
				);
	}

	var f_scrollTop = function() {
        			return f_filterResults (
						window.pageYOffset ? window.pageYOffset : 0,
        				document.documentElement ? document.documentElement.scrollTop : 0,
        				document.body ? document.body.scrollTop : 0
					);
	}
	// end screen width, size and scroll
	// size control output screen overlay
	var  f_filterResults = function(n_win, n_docel, n_body) {
       					var n_result = n_win ? n_win : 0;
        				if (n_docel && (!n_result || (n_result > n_docel)))
        				n_result = n_docel;
        				return n_body && (!n_result || (n_result > n_body)) ? n_body : n_result;
	}		
	// end size control output screen overlay
	//test auto animate

	//var ResizeDivFull = function (divElement) {
	//				var divEL=document.getElementById(divElement);
	//				var divWidth;
	//				if(divWidth<100) {
	//					divWidth++;
	//				t=setTimeout("ResizeDivFull(divElement)",250);
	//				} else {
	//					divWidth=100;
	//				}
	//					document.getElementById(divElement).style.height = divWidth + '%';
	//					document.getElementById(divElement).style.width = divWidth + '%';
	//				return true;

	//}
	// end test 	

	var set_screen_position =  function(getDiv) {
       				var div = document.getElementById(getDiv);
					if (div == null || div == '' || typeof(div) != 'object') { return false; }

					var scrollTop = f_scrollTop();
        			var scrollLeft = f_scrollLeft();
        			var clientWidth = f_clientWidth();

        // Calculate left position
        			var left = clientWidth - div.offsetWidth;
        			left = scrollLeft + left;

        // Set position
        			div.style.position = 'absolute';
        			div.style.left = left + 'px';
        			div.style.top = scrollTop + 'px';
}
	// event handler		
	var addEventHandler = function(oTarget, sEventType, fnHandler) {
        			if (oTarget.addEventListener) {
                		oTarget.addEventListener(sEventType, fnHandler, false);
        			} else if (oTarget.attachEvent) {
                		oTarget.attachEvent("on" + sEventType, fnHandler);
        			} else {
                		oTarget["on" + sEventType] = fnHandler;
        			} 
	};
	-->