	  function HideAll(aDiv) {
	  	 if (document.getElementById(aDiv + 'Menu') != null)
	  	 {
	  	 var menuItem = document.getElementById(aDiv + 'Menu');
	  	 menuItem.style.background = '#b53708';
	  	 }

	  	if (aDiv != 'divAboutMe')
	  	{
	    	document.getElementById('divAboutMeMenu').style.background = '#5f5f5f';
	    	Effect.DropOut('divAboutMe',{duration:0.50});
	    }
	  	//if (aDiv != 'divCalendar')
	  	//{
	    	//document.getElementById('divCalendarMenu').style.background = '#5f5f5f';
	    	//Effect.DropOut('divCalendar',{duration:0.50});
	    //}
	  	if (aDiv != 'divGallery')
	  	{
	    	document.getElementById('divGalleryMenu').style.background = '#5f5f5f';
	    	Effect.DropOut('divGallery',{duration:0.50});
	    }
	  	if (aDiv != 'divContact')
	  	{
	    	document.getElementById('divContactMenu').style.background = '#5f5f5f';
	    	Effect.DropOut('divContact',{duration:0.50});
	    }
	  	if (aDiv != 'divStore')
	  	{
	    	document.getElementById('divStoreMenu').style.background = '#5f5f5f';
	    	Effect.DropOut('divStore',{duration:0.50});
	    }
	    
	  	if (aDiv != 'divMagazine')
	  	{
	    	Effect.DropOut('divMagazine',{duration:0.50});
	    }

	  	Effect.Appear(aDiv, {duration:1,delay:0.60});
	  }

	  function HideGallery(aImage) {
	  	clientId = 'gallery' + (aImage+1);
	  	if (clientId != 'gallery1')
	    	Effect.Fade('gallery1',{duration:0.50});
	  	if (clientId != 'gallery2')
	  		Effect.Fade('gallery2',{duration:0.50});
	  	if (clientId != 'gallery3')
	  		Effect.Fade('gallery3',{duration:0.50});
	  	if (clientId != 'gallery4')
	  		Effect.Fade('gallery4',{duration:0.50});
	  	if (clientId != 'gallery5')
	  		Effect.Fade('gallery5',{duration:0.50});
	  	if (clientId != 'gallery6')
	  		Effect.Fade('gallery6',{duration:0.50});
	  	if (clientId != 'gallery7')
	  		Effect.Fade('gallery7',{duration:0.50});
	  	if (clientId != 'gallery8')
	  		Effect.Fade('gallery8',{duration:0.50});
	  	if (clientId != 'gallery9')
	  		Effect.Fade('gallery9',{duration:0.50});
	  	if (clientId != 'gallery10')
	  		Effect.Fade('gallery10',{duration:0.50});
	  	if (clientId != 'gallery11')
	  		Effect.Fade('gallery11',{duration:0.50});
	  	if (clientId != 'gallery12')
	  		Effect.Fade('gallery12',{duration:0.50});


	  	Effect.Appear(clientId, {duration:1,delay:0.60});
	  }
	  
	  
	  function ShowProduct(aImage) {
	  
	  	if (aImage == 'magazine')
	  	{
	  	  clientId = 'magazineCover';
	  	}
	  	else
	  	{
	  	  clientId = 'picture' + (aImage+1);
	  	}
	  	if (clientId != 'picture1')
	    	Effect.Fade('picture1',{duration:0.50});
	  	if (clientId != 'picture2')
	  		Effect.Fade('picture2',{duration:0.50});
	  	if (clientId != 'picture3')
	  		Effect.Fade('picture3',{duration:0.50});
	  	if (clientId != 'picture4')
	  		Effect.Fade('picture4',{duration:0.50});
	  	if (clientId != 'picture5')
	  		Effect.Fade('picture5',{duration:0.50});
	  	if (clientId != 'picture6')
	  		Effect.Fade('picture6',{duration:0.50});
	  	if (clientId != 'picture7')
	  		Effect.Fade('picture7',{duration:0.50});
	  	if (clientId != 'picture8')
	  		Effect.Fade('picture8',{duration:0.50});
	  	if (clientId != 'picture9')
	  		Effect.Fade('picture9',{duration:0.50});
	  	if (clientId != 'picture10')
	    		Effect.Fade('picture10',{duration:0.50});
	  	if (clientId != 'picture11')
	  		Effect.Fade('picture11',{duration:0.50});
	  	if (clientId != 'picture12')
	  		Effect.Fade('picture12',{duration:0.50});
	  	if (clientId != 'picture13')
	  		Effect.Fade('picture13',{duration:0.50});
	  	if (clientId != 'picture14')
	  		Effect.Fade('picture14',{duration:0.50});
	  	if (clientId != 'picture15')
	  		Effect.Fade('picture15',{duration:0.50});
	  	if (clientId != 'magazineCover')
	  		Effect.Fade('picture15',{duration:0.50});

	  		
	  	Effect.Appear(clientId, {duration:1,delay:0.60});
	  }	  
	  
	function checkform()
	{
		if (document.getElementById('name').value == '')
		{
			// something is wrong
			alert('Full Name is required');
			return false;
		}
		else if (document.getElementById('emailaddress').value.length > 0 && !checkMailId(document.getElementById('emailaddress').value))
		{
			alert('Email address entered is invalid');
			return false;
		}
		else if (document.getElementById('emailaddress').value == '' && document.getElementById('phone').value == '')
		{
			alert('You must provide at least 1 way to contact you (phone or email)');
			return false;
		}




		// If the script gets this far through all of your fields
		// without problems, it's ok and you can submit the form

		return true;
	}

	function checkMailId(mailids)
	{
	var arr = new Array('.com','.net','.org','.biz','.coop','.info','.museum','.name','.pro'
	,'.edu','.gov','.int','.mil','.ac','.ad','.ae','.af','.ag','.ai','.al',
	'.am','.an','.ao','.aq','.ar','.as','.at','.au','.aw','.az','.ba','.bb',
	'.bd','.be','.bf','.bg','.bh','.bi','.bj','.bm','.bn','.bo','.br','.bs',
	'.bt','.bv','.bw','.by','.bz','.ca','.cc','.cd','.cf','.cg','.ch','.ci',
	'.ck','.cl','.cm','.cn','.co','.cr','.cu','.cv','.cx','.cy','.cz','.de',
	'.dj','.dk','.dm','.do','.dz','.ec','.ee','.eg','.eh','.er','.es','.et',
	'.fi','.fj','.fk','.fm','.fo','.fr','.ga','.gd','.ge','.gf','.gg','.gh',
	'.gi','.gl','.gm','.gn','.gp','.gq','.gr','.gs','.gt','.gu','.gv','.gy',
	'.hk','.hm','.hn','.hr','.ht','.hu','.id','.ie','.il','.im','.in','.io',
	'.iq','.ir','.is','.it','.je','.jm','.jo','.jp','.ke','.kg','.kh','.ki',
	'.km','.kn','.kp','.kr','.kw','.ky','.kz','.la','.lb','.lc','.li','.lk',
	'.lr','.ls','.lt','.lu','.lv','.ly','.ma','.mc','.md','.mg','.mh','.mk',
	'.ml','.mm','.mn','.mo','.mp','.mq','.mr','.ms','.mt','.mu','.mv','.mw',
	'.mx','.my','.mz','.na','.nc','.ne','.nf','.ng','.ni','.nl','.no','.np',
	'.nr','.nu','.nz','.om','.pa','.pe','.pf','.pg','.ph','.pk','.pl','.pm',
	'.pn','.pr','.ps','.pt','.pw','.py','.qa','.re','.ro','.rw','.ru','.sa',
	'.sb','.sc','.sd','.se','.sg','.sh','.si','.sj','.sk','.sl','.sm','.sn',
	'.so','.sr','.st','.sv','.sy','.sz','.tc','.td','.tf','.tg','.th','.tj',
	'.tk','.tm','.tn','.to','.tp','.tr','.tt','.tv','.tw','.tz','.ua','.ug',
	'.uk','.um','.us','.uy','.uz','.va','.vc','.ve','.vg','.vi','.vn','.vu',
	'.ws','.wf','.ye','.yt','.yu','.za','.zm','.zw');
	var mai = mailids;
	var val = true;

	var dot = mai.lastIndexOf(".");
	var ext = mai.substring(dot,mai.length);
	var at = mai.indexOf("@");
	var dom = dot - at;
	var sp = mai.indexOf(" ");

	if(dom >= 4 && at >1 && sp == -1)
	{
	for(var i=0; i<arr.length; i++)
	{
	if(ext == arr[i])
	{
	val = true;
	break;
	}
	else
	{
	val = false;
	}
	}
	if(val == false)
	{
	//alert("Your maild "+mai+" is not corrrrect");
	return false;
	}
	}
	else
	{
	//alert("Your maild "+mai+" is not correct");
	return false;
	}

	return true;
	}

