//v1.0
//by Thea Ganoe for use with JQuery when select and checkbox forms need to be set with data
//received from database

	$(document).ready(function (){
		setTimeout(selfDestruct, 3500);	
		
	});

	function selfDestruct() {
		//Remove any volatile components
		$("#message[type='volatile']").slideUp();
	}
	
	
	$("a.title").hover(
		function(e) {
			//Pop Up Title
			$html = "<div id=\"popUpInfo\" class=\"popup\"><div class=\"arrow\"></div><p>" + $(this).attr('tooltip') + "<br/>Click to download.</p></div>";
			
			$(this).parent().parent().append($html);
			$("#popUpInfo").css('position', 'absolute');
			$("#popUpInfo").css('top', e.pageY + 40);
			$("#popUpInfo").css('left', e.pageX - 75); 
			
			$().mousemove(function(e){
				$("#popUpInfo").css('top', e.pageY + 40);
				$("#popUpInfo").css('left', e.pageX - 75);
			});
			
		},
		function(e) {
			$("#popUpInfo").remove();
			
		}
	);
	$("a.delete_confirm").click(
		function(e) {
			var msg = "Are you sure you want to " + $(this).attr('title') + " from the registrations?\n\r\n\rNote: This will not remove the individual from contacts."; 
			
			return confirm(msg);
		}
	);
	
	function removeTheme() {
		$("#themeFlash").remove();
		
	}
	function stopTheme() {

		var player2 = document.getElementById('swfplayer');

		player.stop();
	}
	

