// JavaScript Document

jQuery(document).ready(function($) {
	$('label[for^=ppsubmit]').addClass(function(){
		$('small',this).hide();
		return 'ppsubmit_label';
	});
	
	//http://staging.jlstudio.com.au/2010/process/shopping-cart/
	$('body.page-id-1011 table td#prod1, body.page-id-1011 table th#subtotal').attr('width','400px');

	$(".slider").each(function()
	{
		$(this).easySlider({vertical: true});
		$(this).mouseover(function()
		{
			$('.prevBtn a',this).each(function() {
				//$(this).css('background-color','#FFEE77'); 
			});
			$('.nextBtn a',this).each(function() { 
				//$(this).css('background-color','#FFEE77');
			});
			$(this).mouseout(function()
			{
				$('.prevBtn a',this).each(function() {
					//$(this).css('background-color','#FFF');
				});
				$('.nextBtn a',this).each(function() { 
					//$(this).css('background-color','#FFF'); 
				});
			});
		});
	});
	
	
	//add some target attr to the a couple op menu items. 
	//can not beleive this isn't avilable in the wordpress admin...
	$('a[title^="RSS"],a[title^="Flickr"],a[title^="Twitter"]').attr("target", "_blank");
	
	$('label[for^=first_name]').addClass('first_name_label');
	// set up slider nav
	
	$('.prevBtn a').each(function()
	{
		
	})
	// set up slider nav
	
	$('.prevBtn a').each(function()
	{
		
	})
	
	
	$('.search_form').focus(function(){
	   $('.search_label').fadeOut('fast');
    });
	
	$('.search_form').blur(function(){
		if (this.value == ''){
			$('.search_label').fadeIn('fast');
		};
  });
	$('.post_more_images').click(function(){
		var $post_image = $(this).parents('.post');
		$($post_image).find('.post_more_images').fadeOut('fast');
		$($post_image).children('.rev_images').slideDown('normal');
	});

	
	$('.post_close_images').click(function(){
		var $post_image = $(this).parents('.post');
		$($post_image).children('.rev_images').slideUp('normal');
		$($post_image).find('.post_more_images').fadeIn('fast');
		
	});
	
	
	

});
