// define cor/image de fundo e tipo do cursor do mouse
function setStyle(src_obj,new_value,cursor_type) {
	if(typeof(new_value)=='undefined') new_value=null;
	if(typeof(cursor_type)=='undefined' || !cursor_type) {
		cursor_type='default';
	}
	if(new_value && new_value.indexOf('#')>-1) {
		src_obj.style.backgroundColor=new_value;
		//src_obj.bgColor=new_value;
		//src_obj.setAttribute('bgcolor',new_value,0);
	} else if(new_value && new_value.indexOf('.')>-1) {
		src_obj.style.background='url("'+new_value+'") repeat';
		//src_obj.background=new_value;
	} else if(new_value=='') {
		src_obj.style.backgroundColor='';
		//src_obj.background='';
		//src_obj.style.background='';
	}
	if(cursor_type=='hand') {
		cursor_type='pointer';
	}
	src_obj.style.cursor=cursor_type;
	if(typeof(siteurl)!='undefined') {
		window.status=siteurl;
	}
	return true;
}

// força click no primeiro link dentro da tag em foco
function doClick(src) {
	try {
		src.children.tags('A')[0].click();
	} catch(errormsg) {
	}
	if(typeof(siteurl)!='undefined') window.status=siteurl;
	return true;
}

// efeitos com imagens
function imageOn(imgkey) {
	with(document) {
		keynavn=eval(imgkey+'on');
		document [imgkey].src=keynavn.src;
	}
	return true;
}

function imageOff(imgkey) {
	with(document) {
		if(imgkey!=currkey) {
			keynavn=eval(imgkey+'off');
			document [imgkey].src=keynavn.src;
		}
	}
	return true;
}

function imageLock(imgkey) {
	with(document) {
		if(currkey!='key00') {
			keynavn=eval(currkey+'off');
			document [currkey].src=keynavn.src;
		}
		if(imgkey!='key00') {
			keynavn=eval(imgkey+'on');
			document [imgkey].src=keynavn.src;
		}
		currkey=imgkey;
	}
	return true;
}
