/*
Thiago amaral soalheiro

Adekz.com

Copyright © 2006.

É expressamente proibida a copia parcial ou total de qualquer parte desse arquivo.

Versao 2.0 - 23/10/2006*/



var ajax = new Ajax();
ajax.start(1000);


/*

var ad = new AjaxData();
ad.add('user', 1);

link('amigos', 'mostrafoto.php', 'mostrafoto', 'default', 'br', 'tela', ad );

*/

function link(modulo, href, tpl, tema, lang, target, info, depois){

	var retorno = function(OB_SRC){		
		aplicaTemplate($(target), modulo, tpl, tema, lang,  OB_SRC, depois);
	}
	ajax.enviar("modulos/"+modulo+"/"+href, "POST", info, retorno);
}

function linkso(modulo, href, target, info, depois){

	var retorno = function(OB_SRC){		
		$(target).innerHTML = OB_SRC.content;
		if(depois !=null)
			depois();
	}
	ajax.enviar("modulos/"+modulo+"/"+href, "POST", info, retorno);
}

function linkwork(modulo, href, info, depois){

	var retorno = function(OB_SRC){		
		if(depois !=null)
			depois(OB_SRC);
	}
	ajax.enviar("modulos/"+modulo+"/"+href, "POST", info, retorno);
}


function compilar(){

	var retorno = function(OB_SRC){		
		alert(OB_SRC);
	}
	ajax.enviar("modulos/amigos/compilador.php", "POST", new AjaxData(), retorno);
}

function compilaraiz(){

	var retorno = function(OB_SRC){		
		alert(OB_SRC);
	}
	ajax.enviar("compilador.php", "POST", new AjaxData(), retorno);
}

