function popupOld(imgName, titName, field, event){
	var content=""
	content+="<table bgcolor=\"#EBC99E\" width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"2\">"
	content+="<tr><td nowrap><img src=\"img/zoom/" + imgName + ".gif\"</td></tr>"

	if(titName != undefined && titName != '') {
		content+="<tr><td nowrap align='center'><img src=\"img/titulos/" + titName + ".gif\"</td></tr>"
	}
	content+="</table>"

	ddrivetip( content, 'white', 250 );
}

function popupOld2(imgName, titName){
	var content=""
	content+="<table bgcolor=\"#EBC99E\" width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"2\">"
	content+="<tr><td nowrap align=\"right\"><a href=\"javascript:hideddrivetip()\" class=\"url-small\">Fechar</a></td></tr>"

	content+="<tr><td nowrap align=\"center\"><img src=\"img/zoom/" + imgName + ".gif\" /></td></tr>"

	if(titName != undefined && titName != '') {
		content+="<tr><td nowrap align='center'><img src=\"img/titulos/" + titName + ".gif\" /></td></tr>"
	}
	content+="</table>"

	fixedtooltip(content, 'white', 250);
}

// Set the horizontal and vertical position for the popup
PositionX = 100;
PositionY = 100;

// Set these value approximately 20 pixels greater than the
// size of the largest image to be used (needed for Netscape)
defaultWidth  = 350;
defaultHeight = 300;

// Set autoclose true to have the window close automatically
// Set autoclose false to allow multiple popup windows
var AutoClose = true;

// Do not edit below this line...
// ================================
if (parseInt(navigator.appVersion.charAt(0))>=4){
	var isNN=(navigator.appName=="Netscape")?1:0;
	var isIE=(navigator.appName.indexOf("Microsoft")!=-1)?1:0;
}
var optNN='scrollbars=no,width='+defaultWidth+',height='+defaultHeight+',left='+PositionX+',top='+PositionY;
var optIE='scrollbars=no,width=350,height=300,left='+PositionX+',top='+PositionY;

function popup(imageURL,titName){
	if (isNN){imgWin=window.open('about:blank','',optNN);}
	if (isIE){imgWin=window.open('about:blank','',optIE);}
	with (imgWin.document){
		writeln('<html><head><title>Villa Doce</title>');
		writeln('<link href="css/sweet.css" rel="stylesheet" type="text/css" />');
		writeln('<sc'+'ript>');
		writeln('var isNN,isIE;');writeln('if (parseInt(navigator.appVersion.charAt(0))>=4){');
		writeln('isNN=(navigator.appName=="Netscape")?1:0;');writeln('isIE=(navigator.appName.indexOf("Microsoft")!=-1)?1:0;}');
		writeln('function reSizeToImage(){');writeln('if (isIE){');writeln('window.resizeTo(100,100);');
		writeln('width=150-(document.body.clientWidth-document.images[0].width);');
		writeln('height=150-(document.body.clientHeight-document.images[0].height);');
		writeln('window.resizeTo(width,height);}');writeln('if (isNN){');
		writeln('window.innerWidth=document.images["Sweet"].width+50;');writeln('window.innerHeight=document.images["Sweet"].height+50;}}');
		//writeln('function doTitle(){document.title="'+imageTitle+'";}');
		writeln('</sc'+'ript>');
		if (!AutoClose) {
			writeln('</head><body bgcolor="#EBC99E" scroll="no" onload="reSizeToImage();self.focus()">')
		} else {
			writeln('</head><body bgcolor="#EBC99E" scroll="no" onload="reSizeToImage();self.focus()" onblur="self.close()">');
		}
		
		writeln('<table bgcolor="#EBC99E" width="100%" border="0" cellspacing="0" cellpadding="2">');
		writeln('<tr><td nowrap align="right"><a href="javascript:self.close()" class="url-small">Fechar</a></td></tr>');
		writeln('<tr><td nowrap align="center"><img name="Sweet" src="img/zoom/' + imageURL + '.gif" /></td></tr>');
	
		if(titName != undefined && titName != '') {
			writeln('<tr><td nowrap align="center"><img src="img/titulos/' + titName + '.gif" /></td></tr>');
		}
		writeln('</table>');
		//writeln('<img name="Sweet" src="img/zoom/'+imageURL+'.gif" style="display:block">');
		writeln('</body></html>');
		close();
	}
}

function right(e) {
	if (navigator.appName == 'Netscape' && 
		(e.which == 3 || e.which == 2))
		return false;
	else if (navigator.appName == 'Microsoft Internet Explorer' && 
		(event.button == 2 || event.button == 3)) {
		alert('Copyright by Villa Doce - Todos os Direitos Reservados');
		return false;
	} 
	return true;
}	

function popupHome(strURL,strTitle){
	var strOptions='resizable=no,height=625,width=815,scrollbars=no';
	var theWindow=open(strURL,strTitle,strOptions);
	theWindow.focus();
}

document.onmousedown=right;
document.onmouseup=right;
if (document.layers) window.captureEvents(Event.MOUSEDOWN);
if (document.layers) window.captureEvents(Event.MOUSEUP);
window.onmousedown=right;
window.onmouseup=right;