$(document).ready(function(){
	var innerfade_speed = 7000;
	// innerfade
	if ($('.innerFade').length > 0) {
		$('.innerFade').innerfade({
			animationtype: 'fade',
			speed: 'slow',
			timeout: innerfade_speed,
			type: 'sequence',
			containerheight: 'auto'
		});
	}
	
	// home ad
	if ($('.homead-innerFade').length > 0) {
		$('.homead-innerFade').innerfade({
			animationtype: 'fade',
			speed: 'slow',
			timeout: innerfade_speed,
			type: 'sequence',
			containerheight: HOMEAD_INNERFADE_HEIGHT
		});
	}
	
	// other ad
	if ($('.otherad-innerFade').length > 0) {
		$('.otherad-innerFade').innerfade({
			animationtype: 'fade',
			speed: 'slow',
			timeout: innerfade_speed,
			type: 'sequence',
			containerheight: OTHERAD_INNERFADE_HEIGHT
		});
	}
	
	// innerFade-text
	var innerfade_text_speed = 3000;
	if ($('.innerFade-text').length > 0) {
		$('.innerFade-text').innerfade({
			animationtype: 'fade',
			speed: 'normal',
			timeout: innerfade_text_speed,
			type: 'sequence',
			containerheight: '26px'
		});
	}	
});
