function enews() {
	new Effect.toggle('enewsregister', 'appear', {queue: {position: 'front', scope: 'main1scope'}, transition: Effect.Transitions.BouncePast});

	return false;
}

function contact() {
	new Effect.toggle('contactus', 'appear', {queue: {position: 'front', scope: 'main1scope'}, transition: Effect.Transitions.BouncePast});

	return false;
}

function submitForm() {
	var contactus = document.getElementById("contact");
	var url = '../includes/contact.php';
	var target = 'response';
	var pars = '?';
		pars += "name=" + contactus.name.value;
		pars += "&company=" + contactus.company.value;
		pars += "&phone=" + contactus.phone.value;
		pars += "&email=" + contactus.email.value;
		pars += "&strategy=" + contactus.strategy.value;
		pars += "&design=" + contactus.design.value;
		pars += "&web=" + contactus.web.value;
		pars += "&video=" + contactus.video.value;
		pars += "&events=" + contactus.events.value;
		pars += "&printing=" + contactus.printing.value;
		pars += "&comments=" + contactus.commentsbox.value;
	var myAjax = new Ajax.Updater(target, url, {method: 'post', parameters: pars});
	new Effect.SlideDown('response2', {queue: {position: 'end', scope: 'main1scope'}});
}

function submitFormENews() {
	enewsregister = document.getElementById("enewscontact");
	//var url = 'includes/enewscontact.php';
	var target = 'response4';
	//var pars = '?';
		//pars += "name=" + enewsregister.name.value;
		//pars += "&email=" + enewsregister.email.value;
		//pars += "&ref=" + window.location;
	//var myAjax = new Ajax.Updater(target, url, {method: 'post', parameters: pars});
	new Effect.SlideDown('response3', {queue: {position: 'end', scope: 'main1scope'}});
}

function loadContent(file) {
	//new Ajax.Updater('content', file, {method: 'post'});
	Effect.Fade('content');
	var myAjax = new Ajax.Updater('content', file);
	setTimeout('slider();', 1000);
}

function slider() {
	jQuery("div#slider1").codaSlider();
	Shadowbox.init();
	Effect.Appear('content', {duration: 1.0});
}