// JavaScript Document

// -- resquest source - botao voltar
request_source = onnavigate("request_source", function(data){
	
	
	if  (data.substr(0,4)=="zoom") {
	
	var source = ("zoom")
	}
	
	else if  (data.substr(0,4)=="thum") {
	
	var source = ("thumbview")
	}
	else
	{		
	var source = ("source")
	}
	
	
		ajaxFunction(data,source)
	
	var counter = ("counter")
	document.getElementById("counter").innerHTML = document.navigators.history.length + 1
});

// -- confere resolução
function resolution(){
if(screen.width<=800 && screen.height<=600){
ajaxFunction('800.php','conteudoGeral');
}else if(screen.width<=1024 && screen.height<=768){
ajaxFunction('1024.php','conteudoGeral');
}else if(screen.width<=1280 && screen.height<=768){
ajaxFunction('wide.php','conteudoGeral');
}else if(screen.width<=1280&& screen.height<=1024){
ajaxFunction('1200.php','conteudoGeral');
}else{ajaxFunction('1200.php','conteudoGeral');
}
}
