/* ----- document ready ----- */

jQuery(document).ready(function($) {

	if( $('#submitForm').length ){	   
		$("#submitForm").click(function() {
			$('#valForm .validate').validateMe({formName: 'valForm'});	
			return false;
		});	
	}

	if( $('#submitForm2').length ){	   
		$("#submitForm2").click(function() {
			$('#valForm2 .validate').validateMe({formName: 'valForm2'});	
			return false;
		});	
	}

	if( $('.fontResizer').length ){
		fontResizer('14px','16px','17px');
	}
			
    	var options = {
        	resizeLgImages:     true,
        	displayNav:         true,
        	handleUnsupported:  'remove',
        	keysClose:          ['c', 27], // c or esc
        	autoplayMovies:     true
    	};
    	Shadowbox.init(options);
	
	initTabs();
	

	if( $('#site_map').length ){
		$('#site_map li img').toggle(function(){
			$(this).parent().find('ul').show();
            $(this).attr('src','uploads/images/global/down.gif');
			return false;
		}, function() {
			$(this).parent().find('ul').hide();
            $(this).attr('src','uploads/images/global/blue_arrow.gif');	
			return false;
		});
	} 	

		if( $('div.showMore').length ){
			
			$showMe = $('div.showMore');
			$showMe.hide(0);
		
			$('div.subscribe').click(function(){
			  $showMe.fadeIn('slow');
              $('input#cancelSubscribe').click(function(){
                $showMe.slideUp('fast');
                return false;
              });  
			  return false;
			});
			
		}

});