// JavaScript Document

$(function() {
 // hides the slickbox as soon as the DOM is ready
 // (a little sooner than page load)
  $('#submenu').hide();
  $('#ratingtoolsub').hide();
  $('#certifyprojectsub').hide();
  $('#casestudysub').hide();
  $('#accreditedprossub').hide();
  
  
 // shows the slickbox on clicking the noted link  
  $('a#ratingtools').click(function() {
	$('#submenu').show('slow');
	$('#ratingtoolsub').show('slow');
	$('#certifyprojectsub').hide();
	$('#casestudysub').hide();
	$('#accreditedprossub').hide();
    return false;
  });
   // Close menu when mouse moved away from submenu Saturday 25 April 2009 12:56 pm
  $('#menu-system').hover(
  	 function(){
  	 },
 	 function() {
    	$('#submenu').hide('slow');
	$('#ratingtoolsub').hide('slow');
	$('#certifyprojectsub').hide('slow');
	$('#casestudysub').hide('slow');
	$('#accreditedprossub').hide('slow');		
  });
  
  $('a#certifyproject').click(function() {
    $('#submenu').show('slow');
	$('#ratingtoolsub').hide();
	$('#certifyprojectsub').show('slow');
	$('#casestudysub').hide();
	$('#accreditedprossub').hide();
    return false;
  });  

  $('a#casestudy').click(function() {
    $('#submenu').show('slow');
	$('#ratingtoolsub').hide();
	$('#certifyprojectsub').hide();
	$('#casestudysub').show('slow');
	$('#accreditedprossub').hide();
    return false;
  });  


  $('a#accreditedpros').click(function() {
    $('#submenu').show('slow');
	$('#ratingtoolsub').hide();
	$('#certifyprojectsub').hide();
	$('#casestudysub').hide();
	$('#accreditedprossub').show('slow');
    return false;
  }); 
  
  $('a#certifincation').click(function() {
	$('#submenu').hide();
    //return false;
  });

  $('a#cirs').click(function() {
	$('#submenu').hide();
    //return false;
  });


  $('a#marketing').click(function() {
	$('#submenu').hide();
   //return false;
  });


// hides the slickbox on clicking the noted link  
/*  $('a.subhide').click(function() {
    $('#submenu').hide('fast');
    return false;
  });*/
 
  
});


/*var flashvars = {};
var flashparams = {wmode:"transparent",allowscriptaccess:"always"};

swfobject.embedSWF("flash/banner.swf", "header", "960", "320", "9.0.0", "/flash/expressInstall.swf", flashvars, flashparams);
*/