/* mostra/amaga notícies */
$(document).ready(function() {
	// hides the slickbox as soon as the DOM is ready
	// (a little sooner than page load)
	$("#noti2, #noti3, #noti4, #noti5, #noti6, #noti7, #noti8").hide();
	$("#mostra1 a").hover(function() {
		$("#noti1").show();
		$("#columna3").css({ marginLeft:"15px"});
		$("#mostra1 a").css("color","#f90");		
		$("#mostra2 a, #mostra3 a, #mostra4 a, #mostra5 a, #mostra6 a, #mostra7 a, #mostra8 a, #mostrae1 a, #mostrae2 a, #mostrae3 a, #mostrae4 a, #mostrae5 a, #mostrae6 a, #mostrae7 a, #mostrae8 a").css("color","#fff");		
		$("#noti2, #noti3, #noti4, #noti5, #noti6, #noti7, #noti8, #est1, #est2, #est3, #est4, #est5, #est6, #est7, #est8").hide();
		return false;
	});
	$("#mostra2 a").hover(function() {
		$("#noti2, #mostra1 a").show();
		$("#columna3").css({ marginLeft:"15px"});
		$("#mostra2 a").css("color","#f90");
		$("#mostra1 a, #mostra3 a, #mostra4 a, #mostra5 a, #mostra6 a, #mostra7 a, #mostra8 a, #mostrae1 a, #mostrae2 a, #mostrae3 a, #mostrae4 a, #mostrae5 a, #mostrae6 a, #mostrae7 a, #mostrae8 a").css("color","#fff");
		$("#noti1, #noti3, #noti4, #noti5, #noti6, #noti7, #noti8, #est1, #est2, #est3, #est4, #est5, #est6, #est7, #est8").hide();
		return false;
	});
	$("#mostra3 a").hover(function() {
		$("#noti3, #mostra1 a").show();
		$("#columna3").css({ marginLeft:"15px"});
		$("#mostra3 a").css("color","#f90");		
		$("#mostra1 a, #mostra2 a, #mostra4 a, #mostra5 a, #mostra6 a, #mostra7 a, #mostra8 a, #mostrae1 a, #mostrae2 a, #mostrae3 a, #mostrae4 a, #mostrae5 a, #mostrae6 a, #mostrae7 a, #mostrae8 a").css("color","#fff");		
		$("#noti1, #noti2, #noti4, #noti5, #noti6, #noti7, #noti8, #est1, #est2, #est3, #est4, #est5, #est6, #est7, #est8").hide();
		return false;
	});
	$("#mostra4 a").hover(function() {
		$("#noti4, #mostra1 a").show();
		$("#columna3").css({ marginLeft:"15px"});
		$("#mostra4 a").css("color","#f90");		
		$("#mostra1 a, #mostra2 a, #mostra3 a, #mostra5 a, #mostra6 a, #mostra7 a, #mostra8 a, #mostrae1 a, #mostrae2 a, #mostrae3 a, #mostrae4 a, #mostrae5 a, #mostrae6 a, #mostrae7 a, #mostrae8 a").css("color","#fff");		
		$("#noti1, #noti2, #noti3, #noti5, #noti6, #noti7, #noti8, #est1, #est2, #est3, #est4, #est5, #est6, #est7, #est8").hide();
		return false;
	});
	$("#mostra5 a").hover(function() {
		$("#noti5, #mostra1 a").show();
		$("#columna3").css({ marginLeft:"15px"});
		$("#mostra5 a").css("color","#f90");		
		$("#mostra1 a, #mostra2 a, #mostra3 a, #mostra4 a, #mostra6 a, #mostra7 a, #mostra8 a, #mostrae1 a, #mostrae2 a, #mostrae3 a, #mostrae4 a, #mostrae5 a, #mostrae6 a, #mostrae7 a, #mostrae8 a").css("color","#fff");		
		$("#noti1, #noti2, #noti3, #noti4, #noti6, #noti7, #noti8, #est1, #est2, #est3, #est4, #est5, #est6, #est7, #est8").hide();
		return false;
	});
	$("#mostra6 a").hover(function() {
		$("#noti6, #mostra1 a").show();
		$("#columna3").css({ marginLeft:"15px"});
		$("#mostra6 a").css("color","#f90");		
		$("#mostra1 a, #mostra2 a, #mostra3 a, #mostra4 a, #mostra5 a, #mostra7 a, #mostra8 a, #mostrae1 a, #mostrae2 a, #mostrae3 a, #mostrae4 a, #mostrae5 a, #mostrae6 a, #mostrae7 a, #mostrae8 a").css("color","#fff");		
		$("#noti1, #noti2, #noti3, #noti4, #noti5, #noti7, #noti8, #est1, #est2, #est3, #est4, #est5, #est6, #est7, #est8").hide();
		return false;
	});
	$("#mostra7 a").hover(function() {
		$("#noti7, #mostra1 a").show();
		$("#columna3").css({ marginLeft:"15px"});	
		$("#mostra1 a, #mostra2 a, #mostra3 a, #mostra4 a, #mostra5 a, #mostra6 a, #mostra8 a, #mostrae1 a, #mostrae2 a, #mostrae3 a, #mostrae4 a, #mostrae5 a, #mostrae6 a, #mostrae7 a, #mostrae8 a").css("color","#fff");		
		$("#mostra7 a").css("color","#f90");	
		$("#noti1, #noti2, #noti3, #noti4, #noti5, #noti6, #noti8, #est1, #est2, #est3, #est4, #est5, #est6, #est7, #est8").hide();
		return false;
	});
	$("#mostra8 a").hover(function() {
		$("#noti8, #mostra1 a").show();
		$("#columna3").css({ marginLeft:"15px"});
		$("#mostra8 a").css("color","#f90");		
		$("#mostra1 a, #mostra2 a, #mostra3 a, #mostra4 a, #mostra5 a, #mostra6 a, #mostra7 a, #mostrae1 a, #mostrae2 a, #mostrae3 a, #mostrae4 a, #mostrae5 a, #mostrae6 a, #mostrae7 a, #mostrae8 a").css("color","#fff");		
		$("#noti1, #noti2, #noti3, #noti4, #noti5, #noti6, #noti7, #est1, #est2, #est3, #est4, #est5, #est6, #est7, #est8").hide();
		return false;
	});
});

