//***********************************************
//*** Programming Developed By Clint Bray | clint@midsouth.rr.com *******
//***********************************************

// This script was last updated 4/20/2010
 
// This is the name of the site
var daSiteName = "Memphis Cars Italia";
 
// This is the title of the pages
document.title = daSiteName ;

 
// This is your site [NAVIGATION ARRAY]. If you want to change the navigation links for the home page or 
// content pages, change it here.
var daNav = "\"\"";
 daNav += ",\"Events|events.htm\"";
 daNav += ",\"Garages|garages.htm\"";
 daNav += ",\"Photos|photos.htm\"";
 daNav += ",\"For Sale|forsale.htm\"";
 daNav += ",\"Links|links.htm\"";
 daNav += ",\"Store|store.htm\"";
 daNav += ",\"Contact Us|contactus.htm\"";
 
// this is the URL/link that is used by the main image on 
// the home page. You can use it to promote a specific section or 
// item in your site.
var mainHomePageImgLink = "carshowadv10.htm"; 
 
// [MAIN FOCAL IMAGE]
// This is where you add or subtract the images you want to randomly display on the home page.
var myImgNum = new Array("1_10","2_10","3_10","4_10","5_10","6_10","7_10","8_10","9_10");
var imgCt = myImgNum.length ;
var randomNum = Math.floor((Math.random() * imgCt));
var daBigImg = "<a href=\"" + mainHomePageImgLink + "\"><img border='0' src='media/images/lo_home_big_";
daBigImg += myImgNum[randomNum];
daBigImg += ".jpg'></a>";

 
// This is the site footer
function daSiteFooter() {
return "Copyright © " + daSiteName + " - All Rights Reserved";
}
        
// This is what displays if end users right click on the pages
var the_message = "Copyright © " + daSiteName + " - All Rights Reserved";

  function disableRightClick(btnClick)
  {
    if (navigator.appName == "Netscape" && btnClick.which == 3) // check for netscape and right click
    {   
      alert(the_message);
      return false;
    }
    else if (navigator.appName == "Microsoft Internet Explorer" && event.button == 2)  // for IE and Right Click
    {
      alert(the_message);
      return false;
    }
  }
document.onmousedown = disableRightClick;

// This generates the left navigation
function doLeftNavBar() 
{
var i = 1;
var daCount = 2;
var itemArry = doLeftNavBar.arguments;
var itemArryLngth = itemArry.length;
var daItem;
var lftNvTxt = "";
 
 lftNvTxt += "<table border=\"0\" cellpadding=\"2\" cellspacing=\"0\" width=\"100%\" background=\"media/images/lo_menu_BG.gif\">";
while (i < itemArryLngth) {
daItem = itemArry[i].split("|")
 lftNvTxt += "<tr>";
 lftNvTxt += "<td class=\"lftNavCells\" onmouseover=\"this.className='lftNavCellsOn'; window.status='" + daItem[0] + "'; return true;\" ";
 lftNvTxt += " onmouseout=\"this.className='lftNavCells'; window.status='" + daSiteName + "'; return true;\" onclick=\"location='";
 lftNvTxt += daItem[1];
 lftNvTxt += "';\">";
 lftNvTxt += daItem[0];
 lftNvTxt += "&nbsp;</td>";
 lftNvTxt += "</tr>";
i++;
daCount++;
}

 lftNvTxt += "</table>";
 
return lftNvTxt;
}


// This generates the home navigation
function doHomeNavBar() 
{
var i = 1;
var daCount = 2;
var itemArry = doHomeNavBar.arguments;
var itemArryLngth = itemArry.length;
var daItem;
var hmNvTxt = "";
 
 hmNvTxt += "<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\"><tr>";
  
while (i < itemArryLngth) {
daItem = itemArry[i].split("|")


if (i != 1) hmNvTxt += "<td><img border=\"0\" src=\"media/images/spacer.gif\" width=\"17\" height=\"1\"></td>";

 hmNvTxt += "<td onmouseover=\"window.status='" + daItem[0] + "'; return true;\" "; 
 hmNvTxt += "onmouseout=\"window.status='" + daSiteName + "'; return true;\"><a class=\"homea\" href=\"" + daItem[1] + "\">" + daItem[0] + "</a></td>";
 
i++;
daCount++;
}

 hmNvTxt += "</tr></table>";
 
return hmNvTxt;
}


// These call the navigation functions and puts them in 
// variables that will be used on the pages
var daToolBar = eval("doLeftNavBar(" + daNav + ");");
var daToolBarHome = eval("doHomeNavBar(" + daNav + ");");

