$().ready(function() {

	$("#navigation a").attr('title', '');
	$("#sidebar #bannerads li:last").addClass('last');
	$("#email").focus(function() {
		var value = $(this).getValue();
		if (value == "email address") {
			$(this).setValue('');
		}
	});
	$("#email").blur(function() {
		var value = $(this).getValue();
		if (value == '') {
			$(this).setValue('email address');
		}
	});
	resizeDocument();
	$(window).resize(function() {
		resizeDocument();
	});
/*
	$("#navigation ol>li").hover(
		function() {
			$(this).find('a').addClass('hover');
			$(this).find('.dropdown').css({
				'top' : '40px',
				'left' : '0px'
			}).show();
		}, function() {	
			$(this).find('a').removeClass('hover');			
			$(this).find('.dropdown').hide().css({'top':'-9999px'});
		}
	);
*/
	$("ul.sf-menu").superfish({
	    animation:{opacity:'show'},
    	speed:'fast',
    	autoArrows:false,
	    dropShadows:false,
	    delay:400
	}).find('ul').bgIframe({opacity:false});	
});
function resizeDocument() {
	var documentWidth = $(window).width();
	$("#bg img").css({
		"width" : documentWidth
	});
};