/* mostrae/amaga estudis i projectes */
$(document).ready(function() {
	// hides the slickbox as soon as the DOM is ready
	// (a little sooner than page load)
	//$("#columna3").css({ backgroundColor:"yellow", fontWeight:"bolder" });
	
	$("#est1, #est2, #est3, #est4, #est5, #est6, #est7, #est8").hide();
	// shows the slickbox on clicking the noted link
	$("#mostrae1 a").hover(function() {
		$("#est1").show();
		$("#columna3").css({ marginLeft:"15px"});
		$("#mostrae1 a").css("color","#f90");		
		$("#mostrae2 a, #mostrae3 a, #mostrae4 a, #mostrae5 a, #mostrae6 a, #mostrae7 a, #mostrae8 a, #mostra1 a, #mostra2 a, #mostra3 a, #mostra4 a, #mostra5 a, #mostra6 a, #mostra7 a, #mostra8 a").css("color","#fff");		
		$("#est2, #est3, #est4, #est5, #est6, #est7, #est8, #noti1, #noti2, #noti3, #noti4, #noti5, #noti6, #noti7, #noti8").hide();
		return false;
	});
	$("#mostrae2 a").hover(function() {
		$("#est2").show();
		$("#columna3").css({ marginLeft:"15px"});
		$("#mostrae2 a").css("color","#f90");		
		$("#mostrae1 a, #mostrae3 a, #mostrae4 a, #mostrae5 a, #mostrae6 a, #mostrae7 a, #mostrae8 a, #mostra1 a, #mostra2 a, #mostra3 a, #mostra4 a, #mostra5 a, #mostra6 a, #mostra7 a, #mostra8 a").css("color","#fff");		
		$("#est1, #est3, #est4, #est5, #est6, #est7, #est8, #noti1, #noti2, #noti3, #noti4, #noti5, #noti6, #noti7, #noti8").hide();
		return false;
	});
	$("#mostrae3 a").hover(function() {
		$("#est3").show();
		$("#columna3").css({ marginLeft:"15px"});
		$("#mostrae3 a").css("color","#f90");		
		$("#mostrae1 a, #mostrae2 a, #mostrae4 a, #mostrae5 a, #mostrae6 a, #mostrae7 a, #mostrae8 a, #mostra1 a, #mostra2 a, #mostra3 a, #mostra4 a, #mostra5 a, #mostra6 a, #mostra7 a, #mostra8 a").css("color","#fff");		
		$("#est1, #est2, #est4, #est5, #est6, #est7, #est8, #noti1, #noti2, #noti3, #noti4, #noti5, #noti6, #noti7, #noti8").hide();
		return false;
	});
	$("#mostrae4 a").hover(function() {
		$("#est4").show();
		$("#columna3").css({ marginLeft:"15px"});
		$("#mostrae4 a").css("color","#f90");		
		$("#mostrae1 a, #mostrae2 a, #mostrae3 a, #mostrae5 a, #mostrae6 a, #mostrae7 a, #mostrae8 a, #mostra1 a, #mostra2 a, #mostra3 a, #mostra4 a, #mostra5 a, #mostra6 a, #mostra7 a, #mostra8 a").css("color","#fff");		
		$("#est1, #est2, #est3, #est5, #est6, #est7, #est8, #noti1, #noti2, #noti3, #noti4, #noti5, #noti6, #noti7, #noti8").hide();
		return false;
	});
	$("#mostrae5 a").hover(function() {
		$("#est5").show();
		$("#columna3").css({ marginLeft:"15px"});
		$("#mostrae5 a").css("color","#f90");		
		$("#mostrae1 a, #mostrae2 a, #mostrae3 a, #mostrae4 a, #mostrae6 a, #mostrae7 a, #mostrae8 a, #mostra1 a, #mostra2 a, #mostra3 a, #mostra4 a, #mostra5 a, #mostra6 a, #mostra7 a, #mostra8 a").css("color","#fff");		
		$("#est1, #est2, #est3, #est4, #est6, #est7, #est8, #noti1, #noti2, #noti3, #noti4, #noti5, #noti6, #noti7, #noti8").hide();
		return false;
	});
	$("#mostrae6 a").hover(function() {
		$("#est6").show();
		$("#columna3").css({ marginLeft:"15px"});
		$("#mostrae6 a").css("color","#f90");		
		$("#mostrae1 a, #mostrae2 a, #mostrae3 a, #mostrae4 a, #mostrae5 a, #mostrae7 a, #mostrae8 a, #mostra1 a, #mostra2 a, #mostra3 a, #mostra4 a, #mostra5 a, #mostra6 a, #mostra7 a, #mostra8 a").css("color","#fff");		
		$("#est1, #est2, #est3, #est4, #est5, #est7, #est8, #noti1, #noti2, #noti3, #noti4, #noti5, #noti6, #noti7, #noti8").hide();
		return false;
	});
	$("#mostrae7 a").hover(function() {
		$("#est7").show();
		$("#columna3").css({ marginLeft:"15px"});
		$("#mostrae7 a").css("color","#f90");		
		$("#mostrae1 a, #mostrae2 a, #mostrae3 a, #mostrae4 a, #mostrae5 a, #mostrae6 a, #mostrae8 a, #mostra1 a, #mostra2 a, #mostra3 a, #mostra4 a, #mostra5 a, #mostra6 a, #mostra7 a, #mostra8 a").css("color","#fff");		
		$("#est1, #est2, #est3, #est4, #est5, #est6, #est8, #noti1, #noti2, #noti3, #noti4, #noti5, #noti6, #noti7, #noti8").hide();
		return false;
	});
	$("#mostrae8 a").hover(function() {
		$("#est8").show();
		$("#columna3").css({ marginLeft:"15px"});
		$("#mostrae8 a").css("color","#f90");		
		$("#mostrae1 a, #mostrae2 a, #mostrae3 a, #mostrae4 a, #mostrae5 a, #mostrae6 a, #mostrae7 a, #mostra1 a, #mostra2 a, #mostra3 a, #mostra4 a, #mostra5 a, #mostra6 a, #mostra7 a, #mostra8 a").css("color","#fff");		
		$("#est1, #est2, #est3, #est4, #est5, #est6, #est7, #noti1, #noti2, #noti3, #noti4, #noti5, #noti6, #noti7, #noti8").hide();
		return false;
	});
});

