// functions for menu

function topmenu() {
i="<div id= \"topmenu\" class=\"level1wrapper\">" +
  "<ul class=\"head1\"> " +
  "<li><a class=\"l1menuinactive\" id=\"l1home\" href=\"/index.htm\">Home</a></li>" +
  "<li><a class=\"l1menuinactive\" id=\"l1cars\" href=\"/mycarintro.htm\">My Cars</a></li>" +
  "<li><a class=\"l1menuinactive\" id=\"l1calc\" href=\"/calcs/mileage_cost_calc.htm\">Calculators</a></li>" +
  "<li><a class=\"l1menuinactive\" id=\"l1gall\" href=\"/gallery/travelindex.htm\">Gallery</a></li>" +
  "<li><a class=\"l1menuinactive\" id=\"l1misc\" href=\"/url_mainpage.htm\">Miscellaneous</a></li>" +
	"<li><a class=\"l1menuinactive\" id=\"l1loc\"  href=\"/location/index.htm\">Location</a></li>  " +
	//"<li><a class=\"l1menuinactive\" id=\"l1loc\"  href=\"http://kscsgroup.com/tgps/loc/index.php\">Location</a></li>  " +
  "</ul> " +
"</div>";
document.write(i);
}

function l2cars() {
i="<div id=\"l2cars\" class=\"level2wrapper\">" +
  "<ul class=\"head2\"> " +
  "<li><a class=\"l2menuinactive\" id=\"l2art\"  href=\"/mycarintro.htm\">Articles</a></li>" +
  "<li><a class=\"l2menuinactive\" id=\"l2msp\"  href=\"/03msp\">2003 MSP</a></li>" +
  "<li><a class=\"l2menuinactive\" id=\"l2gtx\"  href=\"/88maz323gtx\">1988 GTX</a></li>" +
//  "<li><a class=\"l2menuinactive\" id=\"l2hint\" href=\"/85honi750\">1985 VF750F</a></li>" +
  "<li><a class=\"l2menuinactive\" id=\"l2gbnf\" href=\"/gbnf.htm\">History</a></li>" +
  "<li><a class=\"l2menuinactive\" id=\"l2club\" href=\"/clublist.htm\">Clubs</a></li>" +
  "<li><a class=\"l2menuinactive\" id=\"l2shop\" href=\"/autocont_frm.htm\">Shops</a></li>" +
  "</ul>" +
"</div>";
document.write(i);
}

function l2calcs(){
i="<div id=\"l2calcs\" class=\"level2wrapper\">" +
  "<ul class=\"head2\"> " +
  "<li><a class=\"l2menuinactive\" id=\"l2mile\" href=\"/calcs/mileage_cost_calc.htm\">Mileage</a></li>" +
  "<li><a class=\"l2menuinactive\" id=\"l2tire\" href=\"/calcs/tiresizecalc.htm\">Tire Size</a></li>" +
  "<li><a class=\"l2menuinactive\" id=\"l2offs\" href=\"/calcs/offsetcalc.htm\">Offset</a></li>" +
  "<li><a class=\"l2menuinactive\" id=\"l2amps\" href=\"/calcs/ampcalc.htm\">Amperage</a></li>" +
  "<li><a class=\"l2menuinactive\" id=\"l2conv\" href=\"/calcs/conv_calc.htm\">Conversion</a></li>" +
  "</ul> " +
"</div>";
document.write(i);
}

function l2gallery(){
i="<div id=\"l2gallery\" class=\"level2wrapper\">" +
  "<ul class=\"head2\"> " +
  "<li><a class=\"l2menuinactive\" id=\"l2fam\"  href=\"/gallery/markfamindex.htm\">Family</a></li>" +
  "<li><a class=\"l2menuinactive\" id=\"l2trav\" href=\"/gallery/travelindex.htm\">Travel</a></li>" +
  "<li><a class=\"l2menuinactive\" id=\"l2evnt\" href=\"/gallery/eventsindex.htm\">Events</a></li>" +
  "<li><a class=\"l2menuinactive\" id=\"l2auto\" href=\"/gallery/autosindex.htm\">Car</a></li>" +
  "<li><a class=\"l2menuinactive\" id=\"l2prop\" href=\"/gallery/propertyindex.htm\">Property</a></li>" +
  "<li><a class=\"l2menuinactive\" id=\"l2oth\"  href=\"/gallery/otherindex.htm\">Other</a></li>" +
  "</ul> " +
"</div>";
document.write(i);
}

function l3famgallery(){
i="<div id=\"l3markgallery\" class=\"level3wrapper\">" +
  "<ul class=\"head3\"> " +
  "<li><a class=\"l3menuinactive\" id=\"l3fam\"  href=\"/gallery/markfamindex.htm\">The Mark's (Smithville)</a></li>" +
  "<li><a class=\"l3menuinactive\" id=\"l3cjm\"  href=\"/gallery/cameronindex.htm\">Cameron (Jun 4/08)</a></li>" +
  "<li><a class=\"l3menuinactive\" id=\"l3sam\"  href=\"/gallery/sophiaindex.htm\">Sophia (Nov 18/10)</a></li>" +
  "</ul> " +
"</div>";
document.write(i);
}


