
	
	
/*
jQuery(document).ready(function(){ 
	

		jQuery("#navigation li#work_nav li").css({"opacity": "0","top": "0"});
		jQuery("#navigation li#work_nav li").animate({"opacity": "1","top": "23px"}, 500);
		jQuery("#navigation li#work").addClass("open");
});
	

$(function() {

    $("#s").focus(function() {
        if ($(this).val() == "Search...") {
            $(this).val("");
        }
    });
    
    if ($(".widget_categories li").length%2 != 0) {
        $(".widget_categories ul").append("<li><a>&nbsp;</a></li>");
    }
    
    if ($(".widget_tag_cloud a").length%2 != 0) {
        $(".widget_tag_cloud").append("<a>&nbsp;</a>");
    }
    
    $(".home li.home").removeClass("home").addClass("current_page_item");
    $("#column-wrap").append("<img src='/images/ajax-loader.gif' id='ajax-loader' />");
            
    var $mainContent = $("#main-content"),
        URL = '',
        siteURL = "http://" + top.location.host.toString(),
        $internalLinks = $("a[href^='"+siteURL+"']"),
        hash = window.location.hash,
        $ajaxSpinner = $("#ajax-loader"),
        $el, $allLinks = $("a");
        
    function hashizeLinks() {
        $("a[href^='"+siteURL+"']").each(function() {
            $el = $(this);
            
            // Hack for IE, which seemed to apply the hash tag to the link weird
            if ($.browser.msie) {
                $el.attr("href", "#/" + this.pathname)
                .attr("rel", "internal");
            } else {
                $el.attr("href", "#" + this.pathname)
                 .attr("rel", "internal");
            }
        });
    };
    
    hashizeLinks();  
        
    $("a[rel='internal']").live("click", function() {
        $ajaxSpinner.fadeIn();
        $mainContent.animate({ opacity: "0.1" });
        $el = $(this);
        $(".current_page_item").removeClass("current_page_item");
        $allLinks.removeClass("current_link");
        URL = $el.attr("href").substring(1);
        URL = URL + " #inside";
        $mainContent.load(URL, function() {
            $el.addClass("current_link").parent().addClass("current_page_item");
            $ajaxSpinner.fadeOut();
            $mainContent.animate({ opacity: "1" });
            hashizeLinks();   
        });
    });
    
    $("#searchform").submit(function(e) {
        $ajaxSpinner.fadeIn();
        $mainContent.animate({ opacity: "0.1" });
        $el = $(this);
        $(".current_page_item").removeClass("current_page_item");
        $allLinks.removeClass("current_link");
        URL = "/?s=" + $("#s").val() + " #inside";
        $mainContent.load(URL, function() {
            $ajaxSpinner.fadeOut();
            $mainContent.animate({ opacity: "1" });
            hashizeLinks();   
        });
        e.preventDefault();
    });
    
    if ((hash) && (hash != "#/")) {
        $("a[href*='"+hash+"']").trigger("click");
    }

});
*/
/*
		
below is old custome ajax js that wasnt working
jQuery(function() {




    jQuery("#s").focus(function() {
        if (jQuery(this).val() == "Search...") {
            jQuery(this).val("");
        }
    });
    
    if (jQuery(".widget_categories li").length%2 != 0) {
        jQuery(".widget_categories ul").append("<li><a>&nbsp;</a></li>");
    }
    
    if (jQuery(".widget_tag_cloud a").length%2 != 0) {
        jQuery(".widget_tag_cloud").append("<a>&nbsp;</a>");
    }
    
    jQuery(".home li.home").removeClass("home").addClass("current_page_item");
            
    var $mainContent = jQuery("#site-wrap"),
        $mainStage = jQuery("#contain"),
        $mainNavigation = jQuery("#navigation"),
        URL = '',
        siteURL = "http://" + top.location.host.toString(),
        $internalLinks = jQuery("a[href^='"+siteURL+"']"),
        hash = window.location.hash,
        $ajaxSpinner = jQuery("#ajax-loader"),
        $el, $allLinks = jQuery("a");
        
    function hashizeLinks() {
    
			jQuery("#navigation li#work_nav li").animate({"opacity": "1","top": "23px"}, 500, function() {
			   this.style.removeAttribute('filter');
			});
        jQuery("a[href^='"+siteURL+"']").each(function() {
            $el = jQuery(this);
            
            // Hack for IE, which seemed to apply the hash tag to the link weird
            if ($.browser.msie) {
                $el.attr("href", "#/" + this.pathname)
                .attr("rel", "internal");
            } else {
                $el.attr("href", "#" + this.pathname)
                 .attr("rel", "internal");
            }
            
        });
        



jQuery(document).ready(function(){



	jQuery('body').append('<div id="overlay_bg"></div>');

	jQuery("#overlay_bg").click(function(){
			 jQuery(this).animate({
				opacity: 0
			  }, 500, function() {
				// Animation complete.
				
				jQuery(this).css({"display":"none"});
			  });
			 jQuery("#large").animate({
				opacity: 0
			  }, 500, function() {
				// Animation complete.
				 jQuery(this).css({"display":"none"});
			  });
	});

	jQuery("#large").click(function(){
			 jQuery(this).animate({
				opacity: 0
			  }, 500, function() {
				// Animation complete.
			  jQuery(this).css({"display":"none"});
			  });
			 jQuery("#overlay_bg").animate({
				opacity: 0
			  }, 500, function() {
				// Animation complete.
			  jQuery("#overlay_bg").css({"display":"none"});
			  });
	});

	
	jQuery(".larger").click(function(){
			
			 jQuery("#large").animate({
				opacity: 0
			  }, 0, function() {
				// Animation complete.
			  });
			
			 jQuery("#large").animate({
				opacity: 1
			  }, 500, function() {
				// Animation complete.
			  });
			
			 jQuery("#overlay_bg").animate({
				opacity: 0
			  }, 0, function() {
				// Animation complete.
			  });
			 jQuery("#overlay_bg").animate({
				opacity: 0.8
			  }, 500, function() {
				// Animation complete.
			  });
			  jQuery("#large").css({"display":"block"});
			  jQuery("#overlay_bg").css({"display":"block"});
			  return false;
	});
	
	jQuery("#contact h2").css({"cursor":"pointer"});
	jQuery("#contact h2").click(function(){
			
		if (jQuery(this).hasClass("hide_me")){
			jQuery(this).removeClass("hide_me");
					jQuery("#wpcf7-f1-p18-o1").css({"display":"none"});
			
		}else{
			jQuery(this).addClass("hide_me");
					jQuery("#wpcf7-f1-p18-o1").css({"display":"block"});
		}

			
			
	});
	
		
	jQuery("#navigation li#info_nav a").click(function(){
		 jQuery("#navigation li#work_nav li").animate({"opacity": "0","top": "0"});
		jQuery("#navigation li#work_nav").removeClass("open");
	});
			 
	jQuery("#navigation li#clients_nav a").click(function(){
		 jQuery("#navigation li#work_nav li").animate({"opacity": "0","top": "0"});
			jQuery("#navigation li#work_nav").removeClass("open");
	});
			 
	jQuery("#navigation li#contact_nav a").click(function(){
		 jQuery("#navigation li#work_nav li").animate({"opacity": "0","top": "0"});
			jQuery("#navigation li#work_nav").removeClass("open");
	});
	jQuery("#header a").click(function(){
		 jQuery("#navigation li#work_nav li").animate({"opacity": "0","top": "0"});
			jQuery("#navigation li#work_nav").removeClass("open");
	});
			 
		
			
			


				jQuery("#navigation li#work").addClass("open");
			jQuery("#navigation li#work li a").click(function(){
				jQuery("#navigation li#work").addClass("open");
			});
			
			jQuery("#portfolio_images a").click(function(){
				jQuery("#navigation li#work").addClass("open");
			});
			
			
			
			
	jQuery("ul#subnav li:first-child").css({
		"border-right" : "2px solid #ccc" 
	});
	
 jQuery("#wrap_jax").css({"opacity": "0.5"});
		 jQuery("#wrap_jax").animate({"opacity": "0.5"}, 20, function() {
			 jQuery("#wrap_jax").animate({"opacity": "1"}, function() {
   this.style.removeAttribute('filter');
});
		});
		

});










    };
    hashizeLinks();  
        
    jQuery("a[rel='internal']").live("click", function() {
        $ajaxSpinner.fadeIn();

		 jQuery("#wrap_jax").animate({"opacity": "0.5"});
        $mainContent.animate({ opacity: "1" });
        $el = jQuery(this);
        URL = $el.attr("href").substring(1);
        URL = URL + " #inside";
        $mainContent.load(URL, function() {
            $ajaxSpinner.fadeOut();
				$mainContent.animate({ opacity: "1" });
				
            hashizeLinks();   
        });
					   

    });
				  
    
    jQuery("#searchform").submit(function(e) {
 $ajaxSpinner.fadeIn();

		 jQuery("#wrap_jax").animate({"opacity": "0.5"});
        $mainContent.animate({ opacity: "1" });
        $el = jQuery(this);
        jQuery(".current_page_item").removeClass("current_page_item");
        $allLinks.removeClass("current_link");
        URL = $el.attr("href").substring(1);
        URL = URL + " #inside";
        $mainContent.load(URL, function() {
            $el.addClass("current_link").parent().addClass("current_page_item");
            $ajaxSpinner.fadeOut();
				$mainContent.animate({ opacity: "1" });
            hashizeLinks();   
        });
        e.preventDefault();
    });
    
    jQuery("#wpcf7-f1-p18-o1").submit(function(e) {
		 $ajaxSpinner.fadeIn();

		 jQuery("#wrap_jax").animate({"opacity": "0.5"});
        $mainContent.animate({ opacity: "1" });
        $el = jQuery(this);
        jQuery(".current_page_item").removeClass("current_page_item");
        $allLinks.removeClass("current_link");
        URL = $el.attr("href").substring(1);
        URL = URL + " #inside";
        $mainContent.load(URL, function() {
            $el.addClass("current_link").parent().addClass("current_page_item");
            $ajaxSpinner.fadeOut();
				$mainContent.animate({ opacity: "1" });
            hashizeLinks();   
        });
        e.preventDefault();
        
    });
    
    if ((hash) && (hash != "#/")) {
        jQuery("a[href*='"+hash+"']").trigger("click");
    }

/**/

