// Custom fonts
Cufon.replace('.transputi h1, .boximgwbg h2, .boximg h2, h1, .puti span'); 
Cufon.replace('#footer h2', {fontFamily : "Eras Light ITC"}); 
Cufon.replace('.fetbox h3, .firstlast a, h2.daku, h1.daku, .content h2', {fontFamily : "Eras Medium ITC"}); 

//p7 auto trigger class

//jQuery (function (){
//jQuery ("#p7PMnav li:has('ul')").find('a:first').addClass("p7PMtrg"); 
//jQuery ("#p7PMnav li:has('ul')").find('li:first').addClass("first"); 
//jQuery("#p7PMnav ul li a").each(function() {  var html = jQuery(this).text(); jQuery(this).html("<span>" + html + "</span>"); } );
//});

jQuery(function() {
     setTimeout(function() {
          jQuery(".ban").css("display","block");
          }, 1000 );
} );
//
jQuery(function() {
     setTimeout(function() {
          jQuery(".arrow-bx01").css("display","block");
      }, 1000 );
} );

//search
jQuery(function(){
    jQuery(".btn_s").click(function(){
    var search = jQuery("input#CAT_Search").val();
    if(search == 'PROPERTY FINDER'){
        alert('Search box is empty');
        return false;
    }
    });
});
//country
jQuery(function(){
    jQuery("#country:first").click("submit")
});

//toggle
jQuery(".hide").hide();
//jQuery("div.clickdre").click(function() {
//jQuery(".hide").slideToggle("normal");
//});
//pagination
jQuery(function(){
       jQuery(".pag-prev").css("text-transform", "uppercase");
       jQuery(".pag-next").css("text-transform", "uppercase");
});
//opacity for prev and next button
jQuery(".arrow1 a img").each(function(){
		jQuery(this).css("opacity","0.5");
		jQuery(this).hover(function(){
		jQuery(this).animate({"opacity": 1.0}, 100)
	},function(){
		jQuery(this).animate({"opacity": 0.5},100)
	});
});

jQuery(".arrow2 a img").each(function(){
		jQuery(this).css("opacity","0.5");
		jQuery(this).hover(function(){
		jQuery(this).animate({"opacity": 1.0}, 100)
	},function(){
		jQuery(this).animate({"opacity": 0.5},100)
	});
});
//if no featured image
jQuery('#innerpage .fetimg').each(function(){
	var junald = jQuery(this).find("img").attr('src');
		if(junald == undefined){
		jQuery(this).html('<div class="no_img">NO IMAGE</div>');
	}
});
jQuery(function(){
	jQuery(".edit a").text("Edit");
});
