var atual = "imgs/o_<%Response.Write(String(get_nome_url()).replace('.asp','.gif'));%>"

function atrib() {
	
for(i=0;i<document.images.length;i++) {
	
if(String(document.images[i].id).indexOf('foto') != -1) {
	
document.images[i].style.cursor = "pointer";

document.images[i].onclick = function() {
document.location = "?fot=" + String(this.id).substring(4) + "&campo=" + campo + "&pag=" + pag;
this.alt = String(this.id).substring(4);
	
}
	
	
}

if(String(document.images[i].src).indexOf('d_') != -1) {

var preload = new Image;
preload.src = String(document.images[i].src).replace('d_','o_');

document.images[i].style.cursor = "pointer"

if(document.images[i].src != atual) {

document.images[i].onmouseover = function() {
this.src = String(this.src).replace('d_','o_');
}
document.images[i].onmouseout = function() {
this.src = String(this.src).replace('o_','d_');
}

if(document.images[i].id != 'fotolog') {

document.images[i].onclick = function() {
	var recorte = String(this.src).substring(String(this.src).indexOf('imgs/')+7);
	document.location = recorte.replace('.gif','.asp');
}

}else{

document.images[i].onclick = function() {
	window.open('fotolog.asp','','width=890,height=707,statusbar=no').focus()
}
	
}

}

}

}

}


var flashObject;

try {

if(Browser == undefined){
	var Browser = {
		isIE: function(){ return (window.ActiveXObject && document.all && navigator.userAgent.toLowerCase().indexOf("msie") > -1  && navigator.userAgent.toLowerCase().indexOf("opera") == -1) ? true : false; }
	}
}

var Flash = function(movie, id, width, height, initParams){

	this.html = "";
	this.attributes = this.params = this.variables = null;
	
	this.variables = new Array();
	this.attributes = {
		"classid": "clsid:D27CDB6E-AE6D-11cf-96B8-444553540000",
		"codebase": "http://fpdownload.macromedia.com/get/flashplayer/current/swflash.cab#version=8,0,22,0",
		"type": "application/x-shockwave-flash"
	}
	this.params = { "pluginurl": "http://www.macromedia.com/go/getflashplayer_br" };
	
	if(movie) {
		this.addAttribute("data", movie);
		this.addParameter("movie", movie);
	}
	
	if(id && id != null) this.addAttribute("id", id);
	if(width) this.addAttribute("width", width);
	if(height) this.addAttribute("height", height);
	
	if(initParams != undefined){
		for(var i in initParams){
			this.addParameter(i.toString(), initParams[i]);
		}
	}
	
}
Flash.version = "1.2b";
Flash.getObjectByExceptions = function(obj, excep){
	var tempObj = {};
	for(var i in obj){
		var inclui = true;
		for(var j=0; j<excep.length; j++)
			if(excep[j] == i.toString()) { inclui = false; break; };
		if(inclui) tempObj[i] = obj[i];
	}
	return tempObj;
}
Flash.prototype.addAttribute = function(prop, val){ this.attributes[prop] = val; }
Flash.prototype.addParameter = function(prop, val){ this.params[prop] = val; }
Flash.prototype.addVariable = function(prop, val){ this.variables.push([prop, val]); }
Flash.prototype.getFlashVars = function(){
	var tempString = new Array();
	
	for(var i=0; i<this.variables.length; i++)
		tempString.push(this.variables[i].join("="));
		
	return tempString.join("&");
}
Flash.prototype.toString = function(){
	
	this.params.flashVars = this.getFlashVars();
	if(Browser.isIE()){
		//IE
		this.html = "<ob" + "ject";
		var attr = Flash.getObjectByExceptions(this.attributes, ["type", "data"]);
		for(var i in attr) if(i.toString() != "extend") this.html += " " + i.toString() + " = \"" + attr[i] + "\"";
		this.html += "> ";
		var params = Flash.getObjectByExceptions(this.params, ["pluginurl", "extend"]);
		for(var i in params) if(i.toString() != "extend") this.html += "<param name=\"" + i.toString() + "\" value=\"" + params[i] + "\" /> ";
		this.html += " </obj" + "ect>";
	} else {
		//non-IE
		this.html = "<!--[if !IE]> <--> <obj" + "ect";
		var attr = Flash.getObjectByExceptions(this.attributes, ["classid", "codebase"]);
		for(var i in attr) if(i.toString() != "extend") this.html += " " + i.toString() + " = \"" + attr[i] + "\"";
		this.html += "> ";
		var params = Flash.getObjectByExceptions(this.params, ["extend"]);
		for(var i in params) if(i.toString() != "extend") this.html += "<param name=\"" + i.toString() + "\" value=\"" + params[i] + "\" /> ";
		this.html += " </obj" + "ect> <!--> <![endif]-->";
	}

	return this.html;
	
}
Flash.prototype.write = Flash.prototype.outIn = Flash.prototype.writeIn = function(w){
	if(typeof w == "string" && document.getElementById) var w = document.getElementById(w);
	if( w != undefined && w ) w.innerHTML = this.toString();
	else document.write( this.toString() );
}

}catch(e) { }

function gera_Flash(swf,id,largura,altura) {

	if(String(navigator.appName).indexOf("Internet Explorer") != -1 && String(navigator.appVersion).indexOf('5.0') != -1) {
	document.write('<object id="'+id+'" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" 			codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="'+largura+'" height="'+altura+'"><param name="movie" value="'+swf+'"><param name="quality" value="high"><embed id="'+id+'" src="'+swf+'" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="'+largura+'" height="'+altura+'"></embed></object>')

}else{
	var conteudo = new Flash(swf, id, largura, altura).write()

}

flashObject = document.getElementById(id)
	
}

function BValidar() 
{
	if (form_buscadores.query.value=="") 
		{alert("Por favor, preencha o campo de busca.");
		 form_buscadores.query.focus();
		 return false;
	}else{
		if (form_buscadores.ca.value=="compras"){
top.location.href="http://shopping.terra.com.br/frame/F50.asp?url=http://buscadorcompras.terra.com.br/cprocura.asp?produto="+form_buscadores.query.value;
return false;
		}  
		if (form_buscadores.ca.value=="leiloes"){
top.location.href="http://www.mercadolivre.com.br/brasil/ml/pms?site=258641&id=2021&word=busqhometerra&as_opt=http://www.mercadolivre.com.br/jm/search?as_display_type=G$$noQCat=Y$$as_price_min=7$$as_order_id=MAS_OFERTADOS$$as_word="+form_buscadores.query.value;
return false;
		}  
		else {	
			form_buscadores.palabra.value=form_buscadores.query.value;
			return true;
		}
	}
}