$(document).ready(function(){


	/*$("a#jquery").click(function(event){
	   event.preventDefault();
	   $(this).hide("slow");
	});


	 $("a#auz1111")
	   //.filter(".clickme")
		 .click(function(){
		   alert("You are now leaving the site.");
		 })
	   .end()
	   //.filter(".hideme")
		 .click(function(){
		   $(this).hide();
		   return false;
		 })
	   .end();*/



	// hides the slickbox as soon as the DOM is ready
	// (a little sooner than page load)
	$('.blog_desc\\S*').each().hide();

	// shows the slickbox on clicking the noted link 
	$('a.blog_desc_shower')
		.click(function() 
		{
			var id = $(this).attr('id'); 
			$('.blog_desc' + id).show('slow');
			return false;
		}
		);

	// hides the slickbox on clicking the noted link 
	$('a.blog_desc_hider').click(function() {
		var id = $(this).attr('name'); 
		$('.blog_desc' + id).hide('fast');
		return false;
	});

	// toggles the slickbox on clicking the noted link 
	$('a.blog_desc_toggle').click(function() {
		var id = $(this).attr('id'); 
		$('.blog_desc' + id).toggle(400);
		return false;
	});



	//Make text larger and smaller

	$('#textChanger a').click(function() {
		var os = $('p').css('font-size');
		//console.log(os);
		var num = parseFloat(os,10);//10 is for base 10
		//console.log(num);
		var uom = os.slice(-2);
		//console.log(uom);

		$('p').css('font-size', num / 1.4 + uom);

		if (this.id == 'larger')
		{
			$('p').css('font-size', num * 1.4 + uom);
		}

		
	})





	// http://jquery.thewikies.com/swfobject/
	// #auz1111_flash_header is the selector   
	$('#auz1111_flash_header').flash({   
		// auz1111_flash_header.swf is the flash document   
		swf:'/assets/auz1111_home_2009/images/flash/auz1111_flash_header.swf',height:133,width:960}
	);


	//Open auzio player
	$('#downloadBtn').click( function(){
		myWindow = window.open( '/pg/10234/','wimpy','width=300,height=250' );
		myWindow.moveTo(0,0);
		//jQuery.facebox('something cool');
	});


});