// JavaScript Document

// Start of openHTMLWindow
function openHTMLWindow(url,width,height)
{
	x = (640 - width)/2,
	y = (480 - height)/2;
	if (screen) {
	x = (screen.availWidth - width)/2;
	y = (screen.availHeight - height)/2;
}
	window.open(url,"", "resizable=no, scrollbars=no, width="+width+",height="+height+",screenX="+x+",screenY="+y+",top="+y+",left="+x+"");
}
// End of openHTMLWindow


// Start of openWindow
function openWindow(url,width,height)
{
	x = (640 - width)/2,
	y = (480 - height)/2;
	if (screen) {
	x = (screen.availWidth - width)/2;
	y = (screen.availHeight - height)/2;
}
    var newWindow = window.open("", "", "resizable=no, scrollbars=no, width="+width+", height="+height+", screenX="+x+", screenY="+y+", top="+y+", left="+x+"");
    newWindow.document.writeln("<html>");
    newWindow.document.writeln("<body style='margin: 0 0 0 0;'>");
    newWindow.document.writeln("<img src='"+url+"'>");
    newWindow.document.writeln("</body></html>");
}
// End of openWindow


// Start of openScrollWindow // javascript:openScrollWindow('URL Here.jpg',1280,544)
function openScrollWindow(url,width,height)
{
	width = (width)+17,
	height = (height)+0,
	x = (640 - width)/2,
	y = (480 - height)/2;
	if (screen) {
	x = (screen.availWidth - width)/2;
	y = (screen.availHeight - height)/2;
}
    var newWindow = window.open("","","resizable=yes, scrollbars=yes, width="+width+", height="+height+", screenX="+x+", screenY="+y+", top="+y+", left="+x+"");
    newWindow.document.writeln("<html>");
    newWindow.document.writeln("<body style='margin: 0 0 0 0;'>");
   newWindow.document.writeln("<img src='"+url+"'>");
    newWindow.document.writeln("</body></html>");
}
// End of openScrollWindow

// Start of popupflash
var popupflashX = (screen.width/2)-400;
var popupflashY = (screen.height/2)-247;
var pos = "left="+popupflashX+",top="+popupflashY;

function popupflash(){
popupflashWindow = window.open("http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash","flash","scrollbars=yes,width=800,height=495,"+pos);
}
// End of popupflash


// Start of popupquicktime
var popupquicktimeX = (screen.width/2)-400;
var popupquicktimeY = (screen.height/2)-247;
var pos = "left="+popupquicktimeX+",top="+popupquicktimeY;

function popupquicktime(){
popupquicktimeWindow = window.open("http://www.apple.com/quicktime/download","quicktime","scrollbars=yes,width=800,height=495,"+pos);
}
// End of popupquicktime


// Start of openQTWindow
function openQTWindow(url,width,height)
{
	x = (640 - width)/2,
	y = (480 - height)/2;
	if (screen) {
	x = (screen.availWidth - width)/2;
	y = (screen.availHeight - height)/2;
}
	window.open(url,"", "resizable=no, scrollbars=no, width="+width+", height="+height+", screenX="+x+", screenY="+y+", top="+y+", left="+x+"");
}
// End of openQTWindow