
function kidz() {

}
$(document).ready(function () {
		$('a').each(
	        function( intIndex ){
	            myurl = $(this).attr("href");
	            if(myurl != null)
	            {
	                if ((myurl.indexOf("http://") > -1 ) && (myurl.indexOf("blog.activitytv.com") == -1))
	                {
	                    if($(this).attr("class") != null)
					    {
		                    if($(this).attr("class").indexOf("internal") == -1)
		                    {	                
		                        $(this).addClass("external");
		                    }
					    } else {
					        $(this).addClass("external");
					    }
    	                
	                }
	            }
	            
	           
        });


        
	$('.external').click(function (e) {
	    e.preventDefault();
		
		var url = $(this).attr("href");
		var msg = $(this).attr("alt");
        $("#myFlashNav").css("visibility", "hidden");
        $("#videoPlayer").css("visibility", "hidden");
        $("#videoPlayerContainer").css("visibility", "hidden");
        
        
		// example of calling the confirm function
		// you must use a callback function to perform the "yes" action
		 
		      if(msg == null || msg == "")
		        msg = "You are now leaving Activity TV.<br><p style='font-size: smaller; font-weight: normal; text-align: left;'>The website you are about to go to is not controlled by Activity TV.  Different terms of use and privacy policy will apply.</p>";
		        
	            $("p.message").html(msg);
	            
	            $("a.yes").bind("click",function(){
	                window.location.href = url;
	            });
	
       tb_show("","#TB_inline?test=3&height=200&width=450&modal=true&inlineId=myconfirmdiv","");

	});
});
