function preload_images()
{

  image1on = new Image();
  image1on.src = "/images/but1b.jpg";

  image2on = new Image();
  image2on.src = "/images/but2b.jpg";

  image3on = new Image();
  image3on.src = "/images/but3b.jpg";

  image4on = new Image();
  image4on.src = "/images/but4b.jpg";

  image5on = new Image();
  image5on.src = "/images/but5b.jpg";

  image6on = new Image();
  image6on.src = "/images/but6b.jpg";

  image7on = new Image();
  image7on.src = "/images/but7b.jpg";


  image1off = new Image();
  image1off.src = "/images/but1a.jpg";

  image2off = new Image();
  image2off.src = "/images/but2a.jpg";

  image3off = new Image();
  image3off.src = "/images/but3a.jpg";

  image4off = new Image();
  image4off.src = "/images/but4a.jpg";

  image5off = new Image();
  image5off.src = "/images/but5a.jpg";

  image6off = new Image();
  image6off.src = "/images/but6a.jpg";

  image7off = new Image();
  image7off.src = "/images/but7a.jpg";

}

function turnOn(imagename) {
  if (document.images) {
    document[imagename].src = eval(imagename + "on.src");
  }
}

function turnOff(imagename) {
  if (document.images) {
    document[imagename].src = eval(imagename + "off.src");
  }
}

function show_date()
{
// ***********************************************
// AUTHOR: WWW.CGISCRIPT.NET, LLC
// URL: http://www.cgiscript.net
// Use the script, just leave this message intact.
// Download your FREE CGI/Perl Scripts today!
// ( http://www.cgiscript.net/scripts.htm )
// ***********************************************

// Get today's current date.
var now = new Date();

// Array list of days.
var days = new Array('Sunday','Monday','Tuesday','Wednesday','Thursday','Friday','Saturday');

// Array list of months.
var months = new Array('January','February','March','April','May','June','July','August','September','October','November','December');

// Calculate the number of the current day in the week.
var date = ((now.getDate()<10) ? "0" : "")+ now.getDate();

// Calculate four digit year.
function fourdigits(number)	{
	return (number < 1000) ? number + 1900 : number;
								}

// Join it all together
// today =  days[now.getDay()] + ", " +
//               months[now.getMonth()] + " " +
//                date + ", " +
//                 (fourdigits(now.getYear())) ;
// 
day_of_week = days[now.getDay()]
today =  months[now.getMonth()] + " " +
               date + ", " +
                (fourdigits(now.getYear())) ;

// Print out the data.
document.write("<center><font size=2 face=arial><b>"+day_of_week+"</b><br>"+today+"</font></center><hr>");
}

function horizontal_menu()
{
  document.write("<table width=\"780\" height=\"38\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\"><tr>");
  document.write("<td><a href=\"/products/\" onMouseOver=\"turnOn('image1')\" onMouseOut=\"turnOff('image1')\"><img src = \"/images/but1a.jpg\" name=\"image1\" border=\"0\" width=\"132\" height=\"38\" align=\"bottom\"></a></td>");
  document.write("<td><a href=\"/services/\" onMouseOver=\"turnOn('image2')\" onMouseOut=\"turnOff('image2')\"><img src = \"/images/but2a.jpg\" name=\"image2\" border=\"0\" width=\"120\" height=\"38\" align=\"bottom\"></a></td>");
  document.write("<td><a href=\"/support/\" onMouseOver=\"turnOn('image3')\" onMouseOut=\"turnOff('image3')\"><img src = \"/images/but3a.jpg\" name=\"image3\" border=\"0\" width=\"120\" height=\"38\" align=\"bottom\"></a></td>");
  document.write("<td><a href=\"/partners/\" onMouseOver=\"turnOn('image4')\" onMouseOut=\"turnOff('image4')\"><img src = \"/images/but4a.jpg\" name=\"image4\" border=\"0\" width=\"119\" height=\"38\" align=\"bottom\"></a></td>");
  document.write("<td><a href=\"/about/\" onMouseOver=\"turnOn('image5')\" onMouseOut=\"turnOff('image5')\"><img src = \"/images/but5a.jpg\" name=\"image5\" border=\"0\" width=\"121\" height=\"38\" align=\"bottom\"></a></td>");
  document.write("<td><a href=\"/about/contact_us.htm\" onMouseOver=\"turnOn('image6')\" onMouseOut=\"turnOff('image6')\"><img src = \"/images/but6a.jpg\" name=\"image6\" border=\"0\" width=\"94\" height=\"38\" align=\"bottom\"></a></td>");
  document.write("<td><a href=\"/\" onMouseOver=\"turnOn('image7')\" onMouseOut=\"turnOff('image7')\"><img src = \"/images/but7a.jpg\" name=\"image7\" border=\"0\" width=\"74\" height=\"38\" align=\"bottom\"></a></td>");
  document.write("</tr></table>");
}

