$(document).ready(function(){


$(".post img").addClass("clearfloat");



  $(".links").hide();
  $('.imagehover').hover(
    function(){$('.links', this).fadeIn(300);},
    function(){$('.links', this).fadeOut(500);}
  );
  

$(".shop ").fadeTo(500, 1);

$(".transition").fadeTo(500, 0.35);
  $(".transition").hover(
    function(){$(this).fadeTo(350, 1.0);},
    function(){$(this).fadeTo(350, .80);}
  ); 
  
  

  $('.buttons').hover(
    function(){$(this).fadeTo(250, 1.0);},
    function(){$(this).fadeTo(250, .75);}
  );  



    $("#scroll").click(function() {
    if (location.pathname.replace(/^\//,'') == this.pathname.replace(/^\//,'') 
        && location.hostname == this.hostname) {
        
            var $target = $(this.hash);
            
            $target = $target.length && $target || $('[name=' + this.hash.slice(1) +']');
            
            if ($target.length) {
            
                var targetOffset = $target.offset().top;
                
                $('html,body').animate({scrollTop: targetOffset}, 1000);
                    
                return false;
            }
        }
    });
    

	$("#btn-slide").click(function(){
		$("#panel").slideToggle("slow");
		$(this).toggleClass("active"); 
	return false;
	});
	
$("#btn-slide2").click(function(){
		$("#panel2").slideToggle("slow");
		$(this).toggleClass("active"); 
	return false;
	});
	
	

	$('ul.tabnav .tab_btn a').click(function() {
		var curChildIndex = $(this).parent().prevAll().length + 1;
		$(this).parent().parent().children('.current').removeClass('current');
		$(this).parent().addClass('current');
		$(this).parent().parent().next('.tabcontainer').children('.current').fadeOut('fast',function() {
			$(this).removeClass('current');
			$(this).parent().children('div:nth-child('+curChildIndex+')').fadeIn('normal',function() {
				$(this).addClass('current');
			});
		});
		return false;								
	});

	
$('.specialinput').addClass("idleField");
       		$('.specialinput').focus(function() {
       			$(this).removeClass("idleField").addClass("focusField");
    		    if (this.value == this.defaultValue){ 
    		    	this.value = '';
				}
				if(this.value != this.defaultValue){
	    			this.select();
	    		}
    		});
    		$('.specialinput').blur(function() {
    			$(this).removeClass("focusField").addClass("idleField");
    		  
    		});
			    		  



});


