// JavaScript Document
var timeout    = 500;
var closetimer = 0;
var ddmenuitem = 0;

function dropDown_open()
{  dropDown_canceltimer();
   dropDown_close();
   ddmenuitem = $(this).find('ul').css('visibility', 'visible');}

function dropDown_close()
{  if(ddmenuitem) ddmenuitem.css('visibility', 'hidden');}

function dropDown_timer()
{  closetimer = window.setTimeout(dropDown_close, timeout);}

function dropDown_canceltimer()
{  if(closetimer)
   {  window.clearTimeout(closetimer);
      closetimer = null;}}

$(document).ready(function()
{  $('#dropDown > li').bind('mouseover', dropDown_open)
   $('#dropDown > li').bind('mouseout',  dropDown_timer)});

document.onclick = dropDown_close;




//hide reveal

                                       
   // we will add our javascript code here   
   $(document).ready(function(){
   	$(".expand").click(function(){
		$("#text_" + $(this).attr("id")).slideToggle('fast');
		
		
		
	})
	
	
	
 });

