// JavaScript Document
var $j=jQuery.noConflict();
var version;

function detectServerStatus(){
 $j.getJSON("http://devel.modernfamilies.net/mf/alarmNotification",
 function(data) {
   alert(data);
 });
}


(function($){
$j.fn.loopFadeInOut = function(){    
  var counter = 0; 
  return actElement($(this));
  function actElement(a){    
      a.eq(counter).delay(1000).fadeIn("slow").delay(3000).fadeOut("slow", function(){
            counter++;
            if(counter>=a.size()) counter=0;
            actElement(a);
      });
  }    
}    
})( jQuery );


$j(document).ready(function(){
  
<!--$("ul.csc-bulletlist li").loopFadeInOut();-->
  
 
$j("div#extendedfamily ul.csc-bulletlist li").loopFadeInOut();
$j("div#connectingfamilies ul.csc-bulletlist li").loopFadeInOut();
$j("div#memories ul.csc-bulletlist li").loopFadeInOut();
$j("div#privacy ul.csc-bulletlist li").loopFadeInOut();


              
   //detectServerStatus();
 
   if($j("div#displayNoFlashHere").length>0)
   {
     var whatFlashVersion=swfobject.getFlashPlayerVersion();
     
     if(whatFlashVersion.release<1)
     {
       setTimeout(function() { $('div#displayNoFlashHere').fadeIn(1000); }, 2000);
     }      
   }
   
   
 });



