<!--

// Opens a popup window giving the URL
// the width is equal to x
// and the height is equal to y
// if called when the window is already open
// behind other windows, the focus will bring it to the front

function openWin(URL,x,y) {
	var aWindow = window.open(URL,"window","width="+x+",height="+y+",toolbar=no,menubar=no,status=no,scrollbars=yes,resizable");
	aWindow.focus();
   
   }  


// Opens a window and places an image
// given the url, the title, width, and height

function openImg (url,title,width,height){

	myWin = window.open( "", "myWin",
							"width="+(width+20)+",height="+(height+40)+",toolbar=no,location=no,directories=no,"+
							"status=no,menubar=no,scrollbars=yes,resizable=yes,copyhistory=no" );
							
	myWin.resizeTo( width+40, height+80 );
							
	myWin.document.open();
	myWin.document.writeln( "<a href=javascript:window.close();>Close This Window</a>" );
	myWin.document.writeln( "<head><title>"+title+"</title>" );
	myWin.document.writeln( "<link rel=stylesheet href=/includes/superstar1.css type=text/css></head>" );
	myWin.document.writeln( "<img src=\""+url+"\" alt=\""+title+"\">" );
	myWin.document.close();
	myWin.focus();
	
}



// Opens a window and places a string
// given the string, the title, width, and height

function openString (string1,title,width,height){

	myWin = window.open( "", "myWin",
							"width="+(width+20)+",height="+(height+40)+",top=200,left=300,toolbar=no,location=no,directories=no,"+
							"status=no,menubar=no,scrollbars=no,resizable=yes,copyhistory=no" );
							
	//myWin.resizeTo( width+40, height+80 );
							
	myWin.document.open();
	myWin.document.writeln( "<head><title>"+title+"</title>" );
	myWin.document.writeln( "<link rel=stylesheet href=/includes/superstar1.css type=text/css></head>" );
	myWin.document.writeln( "<p>"+string1+"</p>" );
	myWin.document.writeln( "<a href=javascript:window.close();>Close This Window</a>" );
	myWin.document.close();
	myWin.focus();
	
}



// Opens a window and embeds the video in 
// the page with a title

function embedVid (url,title,width,height){

	myWin = window.open( "", "myWin",
							"width="+(width+5)+",height="+(height+25)+",toolbar=no,location=no,directories=no,"+
							"status=no,menubar=no,scrollbars=no,resizable=no,copyhistory=no" );
							
	myWin.resizeTo( width+10, height+55 );
							
	myWin.document.open();
	myWin.document.writeln( "<head><title>"+title+"</title>" );
	myWin.document.writeln( "<link rel=stylesheet href=/style/main.css type=text/css></head>" );
	myWin.document.writeln( "<embed src=\""+url+"\" height="+height+" width="+width+"></embed>" );
	myWin.document.writeln( "<br><a href=# onclick=window.close()>Close Window</a>" );
	myWin.document.close();
	myWin.focus();

}




//-->




