jQuery(document).ready(function(){
	jQuery("#btnBody").mouseover(function(){
		jQuery(this).animate({"font-size":"14px"},100);
	});
	jQuery("#btnBody").mouseout(function(){
		jQuery(this).animate({"font-size":"11px"},100);
	});
});


function useFullBody()
{
	jQuery("#leftSpace").animate({"width":"0px"},500);
	jQuery("#graphicsAngle").animate({"width":"998px"},500);
	jQuery("#bodyBox").animate({"width":"998px"},500);
	jQuery("#bodyContainer").animate({"width":"998px"},500);
	jQuery("#innerBody").animate({"width":"978px"},500);
	jQuery("#btnBodyContainer").animate({"margin-left":"900px"},500);

	jQuery("#innerBody .customScrollBox").animate({"width":"978px"},500);
	jQuery("#innerBody .customScrollBox .container").animate({"width":"948px"},500);

}

function useSlimBody()
{
	jQuery("#leftSpace").animate({"width":"460px"},500);
	jQuery("#graphicsAngle").animate({"width":"500px"},500);
	jQuery("#bodyBox").animate({"width":"500px"},500);
	jQuery("#bodyContainer").animate({"width":"500px"},500);
	jQuery("#innerBody").animate({"width":"480px"},500);
	jQuery("#btnBodyContainer").animate({"margin-left":"420px"},500);
	
	jQuery("#innerBody .customScrollBox").animate({"width":"480px"},500);
	jQuery("#innerBody .customScrollBox .container").animate({"width":"450px"},500);

}

function toggleBody()
{
	if(jQuery("#btnBody").attr("title")=="enlarge")
	{
		jQuery("#btnBody").attr("title","compact");
		jQuery("#btnBody").html("[ Compact ]");
		useFullBody();
	}
	else if(jQuery("#btnBody").attr("title")=="compact")
	{
		jQuery("#btnBody").attr("title","enlarge");
		jQuery("#btnBody").html("[ Enlarge ]");
		useSlimBody();
	}
}

function changeBio(lang){
    if(lang=="it"){
        jQuery("#it").slideDown();
        jQuery("#en").slideUp();
    }else{
        jQuery("#en").slideDown();
        jQuery("#it").slideUp();
    }
}

function setActiveLink(idLink)
{
	jQuery("#"+idLink).css("backgroundPosition","0px -27px");
}

function play(file){
    jQuery("#audio").html("<EMBED SRC='"+file+"' AUTOSTART='True' HIDDEN='true' LOOP='false'></embed>");
}

