

/***********************************************
* Gradual Highlight image script- © Dynamic Drive DHTML code library (www.dynamicdrive.com)
* This notice MUST stay intact for legal use
* Visit Dynamic Drive at http://www.dynamicdrive.com/ for full source code
***********************************************/


/*  Prototype JavaScript framework, version 1.4.0
 *  (c) 2005 Sam Stephenson <sam@conio.net>
 *
 *  Prototype is freely distributable under the terms of an MIT-style license.
 *  For details, see the Prototype web site: http://prototype.conio.net/
 *
/*--------------------------------------------------------------------------*/

//note: stripped down version of prototype, to be used with moo.fx by mad4milk (http://moofx.mad4milk.net).

//(c) 2006 Valerio Proietti (http://mad4milk.net). MIT-style license.
//moo.fx.js - depends on prototype.js OR prototype.lite.js
//version 2.0

//Transitions (c) 2003 Robert Penner (http://www.robertpenner.com/easing/), BSD License.

Fx.Transitions = {
	linear: function(t, b, c, d) { return c*t/d + b; },
	sineInOut: function(t, b, c, d) { return -c/2 * (Math.cos(Math.PI*t/d) - 1) + b; }
};

//Ticker

function printThis()
{
  document.styleSheets[0].disabled=true;	
  document.styleSheets[1].disabled=false;
  window.print();
  setTimeout('printDone()', 700);
}

function printDone()
{
  document.styleSheets[1].disabled=true;	
  document.styleSheets[0].disabled=false;
}

//End

function CheckLogin(formObj,msg1,msg2,msg3)
{
  var usrVal = document.forms[formObj].elements['cuser'].value;
  var pasVal = document.forms[formObj].elements['cpass'].value;
  
  if (usrVal == "" && pasVal == "")
  {
    window.alert(msg1);	
    document.forms[formObj].elements['cuser'].focus();
  	return false;
  }
  else if (usrVal == "")
  {
  	window.alert(msg2);	
  	document.forms[formObj].elements['cuser'].focus();
  	return false;
  }
  else if (pasVal == "")
  {
  	window.alert(msg3);
  	document.forms[formObj].elements['cpass'].focus();	
  	return false;
  }
  else
    return true;
}

//Menu Functions

function menuOver(obj)
{
  obj.style.cssText = "color:#cd9e40;background:#e2dddb;cursor:pointer;";
}

function menuOut(obj)
{
  obj.style.cssText = "color:white;background:none;cursor:none;";
}

function menuClick(url)
{
  location.href = url;	
}

//End

function equalHeight(group) {
    tallest = 0;
    group.each(function() {
        thisHeight = J(this).height();
        if(thisHeight > tallest) {
            tallest = thisHeight;
        }
    });
    group.height(tallest);
}
