	$(function(){
		// Option set as a global variable
		$.fn.loopedSlider.defaults.addPagination = true;
		$('#loopedSlider').loopedSlider();
		
		$('#newsSlider').loopedSlider({
			autoStart: 0
		});
	});

	function playNow(id) {
		var id;
		$("#player").load("ajaxMusicPlayer.php?id="+id+"");
		$('html, body').animate({scrollTop:0}, 'slow');		
	}
	function playVid(id) {
		var id;
		$("#player").load("ajaxVideoPlayer.php?id="+id+"");
		$('html, body').animate({scrollTop:0}, 'slow');			
	}
	function playRadio(id) {
		var id;
		$("#radioPlayer").load("ajaxRadioPlayer.php?id="+id+"");
		$('html, body').animate({scrollTop:0}, 'slow');			
	}
	
var RecaptchaOptions = {
    theme : 'white'
 };
	
function simple_tooltip(target_items, name){
 $(target_items).each(function(i){
		$("body").append("<div class='"+name+"' id='"+name+i+"'><p>"+$(this).attr('title')+"</p></div>");
		var my_tooltip = $("#"+name+i);

		if($(this).attr("title") != ""){ // checks if there is a title

		$(this).removeAttr("title").mouseover(function(){
				my_tooltip.css({opacity:0.95, display:"none"}).fadeIn(100);
		}).mousemove(function(kmouse){
				my_tooltip.css({left:kmouse.pageX+15, top:kmouse.pageY+15});
		}).mouseout(function(){
				my_tooltip.fadeOut(100);
		});

		}
	});
}

$(document).ready(function(){
	 simple_tooltip("a.tiptip","tooltip");
});
