/**
 * @author Israel "Judas" Díaz 2008 ©
 */


var pngfixer;

window.onload = function(){
	
	try {
		pngfixer = new supersleight();
		pngfixer.run();
	} catch (e) {
		
	}
}

function loadInfo(content, target){
	var info_ajx = new AjaxObject(content);
	info_ajx.onLoad = function(){
		document.getElementById(target).innerHTML = this.response;
		
		try {
			pngfixer.limitTo(target)
			pngfixer.run()
		} catch (e) {
			
		}
		
		$(target).setStyle("opacity", 0);
		new Fx.Styles(target, {duration: 150}).start({"opacity" : [0, 1]});
	}
	info_ajx.sendAndLoad();
}

function slideContent(index){
	var ancho = 302;
	var slideHolder = document.getElementById("subcontent-holder");

	new Fx.Styles(slideHolder, {duration: 600, transition: Fx.Transitions.Cubic.easeIn }).start({
		"margin-left" : -(ancho * index)
	});
}
