$(document).ready(function(){
$("#services span a").hover(function(){
        $('#services span a').not(this).stop().animate({ opacity: 0 }, 400);
        },function(){
        $('#services span a').not(this).stop().animate({ opacity: 1 }, 400);
        });
$("#menu ul ul").css({display: "none"}); // Opera Fix
$("#menu ul li").hover(function(){
		$(this).find('ul:first').css({visibility: "visible",display: "none"}).slideDown(400);
		},function(){
		$(this).find('ul:first').css({visibility: "hidden"});
		});
$("#menu ul li ul").each(function(i){
      $(this).hover(function(){
        $(this).parent().find("a").slice(0,1).addClass("active");
      },function(){
        $(this).parent().find("a").slice(0,1).removeClass("active");
      });
    });	
$("#menu ul li ul").hover(function(){
	 $(this).animate({ opacity: 1 }, 200);
   }, function() {
      $(this).animate({ opacity: 0.9 }, 200);
   });
$("#network a span").hover(function(){
        $('#network a span').not(this).stop().animate({ opacity: 0 }, 400);
        },function(){
        $('#network a span').not(this).stop().animate({ opacity: 1 }, 400);
        });

$("#menu ul li ul li a").hover(function(){
	 $(this).animate({ textIndent: '10px' }, 200);
   }, function() {
      $(this).animate({ textIndent: '0px' }, 200);
   });
 $('#banner').cycle({ 
    fx:     'fade', 
    speed:   1200, 
    timeout: 6000, 
	 pause:   1 ,
	 size: 1,
    pager:  '#holder',
	pagerAnchorBuilder: function(idx, slide) { 
    return '<a href="#"><span>&nbsp;</span></a>';}
});
 $('#testimonials').cycle({ 
    fx:     'scrollVert', 
    speed:   500, 
    timeout: 4000, 
    next:   '.arrows#test .next', 
	prev:   '.arrows#test .prev',
    pause:   1 
});
 $('#ads').cycle({ 
    fx:     'fade', 
    speed:   700, 
    timeout: 6000, 
    next:   '.arrows#ad .next', 
	prev:   '.arrows#ad .prev',
    pause:   1 
});
 $('#lnews').cycle({ 
    fx:     'scrollVert', 
    speed:   500, 
    timeout: 4000, 
    pause:   1 
});
	$("#submitform").ajaxForm({
			target: '#error',
			success: function() {
			$('#error').animate({ opacity: 1 }, 400);
			}
		}); 
$('#table').columnHover({eachCell:true, hoverClass:'betterhover', includeSpans:false}); 

   Cufon.replace('#banner .package h2',{
fontFamily: 'Museo Sans 900',
hover: 'true',
textShadow: '#0a2e65 1px 1px'
});
   Cufon.replace('#banner .package .orderbox em',{
fontFamily: 'Museo Sans 900',
hover: 'true',
textShadow: '#081b38 1px 1px'
});

$('a[title]').qtip({ style: { name: 'dark', tip: true, border:{ radius: 5}} })
});
