<!--
function popUp(url, w, h){
        var popWidth = 50//(window.screen.width/2) - ((w/2) + 10);
        var popHeight = 50//(window.screen.height/2) - ((h/2) + 50); 
        var popUp=window.open (url,"theTap" + w, "toolbar=0,resizable=0,location=0,menubar=0,status=0,width=" + w + ",height=" + h + ",left=" + popWidth + ",top=" + popHeight + ",screenX=" + popWidth + ",screenY=" + popHeight + ",scrollbars=0");
        popUp.focus();
}
function parentLoc(url){
        var popUp=window.open (url,"_self");
}

function popPhoto(folder, pause, w, h) 
{ 
	var popWidth = (window.screen.width/2) - ((w/2) + 10);
    var popHeight = (window.screen.height/2) - ((h/2) + 50);
	newWindow = window.open("","","toolbar=0,resizable=0,location=0,menubar=0,status=0,width=" + w + ",height=" + h + ",left=" + popWidth + ",top=" + popHeight + ",screenX=" + popWidth + ",screenY=" + popHeight + ",scrollbars=0"); 
	newWindow.document.open(); 
	newWindow.document.write('<HTML><TITLE>the Tapestry</TITLE><BODY bgcolor="#ffffff" LEFTMARGIN="0" TOPMARGIN="0" MARGINHEIGHT="0" MARGINWIDTH="0">'); 
	newWindow.document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width="' + w + '" height="' + h + '" id="photos" align="">');
	newWindow.document.write('<param name=movie value="photos.swf?folder=img/' + folder + '&pause=' + pause + '"> <param name=quality value=high><param name=bgcolor value=#ffffff><embed src="photos.swf?folder=img/' + folder + '&pause=' + pause + '" quality=high bgcolor=#ffffff  width="' + w + '" height="' + h + '" align="" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"></embed></object>'); 
	newWindow.document.write('</BODY></HTML>'); 
	newWindow.document.close(); 
	newWindow.focus(); 
} 
function openVid(vidName,w,h) 
{
	var popWidth = (window.screen.width/2) - ((w/2) + 10);
    var popHeight = (window.screen.height/2) - ((h/2) + 50);
	newWindow = window.open("","","toolbar=0,resizable=0,location=0,menubar=0,status=0,width=" + w + ",height=" + h + ",left=" + popWidth + ",top=" + popHeight + ",screenX=" + popWidth + ",screenY=" + popHeight + ",scrollbars=0"); 
	newWindow.document.open(); 
	newWindow.document.write('<HTML><head><TITLE>the Tapestry</TITLE></head><BODY bgcolor="#FFFFFF" LEFTMARGIN="0" TOPMARGIN="0" MARGINHEIGHT="0" MARGINWIDTH="0">'); 
	newWindow.document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width="'+w+'" height="'+h+'" id="home" align="">'); 
	newWindow.document.write('<param name="movie" value="' + vidName + '.swf"><param name=quality value=high> <param name="bgcolor" value="#000000">'); 
	newWindow.document.write('<embed src="' + vidName + '.swf" quality=high bgcolor="#000000" width="'+w+'" height="'+h+'" name="home" align="" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"></embed></object>'); 
	newWindow.document.write('</BODY></HTML>'); 
	newWindow.document.close(); 
	newWindow.focus(); 
} 
function openAud(audName, txt, w, h, wmov, hmov) 
{
	var popWidth = (window.screen.width/2) - ((w/2) + 10);
    var popHeight = (window.screen.height/2) - ((h/2) + 50);
	newWindow = window.open("","","toolbar=0,resizable=0,location=0,menubar=0,status=0,width=" + w + ",height=" + h + ",left=" + popWidth + ",top=" + popHeight + ",screenX=" + popWidth + ",screenY=" + popHeight + ",scrollbars=0"); 
	newWindow.document.open(); 
	newWindow.document.write('<HTML><head><TITLE>the Tapestry</TITLE></head>'); 
	newWindow.document.write('<link href="js_css/global_style.css" rel="stylesheet" type="text/css"><body bgcolor="#592678">'); 
	newWindow.document.write('<div align="center" class="wht">' + txt + '<br><embed src="' + audName + '" width="' + wmov + '" height="' + hmov + '" type="video/quicktime" controller="true" autoplay="true" cache="true" kioskmode="true"></embed></div>'); 
	newWindow.document.write('</BODY></HTML>'); 
	newWindow.document.close(); 
	newWindow.focus(); 
} 
//-->