$(document).ready( function () {
							 
$(".hoverimg_description").addClass("tnview");							 
							 
$(".tnview")
  .livequery(function() {
    $(this)
      .hover(function() {
        $('#description_tn' + this.id).slideDown("slow","easeOutQuart");
      }, function() {
       $('#description_tn' + this.id).slideUp("normal","easeInQuart");
      });
  }, function() {
  });


      
$(".listview")
  .livequery(function() {
    $(this)
      .hover(function() {
        $('#description_tn' + this.id).slideUp("slow","easeOutQuart");
      }, function() {
       $('#description_tn' + this.id).slideDown("normal","easeInQuart");
      });
  }, function() {
  });




      	$(".hoverfeatured").hover( function () {
	    $('#description_featured' + this.id).slideDown("slow","easeOutQuart");},function () {
        $('#description_featured' + this.id).slideUp("normal","easeInQuart");});
		
		$("#ajax").click(function () {
		$('a.tags_link').removeClass('tag_selected');
		$(this).addClass('tag_selected');
		 $('.description_tn').slideDown("slow","easeOutQuart");
	    $('.ajax').slideUp("slow","easeOutQuart");
		return false
		});
		$("#ps").click(function () {
		$('a.tags_link').removeClass('tag_selected');
		$(this).addClass('tag_selected');
		 $('.description_tn').slideDown("slow","easeOutQuart");
	    $('.ps').slideUp("slow","easeOutQuart");
		return false
		});
		$("#ai").click(function () {
		$('a.tags_link').removeClass('tag_selected');
		$(this).addClass('tag_selected');
		 $('.description_tn').slideDown("slow","easeOutQuart");
	    $('.ai').slideUp("slow","easeOutQuart");
		return false
		});
		$("#fl").click(function () {
		$('a.tags_link').removeClass('tag_selected');
		$(this).addClass('tag_selected');
		 $('.description_tn').slideDown("slow","easeOutQuart");
	    $('.fl').slideUp("slow","easeOutQuart");
		return false
		});
		$("#html").click(function () {
		$('a.tags_link').removeClass('tag_selected');
		$(this).addClass('tag_selected');
		 $('.description_tn').slideDown("slow","easeOutQuart");
	    $('.html').slideUp("slow","easeOutQuart");
		return false
		});
		$("#php").click(function () {
		$('a.tags_link').removeClass('tag_selected');
		$(this).addClass('tag_selected');
		 $('.description_tn').slideDown("slow","easeOutQuart");
	    $('.php').slideUp("slow","easeOutQuart");
		return false
		});
		$("#id").click(function () {
		$('a.tags_link').removeClass('tag_selected');
		$(this).addClass('tag_selected');
		 $('.description_tn').slideDown("slow","easeOutQuart");
	    $('.id').slideUp("slow","easeOutQuart");
		return false
		});
		
	
		
		$("a.viewlist").click(function () {
	    $('.description_tn').slideDown("slow","easeOutQuart");
		$('.hoverimg_description').removeClass("tnview");
		$('.hoverimg_description').addClass("listview");
		return false
		});
		$("a.viewthumbnails").click(function () {
	    $('.description_tn').slideUp("slow","easeOutQuart");
		$('.hoverimg_description').removeClass("listview");
		$('.hoverimg_description').addClass("tnview");

		return false
		}); 
		
		$(".hoverimg_description").click(function () {
		$('#content2').hide(100);
		$('#content2').load('getproject.php?project_id='+ this.id,function(){
		$('#content2').show(500);
		$('.categoryitems').hide(500);
		//}); 
		});
		return false
		});

$(".menuheader").click(function () {
		$('#loadcontact').hide(100);
		$('#loader').hide(100);
		return false
		}); 


		$(".about").click(function () {
		$('#loadcontact').hide(500);
		$('#loader').hide(500);
		$('#hometext').hide(500);
		$('#content2').hide(500 ,function(){
		$('#loader').load('getabout.php',function(){
		$('#loader').show(500);
		$('.categoryitems').hide(500);
		//}); 
		});});
		return false
		}); 
		
		$(".contact").click(function () {
		$('#content2').hide(500);
		$('#loader').hide(500);
		$('#hometext').hide(500);
		$('#loader').hide(500);
		$('#loadcontact').show(500);
		$('.categoryitems').hide(500);
		return false
		}); 
  
  
  		$(".homelink").click(function () {
		$('#content2').hide(100, function(){
		$("#loader").hide(200);								  
		$("#loadcontact").hide(200);								  
		ddaccordion.collapseall('expandable');
		$('#hometext').show(500);
		});
		return false
		}); 

  
  
 $('.prev').livequery(function(){ 
    // use the helper function hover to bind a mouseover and mouseout event 
   $('.prev').hover(function() {
  $('.arrow').fadeIn("normal");}, function() { 
  $('.arrow').fadeOut("fast");}); 
  
  }); 

    $('.next').livequery(function(){ 
    // use the helper function hover to bind a mouseover and mouseout event 
  $('.next').hover(function() {
  $('.arrow2').fadeIn("normal");}, function() { 
  $('.arrow2').fadeOut("fast");}); 
  
  }); 


  $(".menuheader").livequery('click', function(event) {
  $("#hometext").fadeOut("fast");
	$("#content2").slideUp(500);
	return false;
});


  $(".back").livequery('click', function(event) {
  	$("#content2").hide(500);

		$('#categoryitems'+ this.id).show(500);
		
	return false;
});


  }); 
