window.addEvent('domready', function() {
  

	// SLIDE MENU CODE
	
	m1 = new SlideMenu('solutions_menu', {button: 'solutions_button'});
	m2 = new SlideMenu('products_menu', {button: 'products_button'});
	m3 = new SlideMenu('resources_menu', {button: 'resources_button'});
	m4 = new SlideMenu('news_menu', {button: 'news_button'});
	m5 = new SlideMenu('company_menu', {button: 'company_button'});
	
	//m6 = new SlideMenu('support_menu', {button: 'support_button'});
	// SINGLE USE FOR THE SUPPORT MENU
	
	$('support_button').addEvent('mouseover',function(event){
			event.stop();
 			$('support_button').set('class', 'menubutton_hilite');
 		});

		$('support_button').addEvent('mouseout',function(event){
				event.stop();
	 			$('support_button').set('class', 'menubutton');
	 		});

	
	
	//	MENU DIV BLOCKS
	
	$$('.menudiv').each(function(hBtn){
		
			hBtn.addEvent('click',function(event){
					event.stop();
			var u = this.getProperty('link');
		 
			document.location.href = u;
		 		});
 
	 
			});
	
 
 	//	PROTECTED PARDOT LINK HANDLER

 

		$$('.pardot_link').each(function(pLink){
			pLink.addEvent('click',function(event){
			event.stop();
 
			
				var targetURL = '/form_pop.php?asset=' + pLink.href;

			var signupWindowRef = window.open(targetURL,"Signup","toolbar=0,status=0,location=0,directories=0,menuBar=0,scrollbars=1,resizable=0,width=900,height=700,left=50,top=50");

		//	return false;

			});

	});

 
	if(typeof (window.init) == 'function') {
	// function exists, so we can now call it
		init();
	}
	
 
	$('gs3').addEvent('mouseover',function(event){
			event.stop();
 			$('gs3').set('src', '/img/getstarted/GetStarted3_on.gif');
 		});

	$('gs3').addEvent('mouseout',function(event){
			event.stop();
 			$('gs3').set('src', '/img/getstarted/GetStarted3.gif');
 		});




});	//end DOMREADY
