//inclusao dos scripts
document.write('<script src="http://www.vizza.com.br/share/dyn_scroll/dw_scrollObj.js" type="text/javascript"></script>');
document.write('<script src="http://www.vizza.com.br/share/dyn_scroll/dw_hoverscroll.js" type="text/javascript"></script>');
document.write('<script src="http://www.vizza.com.br/share/dyn_scroll/dw_event.js" type="text/javascript"></script>');
document.write('<script src="http://www.vizza.com.br/share/dyn_scroll/dw_slidebar.js" type="text/javascript"></script>');
document.write('<script src="http://www.vizza.com.br/share/dyn_scroll/dw_scroll_aux.js" type="text/javascript"></script>');
document.write('<script src="http://www.vizza.com.br/share/layer_alpha.js" type="text/javascript"></script>');

function traduzURL() {
	aux = window.location.toString();
	aux = aux.split("?");
	
	if (aux.length > 1) {
		vars = aux[1].split("&");
		
		if (vars.length != null) {	
			parts = null;
			
			for (x=0; x < vars.length; x+=1) {
				alert(vars[x]);
				parts = vars[x].split("=");
				eval(parts[0] + '="' + parts[1] + '"');
			}
		}
	}
}

function abreFormulario(to, idioma) {
	window.open("http://www.multinova.ind.br/" + idioma + "_popup_contato_form.htm?to=" + to + "&idioma=" + idioma,"formulario","width=400,height=400");
}

function initScrollLayer() {
  // arguments: id of layer containing scrolling layers (clipped layer), id of layer to scroll, 
  // if horizontal scrolling, id of element containing scrolling content (table?)
  var wndo = new dw_scrollObj('wn', 'lyr1');
  
  // bSizeDragBar set true by default (explained at www.dyn-web.com/dhtml/scroll/ )
  // wndo.bSizeDragBar = false;
  
  // arguments: dragBar id, track id, axis ("v" or "h"), x offset, y offset
  // (x/y offsets of dragBar in track)
  wndo.setUpScrollbar("dragBar", "track", "v", 1, 1);
  
  // pass id('s) of scroll area(s) if inside table(s)
  // i.e., if you have 3 (with id's wn1, wn2, wn3): dw_scrollObj.GeckoTableBugFix('wn1', 'wn2', 'wn3');
  dw_scrollObj.GeckoTableBugFix('wn'); 
}


wnd = new Object();
wnd.closed = true;

function abrirFoto(path, desc, width, height) {
	if (!wnd.closed) wnd.close();	
	if (desc == undefined) desc = "";
	if (width == undefined && height == undefined) wnd = window.open('','foto','width=400,height=400');
	else {
		if (height > 500) wnd = window.open('','foto','width=' + (width + 17) + ',height=' + height + ',scrollbars');
		else wnd = window.open('','foto','width=' + width + ',height=' + height);
	}
	
	wnd.document.writeln('<html><head><title>Multinova</title><link rel="stylesheet" type="text/css" href="styles.css"></head>');
	if (width == undefined && height == undefined) wnd.document.writeln('<body><table width="400" height="400" border="0" cellpadding="0" cellspacing="0">');
	else wnd.document.writeln('<body><table width="' + width + '" height="' + height + '" border="0" cellpadding="0" cellspacing="0">');
	wnd.document.writeln('<tr><td height="70" width="189"><img src="media/lg_04.gif" width="189" height="70"></td>');
	wnd.document.writeln('<td width="211" align="right" class="texto_07" style="background-image: url(media/bg_03.gif); font-weight: bold; padding-right: 10px;">' + desc + '</td></tr>');
	wnd.document.writeln('<tr><td colspan="2"><img src="' + path + '"></td></tr>');
	wnd.document.writeln('<tr align="right"><td height="30" colspan="2" style="background-image: url(media/bg_03.gif); padding-right: 8px;"><a href="javascript:window.print()" class="link_04">Imprimir</a>&nbsp;&nbsp;&nbsp;<a href="#" class="link_04" onClick="window.close();">Fechar<img src="media/bl_04.gif" width="12" height="12" hspace="3" border="0" align="absmiddle"></a></td></tr></table><body></html>');
	wnd.document.close();
}