/***************************************
****************************************
    GENERAL SCRIPTS
****************************************
***************************************/

jQuery.fn.dropMenu = function () {                
    return this.hover(function(){
            jQuery(this).find('ul:first').css({visibility: "visible",display: "none"}).slideDown(300);
        },function(){
            jQuery(this).find('ul:first').css({visibility: "hidden"})
        ;
    });
};    

/***************************************
    ON DOCUMENT LOAD
    ------------------------------------
    Any code between this function
    executs when the page had loaded
    fully.
***************************************/
jQuery(document).ready(function()
{     
     
     
     //$("table tr:odd").addClass("odd");
   
   
	jQuery("#globalnav li").dropMenu();
	
   
   
	/*****************************/
	/******   smooth scroll  *****/
	/*****************************/
	/*doesn't play well with transitions*/



   
   
	/*****************************/
	/******  preload images  *****/
	/*****************************/
	/*if (document.images)
	{
		pic1= new Image();
		pic1.src="/images/image.gif";
		pic2= new Image();
		pic2.src="/images/image.gif";
	}*/

   
   
   
   
	/*****************************/
	/******   js not on      *****/
	/*****************************/
	/*doesn't play well with transitions*/
	//$('.nojs').hide();




	/*****************************/
	/******   transitions    *****/
	/*****************************/
	/* http://medienfreunde.com/lab/innerfade/ */ 
	
    /*
	$('#rhs ul#ctatransition').innerfade(
	{
        speed: 1000,
        timeout: 3000,
        type: 'sequence',
        containerheight: '250px'
	});

       
	$('.content ul#quotestransition').innerfade(
	{
        speed: 1000,
        timeout: 4000,
        type: 'random',
        containerheight: '250px'
	});

        
	$('.content ul#imagetransition').innerfade(
	{
        speed: 1000,
        timeout: 4000,
        type: 'random',
        containerheight: '120px'
	});
  
    */
});