/*Rollover de la fulla*/
$(document).ready(function() {
	// hides the slickbox as soon as the DOM is ready
	// (a little sooner than page load)
	$("#fulla1, #fulla2, #fulla3, #fulla4").hide();
	$("#boto-fulla1").hover(function() {
		$("#fulla1").show();
		$("#fulla2, #fulla3, #fulla4").hide();
		return false;
	});
	$("#boto-fulla2").hover(function() {
		$("#fulla2").show();
		$("#fulla1, #fulla3, #fulla4").hide();
		return false;
	});
	$("#boto-fulla3").hover(function() {
		$("#fulla3").show();
		$("#fulla1, #fulla2, #fulla4").hide();
		return false;
	});
	$("#boto-fulla4").hover(function() {
		$("#fulla4").show();
		$("#fulla1, #fulla2, #fulla3").hide();
		return false;
	});
});
			
/* Flash frases */
function flashfrases() {
	var a;
	a = (Math.round(Math.random()*10)%7)+1;

	if ((navigator.appName=="Netscape")||(navigator.appName=="Mozilla")) {
		document.write ("<object classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=4,0,2,0\" width=\"272\" height=\"135\">");
		document.write ("<param NAME=\"SRC\" VALUE=\"media/img/frases"+a+".swf\">");
		document.write ("<embed SRC=\"media/img/frases"+a+".swf\" PLUGINSPAGE=\"http://www.macromedia.com/shockwave/download/\" TYPE=\"application/x-shockwave-flash\" WIDTH=\"272\" HEIGHT=\"135\">");
		document.write ("<param name=quality value=high>");
		document.write ("</object>");
	}
	else
	{
		document.write ("");
	}
}

