function addLoadEvent(func) {
				 var oldonload = window.onload;
				 if (typeof window.onload != 'function') {
				 		window.onload = func;
				 } else {
				 window.onload = function() {
				 		oldonload()
						func();
				    }
				 }
}
function fadeDiseno(){
	if(!document.getElementById) return false;
	if(!document.getElementById("current_trabajos")) return false; // Solo si no se ha activado aún ningún trabajo
	if(!document.getElementById("dis2")) return false;	
	obj2 = document.getElementById("dis2");
	// Start the opacity at 0
	setOpacity(obj2, 0);
	
	// Show the element (but you can see it, since the opacity is 0)
	show(obj2);
	
	// We are going to do a 20 'frame' animation that takes place over one second
	for (var i=0; i<=100; i+=10){
		// A closure to make sure that we have the right 'i'
		(function(){
			var pos=i;
			
			// Set the timeout to occur at the specified time in the future
			setTimeout(function(){
				
				// Set the new opacity of the element
				setOpacity(obj2,pos);
				
			}, (pos+1)*5);
		})();
	}	
	setTimeout(function(){fadeIdentidad()},900);
}
function fadeIdentidad(){
	if(!document.getElementById) return false;
	if(!document.getElementById("current_trabajos")) return false; // Solo si no se ha activado aún ningún trabajo
	if(!document.getElementById("ide2")) return false;	
	obj2 = document.getElementById("ide2");
	// Start the opacity at 0
	setOpacity(obj2, 0);
	
	// Show the element (but you can see it, since the opacity is 0)
	show(obj2);
	
	// We are going to do a 20 'frame' animation that takes place over one second
	for (var i=0; i<=100; i+=10){
		// A closure to make sure that we have the right 'i'
		(function(){
			var pos=i;
			
			// Set the timeout to occur at the specified time in the future
			setTimeout(function(){
				
				// Set the new opacity of the element
				setOpacity(obj2,pos);
				
			}, (pos+1)*5);
		})();
	}
		setTimeout(function(){fadePackaging()},900);	
}
function fadePackaging(){
	if(!document.getElementById) return false;
	if(!document.getElementById("current_trabajos")) return false; // Solo si no se ha activado aún ningún trabajo
	if(!document.getElementById("pac2")) return false;	
	obj2 = document.getElementById("pac2");
	// Start the opacity at 0
	setOpacity(obj2, 0);
	
	// Show the element (but you can see it, since the opacity is 0)
	show(obj2);
	
	// We are going to do a 20 'frame' animation that takes place over one second
	for (var i=0; i<=100; i+=10){
		// A closure to make sure that we have the right 'i'
		(function(){
			var pos=i;
			
			// Set the timeout to occur at the specified time in the future
			setTimeout(function(){
				
				// Set the new opacity of the element
				setOpacity(obj2,pos);
				
			}, (pos+1)*5);
		})();
	}
	setTimeout(function(){fadeWeb()},900);
}
function fadeWeb(){
	if(!document.getElementById) return false;
	if(!document.getElementById("current_trabajos")) return false; // Solo si no se ha activado aún ningún trabajo
	if(!document.getElementById("web2")) return false;	
	obj2 = document.getElementById("web2");
	// Start the opacity at 0
	setOpacity(obj2, 0);
	
	// Show the element (but you can see it, since the opacity is 0)
	show(obj2);
	
	// We are going to do a 20 'frame' animation that takes place over one second
	for (var i=0; i<=100; i+=10){
		// A closure to make sure that we have the right 'i'
		(function(){
			var pos=i;
			
			// Set the timeout to occur at the specified time in the future
			setTimeout(function(){
				
				// Set the new opacity of the element
				setOpacity(obj2,pos);
				
			}, (pos+1)*5);
		})();
	}
}
// Set an opacity level for an element where level is a number 0-100
function setOpacity(elem, level){
	// If filters exist, then this is IE, so set the Alpha filter

    elem.style.opacity = (level / 100);
    elem.style.MozOpacity = (level / 100);
    elem.style.KhtmlOpacity = (level / 100);
    elem.style.filter = "alpha(opacity=" + level + ")"; 
}
// A function for showing (using display) an element
function show(elem){
	// Set the display property back to what it use to be, or use 'block, if no previous display has been saved
	elem.style.display='block';
}


addLoadEvent(fadeDiseno);



