Cufon.replace('.qtn', {textShadow: '2px 0px 1px #000'});
Cufon.replace('#benard', {textShadow: '2px 0px 1px #000'});
Cufon.replace('#portfo, #bookmark', {textShadow: '2px 0px 1px #000'});
Cufon.replace('#path', {textShadow: '2px 0px 1px #000'});
//Cufon.replace('.hpbtit',{color: '-linear-gradient(#1454ab, #1d8fd5, rgb(0, 0, 0))',
Cufon.replace('#nav #menu-item');
																	
//hover: {
//		textShadow: '2px 2px #FFF',
//		color: '#121212'
//	}
//});

Cufon.replace('.hpbtit',{
hover: {
		textShadow: '2px 2px #FFF',
		color: '#121212'
	}
});

Cufon.replace('#comments', {textShadow: '2px 0px 1px #000'});
Cufon.replace('.comment', {textShadow: '2px 0px 1px #000'});
Cufon.replace('#respond h3,.gallerynav li', {textShadow: '2px 0px 1px #000'});
Cufon.replace('.postend h3,');


Cufon.replace('.atitle', {textShadow: '2px 0px 1px #000', color:'#0c87e3',});
Cufon.replace('.ctitle', {textShadow: '2px 0px 1px #000', color:'#243b55', hover:'true',
hover: {
		textShadow: '2px 2px #000',
		color: '#0c87e3'
	}
});




Cufon.replace('.gallerynav li, .ptitle', {textShadow: '2px 0px 1px #000', color:'#63ddff', hover:'true',});

Cufon.replace('#footer .flickr-foot', {textShadow: '2px 0px 1px #000'});
Cufon.replace('#footer .recentcomments', {textShadow: '2px 0px 1px #000'});
Cufon.replace('#footer .tags', {textShadow: '2px 0px 1px #000'});
Cufon.replace('#footer .archive', {textShadow: '2px 0px 1px #000'});
Cufon.replace('.copyright', {textShadow: '2px 0px 1px #000'});




jQuery(function(){
	jQuery('ul.sf-menu').superfish();
});

Cufon.replace('.menu-main-container .sf-menu ul li',{color:'#a9a9a9',textShadow: '2px 0px 1px #000', hover:'true',
hover: {
		textShadow: '2px 2px #000',
		color: '#4da7ea'
	}

});

Cufon.replace('.menu-main-container ul', {textShadow: '2px 0px 1px #000', hover:'true', color:'#a9a9a9',});
//Cufon.replace('#pbp', { fontFamily: 'myriad-pro' });
Cufon.replace('.mytext', {textShadow: '2px 0px 1px #000'});




$(document).ready(function(){
 
	$("a.switch_thumb").toggle(function(){
	  $(this).removeClass("swap");
	  $(".display").fadeOut("fast", function() {
	  	$(this).fadeIn("fast").addClass("hpostbox"); 
		$(this).fadeIn("fast").removeClass("display");
		$(".image")
       .removeClass("grid_3");
		 });
	  }, function () {
      $(this).addClass("swap"); 
	  $(".hpostbox").fadeOut("fast", function() {
		$(this).fadeIn("fast").addClass("display");	
		$(this).fadeIn("fast").removeClass("hpostbox");
		$(".image")
       .addClass("grid_3");

		});
	}); 
});

/*** Ajax-fetching posts ***/

        $('#pagination a').live('click', function(e){
            e.preventDefault();
            $(this).addClass('loading').text('LOADING...');
            $.ajax({
                type: "GET",
                url: $(this).attr('href') + '#loop',
                dataType: "html",
                success: function(out){
                    result = $(out).find('#loop');
                    nextlink = $(out).find('#pagination a').attr('href');
                    $('#loop').append(result.fadeIn(500));
                    $('#pagination a').removeClass('loading').text('LOAD MORE');
                    if (nextlink != undefined) {
                        $('#pagination a').attr('href', nextlink);
                    } else {
                        $('#pagination').remove();
                    }
                }
            });
        });
		
		
$(document).ready(function(){
  $.preloadCssImages(); 
  
  		$(".display .image:last").removeClass("alpha");
		$(".display .image:first").removeClass("omega");
		
		
		$("#portfolio-list li:nth-child(4n)").addClass("omega");
});


$(function() {
    $(".image #iht")
        .wrapInner("<span>")

    $(".image #iht br")
        .before("<span class='spacer'>")
        .after("<span class='spacer'>");
});
