// JavaScript Document


var section='';
function fHideScreen(div) {
	div.style.display = "none";
	//var img = document.getElementById("screenImg");
	//img.src = "";
}
								
							
var cX = 0; var cY = 0; var rX = 0; var rY = 0;

var IE = document.all?true:false;
//if (!IE) document.captureEvents(Event.MOUSEMOVE)


function getMouseXY(e) {
if (IE) { // grab the x-y pos.s if browser is IE
cX = event.clientX + document.body.scrollLeft;
cY = event.clientY + document.body.scrollTop;
}
else {  // grab the x-y pos.s if browser is NS
cX = e.pageX;
cY = e.pageY;
}  
if (cX < 0){cX = 0;}
if (cY < 0){cY = 0;}  
return true;
}

document.onmousemove = getMouseXY;

/*
function UpdateCursorPosition(e){ cX = e.pageX; cY = e.pageY;}
function UpdateCursorPositionDocAll(e){ cX = event.clientX; cY = event.clientY;}
if(document.all) { document.onmousemove = UpdateCursorPositionDocAll; }
else { document.onmousemove = UpdateCursorPosition; }								
*/
                               
                                function fShowScreen(imgsrc) {
                                    clearTimeout(swapT);
                                   
                                    var ix, iy;
                                    var x,y;
                                    var t;
                                    var img = document.getElementById("screenImg");
                                    var div = document.getElementById("screenDiv");
                                    var newImg = new Image;
                                    
                                    div.style.width = "1px";
                                    div.style.height = "1px";
                                    
                                    img.src = "";
									
                                  /*  if(self.pageYOffset) {
										rX = self.pageXOffset;
										rY = self.pageYOffset;
										}
									else if(document.documentElement && document.documentElement.scrollTop) {
										rX = document.documentElement.scrollLeft;
										rY = document.documentElement.scrollTop;
										}
									else if(document.body) {
									
										rX = document.body.scrollLeft;
										rY = document.body.scrollTop;
										
										}*/
									if(document.all) {
									
										cX += rX; 
										cY += rY;
										
										}
																		
                                    img.onload = function () {
                                        that = this;
                                        //div.style.display = "none";
                                        //img.style.width = "";
                                        //img.style.height = "";
                                        ix = img.width;
                                        iy = img.height;
										
                                        if (ix > 0) {
										
                                            div.style.left = (cX+10) + "px";
                                            div.style.top = (cY-(iy+0))-20 + "px";
											
											//alert(cY + " - " + iy + " - " + ix)
                                           // fFadeIn(0);
                                            div.style.width = (ix + 5 )+ "px";
                                            div.style.height = (iy + 5) + "px";
                                        } else {
										
                                            t = setTimeout(function () {that.onload();}, 100);
                                        }
                                    }
									
                                    img.src = imgsrc;
									
                                    div.style.display = "block";
                                }
                                
                                var swapT;
                                
                                function fSetOpacity(obj, val) {
                                    obj = document.getElementById(obj);
                                    obj.style.opacity = val/10;
	                                obj.style.filter = 'alpha(opacity=' + val*10 + ')';
                        	        
                                }
                                
                                function fFadeIn(fadeCounter) {
                                    fadeCounter = fadeCounter + 10;
                                    fSetOpacity('screenImg', fadeCounter);
                                    if (fadeCounter != 10);
                                        swapT = setTimeout(function () {fFadeIn(fadeCounter);}, 0100);
                                }

