/* ---------------------------------------------------- */
/* JQuery												*/
/* ---------------------------------------------------- */
$jQuery(document).ready(function() 
{
	/* Open in a JQuery Window */
	$jQuery("a.iframe").click(function(){
      JWindow_show( this.title ,this.href,768,1024);
      return false;
    });
    
    /* Open in a Popup Window */
	$jQuery("a.popup").click(function(){
		
		/** Set the popup window dimensions */
		var window_width = 1000;
		var window_height = 550;
		
		/** Get browser dimensions */
		var de = document.documentElement;
	    var h = self.innerHeight || (de&&de.clientHeight) || document.body.clientHeight;
	    var w = self.innerWidth || (de&&de.clientWidth) || document.body.clientWidth;
	    var iebody=(document.compatMode && document.compatMode != "BackCompat")? document.documentElement : document.body;
	    var dsocleft=document.all? iebody.scrollLeft : pageXOffset;
	    var dsoctop=document.all? iebody.scrollTop : pageYOffset;
	    
	    var height = h < 550 ? h - 32 : 550;
	    var top = (h - height)/2 + dsoctop;
		var left = ((w - 1000)/2);
	
		window.open( this.href ,"popupwindow","scrollbars=yes,width=1000,height=550,top="+top+",left="+left+"");
		return false;
    });
 
});