function l2misc(){
i="<div id=\"l2misc\" class=\"level2wrapper\">" +
  "<ul class=\"head2\"> " +
  "<li><a class=\"l2menuinactive\" id=\"l2link\" href=\"/url_mainpage.htm\">Links</a></li>" +
  "<li><a class=\"l2menuinactive\" id=\"l2emot\" href=\"/emoticons.htm\">Emoticons</a></li>" +
  "<li><a class=\"l2menuinactive\" id=\"l2ftp\"  href=\"/javaftpintro.htm\">FTP Client</a></li>" +
  "<li><a class=\"l2menuinactive\" id=\"l2art\"  href=\"/bryce3d.htm\">Digital Art</a></li>" +
  "<li><a class=\"l2menuinactive\" id=\"l2vid\"  href=\"/videos.htm\">Videos</a></li>  " +
  "<li><a class=\"l2menuinactive\" id=\"l2chat\" href=\"/_chat/flashchat.php\" target=\"_blank\">Chat</a></li>" +
  "</ul> " +
"</div>";
document.write(i);
}

//sets class of an ID. add ID= to all div id's and use this function on body load to set css style of a particular id

function setmenuactive(id,newclass){
var element;

if(document.getElementById && (element = document.getElementById(id))) {
element.className = newclass;
}
}


// END NEW FUNCTIONS ************************************************************************************************

function maz323events(oframe) {
var ofr = '\"' + oframe + '\"';
// alert(oframe + ", " + ofr);
i= "<ul>" + 
     "<li><a href=\"/gallery/toprotege/200510cruise/index.html\" target=" + ofr + ">Oct 30, 2005 - TOProtege Fall Cruise</a></li>" +
     "<li><a href=\"/gallery/toprotege/20080224cruise/index.html\" target=" + ofr + ">Feb 24, 2008 - TOProtege Winter Cruise</a></li>" +
   "</ul>";
document.write(i);
}

function mspevents(oframe) {
var ofr = '\"' + oframe + '\"';
i= "<ul>" + 
     "<li><a href=\"/gallery/toprotege/200312cruise/index.html\" target=" + ofr + ">Dec 27, 2003 - TOProtege Winter Cruise I</a></li>" +
     "<li><a href=\"/gallery/toprotege/200402cruise/index.html\" target=" + ofr + ">Feb 01, 2004 - TOProtege Winter Cruise II</a></li>" +
     "<li><a href=\"/gallery/toprotege/200405cruise/index.html\" target=" + ofr + ">May 09, 2004 - TOProtege Spring Cruise</a></li>" +
     "<li><a href=\"/gallery/toprotege/200405esbbq/index.html\" target=" + ofr + ">May 30, 2004 - Essential Speed BBQ</a></li>" +
     "<li><a href=\"/gallery/toprotege/200407dkn6/dkn6.htm\" target=" + ofr + ">Jul 17 & 18, 2004 - Darknights 6</a></li>" +
     "<li><a href=\"/gallery/toprotege/200409mom/index.html\" target=" + ofr + ">Sep 12, 2004 - Meeting of the Mazdas</a></li>" +
     "<li><a href=\"/gallery/toprotege/200412cruise/index.html\" target=" + ofr + ">Dec 19, 2004 - TOProtege Winter Cruise</a></li>" +
     "<li><a href=\"/gallery/toprotege/200507dkn7/index.html\" target=" + ofr + ">Jul 23 & 24, 2005 - Darknights 7</a></li>" +
     "<li><a href=\"/gallery/msp/20051029cayuga.htm\" target=" + ofr + ">Oct 29, 2005 - Cayuga</a></li>" +
     "<li><a href=\"/gallery/msp/20051112cayuga/index.html\" target=" + ofr + ">Nov 12, 2005 - Cayuga</a></li>" +
   "</ul>";
document.write(i);
}

function othercarevents() 
{
i= "<ul>" + 
     "<li><a href=\"/gallery/cargeneral/2002detroitautoshow/index.html\" target=\"_blank\">2002 Detroit Auto Show</a></li>" +
     "<li><a href=\"/gallery/cargeneral/2003detroitautoshow/index.html\" target=\"_blank\">2003 Detroit Auto Show</a></li>" +
     "<li><a href=\"/gallery/cargeneral/200408mosport/index.html\" target=\"_blank\">Aug 07 & 08, 2004 - Mosport</a></li>" +
     "<li><a href=\"/toprotege/20060212TOPWinterCruise.htm\" target=\"_blank\">Feb 12, 2006 - TOP Winter Cruise</a></li>" +
   "</ul>";
document.write(i);
}

function carevents() {
  maz323events();
  mspevents();

}

function resize_iframe(ifnm) {

document.getElementById(ifnm).height=100;
document.getElementById(ifnm).height=window.frames[ifnm].document.body.scrollHeight + 35;
}
