jQuery(document).ready(function() {
	// open and close FAQ questions
	 $(document).ready(function() {
   $('#faqToggle').find('dd').hide().end().find('dt').click(function() {
     $(this).next().slideToggle();
   });
 });

$(document).ready(function() { $('ul.dcStackedFix li:last-child').css('border-bottom', '0px'); });
$(document).ready(function() { $('ul.rcStacked li:last-child').css('border-bottom', '0px'); });
$(document).ready(function() { $('#tableDiv_ticketChart table td:nth-child(3n)').css('width', '50%'); });
$(document).ready(function() { $('#tableDiv_ticketChart table td:nth-child(2n)').css('width', '15%'); });
$(document).ready(function() { $("a:contains('Delegate Profile')").addClass("restricted");});
$(document).ready(function() { $("a:contains('Edit Profile')").addClass("restricted");});
$(document).ready(function() { $("a:contains('Delegates Search')").addClass("restricted");});
$(document).ready(function() { $("a:contains('Delegate Guide')").addClass("restricted");});
$(document).ready(function() { $("a:contains('Delegates')").addClass("restricted");});
});

//prelaod images

function preload(arrayOfImages) {
    $(arrayOfImages).each(function(){
        $('<img/>')[0].src = this;
        // Alternatively you could use:
        // (new Image()).src = this;
		
    });
}



preload([
    '/templates/images/button_topNav_bellLightbox_on.gif',
    '/templates/images/button_topNav_bellLightbox_off.gif',
    '/templates/images/button_topNav_aboutTiff_on.gif',
	'/templates/images/button_topNav_aboutTiff_off.gif',
	'/templates/images/button_topNav_membership_off.gif',
	'/templates/images/button_topNav_membership_on.gif',
	'/templates/images/button_topNav_festival2010_off.gif',
	'/templates/images/button_topNav_festival2010_on.gif'
]);





