
$(function(){

 if ( !$.browser.msie || $.browser.version !="6.0"){ 

  if ( !$.browser.mozilla ){ 
   
   $("#Panel a,.BoxContents a").not("h2 a,h1 a,.CornerButton,div.ThumbLargeContainer a.CssBlind").mouseenter(function(e){
    var $this=$(this);
    $this.stop(true,true).animate({color: "#ffffff","text-shadow": "0px 0px 8px #9ccfe4"},"fast");
    return true;
   }).mouseleave(function(e){
    var $this=$(this);
    $this.stop(true,true).animate({color: "#90D2F4","text-shadow": "0 0 0"},"fast");
    return true;
   }).click(function(e){
    var $this=$(this);
    $this.stop(true,true);
    return true;
   });

   
   $(".HoverImg").removeClass("HoverImg").mouseenter(function(e){
    var $this=$(this);
    $this.children("img").stop(true,true).fadeOut();
    return true;
   }).mouseleave(function(e){
    var $this=$(this);
    $this.children("img").stop(true,true).fadeIn();
    return true;
   }).click(function(e){
    var $this=$(this);
    $this.children("img").stop(true,true);
    return true;
   });

   
   $("#Menu .CssMO,.SubMenu .CssMO,.RegAndFaq").removeClass("CssMO").mouseenter(function(e){
    var $this=$(this);
    $this.children("img").stop(true,true).fadeOut();
    return true;
   }).mouseleave(function(e){
    var $this=$(this);
    $this.children("img").stop(true,true).fadeIn();
    return true;
   }).click(function(e){
    var $this=$(this);
    $this.children("img").stop(true,true);
    $this.stop(true,true);
    return true;
   });

   
   $("#Footer .BottomMenu a").removeClass("CssMO").mouseenter(function(e){
    var $this=$(this);
    //$this.animate({color: "#9ccfe4"});
    $this.stop(true,true).animate({color: "#9ccfe4","text-shadow": "0px 0px 8px #9ccfe4"},"fast");
    return true;
   }).mouseleave(function(e){
    var $this=$(this);
    //$this.animate({color: "#84aec0"});
    $this.stop(true,true).animate({color: "#84aec0","text-shadow": "0 0 0"},"fast");
    return true;
   }).click(function(e){
    var $this=$(this);
    $this.stop(true,true);
    return true;
   });

   
   $("#Footer .sb a img,.newsSocial a img").mouseenter(function(e){
    var $this=$(this);
    //$this.animate({color: "#9ccfe4"});
    //$this.stop(true,true).css({"-webkit-box-shadow": "0px 0px 4px #ffffff","-moz-box-shadow": "0px 0px 4px #ffffff","box-shadow": "0px 0px 4px #ffffff"});
    $this.stop(true,true).animate({opacity:1});
    return true;
   }).mouseleave(function(e){
    var $this=$(this);
    //$this.animate({color: "#84aec0"});
    //$this.stop(true,true).css({"-webkit-box-shadow": "0 0 0","-moz-box-shadow": "0 0 0","box-shadow": "0 0 0"});
    $this.stop(true,true).animate({opacity:0.75});
    return true;
   }).click(function(e){
    var $this=$(this);
    $this.stop(true,true);
    return true;
   });
  } 

  
  $("div.ThumbLargeContainer a.CssBlind").removeClass("CssBlind").mouseenter(function(e){
   var $this=$(this);
   if ( $.browser.msie || $.browser.chrome ){ /* Only for IE > 6 or Chrome */
    $this.children(".blind").stop(true,true).fadeTo("slow",0.5);
   }else{
    $this.children(".blind").stop(true,true).fadeIn();
   }
   return true;
  }).mouseleave(function(e){
   var $this=$(this);
   if ( $.browser.msie || $.browser.chrome ){ /* Only for IE > 6  or Chrome */
    $this.children(".blind").stop(true,true).fadeTo("slow",0);
   }else{
    $this.children(".blind").stop(true,true).fadeOut();
   }
   return true;
  }).click(function(e){
   var $this=$(this);
   $this.children(".blind").stop(true,true);
   return true;
  });


 }

 function RegisterAction(open){
  if(open){
   $("#sb-container").addClass("RegisterOverlay");
  }
  else {
   $("#sb-container").removeClass("RegisterOverlay");
  }
 }
 
 $("a.RegisterLink").click(function(ev){
  ev.preventDefault();
  
  Shadowbox.open({
   content: 'http://services.stellardawn.com/m=email-collector/index.ws',
   player: "iframe",
   title: false,
   width: 460,
   height: 379,
   options: {
    onOpen: function(){
     
try{pageTracker._trackPageview(''+GASTUB+'/lightbox/beta_sign_up/')}catch(x){}; try{_pageTracker._trackPageview(''+GASTUB+'/lightbox/beta_sign_up/')}catch(x){}

     return RegisterAction(true)
    },
    onClose: function(){return RegisterAction(false)},
    displayNav: false,
    initialHeight: 379,
    initialWidth: 460,
    fadeDuration: 0.75,
    enableKeys: false
   }
  });
 });

 
 Shadowbox.init({
  gallery: "sd",
  continuous: true,
  counterType: "skip",
  overlayColor: "#000000",
  overlayOpacity: 0.8,
  onOpen: function(obj){
try{pageTracker._trackPageview(''+GASTUB+'/lightbox/'+obj.title+'/')}catch(x){}; try{_pageTracker._trackPageview(''+GASTUB+'/lightbox/'+obj.title+'/')}catch(x){}
}
 });
 
});


window.onunload=function(){}