$(function() {

	$('.rollover').hover(function() {
		var currentImg = $(this).attr('src');
		$(this).attr('src', $(this).attr('hover'));
		$(this).attr('hover', currentImg);
	}, function() {
		var currentImg = $(this).attr('src');
		$(this).attr('src', $(this).attr('hover'));
		$(this).attr('hover', currentImg);
	});
	
	//Fix for hovers with IE
	$('.dropdown li a').hover(function(){
		$(this).css('background-color','#333333');
	},function(){
		$(this).css('background-color','#1d1d1d');
	});
	
	//css fixes
	var userAgent = navigator.userAgent.toLowerCase();
	// Is this a version of Safari?
	if($.browser.safari){
		
		// Add the version number
		userAgent = userAgent.substring(userAgent.indexOf('version/') +8);
		userAgent = userAgent.substring(0,1);
		
		//if we are on safari 3
		/*
		if(userAgent == 3) { 
		
			$('.drop-container').css('margin-top','-39px').
			css('margin-left','78px');
			
			$('.drop-container2').css('margin-top','-39px').
			css('margin-left','538px');
		}
		*/
		
		//if we are on safari 4
		//if(userAgent == 4) { 
		
			$('.drop-container').css('margin-top','-37px').
			css('margin-left','77px');
			
			$('.drop-container2').css('margin-top','-37px').
			css('margin-left','537px');
			
		//}
		
		//both versions
		$('.scroller').css('margin-top','-30px').
		css('margin-left','375px');
		
		$('.panel1').css('font-size','12px').css('line-height','1.4em');
	}
	
});


