function OpenPic(picname)
{
	var MaxX = screen.availWidth;
	var MaxY = screen.availHeight;
	var dX = 950;
	var dY = 750;
	var cX = (MaxX - dX)/2;
	var cY = (MaxY - dY)/2;
	var WinOptions = "width=" + dX + ", height=" + dY + ", left=" + cX + ", top=" + cY + ", screenX=" + cX + ", screenY=" + cY + "menubar=no, toolbar=no, status=no, location=no, scrollbars=yes, resizable=yes";
	var TundePopup = window.open("","TundePopup", WinOptions);
	TundePopup.document.write('<html><head>');
	TundePopup.document.write('<title>TundeJegede.com - ' + picname + '</title>');
	
	TundePopup.document.write('<link href="tunde.css" rel="stylesheet" type="text/css">');
	TundePopup.document.write('</head>');
	TundePopup.document.write('<body><center><table width="100%" height="100%"><tr align="center" valign="middle"><td style="border:0">');
	TundePopup.document.write('<p><img src=' + picname + ' style="float:none"></p>');
	TundePopup.document.write('Click <a href="javascript:close()">here</a> to close this window');
	TundePopup.document.write('</tr></td></table></center></body>');
	
	if(TundePopup.focus) TundePopup.focus();
}


function PlayMovie(filename, title)
{
   var MaxX = screen.availWidth;
   var MaxY = screen.availHeight;
   var dX = 460;
   var dY = 350;
   var cX = (MaxX - dX)/2;
   var cY = (MaxY - dY)/2;
   var WinOptions = "width=" + dX + ", height=" + dY + ", left=" + cX + ", top=" + cY + ", screenX=" + cX + ", screenY=" + cY + "menubar=no, toolbar=no, status=no, location=no, scrollbars=no, resizable=no";
   
   var MoviePopup = window.open("","MoviePopup", WinOptions);
   MoviePopup.document.write('<HTML>\n<HEAD>\n<TITLE>' + title +'</TITLE>\n');
   MoviePopup.document.write('<link href="tunde.css" rel="stylesheet" type="text/css"\n</HEAD>\n');
   MoviePopup.document.write('<BODY>\n<CENTER>\n');
   MoviePopup.document.write('<a href="http://www.apple.com/quicktime/download/" target = "_new"><img src="images/quicktime.gif" alt="Get Quicktime Player" border="0" style="border:0"/></a><BR>');
   MoviePopup.document.write('<OBJECT CLASSID="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B" WIDTH="320" HEIGHT="256"\n');
   MoviePopup.document.write('CODEBASE="http://www.apple.com/qtactivex/qtplugin.cab">\n');
   MoviePopup.document.write('<PARAM name="SRC" VALUE="' + filename +'"> <PARAM name="AUTOPLAY" VALUE="true">\n');
   MoviePopup.document.write('<PARAM name="BGCOLOR" VALUE="BLACK">\n');
   MoviePopup.document.write('<EMBED SRC="' + filename + '" WIDTH="320" HEIGHT="256" AUTOPLAY="true" BGCOLOR="BLACK" PLUGINSPAGE="http://www.apple.com/quicktime/download/">\n');
   MoviePopup.document.write('</EMBED>\n</OBJECT>\n');
//   MoviePopup.document.write('</P><A HREF=' + filename + ' TARGET="_blank">To save the file locally, right click on this link and select "Save Target As"</A>\n');
//   MoviePopup.document.write('</P>' + description);
   MoviePopup.document.write('</P>click <A HREF="javascript:window.close()">here</A> to close this window.\n');

   MoviePopup.document.write('</CENTER>\n');
   MoviePopup.document.write('</BODY>\n</HTML>\n');
   MoviePopup.document.close();
   if(MoviePopup.focus) MoviePopup.focus();
}
