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



$("#menu1_bt_drawings").livequery('click', function(event) {
													   
	$("#menu_photography").slideUp(500 ,function () {
		if ($("body").hasClass("nobg"))
		$("body").removeClass("nobg");
		$("body").addClass("bodybg");
		$("#main_content_black").fadeOut(500,function(){
		$("#contactdiv").fadeOut("fast");
        $("#main_content").fadeOut(500);
		$("#navigation_works1").fadeOut("Slow",function(){
	    $("body").animate({backgroundColor: '#ffffff'},"slow",function(){
		$("#bgimage").fadeIn("slow");
		$("#menu_drawings").load('include/menu_drawings.php',function(){
		//$("#container").css({ width:"960px"});
		//$("#content").css({ width:"960px"});
		$(this).fadeIn("slow","easeOutQuad");
		$('#main_content').load('include/thumbnail_drawings.php?category=8',function(){
		$("#navigation_works2").fadeIn(500,function(){
        $('#main_content').fadeIn(500);
		$("#menu2_newsletter").fadeIn(500,"easeInOutQuad");
		$("#shoppingcart2").fadeIn(600,"easeInOutQuad");

		});});});});});});}); return false
		}); 

//Gallery

	$(".menuheaderphoto").livequery('click', function(event) {
    obj = $(this);
    obj.id = obj.attr("id"); 
	$("#main_content_black").fadeOut(500,function(){
    $("#main_content").fadeOut(500,function(){
	//if ($("#menu_drawings").css({position:"relative"}))
	//$("#menu_drawings").css({position:"absolute"});
	$('#main_content_black').load('include/thumbnail_detail.php?subcategory='+ obj.id,function(){
	$('#main_content_black').fadeIn(500);
});});
});
return false;
}); 
$("a.header_photography").livequery('click', function(event) {
    obj = $(this);
    obj.id = obj.attr("id"); 
	$("#main_content_black").fadeOut(500,function(){
	$("#main_content").fadeOut(500,function(){
	$('#main_content_black').load('include/zoom_drawings2.php?project_id='+ obj.id,function(){
	$('#main_content_black').fadeIn(500);
});});
});
return false;
}); 



$('.hoverimgphotography')
    .livequery(function(){ 
    // use the helper function hover to bind a mouseover and mouseout event 
        $(this) 
            .hover(function() { 
				 $('#description_tn' + this.id).show("slow","easeOutQuart");
            }, function() { 
				 $('#description_tn' + this.id).hide("slow","easeOutQuart");
            }); 
    }, function() { 
        // unbind the mouseover and mouseout events 
        $(this) 
            .unbind('mouseover') 
            .unbind('mouseout'); 
    }); 
	

$('.hoverimgphotography').livequery('click', function(event) {
    obj = $(this);
    obj.id = obj.attr("id");
	$("#main_content_black").fadeOut(500,function(){
  //  if ($("#menu_drawings").css({position:"relative"}))
	//$("#menu_drawings").css({position:"absolute"});
	$('#main_content_black').load('include/zoom_drawings2.php?project_id='+ obj.id,function(){
	$('#main_content_black').fadeIn(500);
}); 
}); 

return false;
}); 















//end white.js
});

