$('html').addClass('js');

$(document).ready(function(){

	$('#header_imgholder').innerfade({
		speed: 3000,
		timeout: 6000,
		type: 'sequence',
		containerheight: '143px'
	});

	
	$('#spnsrs_home_platinum').innerfade({
		speed: 3000,
		timeout: 6000,
		type: 'sequence',
		containerheight: '80px'
	});
	$('#spnsrs_platinum_innerfade').innerfade({
		speed: 3000,
		timeout: 6000,
		type: 'sequence',
		containerheight: '80px'
	});
	$('#spnsrs_silver').innerfade({
		speed: 3000,
		timeout: 6000,
		type: 'sequence',
		containerheight: '80px'
	});
	$('#spnsrs_gold').innerfade({
		speed: 3000,
		timeout: 6000,
		type: 'sequence',
		containerheight: '80px'
	});
	
	$('#spnsrs_home_gold').innerfade({
		speed: 3000,
		timeout: 6000,
		type: 'sequence',
		containerheight: '80px'
	});
	$('#spnsrs_home_silver').innerfade({
		speed: 3000,
		timeout: 6000,
		type: 'sequence',
		containerheight: '80px'
	});

	$('#widget-abstract-b').innerfade({
		timeout: 6000,
		type: 'random',
		containerheight: '120px'
	});
	
	$('#widget-abstract-c').innerfade({
		timeout: 6000,
		type: 'random',
		containerheight: '160px'
	});
	
	$('#exhibitor_widget').innerfade({
		speed: 3000,
		timeout: 6000,
		type: 'random',
		containerheight: '70px'
	});
	$('#mediapartner_widget').innerfade({
		speed: 3000,
		timeout: 6000,
		type: 'random',
		containerheight: '70px'
	});
	
	$('.jobevent_exhibitors').innerfade({
		speed: 3000,
		timeout: 6000,
		type: 'random',
		containerheight: '70px'
	});
	
	$('#academic_sponsors').innerfade({
		speed: 3000,
		timeout: 6000,
		type: 'sequence',
		containerheight: '70px'
	});
	
	$('#job_event_exhibitor').innerfade({
		speed: 3000,
		timeout: 6000,
		type: 'sequence',
		containerheight: '70px'
	});

    $('#job_event_spons').innerfade({
		speed: 3000,
		timeout: 6000,
		type: 'sequence',
		containerheight: '70px'
	});
	
	$(".exhibbtn").click(function(){
		$("#" + $(this).attr("title")).slideToggle("slow");
	});

	$("#toTop").click(function(){
        $("html,body").animate({scrollTop: 0}, 1000);
	});
		// 	
		// $('textarea.tiny').tinymce({
		// 	// Location of TinyMCE script
		// 	script_url : '/js/tinymce/jscripts/tiny_mce/tiny_mce.js',
		// 
		// 	// General options
		// 	theme : "advanced",
		// 
		// 	// Theme options
		// 	theme_advanced_buttons1 : "bold,italic",
		// 	theme_advanced_buttons2 : "",
		// 	theme_advanced_buttons3 : "",
		// 	theme_advanced_toolbar_location : "top",
		// 	theme_advanced_toolbar_align : "left",
		// 	theme_advanced_resizing : false
		// });
});
