// JavaScript Document

function show(num) {
	document.getElementById('pestanya').style.display = "block";
	if(num==2){
		document.getElementById('pestanya2').className = 'on';
		document.images["pas2"].src= "http://obrasocial.lacaixa.es/StaticFiles/StaticFiles/06d001509ab73210VgnVCM200000128cf10aRCRD/ca/pastilla.gif"; 
		document.getElementById('flashcontent02').style.display = "block";
		document.getElementById('pestanya1').className = 'off';
		document.images["pas1"].src= "http://obrasocial.lacaixa.es/StaticFiles/StaticFiles/06d001509ab73210VgnVCM200000128cf10aRCRD/ca/pastillaOf.gif"; 
		document.getElementById('flashcontent01').style.display = "none";	
	}else{
		document.getElementById('pestanya1').className = 'on';
		document.images["pas1"].src= "http://obrasocial.lacaixa.es/StaticFiles/StaticFiles/06d001509ab73210VgnVCM200000128cf10aRCRD/ca/pastilla.gif"; 
		document.getElementById('flashcontent01').style.display = "block";
		document.getElementById('pestanya2').className = 'off';
		document.images["pas2"].src= "http://obrasocial.lacaixa.es/StaticFiles/StaticFiles/06d001509ab73210VgnVCM200000128cf10aRCRD/ca/pastillaOf.gif"; 
		document.getElementById('flashcontent02').style.display = "none";
		}
}
	
function activar(){
	variable= document.location.href;
	inici= variable.indexOf("id=",0) + 3;
	final= variable.length;

	if(inici!=2){
		url= variable.substring(inici, inici+2);
		if (url == '01'){
			show('1');
		}else{
			show('2');
		}
	}else{
		show('2');
	}
	document.getElementById('soliContent').className = 'act';
}

<!--
var MM_contentVersion = 6;
var plugin = (navigator.mimeTypes && navigator.mimeTypes["application/x-shockwave-flash"]) ? navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin : 0;
if ( plugin ) {
		var words = navigator.plugins["Shockwave Flash"].description.split(" ");
	    for (var i = 0; i < words.length; ++i)
	    {
		if (isNaN(parseInt(words[i])))
		continue;
		var MM_PluginVersion = words[i]; 
	    }
	var MM_FlashCanPlay = MM_PluginVersion >= MM_contentVersion;
}
else if (navigator.userAgent && navigator.userAgent.indexOf("MSIE")>=0 
   && (navigator.appVersion.indexOf("Win") != -1)) {
	document.write('<SCRIPT LANGUAGE=VBScript> \n'); //FS hide this from IE4.5 Mac by splitting the tag
	document.write('on error resume next \n');
	document.write('MM_FlashCanPlay = ( IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash." & MM_contentVersion)))\n');
	document.write('</SCRIPT> \n');
}
if ( MM_FlashCanPlay ) {
	activar ();
} 
//-->
