var professionals = {
	setGlobals: function() {
		professionals.evenChunks = jQuery('div.chunk:odd');
	},
	
	setChunks: function() {		
		professionals.evenChunks.addClass('odd');
	},
	setProCookie: function() {
		// If Pro User cookie isn't present, set it
		// Cookie should expire after 60 days
		if(jQuery.cookie('proUser') !== '1') {
			jQuery.cookie('proUser', 1, { expires: 60, path: '/' });
		} else {
			// If cookie is present, reset it to expire 60 days from now
			jQuery.cookie('proUser', 1, { expires: -1, path: '/' });
			jQuery.cookie('proUser', 1, { expires: 60, path: '/' });
		}
	},
	
	setElearningLinks: function(){
		jQuery('a[href="http://www.deltafaucet.com/elearnings/refresher-course.html"]').unbind().click(function(){
			window.open(this.href, '', 'width=1000, height=697, top=25, left=25, resizable=yes, location=yes, scrollbars=1');
			return false;
		});
	}
};

jQuery(document).ready(function(){
	professionals.setGlobals();
	professionals.setChunks();
	professionals.setElearningLinks();
});
