$(function(){
	var currentImg = $("#work_link img").attr("src");
	$("#work_link img").hover(function(){
		var hoverImg = 'http://www.boxmarketing.com/images/work_hover.jpg';
		$(this).attr("src",hoverImg);
	},function() {
		$(this).attr("src",currentImg);
	});
	
	var currentAboutImg = $("#about_us #top img").eq(0).attr("src");
	var newAboutImg = $("#about_us #top a").attr("href");
	$("#about_us #top img").eq(0).hover(function() {
		$(this).hide().fadeIn("slow").attr("src",newAboutImg)
	},function() {
		$(this).attr("src",currentAboutImg)
	});
	
	$("#about_us #top img").eq(0).click(function(){
		return false;
	});
	
	$('#masthead #right,#index #top,#about_us #top').cycle({
    fx:    'fade', 
    speed:1500,
    timeout: 3000
    });

    $('ul.sf-menu').superfish({ 
    
    delay:       500,                            // one second delay on mouseout 
    animation:   {opacity:'show',height:'show'},  // fade-in and slide-down animation 
    speed:       'fast',                          // faster animation speed 
    autoArrows:  false,                      // disable generation of arrow mark-up 
    dropShadows: false   // disable drop shadows 
}); 

$('#pane').jScrollPane({
		scrollbarWidth:11, 
		scrollbarMargin:30,
		dragMinHeight:75,
		dragMaxHeight:75
	});

}); 


