/***************************************
****************************************
    GENERAL SCRIPTS
****************************************
***************************************/

   

/*****************************/
/******  preload images  *****/
/*****************************/
/*if (document.images)
{
	pic1= new Image();
	pic1.src="/images/image.gif";
	pic2= new Image();
	pic2.src="/images/image.gif";
}*/
   

/***************************************
    ON DOCUMENT LOAD
    ------------------------------------
    Any code between this function
    executs when the page had loaded
    fully.
***************************************/
$(document).ready(function()
{     
     
     
     $("table tr:odd").addClass("odd");
   
   

   
   
	/*****************************/
	/******   smooth scroll  *****/
	/*****************************/
	/*doesn't play well with transitions*/
	//$.localScroll();


 

 
   
   
	/*****************************/
	/******  pop up box      *****/
	/*****************************/
	
    $(".popup").hide();
    
    $(".pop").click(function() {   
	 	$(".popup").fadeOut("slow");  	
		$(".popup"+this.className.split(" ")[1]).stop().fadeIn("slow", "swing");   //bug if click too quick 
    });
   
    $(".popup .close").click(function() {
		$(this).parent().stop().fadeOut("slow", "swing");    
    });
   
    
});
