//HEAD
function displayTitle()
{
document.writeln("<title>Big Smile Interactive</title>");
}

// BODY
function startBody()
{
document.writeln("<body link='#0000FF' vlink='#0000FF'>");
document.writeln("<center>");
}
function endBody()
{
document.writeln("</center>");
document.writeln("</body>");
}

// BODY TABLE
function startBodyTable()
{
document.writeln("<table width='100%' border=0 cellpadding=12 cellspacing=0>");
}
function endBodyTable()
{
document.writeln("</table>");
}

// BODY RECORD
function startBodyRecord()
{
document.writeln("<tr>");
}
function endBodyRecord()
{
document.writeln("</tr>");
}

// DYNAMOC BODY RECORD
function startDynamicBody()
{
document.writeln("<td valign='top'>");
}
function endDynamicBody()
{
document.writeln("</td>");
}


// NAV BAR
function displayNavBar()
{
//document.writeln("<td width='20%' bgcolor='#f0f0f0' valign='top' align='left'>");
document.writeln("<table width='100%' border=0 cellpadding='3' cellspacing='3'>");
document.writeln("<tr><td><a href='index.html'>Home</a> </td></tr>");
document.writeln("<tr><td><a href='profile.html'>Profile</a> </td></tr>");
document.writeln("<tr><td><a href='projects.html'>Projects</a> </td></tr>");
document.writeln("<tr><td>&nbsp&nbsp&nbsp&nbsp<a href='cd.html'>Critical Damage</a> </td></tr>");
document.writeln("<tr><td>&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp<a href='cdscreenshots.html'>Screenshots</a></td></tr>");
document.writeln("<tr><td>&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp<a href='cdgameplay.html'>Gameplay</a> </td></tr>");
document.writeln("<tr><td>&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp<a href='cddownload.html'>Download</a> </td></tr>");
document.writeln("<tr><td><a href='http://bsinteractive.proboards37.com''>Forum</a> </td></tr>");
document.writeln("<tr><td><a href='contactinfo.html'>Contact Information</a> </td></tr>");
document.writeln("</table></font>");
//document.writeln("</td>");
}

// HEADER
function displayHeader()
{
document.writeln("<table bgcolor='#000000' width='100%' border=0 cellpadding='4' cellspacing='0'>");
document.writeln("<tr>");
document.writeln("<td><img width=75 src='images/bigsmile.jpg'></td>");
document.writeln("<td>");
document.writeln("<b><font color='#ffffff' face='Helvetica' size='48'>Big Smile Interactive</font></b><br>");
document.writeln("<b><font color='#ffffff' face='Helvetica' size='24'><small><i>- we like games  -</i></small></font></b><br>");
document.writeln("</td>");
document.writeln("</tr>");
document.writeln("</table>");
document.writeln("<hr>");
}

// FOOTER
function displayFooter()
{
//document.writeln("<hr>");
//document.writeln("<table bgcolor='#000000' width='100%' border=0 cellpadding='4' cellspacing='0'>");
//document.writeln("<tr>");
//document.writeln("<td>");
document.writeln("<font color='#ffffff'><small>");
document.writeln("Big Smile Interactive is an affiliate company of Primary Software Development Corporation.");
document.writeln("Copyright © 2004 Big Smile Interactive. All rights reserved.");
document.writeln("</small></font>");
//document.writeln("</td>");
//document.writeln("</tr>");
//document.writeln("</table>");
}