/* Flash frases castellà */
function flashfrases_cas() {
	var a;
	a = (Math.round(Math.random()*10)%7)+1;

	if ((navigator.appName=="Netscape")||(navigator.appName=="Mozilla")) {
		document.write ("<object classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=4,0,2,0\" width=\"272\" height=\"135\">");
		document.write ("<param NAME=\"SRC\" VALUE=\"../media/img/cas/frases"+a+".swf\">");
		document.write ("<embed SRC=\"../media/img/cas/frases"+a+".swf\" PLUGINSPAGE=\"http://www.macromedia.com/shockwave/download/\" TYPE=\"application/x-shockwave-flash\" WIDTH=\"272\" HEIGHT=\"135\">");
		document.write ("<param name=quality value=high>");
		document.write ("</object>");
	}
	else
	{
		document.write ("");
	}
}

/* Flash frases anglès */
function flashfrases_eng() {
	var a;
	a = (Math.round(Math.random()*10)%7)+1;

	if ((navigator.appName=="Netscape")||(navigator.appName=="Mozilla")) {
		document.write ("<object classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=4,0,2,0\" width=\"272\" height=\"135\">");
		document.write ("<param NAME=\"SRC\" VALUE=\"../media/img/eng/frases"+a+".swf\">");
		document.write ("<embed SRC=\"../media/img/eng/frases"+a+".swf\" PLUGINSPAGE=\"http://www.macromedia.com/shockwave/download/\" TYPE=\"application/x-shockwave-flash\" WIDTH=\"272\" HEIGHT=\"135\">");
		document.write ("<param name=quality value=high>");
		document.write ("</object>");
	}
	else
	{
		document.write ("");
	}
}
