/*
 *	Custom jQuery Functions
 *  By Simon Bouchard
*/


 
 var j = jQuery.noConflict();

j(document).ready(function(){  	



var prehash = '#principal';
var preid = '#linkprincipal';
		
		
		
	/* Featured Articles on the Homepage */
	
  j('.rola').click(function(){//$.scrollTo works EXACTLY the same way, but scrolls the whole screen
      // alert('casa');
 	 // alert(this.hash);
	 if(this.hash == '#principal') {
	    j('#footer').animate({ right: '0px'});
	 }else {
	 	    j('#footer').animate({ right: '-3000px'});
			
	 }
	 
	 j(prehash).animate({marginLeft: '-5000px'});
   	 j(this.hash).animate({marginLeft: '0px'});
 		 prehash =this.hash;
		 preid = '#'+ this.id;
	  //j.scrollTo( this.hash, 1000);
 		return false;
	});
	
	
	
		
		 
	   
});
 
