$(document).ready(function() {
			$('li.expanded .menu li').hover(function(){
				$('.expanded:hover').addClass('drop-li');
				}, function() {
  				$('.expanded').removeClass('drop-li');
				});
			$('li.expanded .menu').hover(function(){
    			$('.expanded:hover').addClass('drop');
				}, function() {
  				$('.expanded').removeClass('drop');
				});
			$('li.expanded a').not('li.expanded ul li a').click(function(event){
				event.preventDefault();
				return false; 
			});
	});
		
	$(function(){
    $("#slides").slides({
			preload: true,
			preloadImage: '../images/loading.gif',
			play: 10000,
			effect: 'fade',
			crossfade: true,
			fadeSpeed: 800,
			hoverPause: false
		});
  	});
  	
	var answer = new Boolean("false");
  
	function showTop()
	{
		//Show the background overlay and topbox...
		document.getElementById('screenoverlay').style.visibility='visible';
		document.getElementById('topbox').style.visibility='visible';

	}

	function closeTop()
	{
		//Hide the overlay and topbox...
		document.getElementById('screenoverlay').style.visibility='hidden';
		document.getElementById('topbox').style.visibility='hidden';
	}
	
	// provided that all of the below code in this script (including this
	// comment) is used without any alteration
	function rC(nam) {var tC = document.cookie.split('; '); for (var i = tC.length - 1; i >= 0; i--) {var x = tC[i].split('='); if (nam == x[0]) return unescape(x[1]);} return '~';} function wC(nam,val) {document.cookie = nam + '=' + escape(val);} function lC(nam,pg) {var val = rC(nam); if (val.indexOf('~'+pg+'~') != -1) return false; val += pg + '~'; wC(nam,val); return true;} function firstTime(cN) {return lC('pWrD4jBo',cN);} 
	// example code to call it - you may modify this as required
	function start() {
	   if (firstTime()) {
		  // this code only runs for first visit
			document.getElementById('screenoverlay').style.visibility='visible';
			document.getElementById('topbox').style.visibility='visible';
	   }
	   // other code to run every time once page is loaded goes here
}
onload = start;
