$(document).ready(function()
{
	
	  // Cufon
	  Cufon.replace('.bitstream', { fontFamily: 'Bitstream Vera Sans' });
	  
	  // Slider
	  //$("div.scrollable").scrollable({size: 1, loop: true, clickable: false, speed: 200}).circular().autoscroll({autoplay: true}); 
	  
	  // Form Text Fields Focus/Blur
	  $('input.text').focus(function()
	  { if (this.value == this.defaultValue) { this.value = ''; } });
	  $('input.text').blur(function()
	  { if (this.value == '') { this.value = this.defaultValue; } });
	  
      $('form a').click(function()
	  {
			var class_n = $(this).attr("class"); 
			
		    if($(this).hasClass('click'))
			{
				  $(this).removeClass('click');
		          $(this).next().val('');
			}
			else
			{
				  $(this).addClass('click');
		          $(this).next().val(class_n);
			}
	  });
      
	  
	  $('#sidebar .box ul.banners li:odd a').css('float', 'right');
	  $('ul.slots-list li:nth-child(3n)').css('margin', '0px 0px 20px 0px');
	  
	  // Sliding Ids
	  $('a[href*=#]').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}, 600);
						return false;
				  }
            }
      });
	  
	  
	  // 
	  $('.comments-template label').click(function()
      {
            $(this).animate({'left' : '290px'});
		    $($(this)).prev().focus();
	  });
	  
	  
	  
	  // $('#banners_160_40_horizontal a:last').css('margin', '14px 0px 0px 17px');
	  $('#sidebar ul.column_2 li:even').css('float', 'right');
	  
	  
	  
	  $('.comments-template input').focus(function()
      {
			$(this).next().animate({'left' : '290px'});
	  });
	  
	  
	  
	  //
	  $('#loopedSlider').loopedSlider({
	        addPagination: false,
			slidespeed: 700
      });
	  
	  var slider = $('#slider-box');
	  $('.single_page p:nth(2)').append(slider);

	  
	  
});


			      

