startList = function() {
if (document.all&&document.getElementById) {
navRoot = document.getElementById("nav");
for (i=0; i<navRoot.childNodes.length; i++) {
node = navRoot.childNodes[i];
if (node.nodeName=="LI") {
node.onmouseover=function() {
this.className+=" over";
  }
  node.onmouseout=function() {
  this.className=this.className.replace(" over", "");
   }
   }
  }
 }
}
window.onload=startList;

function GerarSWF(arquivo,largura,altura,id,cor,wmode){
    document.writeln('    <object id="globalnav-object" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" align="top" width="' + largura + '" height="' + altura + '" id="' + id + '" name="' + id + '">');
    document.writeln('        <param name="movie" value="' + arquivo + '" />');
    document.writeln('        <param name="FlashVars" value="loc=en_US&htmlApp=false&gatewayURL=gwurl" />');
    document.writeln('        <param name="menu" value="false" />');
	document.writeln('        <param name="salign" value="t" />');
	document.writeln('        <param name="BGCOLOR" value="' + cor + '" />');
	document.writeln('        <param name="quality" value="high" />');
	document.writeln('        <param name="wmode" value="' + wmode + '" />');
    document.writeln('        <embed id="globalnav-embed" src="' + arquivo + '" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" flashvars="loc=en_US&htmlApp=false&gatewayURL=gwurl" menu="false" salign="t" align="top" quality="high" wmode="' + wmode + '" bgcolor="' + cor + '" id="' + id + '" width="' + largura + '" height="' + altura + '"></embed>');
    document.writeln('    </object>');
}

function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

/*pop*/
function abrePop(param,param2,s,w,h){
	var novaJanela = window.open(param,param2,'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars='+s+',resizable=no,top=50,left=50,width='+w+',height='+h);
	if (novaJanela) return false;
	return true;
}

function jumpMenu(targ,selObj,restore){
	eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
	if (restore) selObj.selectedIndex=0;
}

// Adiciona aos Favoritos
function addBookmark(title, url){
if (document.all) window.external.AddFavorite(url, title); 
else if (window.sidebar) window.sidebar.addPanel(title, url, "") 
}

// Página Inicial
setHome = function(obj){
	if(document.all)
	{
		obj.style.behavior='url(#default#homepage)';
		obj.setHomePage('http://www.litoraldesantacatarina.com');
		return false;
	}
	return true;
}

function MM_findObj(n, d) { //v3.0
	var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
		d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
	if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
	for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document); return x;
}

function printPage() {
print(document); 
}


