// OpenWin() 3.2 begins here ---------------------------
// writen by Duncan Krtostue Duncan@cyberlink.com

function OpenWin(name, imgurl, width, align, bio, homeurl) {
var wiName = "art"
var wwidth = 450
var wheight = 300

text = "<html><head><title>" + name + "</title><LINK  rel='stylesheet' type='text/css' href='layout/tablefonts.css' title='fonts'></head><body bgcolor='white'";
text += " onLoad=\"setTimeout('window.close()', " + 600000 + ");\"";// Close window after __ number of milliseconds?
text += " onBlur='self.focus()'"//this line makes the window be on top all the time
text += "><table height='100%' width='100%'><tr><td align='center' valign='middle'><table><tr><td align='" + align + "' ID='f1' colspan='2'>";
text += "<img src='speakers/" + imgurl + "_b.jpg' width=" + width;
text += "height=200 border=0 hspace=10 wspace=10 alt='" + name + "' align='" + align + "'>";
text += "<b>" + name + "</b><br>";
text += bio;
text += "</div><div ID='f1' align='center'><br><a href='http://" + homeurl;
text += "' target='new'>" + homeurl + "</a></div>"
text += "<br></td></tr><tr><td ID='f1' align='center' width='50%'><a href='javascript:window.print()'>print info</td>"
text += "<td ID='f1' align='center' width='50%'><a href='javascript:self.close()'>close window</a>"
text += "</td></tr></table></td></tr></table></body></html>"


var	position = "height=" + wheight + ",innerHeight=" + wheight;
	position += ",width=" + wwidth + ",innerWidth=" + wwidth;
if (window.screen) {
var ah = screen.availHeight - 30;
var aw = screen.availWidth - 10;

var xc = (aw - wwidth) / 2;
var yc = (ah - wheight) / 2;

position += ",left=" + xc + ",screenX=" + xc;
position += ",top=" + yc + ",screenY=" + yc;
position += "toolbar=no,location=no,directories=no,status=no,menubar=yes,scrollbars=yes,resizable=no,copyhistory=no,"
}

preview = window.open("", wiName, position);
preview.document.open();
preview.document.write(text);
preview.document.close();
}

// OpenWin() 3.2 ends here -----------------------------
/*

link tempplate:
<a href="#" onMouseOut="window.status=' '; return true" onMouseOver="window.status='Click More Information'; return true" onClick="javascript:OpenWin('name', 'imgurl', width, 'align', 'bio', 'homeurl')">

*/