/* font replace */
     $(function(){
		Cufon.replace('h1, h2, h3, #menu ul li span');
		<!-- Cufon.replace('p', { fontFamily: 'FbCaligraph regular' }); -->
		CufonRTL.RTL('h1, h2, h3, #menu ul li span');
	});
	 
/* RTL */

var CufonRTLClass=(function(){
		this.RTL = RTL;
  


   function RTL(tagName) {
        $(tagName)/*.css('font-size', '19px')*/.wrapInner('<bdo class="cufon" dir=ltr></bdo>');
		
		$('bdo.cufon').each(function()    {
		var word = $(this).text();
		var splittext = word.split("");
		var reversedtext = splittext.reverse();
		var newtext = reversedtext.join("");
		$(this).text(newtext);
		});
		
    }
});

CufonRTL = new CufonRTLClass;

/* fade page transition */


$(document).ready(function() {
	
	$("body").css("display", "none");

    $("body").fadeIn(2000);
    
	$("li a").click(function(event){
		event.preventDefault();
		linkLocation = this.href;
		$("body").fadeOut(1000, redirectPage);		
	});
		
	function redirectPage() {
		window.location = linkLocation;
	}
	
});



