// -----------------------------stylo de borda que pisca
// ----------------------------- myexample
var speed=200

function flashit(){
var crosstable=document.getElementById? document.getElementById("myexample") : document.all? document.all.myexample : ""
if (crosstable){
if (crosstable.style.borderColor.indexOf("#000000")!=-1)
crosstable.style.borderColor="#ffffff"
else
crosstable.style.borderColor="#000000"
}
}
setInterval("flashit()", speed)


// ---------------------------------------------bloqueia botão direito------------------------------ 

var message="";
///////////////////////////////////
function clickIE() {if (document.all) {(message);return false;}}
function clickNS(e) {if (document.layers||(document.getElementById&&!document.all)) {
if (e.which==2||e.which==3) {(message);return false;}}}
if (document.layers) {document.captureEvents(Event.MOUSEDOWN);document.onmousedown=clickNS;}
else{document.onmouseup=clickNS;document.oncontextmenu=clickIE;}

document.oncontextmenu=new Function("return false")


// ----------------------------------------- não seleciona ----------------------------- 

//function disableselect(e){
//return false
//}

//function reEnable(){
//return true
//}

//if IE4+
//document.onselectstart=new Function ("return false")

//if NS6
//if (window.sidebar){
//document.onmousedown=disableselect
//document.onclick=reEnable
//}

//-----------------------------------------------Fim não seleciona------------------------------



// --------------------------------------abre janela com parêmetros específicos

function abre_janela(theURL,winName,features) { 
  window.open(theURL,winName,features);
}
//propriedades window.open("http://www.w3schools.com","","toolbar=no,location=no,directories=no, status=no,menubar=no,scrollbars=yes,resizable=no,copyhistory=no,width=400,height=400") 

//---------------------------------------fim abre janela



// ------------------------------------------ Trata menu suspenso no navegador Netscape 

	function MM_reloadPage(init) {  //reloads the window if Nav4 resized
	  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
		document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
	  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
	}
	MM_reloadPage(true);

// ------------------------------------------fim Menu

// ------------------------------------------ abre link na comb

 function vaiPara(sel){
	if (sel=="")
		return;
//	window.main.location.href = sel
	window.parent.location.href = sel
}

// -----------------------------------------fim link na comb


// ----------------------------------------abre janela no comb

function land(ref, target) 
{ 
lowtarget=target.toLowerCase(); 
if (lowtarget=="_self") {window.location=loc;} 
else {if (lowtarget=="_top") {top.location=loc;} 
else {if (lowtarget=="_blank") {window.open(loc);} 
else {if (lowtarget=="_parent") {parent.location=loc;} 
else {parent.frames[target].location=loc;}; 
}}} 
} 
function jump(menu) 
{ 
ref=menu.choice.options[menu.choice.selectedIndex].value; 
splitc=ref.lastIndexOf("*"); 
target=""; 
if (splitc!=-1) 
{loc=ref.substring(0,splitc); 
target=ref.substring(splitc+1,1000);} 
else {loc=ref; target="_self";}; 
if (ref != "") {land(loc,target);} 
} 

//---------------------------------------fim abre janela na comb

//----------------------------------------PESQUISA SATISFAÇÃO
/*

// Drop-in content box- By Dynamic Drive
// For full source code and more DHTML scripts, visit http://www.dynamicdrive.com
// This credit MUST stay intact for use

var ie=document.all
var dom=document.getElementById
var ns4=document.layers
var calunits=document.layers? "" : "px"

var bouncelimit=32 //(must be divisible by 8)
var direction="up"

function initbox(){
if (!dom&&!ie&&!ns4)
return
crossobj=(dom)?document.getElementById("dropin").style : ie? document.all.dropin : document.dropin
scroll_top=(ie)? truebody().scrollTop : window.pageYOffset
crossobj.top=scroll_top-100+calunits
crossobj.visibility=(dom||ie)? "visible" : "show"
dropstart=setInterval("dropin()",50)
}

function dropin(){
scroll_top=(ie)? truebody().scrollTop : window.pageYOffset
if (parseInt(crossobj.top)<100+scroll_top)
crossobj.top=parseInt(crossobj.top)+20+calunits
else{
clearInterval(dropstart)
bouncestart=setInterval("bouncein()",40)
}
}

function bouncein(){
crossobj.top=parseInt(crossobj.top)-bouncelimit+calunits
if (bouncelimit<0)
bouncelimit+=8
bouncelimit=bouncelimit*-1
if (bouncelimit==0){
clearInterval(bouncestart)
}
}

function dismissbox(){
if (window.bouncestart) clearInterval(bouncestart)
crossobj.visibility="hidden"
}

function truebody(){
return (document.compatMode && document.compatMode!="BackCompat")? document.documentElement : document.body
}


window.onload=initbox
*/



