jQuery(document).ready(function($){
	$('ul li:first-child').addClass('first')
	$('ul li:last-child').addClass('last')
	
	$('dl dt:first-child').addClass('first')
	
	$('.bannergroup .banneritem:first-child').addClass('first')
	
	
	/*Drop down menu script*/
	
	$('#top-menu ul li.parent').hover(
		function() {
			$(this).addClass("actives");
			$(this).find('> ul').stop(false, true).fadeIn();
			$(this).find('>ul ul').stop(false, true).fadeOut('fast');
		},
		function() {
			$(this).removeClass("actives");        
			$(this).find('ul').stop(false, true).fadeOut('fast');
			}
		);
		
	$('a').hover(function(){
		$(this).addClass('hover');
		Cufon.refresh('a.readmore');
		Cufon.refresh('p.readmore a');
		},
		function(){
			$(this).removeClass('hover');
			Cufon.refresh('a.readmore');
			Cufon.refresh('p.readmore a');
		}
		);
		
	$('.content-top ul.newsflash-horiz li').hover(function(){
		$(this).find('p').addClass('hover');
		Cufon.refresh('span.capt-1');
		},
		function(){
			$(this).find('p').removeClass('hover');
			Cufon.refresh('span.capt-1');
		}
		);
	
	$(".jbgallery").jbgallery(function(){
		Cufon.refresh('#jbg-caption');});
		
		
	$('.boxplus-viewport ul li:odd').addClass('odd');
	
	$('.boxplus-viewport ul li').hover(function(){
		Cufon.refresh('.boxplus-imagecaption span');
		});
		
	/*Allows multi color titles*/
		
	$("#content-top .moduletable:first-child h3, #container h1, #container .item h2").lettering('words');
	
	  if ($.browser.webkit) {
			$('.jbgallery .jbg-wrap').css('top', '-22%');
	}

				
});
