function ajax_url( url , local_conteudo) {
	function createXMLHttpRequest()
	{
		try{ return new ActiveXObject("Msxml2.XMLHTTP"); }catch(e){}
		try{ return new ActiveXObject("Microsoft.XMLHTTP"); }catch(e){}
		try{ return new XMLHttpRequest(); }catch(e){}
		alert("XMLHttpRequest not supported");
		return null;
	}

	var xhReq = createXMLHttpRequest();
	xhReq.open("post",url,true);
	xhReq.setRequestHeader('Content-Type','application/x-www-form-urlencoded');
	xhReq.onreadystatechange = function do_readyStateChange(to) {
		if (xhReq.readyState == 4)
		{
			document.getElementById(local_conteudo).innerHTML = xhReq.responseText;
			if (url == 'sites.asp')
			{
				$(document).ready(function(){
						$("#myController").jFlow({
							controller: ".jFlowControl", // must be class, use . sign
							slideWrapper : "#jFlowSlider", // must be id, use # sign
							slides: "#mySlides",  // the div where all your sliding divs are nested in
							selectedWrapper: "jFlowSelected",  // just pure text, no sign
							width: "700px",  // this is the width for the content-slider
							height: "250px",  // this is the height for the content-slider
							duration: 400,  // time in miliseconds to transition one slide
							prev: ".jFlowPrev", // must be class, use . sign
							next: ".jFlowNext", // must be class, use . sign
							auto: true	
					});
				});
			//	$('.jFlowSlideContainer')
			}
			
			if( url == 'cyber.asp' || url == 'identidade_visual.asp')
			{
				$(document).ready(function() {
				$("a[rel=cyber]").fancybox({
					'transitionIn'		: 'none',
					'transitionOut'		: 'none',
					'titlePosition' 	: 'over',
					'titleFormat'		: function(title, currentArray, currentIndex, currentOpts) {
						return '<span id="fancybox-title-over">Image ' + (currentIndex + 1) + ' / ' + currentArray.length + (title.length ? ' &nbsp; ' + title : '') + '</span>';
					}
				  });
	
				});
			}
	
		}
		else
		{
			//document.getElementById(local_conteudo).innerHTML = 'Carregando..';		
		}
	}

	xhReq.send("&ajaxr=true");
} 
function ajax_email( url , local_conteudo) {
	function createXMLHttpRequest()
	{
		try{ return new ActiveXObject("Msxml2.XMLHTTP"); }catch(e){}
		try{ return new ActiveXObject("Microsoft.XMLHTTP"); }catch(e){}
		try{ return new XMLHttpRequest(); }catch(e){}
		alert("XMLHttpRequest not supported");
		return null;
	}

	var xhReq = createXMLHttpRequest();
	xhReq.open("post",url,true);
	xhReq.setRequestHeader('Content-Type','application/x-www-form-urlencoded');
	xhReq.onreadystatechange = function do_readyStateChange(to) {
		if (xhReq.readyState == 4)
		{
			if(xhReq.responseText == 'Enviado')
			{
				alert('Enviado Com sucesso!');		
				document.formu.reset();
			}
			else
			{
				alert('Desculpe-nos estamos com problemas em nossos servidores, tente novamente mais tarde!');			
			}
		}
	}

	xhReq.send("&ajaxr=true");
} 

