$(document).ready(function() {
     // makes design current since it displays automatically
		$('a#designtog').addClass('current');		
    // toggles current class for design anchor
    	$('a#designtog').click(function() {
		var $this = $(this);
		if( $this.is('.current') ) {
		$this.removeClass('current');
		}
		else {
		$this.addClass('current');
		}
		return false;
	}); 
});




$(document).ready(function() {
     // makes news current since it displays automatically
		//$('a#newstog').addClass('current');		
    // toggles current class for news anchor
    	$('a#newstog').click(function() {
		var $this = $(this);
		if( $this.is('.current') ) {
		$this.removeClass('current');
		}
		else {
		$this.addClass('current');
		}
		return false;
	}); 
});





$(document).ready(function() {
   // makes contact current since it displays automatically
		// $('a#contog').addClass('current');	
    // toggles current class for contact anchor
    	$('a#contog').click(function() {
		var $this = $(this);
		if( $this.is('.current') ) {
		$this.removeClass('current');
		}
		else {
		$this.addClass('current');
		}
		return false;
	}); 
});










$(document).ready(function() {
	// makes design display automatically on load
		$('#design').show(600);
    // toggles the design div on clicking the noted link 
    	$('a#designtog').click(function() {
		$('#design').toggle(400);
						//unload portfolio if it is loaded
						$('#portfolio').contents().remove();
			//hide others
			$('#newsb').hide(600);
			$('#contact').hide(600);
					//remove current class
					$('a#newstog').removeClass('current');
					$('a#contog').removeClass('current');
		return false;
	});

});


$(document).ready(function() {
    // toggles the news div on clicking the noted link 
    	$('a#newstog').click(function() {
		$('#newsb').toggle(400);
						//unload portfolio if it is loaded
						$('#portfolio').contents().remove();
			//hide others
	    	$('#design').hide(600);
	    	$('#contact').hide(600);
					//remove current class
					$('a#designtog').removeClass('current');
					$('a#contog').removeClass('current');
		return false;
	});

});






$(document).ready(function() {
	// makes contact display automatically on load
		// $('#contact').show(1600);
    // toggles the contact div on clicking the noted link 
    	$('a#contog').click(function() {
		$('#contact').toggle(400);
						//unload portfolio if it is loaded
						$('#portfolio').contents().remove();
			//hide others
	    	$('#design').hide(600);
	    	$('#newsb').hide(600);
					//remove current class
					$('a#designtog').removeClass('current');
					$('a#newstog').removeClass('current');
		return false;
	});

});	
















//footer info    
$(document).ready(function() {
    
    $('a#foot').click(function () {
      if ($("#footer").is(":hidden")) {
        $("#footer").slideDown("slow");
        $("a#foot").fadeOut("slow");
      } else {
        $("$footer").hide();
      }
    });
});


$(document).ready(function() {
    
    $('a#footb').click(function () {
      if ($('#footer').is(':hidden')) {
        //$("#footer").slideDown("slow");
              } else {
        $('#footer').slideUp();
      	$('a#foot').fadeIn('slow');
	}
    });
});














//my show hide div code here -- 
$(document).ready(function(){
 $('#cont').hide();

	$('a#close').click(function(){
	$('#cont').show('slow');
	});
	
	$('a#close').click(function(){
	$('#about').hide('slow');
	})
	
	$('a#nex').click(function(){
	$('#cont').hide('slow');
	})
	
	$('a#nex').click(function(){
	$('#last').show('slow');
	})
	
	$('a#begin').click(function(){
	$('#about').show('slow');
	})
	
	$('a#begin').click(function(){
	$('#last').hide('slow');
	})

});






/* ****** TESTIMONIALS ******** */
$(document).ready(function(){
		$('#testimonials').innerfade({
			animationtype: 'fade',
			speed: 1750,
			timeout: 12000,
			type: 'random',
			containerheight: '1em'
	});
});






