// functions written by the 3Greens.nl team. Feel free to use for your own purposes, but don't bother asking us questions about it...

// function that opens a popup and shows the requested image with description
function showBigImage(title, imgSrc, imgDesc, width, height){
	// window dimensions:
	winHeight = height + 60;
	winWidth = width + 20;
	
	// open new window
	var imgWindow = window.open("bigimage.html#" + imgSrc,"bigImage","toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=no, resizable=yes, width=" + winWidth + ", height=" + winHeight);
	
	// add HTML to new window
	var doc = imgWindow.document;
	doc.write("<html><head><title>" + title + "</title>");
	doc.write("<link rel=\"stylesheet\" href=\"css/screen.css\" media=\"screen\" /></head>");
	doc.write("<body><div style=\"text-align:center\;\">");
	doc.write("<img src=\"" + imgSrc + "\" alt=\"" + title + "\" height=\"" + height + "\" width=\"" + width + "\" style=\"border-style:solid;border-width:1px;border-color:black;\"/><br/>");
	doc.write("<div width=\"" + width + "\" class=\"imgdesc\">" + imgDesc);
	doc.write("</div></div></body></html>");
	doc.close();	// stop writing (this stops Mozilla from loading)
	
	if (window.focus){
		imgWindow.focus();		// bring focus on popup (if focus method is supported)
	}
}


// hide our address from lousy spiders
function getAddress(){
	var alias = "info";
	var domain = "3greens";
	var extension = ".nl";
	var href = "<a href=\"";
	var mai = "mai";
	var lto = "lto:";
	var at = "@";
	var fullAddress = alias + at + domain + extension;
	var fullLink = href + mai + lto + fullAddress + "\"/>" + fullAddress + "</a>";
	document.write(fullLink);
}	