function openPopUp(url, width, height, scrolling) { //v2.0
    if (!width) width = 320;
    if (!height) height = 240;
    if (!scrolling) scrolling = "no"; 
    features = "width="+width+","
             + "height="+height+","
             + "toolbar=no,"
             + "location=no,"
             + "status=no,"
             + "menubar=no,"
             + "scrollbars="+scrolling+","
             + "top="+(window.screen.height-height)/2+","
             + "left="+(window.screen.width-width)/2;
    window.open(url,"win"+Math.round(Math.random()*1000),features); 

} 


function annotate(){
	
	$(".annotation").each(function(){
		 
		obj =  $(this).parent();      
		ypos = $(obj).offset().top;  
	 	xpos =  $(obj).offset().left;
	  		   
		/*  
		DEBUG code for FIREBUG
		console.debug("EL HEIGHT = "+ $(obj).offset().height) ;
		console.debug("YPOS = "+ypos); 
		console.debug("WRAPPER TOP= "+$(".wrapper").offset().top);
		console.debug("CONTENT TOP= "+$(".content").offset().top); 			
		*/
		
		objtall = ($(obj).offset().height - $(this).offset().height);
		// TODO: Fix margin issue - if there is a margin applied to any of the nested divs, 
		// the calculations don't work out right.function right.
		// this might be fixable by iterating through the margins and then subtracting the total of the margins applied.
		    
		$(this).css({top: ypos-75+"px","min-height": objtall-40+"px", position: "absolute" } );

	});
}   
