Cufon.replace('.quoteContainer h2', { fontFamily: 'Lora', textShadow: '2px 2px #93a1b6' });
Cufon.replace('.linkContainer a', { fontFamily: 'Cuprum', textShadow: '2px 2px #d2d4d6' });
Cufon.replace('#topnav li a, .CuprumHover, .readMore a, .eventLink a, .downloadPDF a, .newsitem h2 a', { fontFamily: 'Cuprum', hover: true });
Cufon.replace('.Cuprum, .CuprumHeaders h1, .CuprumHeaders h2, .CuprumHeaders h3, .CuprumHeaders h4, .CuprumHeaders h5', { fontFamily: 'Cuprum' });
Cufon.replace('.Lora', { fontFamily: 'Lora' });

/**
 * Initialize $.CORE in case it's not present
 */
if(typeof $.CORE == "undefined") {
	$.CORE= Object;
};

/**
 * Dummy object
 */
$.CORE.dummyobject = {
	construct : function() {
	},
	
	dummyFunction : function() {
	}
};

/**
 * Forms
 */
$.CORE.forms = {
	construct : function() {
		this.execFormCheckerPlugin();
	},
	
	execFormCheckerPlugin : function() {
		var $formRef = $('form.formGenerated');
		if($formRef.length) {
        	$formRef.formChecker();
		}
	}
};

/**
 * Executes when the DOM has been fully loaded
 */
$(document).ready(function() {
	$.CORE.forms.construct();
	
	$('.cycleImages, .quoteContainer, .linkContainer').cycle({
        fx:      'scrollHorz',
        timeout:  5000,
        prev:    '.cyclePrev',
        next:    '.cycleNext'
    });
	
	var origVal = $('.searchText').val();
	$('.searchText').focus(function(){
		if($(this).val() == origVal) {
			$(this).val('');
		}
	}).blur(function(){
		if($(this).val() == '') {
			$(this).val(origVal)
		}
	});
	
	var origVal2 = $('.onemailform #a_email').val();
	$('.onemailform #a_email').focus(function(){
		if($(this).val() == origVal2) {
			$(this).val('');
		}
	}).blur(function(){
		if($(this).val() == '') {
			$(this).val(origVal2)
		}
	});
	
	$(".logos").jCarouselLite({
		auto: 1500,
		speed: 1000,
		visible: 4
	});
	
	$(".jQaccordion").accordion({
		autoHeight: false
	});
});
