function initPopups()
{
	// the popups are associated to the window object so they can be manipulated from inside the IFRAMES
	jQuery.extend(window, {customPopups: {}});
	
	// init the popups
	var popupLinks = jQuery('a.popupTrigger');
	popupLinks
		.each(function(index)
			{
				var ind = index;
				var triggerLink = jQuery(this);
				window.customPopups['GenericPopup' + ind] = new dc_Popup(triggerLink, {
																							popupIframeName: 'GenericPopup' + ind,
																							popupWidth: 687, 
																							popupHeight: 455
																						});	
			})
}

function rotateQuotes()
{
	jQuery('#quotes')
		.cycle({
			fx: 'fade',
			timeout: 5000,
			speed: 2000,
			random: true,
			pause: 1,
			sync: false,
			cleartype: true,
			fit: true
		})	
}

jQuery(document).ready(function()
{
	initPopups();
	rotateQuotes();
})
