Cufon.replace('#header_content span', {textShadow: '2px 2px rgba(0,0,0,0.3)'});

function numC(input)
{
	try {
		var string2 = input.replace(/px/,"");

		var num = parseInt(string2);
	
		return num;
	}
	catch (err) {
	}
}

function txtC(number)
{
	try {
		return number + "px";
	}
	catch (err) {
	}
}


$(document).ready(function() {

	var austDay = new Date(1344153600*1000);
	$('#defaultCountdown').countdown({until: austDay});
		// Cloud shifting animation on all page backgrounds

  var shift = -330;

  function shiftClouds() {

    $('#clouds').css({

      backgroundPosition: '' + shift + 'px 0',backgroundRepeat:'repeat-x'

    });

    shift -= 1;

  }

  var timer = setInterval(shiftClouds, 100);

	$(".sm_header").each(function() {
		var WidthToGoTo = $(this).parent().width();
		//alert(WidthToGoTo);
		$(this).width(WidthToGoTo-9);
		});
	$(".sm_footer").each(function() {
		var WidthToGoTo = $(this).parent().width();
		$(this).width(WidthToGoTo-9);
		});

		$(".parent").hover(function() {
			
				$(this).parent().find("div").css("display","block");
			
			},function () {
				
				$(this).parent().find("div").css("display","none");
				
			});
		
		$("#menu > li > div").hover(function() {
			
				$(this).parent().find("div").css("display","block");
				$(this).parent().find("a:first").addClass("forced");
			
			},function () {
				
				$(this).parent().find("div").css("display","none");
				$(this).parent().find("a:first").removeClass("forced");
				
			});
	});
