// JavaScript Document
$(document).ready(function(){


$(".panel").mouseenter(function(){
      $(".herobox").stop().animate({opacity: 1.0}, 500, "easeInOutQuart");
      $(".heroboxcopy").stop().animate({opacity: 1.0}, 500, "easeInOutQuart");
      $(".viewhero").stop().animate({opacity: 1.0}, 500, "easeInOutQuart");
    }).mouseleave(function(){
      $(".herobox").stop().animate({opacity: 0.0}, 500, "easeInOutQuart");
      $(".heroboxcopy").stop().animate({opacity: 0.0}, 500, "easeInOutQuart");
      $(".viewhero").stop().animate({opacity: 0.0}, 500, "easeInOutQuart");
    });

$("[id^='thumb']").click(function () {
				$('.theme').find('img').removeClass().removeAttr('style');
		
		
		
			var getvalue = $(this).find('img').attr('rel');

			var move = (getvalue * 378);
		$("#galleryinner").animate({opacity:0.0}, 300)
		.animate({left: -move}, 0)
		.animate({opacity:1.0}, 300);
		$(this).find('img').removeClass().addClass('active');
});

$(function() {
		$(".showimg").hover(function(e){
		$this = $(this);
		var $img = $("img", $this);
		if($img.length){
			$this.css("backgroundColor", "#000000");
			$img.stop(true).fadeTo(150 ,0.3, "easeInOutQuart");
		}
		var $ul = $("ul", $this);
		if($ul.length){
			$ul.stop(true).fadeTo(150, .99, "easeInOutQuart").click(function(){
				window.location = $("a", $this).attr("href");
			});
		}
	}, function(e){
		$this = $(this);
		$("img", $this).fadeTo(150, 1, "easeInOutQuart");
		var $ul = $("ul", $this);
		if($ul.length){
			$ul.fadeTo(150, 0, "easeInOutQuart");
		}
	});
});

$(function() {
		$(".descpressitem").hover(function(e){
		$this = $(this);
		var $ul = $(".hidden", $this);
		if($ul.length){
			$ul.stop(true).fadeTo(150, 1.0, "easeInOutQuart");
		}
	}, function(e){
		$this = $(this);
		var $ul = $(".hidden", $this);
		if($ul.length){
			$ul.fadeTo(150, 0, "easeInOutQuart");
		}
	});
});
$(function() {
		$(".pp").hover(function(e){
		$this = $(this);
		var $ul = $(".hidden", $this);
		if($ul.length){
			$ul.stop(true).fadeTo(150, 1.0, "easeInOutQuart");
		}
	}, function(e){
		$this = $(this);
		var $ul = $(".hidden", $this);
		if($ul.length){
			$ul.fadeTo(150, 0, "easeInOutQuart");
		}
	});
});

$(function() {
		$(".pp2").hover(function(e){
		$this = $(this);
		var $ul = $(".hidden", $this);
		if($ul.length){
			$ul.stop(true).fadeTo(150, 1.0, "easeInOutQuart");
		}
	}, function(e){
		$this = $(this);
		var $ul = $(".hidden", $this);
		if($ul.length){
			$ul.fadeTo(150, 0, "easeInOutQuart");
		}
	});
});
$(function() {
		$(".pp3").hover(function(e){
		$this = $(this);
		var $ul = $(".hidden", $this);
		if($ul.length){
			$ul.stop(true).fadeTo(150, 1.0, "easeInOutQuart");
		}
	}, function(e){
		$this = $(this);
		var $ul = $(".hidden", $this);
		if($ul.length){
			$ul.fadeTo(150, 0, "easeInOutQuart");
		}
	});
});
$(function() {
		$(".pp4").hover(function(e){
		$this = $(this);
		var $ul = $(".hidden", $this);
		if($ul.length){
			$ul.stop(true).fadeTo(150, 1.0, "easeInOutQuart");
		}
	}, function(e){
		$this = $(this);
		var $ul = $(".hidden", $this);
		if($ul.length){
			$ul.fadeTo(150, 0, "easeInOutQuart");
		}
	});
});









	
$('#tab1').click(function() {
	if ($('#tab1').hasClass('current')){
	
} else {
				$('#tabsinner').animate({opacity: 0.0}, 500, "easeInOutQuart");
					$('#tabsinner').animate({left: 0}, 0, "easeInOutQuart");
					$('.ieimg').animate({opacity: 1.0},0);
					$('#tabsinner').animate({opacity: 1.0}, 500, "easeInOutQuart");
					$("#tab2").removeClass();
					$("#tab3").removeClass();
				$("#tab1").addClass("current");
}
});

$('#tab2').click(function() {
		if ($('#tab2').hasClass('current')){
	
} else {			
				$('#tabsinner').animate({opacity: 0.0}, 500, "easeInOutQuart");
					$('#tabsinner').animate({left: -314}, 0, "easeInOutQuart");
					$('#tabsinner').animate({opacity: 1.0}, 500, "easeInOutQuart");
					$("#tab1").removeClass();
					$("#tab3").removeClass();
				$("#tab2").addClass("current");
}
});

$('#tab3').click(function() {
		if ($('#tab3').hasClass('current')){
	
} else {			
				$('#tabsinner').animate({opacity: 0.0}, 500, "easeInOutQuart");
					$('#tabsinner').animate({left: -628}, 0, "easeInOutQuart");
					$('#tabsinner').animate({opacity: 1.0}, 500, "easeInOutQuart");
					$("#tab1").removeClass();
					$("#tab2").removeClass();
				$("#tab3").addClass("current");
}
});





});

