var oPopup = window.createPopup();

// THE richToolTip() IS NOT BEING USED AS OF 4/27/2007.
// BACK EDITING OF THIS FUNCTION IS REQUIRED IF IT IS USED IN FUTURE.
// richToolTip() - enhanced "screen tip" popup window when mouse over item
//                 Window size determined by screen resolution
function richToolTip()
{
    var lefter = event.offsetY+0;
    var topper = event.offsetX+15;
    var qlhigh = 130;
    var qlwide = 250;
    oPopup.document.body.innerHTML = oToolTip.innerHTML;
    if(screen.width==1024&&screen.height==768){
    		qlhigh = 110;
    		qlwide = 220;
//        	oPopup.show(topper, lefter, 220, 110, ttip);
        }
    else{if(screen.width<1280||screen.height<1024){
    		qlhigh = 130;
    		qlwide = 250;
//        	oPopup.show(topper, lefter, 250, 130, ttip);
        	}
    	else{
    		// 1680 by 1050 pixels
    		qlhigh = 100;
    		qlwide = 210;
//        	oPopup.show(topper, lefter, 210, 100, ttip);
    	}
    }
    oPopup.show(topper, lefter, qlwide, qlhigh, ttip);
}

//rclkContext() - right-click popup window --> JCA Quick Links menu
//                Window size determined by screen resolution
function rclkContext()
{
	// Right-click menu
    var lefter2 = event.offsetY+0;
    var topper2 = event.offsetX+15;
    var qlhigh = 382;
    var qlwide = 261;
    oPopup.document.body.innerHTML = oContext2.innerHTML;
    if(screen.width==1024&&screen.height==768){			//1024 by 768 pixels
    	qlhigh = 327;
    	qlwide = 209;
//    	oPopup.show(topper2, lefter2, 209, 327, document.body);
        }
    else{if(screen.width==1280&&screen.height==960){	//1280 by 960 pixels
    	qlhigh = 327;
    	qlwide = 209;
    	}
    else{if(screen.width==1280&&screen.height==768){	//1280 by 768 pixels
    	qlhigh = 327;
    	qlwide = 209;
    	}
    else{if(screen.width==1280&&screen.height==720){	//1280 by 720 pixels
    	qlhigh = 327;
    	qlwide = 209;
    	}    	
    else{if(screen.width==1152&&screen.height==864){	//1152 by 864 pixels
    	qlhigh = 327;
    	qlwide = 209;
    	}
    else{if(screen.width==800&&screen.height==600){		//800 by 600 pixels
    	qlhigh = 327;
    	qlwide = 209;
    	}
    else{if(screen.width<1280||screen.height<1024){
    		// 1680 by 1050 pixels
    		qlhigh = 410;
    		qlwide = 261;
//    		oPopup.show(topper2, lefter2, 261, 382, document.body);
        	}
    	else{
    	    // 1680 by 1050 pixels (rdc to tech)
    		qlhigh = 327;
    		qlwide = 209;
//    		oPopup.show(topper2, lefter2, 209, 305, document.body);
    	}
    	}
    	}
    	}
    	}
    	}
    }
    oPopup.show(topper2, lefter2, qlwide, qlhigh, document.body);
}


