$(document).ready(function() {
	
	$(document).pngFix();
			
	$("#offers_more").hide();
			
	$(".mainmenu_offers").hover(
		function(){
			$("#offers_more").fadeIn("fast");
		},
		function(){
			$("#offers_more").fadeOut("fast");
		}
	);
			
	//$("#mtr_quickquote").dropShadow({left:-1, top:-1, blur:2, opacity:1});
	//$(".more").dropShadow({left:-1, top:-1, blur:2, opacity:1});
	//$(".booknow").dropShadow({left:-1, top:-1, blur:2, opacity:1});
		
	$("a").focus(function(event){
		event.target.blur();
	});
	$(".more").focus(function(event){
		event.target.blur();
	});
	$(".booknow").focus(function(event){
		event.target.blur();
	});
	$(".booknow_mini").focus(function(event){
		event.target.blur();
	});
	
	$('.flags').hover(function(){
		$(this).animate({ "opacity": 1}, { duration: "fast" });
	},function(){
		if ($(this).attr('name')!='selected'){
			$(this).animate({ "opacity": 0.5}, { duration: "fast" });
		}
	});

	$('.flags').animate({ "opacity": 0.5 }, { duration: -1 });
});

/* new window handler */
var win = null;
function popup(url,urlname,w,h,scroll){
	if(!w) {
		w = 625;	
	}
	if(!h){
		h = 450;	
	}
	LeftPosition = (screen.width) ? (screen.width-w)/2 : 0;
	TopPosition = (screen.height) ? (screen.height-h)/2 : 0; //'+scroll+'
	settings ='menubar=yes,height='+h+',width='+w+',top='+TopPosition+',left='+LeftPosition+',scrollbars=yes,resizable'
	win = window.open(url,urlname,settings)
}
