// JQUERY FUNCTIONS
$(document).ready(function(){

 // ADD CLASSES
	$("li:first-child,dl:first-child").addClass("first");
	$("li:last-child,dl:first-child").addClass("last");
	//$('.btt').localScroll();
	
// SUPERFISH
	//$("ul.sf-menu").supersubs({
	//	pathClass: 'current',
	//	minWidth: 12,
	//	maxWidth: 27,
	//	extraWidth: 1
	//}).superfish({
	//	delay:			500,
	//	animation:		{opacity:'show',height:'show'},
	//	speed:			'slow',
	//	autoArrows:		false
	//});
	
// TOOLTIP
	$('.tooltip').tooltip({
		showURL: false,
		showBody: " - "
	});
	
	$('#RMPSelected').scrollTo( $('#RMPSelected a.selected img'), 800 );

});
// END JQUERY DOC READY

// GENERAL JS	    
	function HideContent() {
        document.getElementById('cobubble').style.visibility = 'hidden';
    }

    function ShowContent() {
        document.getElementById('cobubble').style.visibility = 'visible';
    }
    
    function IsNumeric(sText) {
       var ValidChars = "0123456789.";
       var IsNumber=true;
       var Char;

        for (i = 0; i < sText.length && IsNumber == true; i++) {
          Char = sText.charAt(i); 
          if (ValidChars.indexOf(Char) == -1) 
             IsNumber = false;
        }
      return IsNumber;
    }
    
// FLASH   
var flashvars = 
	{
		file:						'homeflash.xml',
		transition:					'lines',//fade, bgfade, blocks, bubbles, circles, flash, fluids, lines, slowfade.
		shownavigation:				'false',
		linkfromdisplay:			'true',
		rotatetime:					'5',
		backcolor:					'0xffffff',
		screencolor:				'0xffffff',
		showicons:					'false',
		height:						'200',
		width:						'600'
	};
	
	var params =
	{
		allowfullscreen:			'true',
		allowscriptaccess:			'always',
		bgcolor:					'#FFFFFF'
	};
	
	var attributes =
	{
		id:							'mpl',
		name:						'mpl'
	};

	