<!-- hide from old browsers
// FWPPA JavaScript Functions

// -----------------------------------------
// updateStatus() (onMouseOver)
// -----------------------------------------
function updateStatus(textStr) {
   window.status = textStr;
   return;
}

// -----------------------------------------
// clearStatus() (onMouseOut)
// -----------------------------------------
function clearStatus() {
   var saveStatus = "Fort Worth Professional Photographers Association";
   window.status = saveStatus;
   return;
}

// -----------------------------------------
// noSpam() (send email message)
// -----------------------------------------
function noSpam(usrName, mailServer){
   var emailPresident = "joe@jrougraff.com";
   if (usrName == "FWPPA" && mailServer == "INFO")
       location.href="mailto:" + emailPresident + "?subject=FWPPA President";
   else
       location.href="mailto:" + usrName + "@" + mailServer + "?subject=FWPPA Web Site";
   return;
}

// -----------------------------------------
// lastModDate()
// -----------------------------------------
function lastModDate() {
   var modMonth, modDay, modYear, modString;
   var modDate = new Date(document.lastModified);
   var monthName = new Array("January", "February", "March",
                             "April", "May", "June",
                             "July", "August", "September",
                             "October", "November", "December");
   if (Date.parse(modDate) > 0) {
       modMonth = monthName[modDate.getMonth()];
       modDay = modDate.getDate();
       modYear = modDate.getFullYear();
       modString = modMonth + " " + modDay + ", " + modYear;
       document.write("This page last updated on: " + modString);
       // document.write("<br>" + document.lastModified);
       // document.write("<br>" + document.location.href);
   }
   return;
}

// -----------------------------------------
// idBrowser() [show browser information]
// -----------------------------------------
function idBrowser() {
   var bName = navigator.appName;
   var bVer = parseInt(navigator.appVersion);
   var bAgent = navigator.userAgent;
   var bOs = navigator.platform;
   var bType = "?";
   var sWidth =  window.screen.availWidth;
   var sHeight =  window.screen.availHeight;
   /// var osId =  $.os;

   if((bAgent.match(/iPhone/i)) || (bAgent.match(/iPod/i))) {
      bType = "iphone";
   } else if((bAgent.match(/blackberry/i))) {
      bType = "blackberry";
   } else if((bAgent.match(/android/i))) {
      bType = "android";
   } else if((bAgent.match(/mot-raz/i))) {
      bType = "razor";
   } else if((bAgent.match(/opera/i))) {
      bType = "opera";
   } else if((bAgent.match(/firefox/i))) {
      bType = "firefox";
   } else if((bAgent.match(/safari/i))) {
      bType = "safari";
   } else if (bName.search(/netscape/i) == 0) {
      bType = "ns";
   } else if (bName.search(/microsoft/i) == 0) {
      bType = "msie";
   } else if (bName.search(/msie/i) == 0) {
      bType = "msie";
   } else if (bName.search(/opera/i) == 0) {
      bType = "opera";
   }
   alert("You are using: appName=" + bName + " V(" + bVer + ")" +
         "\nuserAgent=" + bAgent +
         "\nBrowser=" + bType +
         ", OS=" + bOs +
         ", Screen=" + sWidth + "x" + sHeight + "px");
   return;
}

// -----------------------------------------
// browserType() [test browser device]
// -----------------------------------------
function browserType() {
   var bName = navigator.appName;
   var bAgent = navigator.userAgent;
   var bType = "?";

   if(bAgent.match(/iPhone/i) || bAgent.match(/iPod/i)) {
      bType = "iphone";
   } else if(bAgent.match(/blackberry/i)) {
      bType = "blackberry";
   } else if(bAgent.match(/android/i)) {
      bType = "android";
   } else if((bAgent.match(/mot-raz/i))) {
      bType = "razor";
   } else if((bAgent.match(/opera/i))) {
      bType = "opera";
   } else if(bAgent.match(/firefox/i)) {
      bType = "firefox";
   } else if (bName.search(/netscape/i) == 0) {
      bType = "ns";
   } else if (bName.search(/microsoft/i) == 0) {
      bType = "msie";
   } else if (bName.search(/msie/i) == 0) {
      bType = "msie";
   } else if (bName.search(/opera/i) == 0) {
      bType = "opera";
   }
   if (bType == "blackberry" || bType == "razor") {
      return false;
   } else {
      return true;
   }
}

// end of: hide JavaScript from old browsers -->
