jQuery(document).ready(function(){
	
	jQuery('.logoBox').corner("cc:#000015 6px bottom");
	jQuery('.menuBox,.newsBox,.contentBox,.rightBox').corner("cc:#000015 6px");
	jQuery('.rightHomeBox').corner("cc:#000015 5px");
	
	if(jQuery('#post-44').length) {
	var t=setTimeout("jQuery('#post-44').find('a').css('visibility','visible');",200);
    }
	
	//jQuery('#post-44').find('a').css('display','inline');
	
	
	if(jQuery('.wptable').length) {
	  jQuery('.wptable td:first-child,.wptable th:first-child').addClass('firstCol');
	  jQuery('.wptable td:last-child,.wptable th:last-child').addClass('lastCol');
    }

	/*
    if(jQuery('#home-anim').length) {
	   var titles = jQuery('#home-anim h2');
	   var titleLength = titles.length;
	   var index = 0;
	   titles.eq(index).show();
	
	   var rotateTitles = setInterval(function() {
         titles.eq(index).animate({left:'160',opacity:0},600,function(){
	        jQuery(this).css('opacity','1').css('left','0').hide();
	        index=index+1;
	        if(index==titleLength) index=0;
	        titles.eq(index).fadeIn(600);
         });
	   }, 6000);
	
	}
	*/
	
	if(jQuery('#home-anim').length) {
	  	var titles = jQuery('#home-anim h2');
		var titleLength = titles.length;
		var index = 0;
		
		var rotateTitles = setInterval(function() {
		  titles.eq(index).fadeIn(800,function(){
		      index=index+1;
		      if(index==titleLength) index=0;
		  });
			
		},1500);	
	}
	
	if(jQuery('.pdfCell').length) {
	  jQuery('.pdfCell a').attr('target','blank');
    }

    if(jQuery('.contentHeader').find('h1').length) {
	  var title = $('.contentHeader').find('h1').find('img').attr('alt');
	  $('.contentHeader').find('h1').prepend('<span>'+title+'</span>');
    }
    

});
