function handleJquery(){
    /*********************************************************
        Supersized Background
    *********************************************************/
    $.fn.supersized.options = {  
        startwidth: 1024,  
        startheight: 768,
        minsize: .50,
        slideshow: 0,
        slideinterval: 5000  
    };
    
    $('#supersize').supersized(); 
    
  // Accordion
    $("#accordion").accordion({ 
        header: "h3",
        active: false,
        clearStyle: true,
        collapsible: true,
        icons: { 'header': 'ui-icon-plus', 'headerSelected': 'ui-icon-minus' },
        change:function(e,ui) {
                if (ui.newHeader && ui.newHeader.length) jQuery.scrollTo(ui.newHeader)
        }
    });
    
    // Accordion
    $("#accordion").accordion({ 
        header: "h3",
        active: false,
        clearStyle: true,
        collapsible: true,
        icons: { 'header': 'ui-icon-plus', 'headerSelected': 'ui-icon-minus' }
    });
    
    
    /*********************************************************
        Projects
    *********************************************************/    
    $("#over-asia img").hover(
        function(){
            $('#map-asia').fadeIn('fast');
            $('#mcaption-asia').fadeIn('fast');
        },
        function(){
            $('#map-asia').fadeOut('fast');
            $('#mcaption-asia').fadeOut('fast');
        }
    );

    $("#over-europe img").hover(
        function(){
            $('#map-europe').fadeIn('fast');
            $('#mcaption-europe').fadeIn('fast');
        },
        function(){
            $('#map-europe').fadeOut('fast');
            $('#mcaption-europe').fadeOut('fast');
        }
    );

    $("#over-north-africa img").hover(
        function(){
            $('#map-north-africa').fadeIn('fast');
            $('#mcaption-north-africa').fadeIn('fast');
        },
        function(){
            $('#map-north-africa').fadeOut('fast');
            $('#mcaption-north-africa').fadeOut('fast');
        }
    );

    $("#over-south-america img").hover(
        function(){
            $('#map-south-america').fadeIn('fast');
            $('#mcaption-south-america').fadeIn('fast');
        },
        function(){
            $('#map-south-america').fadeOut('fast');
            $('#mcaption-south-america').fadeOut('fast');
        }
    );

    $("#over-africa img").hover(
        function(){
            $('#map-africa').fadeIn('fast');
            $('#mcaption-africa').fadeIn('fast');
        },
        function(){
            $('#map-africa').fadeOut('fast');
            $('#mcaption-africa').fadeOut('fast');
        }
    );    

    $("#over-usa img").hover(
        function(){
            $('#map-usa').fadeIn('fast');
            $('#mcaption-usa').fadeIn('fast');
        },
        function(){
            $('#map-usa').fadeOut('fast');
            $('#mcaption-usa').fadeOut('fast');
        }
    );  
    

    /*********************************************************
        Large Map
    *********************************************************/ 
     $(".overmap img").hover(
        function(){
            hide_all_others();
            $(".overmap img").attr("src", "/wp-content/themes/bluelaw/i/map-icon.gif");
        },
        function(){
             $("#.overmap img").attr("src", "/wp-content/themes/bluelaw/i/map-rollover.gif");
        }
    );     


     $("#harvard").hover(
        function(){
            
            $('#harvard-info').fadeIn('fast');
        },
        function(){
            // $('#harvard-info').fadeOut('fast');
        }
    );     


     $("#burundi").hover(
        function(){
            $('#burundi-info').fadeIn('fast');
        },
        function(){
           // $('#burundi-info').fadeOut('fast');
        }
    );     

     $("#iran").hover(
        function(){
            $('#iran-info').fadeIn('fast');
        },
        function(){
           // $('#iran-info').fadeOut('fast');
        }
    );     
    

     $("#jordan").hover(
        function(){
            $('#jordan-info').fadeIn('fast');
        },
        function(){
           // $('#jordan-info').fadeOut('fast');
        }
    );     
        
 
     $("#sudan").hover(
        function(){
            $('#sudan-info').fadeIn('fast');
        },
        function(){
           // $('#sudan-info').fadeOut('fast');
        }
    );  

     $("#egypt-over").hover(
        function(){
            // console.log('hey');
            $('#egypt-info').fadeIn('fast');
        },
        function(){
            // $('#egypt-info').fadeOut('fast');
        }
    );  

     $("#maryland").hover(
        function(){
            $('#maryland-info').fadeIn('fast');
        },
        function(){
           // $('#maryland-info').fadeOut('fast');
        }
    );  

     $("#ireland").hover(
        function(){
            $('#ireland-info').fadeIn('fast');
        },
        function(){
           // $('#ireland-info').fadeOut('fast');
        }
    ); 
     
     $("#albania").hover(
        function(){
            $('#albania-info').fadeIn('fast');
        },
        function(){
            // $('#albania-info').fadeOut('fast');
        }
    );  

     $("#indonesia").hover(
        function(){
            $('#indonesia-info').fadeIn('fast');
        },
        function(){
           // $('#indonesia-info').fadeOut('fast');
        }
    );  

     $("#afghan").hover(
        function(){
            $('#afghan-info').fadeIn('fast');
        },
        function(){
           // $('#afghan-info').fadeOut('fast');
        }
    );  
    
    
 
           
    /*********************************************************
       Slideshow 
    *********************************************************/
    /*
    var slideshowSpeed = 800;
    var slideshowTimeout = 4000;    
    
    $('#slideshow').cycle({ 
        fx:      'fade', 
        speed:    slideshowSpeed, 
        timeout:  0,
        continuous: 0, // set this to 0 so timeout will work
        slideExpr: 'dl',
        cleartype: '1',
        pager: '#slideshowpager',
        pagerAnchorBuilder: function(idx, slide) { 
            // return selector string for existing anchor 
            return '#slideshowpager li:eq(' + idx + ') a'; 
        }
    });
    
    $('#slideshow').cycle('pause');
    */    
};


function hide_all_others(){
    $('.info').fadeOut('fast');
           // $('#afghan-info').fadeOut('fast');
          // $('#indonesia-info').fadeOut('fast');
            // $('#albania-info').fadeOut('fast');
          // $('#ireland-info').fadeOut('fast');
          // $('#maryland-info').fadeOut('fast');
             // $('#egypt-info').fadeOut('fast');

             // $('#sudan-info').fadeOut('fast');
 
}

