<!--

//var baseURL = "file:///H:/_webmaster/newgil/";
var baseURL = "http://www.newgilpictures.org/";
//var baseURL = "http://www.newgilpictures.org/test/";

var newsItems = new Array(
  new Array( "Mueller, Newman revisit the horror genre", "news/newitem6.html"),
  new Array( "NewGil to co-produce 'Batman' fan film", "news/newitem5.html"),
  new Array( "Welcome to Geocaching Bitch!", "news/newitem4.html"),
  new Array( "Robert Newman, Jason Gowin appear on Encounters Radio", "http://newgil.gotdns.org/media/encounters_ghi2.mp3")
);

//var fRun = confirm("I acknowledge that Robbie a whore.");
//if(!fRun)
//  location.href = 'http://www.google.com/search?hl=en&ie=ISO-8859-1&lr=&q=robbie';

function precontent() {
  document.writeln('<table with="800" height="100%" align="center" cellspacing="0" cellpadding="0">');
  document.writeln('<tr>');
  document.writeln('<td colspan="3" class="header">');
  writeHeader();
  document.writeln('</td>');
  document.writeln('</tr>');
  document.writeln('<tr height="100%" valign="top">');
  document.writeln('<td width="170" class="leftside">');
  writeLeftSide()
  document.writeln('</td>');
  document.writeln('<td width="450" class="content">');
  document.writeln('<table cellpadding="6"><tr><td>');
}

function postcontent() {
  document.writeln('</td></tr></table>');
  document.writeln('</td>');
  document.writeln('<td width="180" class="rightside">');
  writeRightSide();
  document.writeln('</td>');
  document.writeln('</tr>');
  document.writeln('</table>');

  document.writeln('<br>');
  document.writeln('<center><table cellspacing="0" cellpadding="0" width="800"><tr><td width="88">&nbsp;</td><td width="*">');
  document.writeln('<center><font size="1" color="#FFFFFF">');
  document.writeln('&copy; 2000-2007 NewGil  Pictures  and HighRoad Entertainment');
  document.writeln('<br>');
  document.writeln('All Rights Reserved. Used Under Authorization. Read our ');
  document.writeln(' <a href="javascript:openWindow(\'privacy.html\', \'450\', \'600\')">Privacy Policy</a>.');
  document.writeln('<br>');
  document.writeln('</font></center>');
  document.write  ('</td><td width="88" valign="top">');
  document.write  ('<a href="http://www.geocaching.com/seek/nearest.aspx?tx=a5f6d0ad-d2f2-4011-8c14-940a9ebf3c74&u=NewGil+Pictures+Indie+Film" target="_blank"><img src="' + parseURL('images/icon_gogeocaching.gif') + '" width="88" height="31" alt="See caches hidden by NewGil Pictures at Geocaching.com!" border="0"></a>');
  document.writeln('</td></tr></table></center>');

}

function writeHeader() {                                       
  document.write('<img src="'
   + baseURL + 'images/newgil_header.gif">');
}

function writeLeftSide() {
  document.write('<center>');
  writeNavMenu();
  writeLeftDivide();
  writeNewsletterSignup();
  writeLeftDivide();
  writeShoutbox();
  document.write('</center><br>');
}

function writeNavMenu() {
  var menuItems =  new Array(
    new Array('home', 'index.html'),
    new Array('about', 'aboutus.html'),
    new Array('crew', 'crew.html'),
    new Array('donate', 'donate.html'),
//    new Array('forums', 'http://newgil.gotdns.org'),
    new Array('links', 'links.html'),
    new Array('media', 'media.html'),
    new Array('downloads', 'downloads.html'),
    new Array('contact', 'contact.html')
  );

  document.write('<br><table>');
  for( i=0; i<menuItems.length; i++) {
    document.write('<tr><td>');
    writeButton(menuItems[i][0], menuItems[i][1]);
    document.write('</td></tr>');
  }
  document.write('</table>');
}

function writeButton( image, link) {
  document.write('<a href="');
  document.write(parseURL(link));
  if( parseURL(link).indexOf(baseURL)==-1)
    document.write('" target="_blank');
  document.write('"><img src="');
  document.write(parseURL('images/' + image + '_off.gif'));
  document.write('" name="' + image + 'roll" border="0"');
  document.write('onmouseover="images.' + image + 'roll.src=\'');
  document.write(parseURL('images/' + image + '_on.gif'));
  document.write('\'" onmouseout="images.' + image + 'roll.src=\'');
  document.write(parseURL('images/' + image + '_off.gif'));
  document.write('\'"></a>');
}