/*
	
		//email input box
		jQuery("#email").click(function(){
			if (jQuery("#email").val()=="Email Address"){
				jQuery("#email").val("");
			}
		});
		jQuery("#email").blur(function(){
			if (jQuery("#email").val()==""){
				jQuery("#email").val("Email Address");
			}
		});
		jQuery("#email").submit(function(){
			if (jQuery("#email").val()=="Please enter an Email Address" || $("#email").val()==""){
				alert("Please enter an Email Address");
				return false;
			}
		});
	
	
		//keyword or Item # search
		jQuery("#s").click(function(){
			if (jQuery("#s").val()=='Search the Site'){
				jQuery("#s").val("");
			}
		});
		jQuery("#s").blur(function(){
			if (jQuery("#s").val()==''){
				jQuery("#sesarch").val("Search the Site");
			}
		});
		jQuery("#s").submit(function(){
			if (jQuery("#s").val()=='Search the Site' || $("#s").val()==''){
				alert("You didn't search for anything.");
				return false;
			}
		});
	

	
});
*/
	/*	

	
	jQuery("#portfolio_images .larger").click(function(){
		if (jQuery(this).hasClass("hide_me")){
			jQuery(this).removeClass("hide_me");
			 jQuery('#portfolio_images #large').animate({
				opacity: 1,
				left: '0'
			  }, 5000, function() {
				// Animation complete.
			  });
		}else{
			jQuery(this).addClass("hide_me");
			 jQuery('#portfolio_images #large').animate({
				opacity: 0,
				left: '0'
			  }, 5000, function() {
				// Animation complete.
			  });
		}
	});

	*/
