//==============================================================================
//==============================================================================

function PopupURL3(strURL, iWidth, iHeight, iLeft, iTop, iResizable) {
	
		var wnd 	   = window.open(strURL, "PopupURL","toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,copyhistory=0,resizable=" + iResizable + ",width=" + iWidth+ ",height=" + iHeight+ ",left=" + iLeft+ ",top=" + iTop);
	
	    return;
}


function rollOver(btn) {

	fade(btn, './images/' + btn.id + '-over.jpg');
}

function rollOut(btn) {

	fade(btn, './images/' + btn.id + '-norm.jpg');
}

function fade(btn, image) {

	btn.filters["blendTrans"].apply();
	btn.src = image;
	btn.filters["blendTrans"].play();
}




function galleryPopup(picture, pictureWidth, pictureHeight, title) {

// Set window dimensions and center in screen
var iWndWidth      = parseInt(pictureWidth) + (20 * 2);
var iWndHeight     = parseInt(pictureHeight) + (20 * 2) + 30;

var iWndLeft       = ((screen.width / 2)  - (iWndWidth /2));
var iWndTop        = ((screen.height / 2) - (iWndHeight /2));

// Create basic window
var wndAlert;
wndAlert = window.open("", "popupGallery","toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,copyhistory=1,resizable=0,width=" + iWndWidth+ ",height=" + iWndHeight+ ",left=" + iWndLeft+ ",top=" + iWndTop);

// Output HTML content to window
wndAlert.document.write('<html>');
wndAlert.document.write('<head>');
wndAlert.document.write('<title>Gallery Picture</title>');
wndAlert.document.write('<link rel="stylesheet" type="text/css" href="./styles/styles.css">');
wndAlert.document.write('</head>');
wndAlert.document.write('<body marginheight="0" marginwidth="0" topmargin="0" leftmargin="0" text="#000000">');
wndAlert.document.write('<table cellpadding="0" cellspacing="0" border="0" width="100%" height="100%">');
wndAlert.document.write('<tr><td>&nbsp;</td></tr>');
wndAlert.document.write('<tr valign="center"><td align="center" valign="top" height="100%">');
wndAlert.document.write('<img id="na" src="' + picture + '" width="' + pictureWidth + '" height="' + pictureHeight + '" border="1" alt=""><p><font class="gallerytitle">' + title + '</font>');
wndAlert.document.write('</td></tr>');
wndAlert.document.write('<tr><td><table width="100%" cellspacing="0" border="0"><tr class="footer"><td>&nbsp;</td><td align="right"><font size="-2" face="arial"><a href="JavaScript:window.close()">[close]</a></font></td></tr></table></td></tr>');
wndAlert.document.write('<tr><td>&nbsp;</td></tr>');
wndAlert.document.write('</table>');
wndAlert.document.write('</body>');
wndAlert.document.write('</html>');

wndAlert.focus();

return(0);
}




//==============================================================================
//==============================================================================