function writeLeftDivide() {
  document.writeln('<hr color="#B22222" width="84%">');
}

function writeNewsletterSignup() {
  document.write('<img src="' + parseURL('images/newsletter.gif') + '"><br>');
  document.write('<form target="_blank" action="http://newgil.gotdns.org/signup.php" method="post">');
  document.write('<input type="text" name="enteremail" value="Enter E-mail Address" size="20">');
  document.write('<br><input type="submit" value="Sign-up"></form>');
}

function writeShoutbox() {
  document.write('<img src="' + parseURL('images/shoutbox.gif') + '">');
  document.write('<!-- BEGIN MYSHOUTBOX.COM CODE -->');
  document.write('<iframe src="http://218293.myshoutbox.com/" width="152" height="500" frameborder="0" allowTransparency="true"></iframe>');
  document.write('<!-- END MYSHOUTBOX.COM CODE-->');
}



function writeRightSide() {
  document.write('<br>');
  document.write('<table width="100%" style="border-left: solid #B22222;"');
  document.write('<tr><td align="center">');
  document.write('<a href="javascript:openVideo(\'media/portraitspreview1.wmv\', \'320\', \'240\')">');
  document.write('<img src="' + parseURL('images/nowplaying.gif') + '" border="0"></a>');
  writeRightDivide();
  writeNews();
  writeRightDivide();
  document.write('<img src="' + parseURL('images/featurefilm.gif') + '"><br><br>');
  document.write('<a href="javascript:orderDVD()">');
  document.write('<img src="' + parseURL('images/graveyardshift.jpg') + '" border="0"></a><br>');
  document.write('<font size="2"><a href="' + parseURL('ghimovie') + '" target="_blank">');
  document.write('OFFICIAL GRAVEYARD SHIFT SITE</a></font>');
  document.write('</td></tr>');
  document.write('</table>');
  document.write('<br>');
}

function writeRightDivide() {
  document.write('<hr color="#B22222" width="84%">');
}

function writeNews() {
  document.write('<img src="' + parseURL('images/news.gif') + '">');
  document.write('<br><br>');
  document.write('<table class="news"><tr><td align="left">');
  for( i=0; i<newsItems.length; i++)
    writeNewsItem( newsItems[i][0], newsItems[i][1]);
  document.write('</td></tr></table>');
}

var bulletImg = 'images/bullet.gif';

function writeNewsItem( descrip, link) {
  document.write('<img src="' + parseURL(bulletImg) + '">');
  document.write('<font size="2"><a target="_blank" href="' + parseURL(link) + '">');
  document.write( descrip );
  document.write('</a></font><br>');
}


function openWindow(url, width, height) {
  window.open( parseURL(url), "newgil", 'resizable,scrollbars,width=' + width + ',height=' + height);
}

function openVideo( url, width, height)
{   
  wheight = parseInt(height) + 70;
  wwidth = parseInt(width) + 40;
  if( 440 - wwidth > 0)
    wwidth = 440;
  win = window.open("", "newwin", "height=" + wheight + ",width=" + wwidth + ",scrollbar=0");
  win.document.write('<html>');
  win.document.write('<title> NewGil Pictures Independent Film Group </title>');
  win.document.write('<body bgcolor="#000000">');
  win.document.write('<center>');
  win.document.write('<img src="' + parseURL('images/online_cinema.gif') + '"><br>');
  win.document.write('<embed src="' + parseURL(url) + '" autostart="true" width="' + width + '" height="' + height + '"></embed>');
  win.document.write('</center>');
  win.document.write('</body></html>');
  win.document.close()
  self.name="main"
}

function orderDVD() {
  var msg = "If you are ordering by check or money order, please click 'Cancel' and e-mail us at contact@newgilpictures.org. Otherwise click 'OK' to proceed to the e-store!";
  if( confirm(msg) )
    window.open("http://www.lulu.com/content/333449", "_blank");
}

function parseURL(url) {
  if( url.indexOf('javascript:')==1)
    return url;
  if( url.indexOf('://')=='-1')
    return baseURL + url;
  return url;
}

-->