window.addEvent('domready', function() {
	var status = {
		'true': 'open',
		'false': 'close'
	};
	var el = $('hor_container');
	el.fade(0.6);

  	var myhorizontalSlideCE = new Fx.Slide('horizontal_slide_CE', {mode: 'horizontal'});

	myhorizontalSlideCE.hide();
	//ce
	$('h_toggle_CE').addEvent('click', function(e){
		e.stop();
	myhorizontalSlideCE.toggle();
	$('horizontal_slide_content').set('html', 'Bachelor of Science in Civil Engineering');
	});
	$('h_toggle_CE').addEvent('mouseout', function(e){
		e.stop();
	myhorizontalSlideCE.slideOut();
	});
	//coe
	$('h_toggle_CoE').addEvent('click', function(e){
		e.stop();
	myhorizontalSlideCE.toggle();
	$('horizontal_slide_content').set('html', 'Bachelor of Science in Computer Engineering');
	});
	$('h_toggle_CoE').addEvent('mouseout', function(e){
		e.stop();
	myhorizontalSlideCE.slideOut();
	});
	$('h_toggle_EE').addEvent('click', function(e){
		e.stop();
	myhorizontalSlideCE.toggle();
	$('horizontal_slide_content').set('html', 'Bachelor of Science in Electrical Engineering');
	});
	$('h_toggle_EE').addEvent('mouseout', function(e){
		e.stop();
	myhorizontalSlideCE.slideOut();
	});
	$('h_toggle_ECE').addEvent('click', function(e){
		e.stop();
	myhorizontalSlideCE.toggle();
	$('horizontal_slide_content').set('html', 'Bachelor of Science in Electronic and Communication Engineering');
	});
	$('h_toggle_ECE').addEvent('mouseout', function(e){
		e.stop();
	myhorizontalSlideCE.slideOut();
	});
	$('h_toggle_IE').addEvent('click', function(e){
		e.stop();
	myhorizontalSlideCE.toggle();
	$('horizontal_slide_content').set('html', 'Bachelor of Science in Industrial Engineering');
	});
	$('h_toggle_IE').addEvent('mouseout', function(e){
		e.stop();
	myhorizontalSlideCE.slideOut();
	});
	$('h_toggle_ME').addEvent('click', function(e){
		e.stop();
	myhorizontalSlideCE.toggle();
	$('horizontal_slide_content').set('html', 'Bachelor of Science in Mechanical Engineering');
	});
	$('h_toggle_ME').addEvent('mouseout', function(e){
		e.stop();
	myhorizontalSlideCE.slideOut();
	});
	$('h_toggle_MEE').addEvent('click', function(e){
		e.stop();
	myhorizontalSlideCE.toggle();
	$('horizontal_slide_content').set('html', 'Bachelor of Science in Mechatronics Engineering');
	});
	$('h_toggle_MEE').addEvent('mouseout', function(e){
		e.stop();
	myhorizontalSlideCE.slideOut();
	});
	$('h_toggle_MEM').addEvent('click', function(e){
		e.stop();
	myhorizontalSlideCE.toggle();
	$('horizontal_slide_content').set('html', 'Bachelor of Science in Manufacturing Engineering &amp; Management');
	});
	$('h_toggle_MEM').addEvent('mouseout', function(e){
		e.stop();
	myhorizontalSlideCE.slideOut();
	});

	$('tbl_navigation').addEvent('mouseout', function(e){
		e.stop();
	myhorizontalSlideCE.slideOut();
	});
	

	
	var accordion = new Accordion('h3.atStart', 'div.atStart', {
	opacity: false,
	onActive: function(toggler, element){
		toggler.setStyle('color', '#ff3300');
	},
 
	onBackground: function(toggler, element){
		toggler.setStyle('color', '#222');
	}
	}, $('accordion'));
 
	
		
});