function newWin(mypage, myname, w, h, scroll, buttons) {
	var winl = (screen.width - w) / 2;
	var wint = (screen.height - h) / 2;
	winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars='+scroll+',toolbar='+buttons+',resizable=no'
	win = window.open(mypage, myname, winprops)
	if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }
}

function popUpQT(location, width, height) {
	//displayWin = new Object();
	displayWin=window.open('','displayWin','width=425,height=430,scrollbars=no, no resize');
	// the following passes the variables to the new window for use
	//displayWin.content=content;
	//displayWin.image=image;
	// end variables
	displayWin.document.open();
	displayWin.document.writeln("<HTML><HEAD><TITLE>The Suffering Trailers</TITLE>");
	displayWin.document.writeln("</HEAD>");
	displayWin.document.writeln("<BODY BGCOLOR=\"#666666\" LEFTMARGIN=\"0\" TOPMARGIN=\"0\" MARGINWIDTH=\"0\" MARGINHEIGHT=\"0\" onLoad=\"javascript: self.focus();\">");
	displayWin.document.writeln("<TABLE CELLPADDING=\"0\" CELLSPACING=\"0\" BORDER=\"0\" VALIGN=\"TOP\">");
//	displayWin.document.writeln("<TR><TD><IMG SRC=\"assets/templates/qt_popup/popup_header.gif\" WIDTH=\"425\" HEIGHT=\"55\" BORDER=\"0\"></TD></TR>");
	displayWin.document.writeln("<TR><TD BGCOLOR=\"#666666\" BACKGROUND=\"ASSETS/STATIC/POPUP_BG1.JPG\" WIDTH=\"425\" HEIGHT=\"326\" ALIGN=\"CENTER\">");
	displayWin.document.writeln("<EMBED SRC=\"" + location + "\" WIDTH=\"" + width + "\" HEIGHT=\"" + height +"\" PLUGINSPAGE=\"http://www.apple.com/quicktime/\" TYPE=\"video/quicktime\" AUTOPLAY=\"true\"></EMBED></TD></TR>");
	displayWin.document.writeln("<TR><TD BGCOLOR=\"#666666\" BACKGROUND=\"ASSETS/STATIC/POPUP_BG2.JPG\" WIDTH=\"425\" HEIGHT=\"104\" ALIGN=\"TOP\"><A HREF=\"#\" ONCLICK=\"javascript: self.close()\"> ");
	displayWin.document.writeln("</TABLE>");
	displayWin.document.writeln("</BODY></HTML>");
	displayWin.document.close();
}



function openWin(projectURL,winWidth,winHeight,scrollBars) {
//	projectURL="projects/"+projectURL;
	win=window.open(projectURL,'popup','width='+winWidth+',height='+winHeight+',scrollbars='+scrollBars+', no resize');
	win.focus();
	winOpen=true;
}

function openBuyNow(projectURL,winWidth,winHeight,scrollBars) {
	win=window.open(projectURL,'buynow','width='+winWidth+','+'height='+winHeight+',scrollbars='+scrollBars+', no resize');
	win.focus();
	winOpen=true;
}

function newEntry(header, mydate, link) {
	//write the entry
	document.write("<TR>");
	var myheader = header.substring(0, 55);
	document.write("<TD><A HREF=\""+link+"\" TARGET=\"_blank\"><SPAN CLASS=\"PRESSLINK\"><U>" + myheader + "...</U><BR>");
	document.write("<I>(" + mydate + ")</I></SPAN></A>");
	
	document.write("</TR>");
	document.write("<TR>");
	document.write("<TD><IMG SRC=\"assets/static/spacer.gif\" width=\"325\" height=\"15\"></TD>");
	document.write("</TR>");
	//finish writing page
}
function newEntryNoDate(header, link) {
	//write the entry
	document.write("<TR>");
	var myheader = header.substring(0, 55);
	document.write("<TD><A HREF=\""+link+"\" TARGET=\"_blank\"><SPAN CLASS=\"PRESSLINK\"><U>" + myheader + "...</U><BR>");
	document.write("</SPAN>");
	
	document.write("</TR>");
	document.write("<TR>");
	document.write("<TD><IMG SRC=\"assets/static/spacer.gif\" width=\"325\" height=\"15\"></TD>");
	document.write("</TR>");
	//finish writing page
}
function newEntryQuoteOnly(header,name) {
	//write the entry
	document.write("<TR>");
	var myheader = header;
	document.write("<TD><SPAN CLASS=\"PRESSLINK\">" + myheader + "<BR>");
	document.write("<i>"+name+"</i></SPAN>");
	
	document.write("</TR>");
	document.write("<TR>");
	document.write("<TD><IMG SRC=\"assets/static/spacer.gif\" width=\"325\" height=\"15\"></TD>");
	document.write("</TR>");
	//finish writing page
}
function newDisclaimer(header) {
	//write the entry
	document.write("<TR>");
	var myheader = header//.substring(0, 55);
	document.write("<TD><SPAN CLASS=\"PRESSLINK\">" + myheader + "<BR>");
	document.write("</SPAN>");
	
	document.write("</TR>");
	document.write("<TR>");
	document.write("<TD><IMG SRC=\"assets/static/spacer.gif\" width=\"325\" height=\"15\"></TD>");
	document.write("</TR>");
	//finish writing page
}


function popunder(){ 
win2=window.open('http://www.gamespot.com/ps2/action/thesuffering/media.html','doom','toolbar=yes,location=yes,directories=no,status=no,menubar=yes,scrollbars=yes,resizable=no,copyhistory=yes,width=myWidth,height=myHeight');
win2.blur(); 
window.focus(); 
} 

function launch(myform, windowname) 
{ 
  if (! window.focus)return true; 
  var h = 800; 
  var w = 500; 
  var text; 
  if (document.all || document.layers) { 
    w = screen.availWidth; 
    h = screen.availHeight; 
  } 
  var popW = 795; 
  var popH = 680; 
  var lefPos = (w-popW)/2; 
  var topPos = (h-popH)/2;          text='toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,height='+popH+',width='+popW+',top='+topPos+',left='+lefPos 
  window.open('site.html', windowname, text); 
  myform.target=windowname; 
  return true; 

//win1=window.open('site.html','launch','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,copyhistory=yes,width=795,height=725');
 
} 