

/*function loadToHash(){

	if (window.location.href.indexOf('#') != -1){
    
    	
    	hashName = new String(window.location.href.slice(window.location.href.indexOf('#') + 1));		
		
		//alert(hashName);
			
		obj = $('#'+hashName);
		
		objPosTop = obj.position().top;
		
		diff =  1050 - $('#container').height();
		
		tot = objPosTop + diff;		
		
		$('#container').animate(
			{ bottom: tot }, 
			1800
		);

	}
}*/
	

$(document).ready(function(){	

//scrollToHash();

//loadToHash();


	$(".slink").click(function(e){
		e.preventDefault();
		//window.location.hash=this.hash;
		
		divName = $(this).attr("title");
		obj = $('#'+divName);
		/*obj.toggle();*/
		
		objPosTop = obj.position().top;
		
		diff =  950 - $('#container').height();
		
		tot = objPosTop + diff;
		
		//alert(diff);
		
		$('#container').animate(
			{ bottom: tot }, 
			1800
		);
	});
	
 

});