$(document).ready(function(){

var href=document.location+"";
str = href.indexOf("#");
name = href.substr(str);
if(name == "#home")
{
hideAll();
$("#inicio").show();
}
else
if(name == "#work")
{
hideAll();
$("#porta").show();
}
else
if(name == "#serv")
{
hideAll();
$("#services").show();
}
else
if(name == "#mail")
{
hideAll();
$("#contact").show();
}
else
if( href = "http://localhost/rigurosoft/")
{
hideAll();
$("#inicio").show();
}



jQuery('#list1b').accordion({
			active: true,
			alwaysOpen: false,
			animated: "easeslide",
			autoheight: false
		});
		
		jQuery('#list2b').accordion({
			active: true,
			alwaysOpen: false,
			animated: "easeslide",
			autoheight: false
		});

$('#dock').Fisheye(
				{
					maxWidth: 50,
					items: 'a',
					itemsText: 'span',
					container: '.dock-container',
					itemWidth: 105,
					proximity: 80,
					halign : 'center'
				}
			);
			function hideAll(){
			$("#services").hide();
			$("#contact").hide();
			$("#porta").hide();
			$("#inicio").hide();
			}


			
$("a#home").click(function(){
hideAll();
$("#inicio").show();
});

$("a#serv").click(function(){

hideAll();
$("#services").show();
});

$("a#work").click(function(){
hideAll();
$("#porta").show();
});

$("a#mail").click(function(){
hideAll();
$("#contact").show();
});

$("a#copy").click(function(){
hideAll();
$("#contact").show();

});

		
		

});