// NEWS
function displayNews()
{
document.writeln("<table class='newsfont' width='100%' border=0 cellpadding=4 cellspacing=0>");

document.writeln("<tr><b>");
document.writeln("<td valign='top'>December 13, 2004</td>");
document.writeln("<td><p>The Cebu I.T. Evolution event in SM Cebu last December 6-12 was a blast, especially on the 12th where we had our Critical Damage competition finals. We thank <a href='http://www.icac.20m.com'>ICAC</a> and <a href='http://www.pcx.com.ph'>PC Express</a> Cebu for the opportunity to promote our game, and local software development in general. They have inspired us some more to continue our work despite all odds of success.</p><p>In celebration of the success of the Cebu I.T. Evolution event, a <a href='cddownload.html'>newer version</a> of Critical Damage has been uploaded. We have already fixed the aiming problem. This was a big fix since it was designed to be for online gaming and the 3rd person point of view has complications with aiming (that's why online shooters use first person point of view).</p><p>We also fixed the sounds by using the compressed OGG audio format instead of the WAV. So now, we have included the title screen and intro sounds made by &quotPickle Tickle&quot band.</p><p>Oh yeah, and the bot explosions already look cool (thanks to some minor improvements to our particle engine). Check it out.</p><p>Enjoy!</p></td>");
document.writeln("</tr>");

document.writeln("<tr><b>");
document.writeln("<td valign='top'>November 25, 2004</td>");
document.writeln("<td><a href='cddownload.html'>New version</a> of Critical Damage uploaded. There are now 3 weapons, improved graphics, and improved Particle collision testing. Older versions will now be removed.</td>");
document.writeln("</tr>");

document.writeln("<tr>");
document.writeln("<td valign='top'>October 16, 2004</td>");
document.writeln("<td><a href='cddownload.html'>New version</a> of Critical Damage uploaded. Server can now host multiple games. Some map problems fixed. Added player limit per game. Client lock-up during play already fixed. Let's play some more!</td>");
document.writeln("</tr>");

document.writeln("<tr>");
document.writeln("<td valign='top'>October 12, 2004</td>");
document.writeln("<td><a href='cddownload.html'>New version</a> of Critical Damage uploaded. It runs a lot smoother and faster now. Let's play online! We already have our server up and running. Just run the game and you can select our COY server from the list.</td>");
document.writeln("</tr>");

document.writeln("<tr>");
document.writeln("<td valign='top'>October 4, 2004</td>");
document.writeln("<td>DigITex exhibit of Critical Damage was a success! We also have a cooler version of Critical Damage. The intro sounds have been disabled because the music files are big. A demo movie was also uploaded. Check the <a href='cddownload.html'>downloads</a> area.<br>We also removed the older versions of Critical Damage.</td>");
document.writeln("</tr>");

document.writeln("<tr>");
document.writeln("<td valign='top'>September 17, 2004</td>");
document.writeln("<td>SURPRISE!!!<br> We have radically overhauled Critical Damage. It now has a new look and feel. The graphics and sounds are entirely new. It looks a lot better now. Thanks to Shoebox Entertainment for some of the artwork and designs.<br><br>Download <a href='freestuff/CriticalDamage6.0b.zip'>here</a>. Check out the new <a href='cdscreenshots.html'>screenshots</a>.</td>");
document.writeln("</tr>");

document.writeln("<tr>");
document.writeln("<td valign='top'>September 3, 2004</td>");
document.writeln("<td>Smooth Internet-play version of Critical Damage (Version 5.8) uploaded. Check the <a href='cddownload.html'>downloads</a> area.<br>New look of website.</td>");
document.writeln("</tr>");

document.writeln("<tr>");
document.writeln("<td valign='top'>August 31, 2004</td>");
document.writeln("<td>More optimized Internet-ready version of Critical Damage (Version 5.7) uploaded. Check the <a href='cddownload.html'>downloads</a> area.</td>");
document.writeln("</tr>");

document.writeln("<tr>");
document.writeln("<td>August 27, 2004</td>");
document.writeln("<td>Optimized Internet-ready version of Critical Damage (Version 5.6) uploaded. Check the <a href='cddownload.html'>downloads</a> area.</td>");
document.writeln("</tr>");

document.writeln("<tr>");
document.writeln("<td>August 17, 2004</td>");
document.writeln("<td>Internet-ready version of Critical Damage (Version 5.5) uploaded. Check the <a href='cddownload.html'>downloads</a> area.</td>");
document.writeln("</tr>");

document.writeln("<tr>");
document.writeln("<td>August 5, 2004</td>");
document.writeln("<td>Web site for Big Smile Interactive improved.</td>");
document.writeln("</tr>");

document.writeln("<tr>");
document.writeln("<td>August 3, 2004</td>");
document.writeln("<td>New version of Critical Damage (Version 5.4) uploaded. Check the <a href='cddownload.html'>downloads</a> area.</td>");
document.writeln("</tr>");

document.writeln("</table>");
}

// NEWS
function displayDownloads()
{
document.writeln("<p>");
document.writeln("Version 6.5.2b <a href='freestuff/CriticalDamage6.5.2b.zip'><b>Full Version (7.8MB)</b></a> <font color=#ff0000>(*NEW!*)</font><b> - NOTE: Just unzip to any folder. </b><br>");
document.writeln("</p>");

document.writeln("<p>");
document.writeln("Version 6.5 <a href='freestuff/CriticalDamage6.5.zip'><b>Full Version (5.5MB)</b></a> <b> - NOTE: Just unzip to any folder. </b><br>");
document.writeln("</p>");

document.writeln("<p>");
document.writeln("Version 6.2 <a href='freestuff/Movies/CriticalDamage6.2-2.mpg'><b>Demo Movie from DigITEx Exhibit competition (1.3MB)</b></a><br>");
document.writeln("</p>");
}

function displayScreenshots()
{
document.writeln("<p><b>Version 6.0 Screenshots</b></p>");
document.writeln("<p> <img src='images/cd2/60sshot1.jpg' width='400' height='300' border='1'></p>");
document.writeln("<p> <img src='images/cd2/60sshot2.jpg' width='400' height='300' border='1'></p>");
document.writeln("<p> <img src='images/cd2/60sshot3.jpg' width='400' height='300' border='1'></p>");
document.writeln("<p> <img src='images/cd2/60sshot4.jpg' width='400' height='300' border='1'></p>");
}

function initialize()
{
displayHead();
startBody();
displayHeader();
startBodyTable();
startBodyRecord();
displayNavBar();
startDynamicBody();
}

function deinitialize()
{
endDynamicBody();
endBodyRecord();
endBodyTable();
displayFooter();
endBody();
}


