 /*DD_roundies.addRule('.connectivity_div', '5px', true); */

 
$(document).ready(function(){
		   // $(".h4_button a").before("&raquo; ");  
	$(".h4_button a").click(function(event){
				event.preventDefault();				
				var id=$(this).attr('rel');
				//alert(id);
				var query = "div[title='" + id + "']";
				//var query2 = "a[rel='" + id + "']";
				$("a.slide_button").show();
				//$(query2).hide();
				$('.slide_section').slideUp('slow');
				$(query).slideDown('slow');
				
	});
	
	/*$("a.connectivity_discover_more").click(function(event){
				event.preventDefault();
				//alert("ok");
				$('.connectivity_hidden').hide();
				var id=$(this).attr('rel');
				//alert(id);
				var query = "div[title='" + id + "']";
				//var query2 = "a[rel='" + id + "']";
				//$("a.slide_button").show();
				//$(query2).hide();
				//$('.slide_section').slideUp('slow');
				$(query).slideDown('slow');
				
	});*/
	
	$(".plans_buttons a").click(function(event){
				event.preventDefault();
				//alert("ok");
				$('.plan').hide();
				var id=$(this).attr('rel');
				//alert(id);
				var query = "div[title='" + id + "']";
				//var query2 = "a[rel='" + id + "']";
				//$("a.slide_button").show();
				//$(query2).hide();
				//$('.slide_section').slideUp('slow');
				$(query).fadeIn('slow');
				
	});
	
	$('a[href*=#]').click(function() {
    if (location.pathname.replace(/^\//,'') == this.pathname.replace(/^\//,'')
    && location.hostname == this.hostname) {
      var $target = $(this.hash);
      $target = $target.length && $target
      || $('[name=' + this.hash.slice(1) +']');
      if ($target.length) {
        var targetOffset = $target.offset().top;
        $('html,body')
        .animate({scrollTop: targetOffset}, 1000);
       return false;
      }
    }
  });

  $('#managed_services').cycle({ 
    fx:    'fade', 
    speed:  1000 
 });


	
	
});



