function setIdProperty(id, property, value) {
	var hideElement = 'none';
	var styleObject = document.getElementById(id+"Content");
	var callerObject =  document.getElementById(id);
	var className="selected";
	if (styleObject != null) {
		
		styleObject = styleObject.style;
		
		if (styleObject[property] == value) {
			value = 'none';
			className="link";
		}
		
		styleObject[property] = value;
		callerObject.className = className;

	}
}
function openWindow(sFileName,sWindowName,iWidth,iHeight,sAllowResize,sAllowScroll) {
	window.open(sFileName,sWindowName,'width=' + iWidth + ',height='+iHeight+',directories=no,location=no,menubar=no,scrollbars='+sAllowScroll+',status=no,toolbar=no,resizeable='+sAllowResize+',left=0,top=0,screenX=40,screenY=40');
}

function openWindowToolbar(sFileName,sWindowName,iWidth,iHeight,sAllowResize,sAllowScroll) {
	window.open(sFileName,sWindowName,'width=' + iWidth + ',height='+iHeight+',directories=no,location=no,menubar=no,scrollbars='+sAllowScroll+',status=no,toolbar=yes,resizeable='+sAllowResize+',left=0,top=0,screenX=40,screenY=40');
}
function redirectPageIFrame(url) {
   parent.location.href = url;
}
function popUp(URL) 

{

    day = new Date();

    id = day.getTime();

    eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=350,height=500,left = 440,top = 50');");

}

function flashcall(flashsrc,flashwidth,flashheight){
	// Optionally add a bgcolor parameter
	bgcolor = "#FFFFFF";
	if (arguments.length > 3)
	  bgcolor = arguments[3];
	
	if (!useRedirect) {    // if dynamic embedding is turned on
	  if(hasRightVersion) {  // if we've detected an acceptable version
	    var oeTags = '<OBJECT CLASSID="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"'
	    + 'WIDTH="' + flashwidth + '" ' + 'HEIGHT="' + flashheight + '"'
	    + 'CODEBASE="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0">'
	    + '<param name="allowScriptAccess" value="sameDomain" />'
	    + '<PARAM NAME="MOVIE" VALUE="' + flashsrc + '">'
	    + '<PARAM NAME="PLAY" VALUE="true">'
	    + '<PARAM NAME="LOOP" VALUE="false">'
	    + '<PARAM NAME="QUALITY" VALUE="high">'
		+ '<PARAM NAME="bgcolor" VALUE="' + bgcolor + '">'
	    + '<param name=FlashVars value="langType=us">'
	    + '<PARAM NAME="MENU" VALUE="false">'
	    + '<EMBED SRC="' + flashsrc + '"'
	    + 'WIDTH="' + flashwidth + '" ' + 'HEIGHT="' + flashheight + '"'
	    + 'name="index"'
	    + 'align="middle"'
	    + 'allowScriptAccess="sameDomain"'
	    + 'PLAY="true"'
	    + 'LOOP="false"'
	    + 'flashVars="langType=us"'   
	    + 'bgcolor="' + bgcolor + '"'
	    + 'QUALITY="high"'
	    + 'MENU="false"'
	    + 'TYPE="application/x-shockwave-flash"'
	    + 'PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer">'
	    + '<\/EMBED>'
	    + '<\/OBJECT>';
	
	    document.write(oeTags);   // embed the flash movie
	  } else {  // flash is too old or we can't detect the plugin
	    // NOTE: height, width are required!
	    var alternateContent = '<a href="http://www.macromedia.com/go/getflash"><img src="/images/shared/non_flash_image.jpg" alt="Bike Menu" border="0" width="750" height="376" /></a>';
	
	    document.write(alternateContent);  // insert non-flash content
	  }
	}
}

/********************************************************
 * Copyright (C) 2002-2003, CodeHouse.com. All rights reserved.
 * CodeHouse(TM) is a registered trademark.
 *
 * THIS SOURCE CODE MAY BE USED FREELY PROVIDED THAT
 * IT IS NOT MODIFIED OR DISTRIBUTED, AND IT IS USED
 * ON A PUBLICLY ACCESSIBLE INTERNET WEB SITE.
 * 
 * CodeHouse.com JavaScript Library Module: Browser Sniffer Class
 *
 * You can obtain this script at http://www.codehouse.com
 ********************************************************/
function CJL_BrowserSniffer()
{
   var ua = navigator.userAgent;

   this.isSafari = function()
   {
      return /Safari/.test(ua);
   }

   this.getVersion = function()
   {
      if( this.isSafari() )
      {
         return Number(ua.match(/[0-9.]+$/));
      }   
   }
}
