			$(document).ready(function(){
			$('.p_photo').hover(function()
{
$(this).addClass('tt');

},function()
{
$(this).removeClass('tt');
});	
		
/***menu starts here***/

	$(".menu > ul > li > a").mouseover(function() {

		$(this).parent().find("ul.subnav").slideDown('fast').show(); 
		$(this).parent().hover(function() {
		}, function(){
			$(this).parent().find("ul.subnav").slideUp('slow'); 
		});
		
		})
	

/***menu ends here***/

var count = 1;


$('.bl_dt').click(function(){
$(this).parent().find('.l_btn li a').removeClass('active');
//alert($(this).parent().find('.gal').attr("class"));

if (count==1){
$(this).parent().find('.gal').animate({left : "-"+(3-1)*616+"px"},1000);
$(this).parent().find('.l_btn li').eq(2).children('a').addClass('active');
   count=3+1;
}
else{
$(this).parent().find('.gal').animate({left : "+=616px"},1000);
$(this).parent().find('.l_btn li').eq(count-2).children('a').addClass('active');
}
count--;
});

$('.or_dt').click(function(){
$(this).parent().find('.l_btn li a').removeClass('active');
if (count==3){
$(this).parent().find('.gal').animate({left : "0px"},1000)
$(this).parent().find('.l_btn li').eq(0).children('a').addClass('active')
   count=0;
}
else{
$(this).parent().find('.gal').animate({left : "-=616px"},1000)
$(this).parent().find('.l_btn li').eq(count).children('a').addClass('active')
}
count++;
});


$('.l_btn ul.test1 li').click(function(){
//alert($(this).parents().find('.extended').attr('class'));

$('.l_btn ul.test1 li').children('a').removeClass('active');
$(this).children('a').addClass('active');
$(this).parents('.extended').find('.gal').animate({left : '-'+($(this).index())*616+"px"},1000);
//alert($(this).index());
count=$(this).index()+1;
}); 

$('.l_btn ul.test li').click(function(){
//alert($(this).parents().find('.extended').attr('class'));

$('.l_btn ul.test li').children('a').removeClass('active');
$(this).children('a').addClass('active');
$(this).parents('.extended').find('.gal').animate({left : '-'+($(this).index())*616+"px"},1000);
//alert($(this).index());
count=$(this).index()+1;
}); 	

$('.menu ul li ul.green li ').hover(function()
{
$(this).css({'background-color':'#fbffeb'}).children('a').css({'color':'#83be24'});
},function()
{
$(this).css({'background-color':'#fff'}).children('a').css({'color':'#583094'});
});
$('.menu ul li ul.orange li ').hover(function()
{
$(this).css({'background-color':'#fbffeb'}).children('a').css({'color':'#f78815'});
},function()
{
$(this).css({'background-color':'#fff'}).children('a').css({'color':'#583094'});
});
	
	$('.menu ul li ul.red li ').hover(function()
{
$(this).css({'background-color':'#fbffeb'}).children('a').css({'color':'#de2767'});
},function()
{
$(this).css({'background-color':'#fff'}).children('a').css({'color':'#583094'});
});
	

$('.vid_list').hover(function()
{
$(this).css({'background-color':'#D9DEC1'});
$(this).children('.thumb').addClass('tk');
},function()
{
$(this).css({'background-color':'#fff'});
$(this).children('.thumb').removeClass('tk');

});	

$('.bl > img').hover(
            function(){
                $(this).attr({ src : "images/or_dt.jpg"});
            },
            function(){ 
                $(this).attr({ src : "images/bl_dt.jpg"});
				});
				
	$('.art').hover(function()
{
$(this).children('.article_desc').css({'background-color':'#eef7dd'});
$(this).children('.article_img').addClass('tl');
},function()
{
$(this).children('.article_desc').css({'background-color':'#fff'});
$(this).children('.article_img').removeClass('tl');

});				
				
$('.gal_thumb').hover(
            function(){
                $(this).addClass('ty');
            },
            function(){ 
                $(this).removeClass('ty');
				});				
				
		$('.bl').hover(
            function(){
                $(this).css({'background-Position' : '0px 0px'  });
            },
            function(){ 
                $(this).css({'background-Position' : '0px -15px'  });
				});				
				
				
				
	});/*** document end here***/
//$(window).scroll(function() {
 //       $('.scrlbtn').stop().animate({top: $(document).scrollTop()+225},'slow','easeOutBack');});  
	
var voted = '';
function ILikeIt(id,id2,sign)
{
	if (!voted.match(id) && !voted.match(id2))
	{
			$('#'+id).text(parseInt($('#'+id).text()) + 1);
			if (sign > 0)
				$('#'+id).css('color','#489605');
			else $('#'+id).css('color','#E12941');
			
			$('#'+id).css('font-weight','bold');
			$('#'+id).css('font-size','16px');
			voted += id;
	}
}	
			
		

