// JavaScript Document

//the main function, call to the effect object
function getUrlVars() {
	var vars = [], hash;
	var hashes = window.location.href.slice(window.location.href.indexOf('?') + 1).split('&');
	
	for(var i = 0; i < hashes.length; i++) {
		hash = hashes[i].split('=');
		vars.push(hash[0]);
		vars[hash[0]] = hash[1];
	}
	return vars;
}

window.addEvent('domready', function(){		
		
		var hash = getUrlVars();
		
		/* Seminars/Press Effects
		var accordion = new Accordion('h3.display', 'ul.stretcher', {
			opacity: false,
			alwaysHide: true,
			display: (hash['t']) ? hash['t'].toInt() : 0
		}, $('leftitems')); */
		
		//Email box effect
		var accordion = new Accordion('h4.title', 'div.showme', {
			opacity: false,
			alwaysHide: true,
			display: (hash['t']) ? hash['t'].toInt() : -1
		}, $('leftitems'));
}); 