/* Cufon.replace('#navigation li a, .footerBlk h4, .footerBlk p, .footerNav li a, .footCopy p, h1, h2, h3, h4, h5, .mainContent p, .pane p,  .txt12, .txt10 ', { hover: true, fontFamily: 'Lucida Grande'});

Cufon.replace('.blueTitle', { hover: true, fontFamily: "Kozuka Gothic Pro L"});*/
var randomnumber=Math.floor((Math.random()*4)+1);
document.write("<style>div#headerFlashBkl {background-image:url(img/content/Flash_" + randomnumber + ".jpg);}</style>");

$(document).ready(function(){
	$('#navigation li').first().addClass('bg-none');
	$('.footerNav li').last().addClass('bg-none');
	$('.footerNav li').first().addClass('pl0');
	$('#footer .footerBlk').last().addClass('mr0');
	
	$("#chained").scrollable({circular: true}).navigator().autoscroll({interval: 7000});
	$("#chained1").scrollable({circular: true}).navigator().autoscroll({interval: 8000});
	
	$("#accordion").tabs("#accordion div.pane", {tabs: 'h3', effect: 'slide', initialIndex: null});
	
	// Random Flash
	$("div#headerFlashBkl").flashembed({src:'swf/Flash_' + randomnumber + '.swf', wmode: 'opaque'});
	


	
	$(".tn_tooltip").tooltip( 
	  {   // tweak the position
	   offset: [-50, 20],
	
	   // use the "slide" effect
	   effect: 'slide',
	  onBeforeShow: function(event, position) {
		   this.getTip().appendTo(document.body);
		   return true;
		 
		}
	  }
	);
	$(".link_tooltip").tooltip( 
	  {   // tweak the position
	   offset: [20,0],
		
	   // use the "slide" effect
	   effect: 'slide',
	   // tipClass: 'navitip',
	  onBeforeShow: function(event, position) {
		   this.getTip().appendTo(document.body);
		   return true;
		 
		}
	  }
	);
	<!-- flowplayer scroller --> 
	  
	  // initialize scrollable together with the autoscroll plugin
	  var root = $("#quotes").scrollable({circular: true}).autoscroll({interval: 12000 });
	  
	  // provide scrollable API for the action buttons
	  window.api = root.data("scrollable");
	  
	  <!-- Initialize Overlay -->		  
	  $("a.pop[rel]").overlay({mask: '#efefef'});

});	
