﻿/* This script opens a new window and with the specified image in it */

	function openWindow(pagename,picw,pich)  
	{
	  var size = "width=" + picw + ", height=" + pich + " scrollbars=no";
	  newWindow = window.open(pagename,"new1",size);
	  newWindow.moveTo(0,0);

	}


	function picWindow(imgname,picw,pich,title)  // Function to open a new blank window
	{

	  var size = "width=" + picw + ", height=" + pich + "left=0, scrollbars=no";

	  newWindow = window.open("","new1",size);


	  newWindow.document.open();
	  newWindow.document.write("<img src=\"img/"+imgname+".jpg\" height=" +pich+" "+title+ "/>");
	  newWindow.document.write("<p style=\"font-family:Lydian;\" align=\"center\">" + title+"<p/>");
	  newWindow.document.close();
	  newWindow.focus();
	}


	function smallPicWindow(imgname,picw,pich,title)  // Function to open a new blank window
	{
	  var size = "width=" + picw + ", height=" + pich + "left=0, scrollbars=no";

	  newWindow = window.open("","new1",size);


	  newWindow.document.open();
	  newWindow.document.write("<img src=\"img/"+imgname+".jpg\" height=300"+title+ "/>");
	  newWindow.document.write("<p style=\"font-family:Lydian;\" align=\"center\">" + title+"<p/>");
	  newWindow.document.close();
	  newWindow.focus();
	}

	function songWindow(songname,picw,pich)  
	{
	  var size = "width=" + picw + ", height=" + pich + " scrollbars=no";
	  var song = "sound/" + songname + ".mp3";
	  newWindow = window.open(song,"new",size);
	  newWindow.moveTo(425,0);

	}