// JavaScript Document


      jQuery(document).ready(function($) {

		$(".tweet").tweet({
          join_text: "auto",
          username: "wractive",
          avatar_size: 20,
          count: 2,
          auto_join_text_default: "", 
          auto_join_text_ed: "we",
          auto_join_text_ing: "we were",
          auto_join_text_reply: "we replied",
          auto_join_text_url: "we were checking out",
          loading_text: "loading tweets..."
		  
        });

      })      


 
 $(document).ready(function(){
     $('div.selection2').hide();
	 $('div.selection3').hide();
	 $('div.selection4').hide();
	 $('div.selection5').hide();
	 $('div.selection6').hide();
	 $('div.selection7').hide();
	 $('.clicklink1 span').addClass('blue2'); 
	 $('.services-nav li.clicklink1').addClass('highlight');
	 $('#services-container .highlight p').addClass('blue2'); 

});



    $(document).ready(function(){ 
        $(document).pngFix();
    }); 

	swfobject.registerObject("myFlashContent", "9.0.0");



$(function() {

			$('.region-widget').gradient({
			  from:      '999999',
			  to:        'FFFFFF', 
			  direction: 'horizontal',
			  position: 'bottom',
			  length: 0
			  });

			$('.enews-widget').gradient({
			  from:      'DEDEDE',
			  to:        'FFFFFF', 
			  direction: 'horizontal',
			  position: 'bottom',
			  length: 0
			  });
			$('.media-widget').gradient({
			  from:      'DEDEDE',
			  to:        'FFFFFF', 
			  direction: 'horizontal',
			  position: 'bottom',
			  length: 0
			  });
			$('.courses-widget').gradient({
			  from:      'DEDEDE',
			  to:        'FFFFFF', 
			  direction: 'horizontal',
			  position: 'bottom',
			  length: 0
			  });
			$('.contacts-widget').gradient({
			  from:      'DEDEDE',
			  to:        'FFFFFF', 
			  direction: 'horizontal',
			  position: 'bottom',
			  length: 0
			  });
			$('.references-widget').gradient({
			  from:      'DEDEDE',
			  to:        'FFFFFF', 
			  direction: 'horizontal',
			  position: 'bottom',
			  length: 0
			  });


			});
	
$(document).ready(function(){
	
	
	$('.message_head').click(function() {
    $(this).next(".message_body").slideToggle()
    $(this).text($(this).text() == 'HIDE [-]' ? 'MORE [+]' : 'HIDE [-]'); // <- HERE
    return false;
	});
	
		//collapse all messages
	$(".collpase_all_message").click(function(){
		$(".message_body").slideUp(500)
		$('.message_head').text("MORE [+]"); // <- HERE
		return false;
	});
	
	//collapse all messages
	$(".show_all_message").click(function(){
		$(".message_body").slideDown(500)
		$('.message_head').text("HIDE [-]"); // <- HERE 
		return false;
	});

});



$(document).ready(function(){

	$('#container').addClass('js');

	$(function() {

	$('#div1').show();

	  var timer = setInterval( showDiv, 8000);
	
	  var counter = 0;
	
	  function showDiv() {
		if (counter ==0) { counter++; return; }
	
		$('div','#container')
		  .stop()
		  .hide()
		  .filter( function() { return this.id.match('div' + counter); })   
		  .show();
		  counter == 4? counter = 0 : counter++; 
	
	  }
	
	}); 
	
});


$(document).ready(function () {
    $('.menu_class').click(function () {
	$('ul.menu_drop_1').slideToggle('medium');
    });
});

$(document).ready(function () {
    $('.menu_class_2').click(function () {
	$('ul.menu_drop_2').slideToggle('medium');
    });
});


$(function(){
	$('.fadein img:gt(0)').hide();
	setInterval(function(){$('.fadein :first-child').fadeOut().next('img').fadeIn().end().appendTo('.fadein');}, 5000);
});

        
