// JavaScript Document

document.writeln('<script language="javascript" type="text/javascript" src="http://www.vizza.com.br/share/flashobject.js"></script>');

var wndPopup = new Object();
wndPopup.closed = true;

function openPopup(path, scrollbars) {
	if (!wndPopup.closed) wndPopup.close();
	
	var width = 500;
	var height = 400;
	
	var browserName = navigator.appName; 	
	if (browserName == "Netscape") { 
		width += 2;
	}
	
	if (scrollbars) wndPopup = window.open(path, "popup", "width=517, height=400, scrollbars");
	else wndPopup = window.open(path, "popup", "width=500, height=400");
}

function openPhoto(path, vertical, legenda) {
	if (!wndPopup.closed) wndPopup.close();
	
	if (vertical) wndPopup = window.open("", "popup", "width=333, height=595");
	else wndPopup = window.open("", "popup", "width=500, height=400");
	
	wndPopup.document.clear();
	wndPopup.document.writeln('<html>');
	wndPopup.document.writeln('<head>');
	wndPopup.document.writeln('<title>Dental Planet</title>');
	wndPopup.document.writeln('<link rel="stylesheet" type="text/css" href="styles.css">');
	wndPopup.document.writeln('</head>');
	wndPopup.document.writeln('<body style="background: url(media/bg_01.jpg) repeat-x top #CCCCCC; margin: 0px;">');
	wndPopup.document.writeln('<table width="100%" border="0" cellpadding="0" cellspacing="0">');
	wndPopup.document.writeln('<tr><td height="10" colspan="2" style="background: #CCCCCC;"></td></tr>');
  wndPopup.document.writeln('<tr><td width="230" height="60" style="padding-left: 12px;"><img src="media/lg_00.gif" width="230" height="47"></td><td align="center"><span class="tx_03"><b>' + legenda + '</b></span></td></tr>');
  wndPopup.document.writeln('<tr><td height="10" colspan="2" style="background: url(media/bg_02.gif) repeat-x;"></td></tr>');
  wndPopup.document.writeln('<tr><td colspan="2"><img src="./media/fotos/' + path + '" /></td></tr>');
  wndPopup.document.writeln('<tr><td height="15" colspan="2" style="background: url(media/bg_03.gif) repeat-x;"></td></tr>');
	wndPopup.document.writeln('</table>');
	wndPopup.document.writeln('</body>');
	wndPopup.document.writeln('</html>');
	wndPopup.document.close();
	
	wndPopup.focus();
}

function openContato(destino) {
	if (!wndPopup.closed) wndPopup.close();
	
	wndPopup = window.open("popup_contato.htm?destino=" + destino, "popup", "width=500, height=300");
}

function openPanoramica(path, legenda) {
	if (!wndPopup.closed) wndPopup.close();
	
	wndPopup = window.open("", "popup", "width=500, height=417");
	
	wndPopup.document.clear();
	wndPopup.document.writeln('<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">');
	wndPopup.document.writeln('<html>');
	wndPopup.document.writeln('<head>');
	wndPopup.document.writeln('<title>Dental Planet</title>');
	wndPopup.document.writeln('<link rel="stylesheet" type="text/css" href="styles.css">');
	wndPopup.document.writeln('</head>');
	wndPopup.document.writeln('<body style="background: url(media/bg_01.jpg) repeat-x top #CCCCCC; margin: 0px;">');
	wndPopup.document.writeln('<table width="100%" border="0" cellpadding="0" cellspacing="0">');
	wndPopup.document.writeln('<tr><td height="10" colspan="2" style="background: #CCCCCC;"></td></tr>');
  wndPopup.document.writeln('<tr><td width="230" height="60" style="padding-left: 12px;"><img src="media/lg_00.gif" width="230" height="47"></td><td align="center"><span class="tx_03"><b>' + legenda + '</b></span></td></tr>');
  wndPopup.document.writeln('<tr><td height="10" colspan="2" style="background: url(media/bg_02.gif) repeat-x;"></tr>');
  wndPopup.document.writeln('<tr><td colspan="2"><div style="overflow: auto; width: 500px; height: 323px;"><img src="./media/fotos/' + path + '" /></div></td></tr>');
  wndPopup.document.writeln('<tr><td height="15" colspan="2" style="background: url(media/bg_03.gif) repeat-x;"></td></tr>');
	wndPopup.document.writeln('</table>');
	wndPopup.document.writeln('</body>');
	wndPopup.document.writeln('</html>');
	wndPopup.document.close();
	
	wndPopup.focus();
}