
jQuery.noConflict();
jQuery(document).ready(function($) {

	// =FOCUS IMAGE
	
	//$('#news').innerfade({
	//	animationtype: 'slide',
	//	speed: 750,
	//	timeout: 2000,
	//	type: 'random',
	//	containerheight: '1em'
	//});

	$('ul#focusimage').innerfade({
		speed: 2000,
		timeout: 9000,
		type: 'sequence',
		containerheight: '292px'
	});

	$('ul#rotatingimage').innerfade({
		speed: 2000,
		timeout: 8000,
		type: 'sequence',
		containerheight: '490px'
	});

	// =MANIPULATION: WRAP INNER
	$("ol li").wrapInner("<span></span>");
	
	// =MANIPULATION: TYPEFACE JS
	//$("h1, h2, h3, h4, h5, h6").addClass('typeface-js').attr('style','font-stretch: condensed; line-height: 1.5em;');
	//$("h1 span.B_crumbBox span, h1 span.B_crumbBox span a.B_crumb").addClass('typeface-js').attr('style','font-stretch: condensed; line-height: 1.5em; color: #517277 !important; ');
	//$("ul#navlist li a, p.description").addClass('typeface-js').attr('style','font-stretch: condensed;');
	//$("blockquote p, blockquote q, p.quoter").addClass('typeface-js');
	//$("small").attr('style','font-size:11px;');
	
	// =EXTERNAL LINKS
	$("a").filter(function() {
		 return this.hostname && this.hostname !== location.hostname;
	}).addClass('external').attr('target','blank');

	// =ANCHOR
	
	$("a[href='#toTop']").addClass('toTop');

	// =BACK TO TOP //

	$('.toTop').click(function() {
		$('body,html').animate({scrollTop:0},1000);
	});	
	
	
	// =TOOLTIP
	
	//$("#general_form :input").tooltip({ 
		// place tooltip on the right edge 
		//position: ['center', 'right'], 
		// a little tweaking of the position 
		//offset: [-2, 10], 
		// use a simple show/hide effect 
		//effect: 'toggle', 
		// custom opacity setting 
		//opacity: 0.7 
	//});
	
});
