jQuery.noConflict();

// JavaScript Document
jQuery(document).ready(function () {
								 
								 
			//Vertical Sliding
				jQuery('.portfolio').hover(function(){
					jQuery(".innerinfo", this).stop().animate({bottom:'0px'},{queue:false,duration:300});
				}, function() {
					jQuery(".innerinfo", this).stop().animate({bottom:'-100px'},{queue:false,duration:300});
				});					 
								 
			
			jQuery('.hidden img,.content .portfolio-image img, .blog-image img').hide();//hide all the images on the page

});

			var i = 0;//initialize
			var int=0;//Internet Explorer Fix
			jQuery(window).bind("load", function() {//The load event will only fire if the entire page or document is fully loaded
			var int = setInterval("doThis(i)",300);//500 is the fade in speed in milliseconds
			});

			function doThis() {
			var images = jQuery('img').length;//count the number of images on the page
			if (i >= images) {// Loop the images
			clearInterval(int);//When it reaches the last image the loop ends
			}
			jQuery('.hidden img:hidden, .content .portfolio-image img:hidden, .blog-image img:hidden').eq(0).fadeIn(300);//fades in the hidden images one by one
			
			
			i++;//add 1 to the count
	}

jQuery(document).ready(function(){
				   
			Cufon.replace('h1,h2,.intro p');	
			
			 
			jQuery(".portfolio-image").hover(function(){
			jQuery(this).stop().fadeTo("medium", 0.3);
			},function(){
			jQuery(this).stop().fadeTo("slow", 1.0); 
			});
			
			// Image fade - blog image
			jQuery(".blog-image").hover(function(){
			jQuery(this).stop().fadeTo("medium", 0.3);
			},function(){
			jQuery(this).stop().fadeTo("slow", 1.0); 
			});
			
			
			// Image fade - Social media buttons 
			jQuery(".socialmedia img").fadeTo("fast", 0.3); 
			jQuery(".socialmedia img").hover(function(){
			jQuery(this).stop().fadeTo("medium", 1.0); 
			},function(){
			jQuery(this).stop().fadeTo("medium", 0.3); 
			});
			
			
			// Image fade - prev/next buttons in slideshow
			jQuery(".prev").fadeTo("fast", 0.5); 
			jQuery(".prev").hover(function(){
			jQuery(this).stop().fadeTo("medium", 1.0); 
			},function(){
			jQuery(this).stop().fadeTo("medium", 0.5); 
			});
			
			jQuery(".next").fadeTo("fast", 0.5); 
			jQuery(".next").hover(function(){
			jQuery(this).stop().fadeTo("medium", 1.0);
			},function(){
			jQuery(this).stop().fadeTo("medium", 0.5); 
			});
			
			
			jQuery("#logo").hover(function(){
			jQuery(this).stop().fadeTo("medium", 0.5);
			},function(){
			jQuery(this).stop().fadeTo("medium", 1.0); 
			});
			
			 jQuery.each(jQuery.browser, function(i, val) {
	 		if(jQuery.browser.msie){
      
   				}else{
      
   
			jQuery("#menu ul li.current_page_item a, a.lightbtn,a.darkbtn ").fadeTo("fast", 0.8); 
			jQuery("#menu ul li.current_page_item a, a.lightbtn,a.darkbtn").hover(function(){
			jQuery(this).stop().fadeTo("fast", 1.0);
			},function(){
			jQuery(this).stop().fadeTo("medium", 0.8); 
			});
			
	
}
								});
		


		
		
		
	});



			


// Used for hiding popup div in contact form
function hidediv() { 
if (document.getElementById) { // DOM3 = IE5, NS6 
document.getElementById('hideShow').style.visibility = 'hidden'; 
} 
else { 
if (document.layers) { // Netscape 4 
document.hideShow.visibility = 'hidden'; 
} 
else { // IE 4 
document.all.hideShow.style.visibility = 'hidden'; 
} 
} 
}