function vertical_address()
{
  document.write("<hr size=\"3\" color=\"#DFD1AE\">");
  document.write("<br>");
  document.write("<b>Triantafyllos Design<br>");
  document.write("California Office</b><br>");
  document.write("22351 Ventura Boulevard<br>");
  document.write("Suite 158<br>");
  document.write("Woodland Hills, CA 91364<br>");
  document.write("Phone: (818) 992-0016<br>");
  document.write("Fax: (818) 992-0032<br>");
  document.write("<br>");
  document.write("<br>");
  document.write("<b>Triantafyllos Design<br>");
  document.write("Nevada Office</b><br>");
  document.write("1840 E. Warm Springs Road<br>");
  document.write("Suite 100<br>");
  document.write("Las Vegas, NV 89119<br>");
  document.write("Phone: (702) 655-4953<br>");
  document.write("Fax: (702) 839-2389<br>");
  document.write("<br>");
  document.write("<hr size=\"3\" color=\"#DFD1AE\">");
}

function awards_button()
{
  document.write("<object classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0\" width=\"120\" height=\"50\">");
  document.write("<param name=movie value=\"/awards_button.swf\">");
  document.write("<param name=quality value=high>");
  document.write("<param name=wmode value=transparent>");
  document.write("<embed src=\"/awards_button.swf\" quality=high wmode=transparent pluginspage=\"http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash\" type=\"application/x-shockwave-flash\" width=\"120\" height=\"50\">");
  document.write("</embed>");
  document.write("</object>");
}

function triantdesign_set1()
{
  document.write("<object classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0\" width=\"280\" height=\"210\">");
  document.write("<param name=movie value=\"/triantdesign_set1.swf\">");
  document.write("<param name=quality value=high>");
  document.write("<param name=wmode value=transparent>");
  document.write("<embed src=\"/triantdesign_set1.swf\" quality=high wmode=transparent width=280 height=210 pluginspage=\"http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash\" type=\"application/x-shockwave-flash\">");
  document.write("</embed>");
  document.write("</object>");
}

function triantdesign_set2()
{
  document.write("<object classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0\" width=\"280\" height=\"210\">");
  document.write("<param name=movie value=\"/triantdesign_set2.swf\">");
  document.write("<param name=quality value=high>");
  document.write("<param name=wmode value=transparent>");
  document.write("<embed src=\"/triantdesign_set2.swf\" quality=high wmode=transparent width=280 height=210 pluginspage=\"http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash\" type=\"application/x-shockwave-flash\">");
  document.write("</embed>");
  document.write("</object>");
}

function which_browser() {
// Browser Detection Javascript
// copyright 1 February 2003, by Stephen Chapman, Felgall Pty Ltd

// You have permission to copy and use this javascript provided that
// the content of the script is not changed in any way.

var agt=navigator.userAgent.toLowerCase();
if (agt.indexOf("opera") != -1) return 'Opera';
if (agt.indexOf("staroffice") != -1) return 'Star Office';
if (agt.indexOf("webtv") != -1) return 'WebTV';
if (agt.indexOf("beonex") != -1) return 'Beonex';
if (agt.indexOf("chimera") != -1) return 'Chimera';
if (agt.indexOf("netpositive") != -1) return 'NetPositive';
if (agt.indexOf("phoenix") != -1) return 'Phoenix';
if (agt.indexOf("firefox") != -1) return 'Firefox';
if (agt.indexOf("safari") != -1) return 'Safari';
if (agt.indexOf("skipstone") != -1) return 'SkipStone';
if (agt.indexOf("msie") != -1) return 'Internet Explorer';
if (agt.indexOf("netscape") != -1) return 'Netscape';
if (agt.indexOf("mozilla/5.0") != -1) return 'Mozilla';
if (agt.indexOf('\/') != -1) {
if (agt.substr(0,agt.indexOf('\/')) != 'mozilla') {
return navigator.userAgent.substr(0,agt.indexOf('\/'));}
else return 'Netscape';} else if (agt.indexOf(' ') != -1)
return navigator.userAgent.substr(0,agt.indexOf(' '));
else return navigator.userAgent;
}

function footer()
{
  document.write("<div align='center'>");
  document.write("<hr size='2' color='#5C5344'><br>");
  document.write("<a href='/' class='text_9pt'>Home</a> : ");
  document.write("<a href='/about/' class='text_9pt'>About Us</a> : ");
  document.write("<a href='/products/' class='text_9pt'>Products</a> : ");
  document.write("<a href='/services/' class='text_9pt'>Services</a> : ");
  document.write("<a href='/support/' class='text_9pt'>Support</a> : ");
  document.write("<a href='/partners/' class='text_9pt'>Partners</a> : ");
  document.write("<a href='/projects/' class='text_9pt'>Projects</a> : ");
  document.write("<a href='/awards/' class='text_9pt'>Awards</a> : ");
  document.write("<a href='/about/contact_us.htm' class='text_9pt'>Contact Us</a>");
  document.write("<br><br></div>");
}
