

(function ($) {
	
	
TranslateThis({
		GA : true, // Google Analytics tracking
		wrapper : 'translate-this', // ID of the TranslateThis wrapper
		
		onLoad : function() {  }, // Callback function
		onClick : function() {  },
		onComplete : function() { 
				Cufon.replace('#menu', { fontFamily: 'Steiner', hover: true });
				Cufon.replace('h2', { fontFamily: 'Champagne' });
				Cufon.replace('.titulo_obra', { fontFamily: 'OCR', textShadow: '-1px 1px 5px #000000' });
				Cufon.replace('.formato_obra', { fontFamily: 'OCR', textShadow: '-1px 1px 5px #000000' });
				Cufon.replace('#copy', { fontFamily: 'Champagne', textShadow: '-1px 1px 5px #000000' });
		 },
		
		cookie : 'tt-lang', // Name of the cookie - set to 0 to disable
		
		panelText : 'Translate Into:', // Panel header text
		moreText : '42 More Languages »', // More link text
		busyText : 'Translating page...',
		cancelText : 'cancel',
		doneText : 'Translated by the', // Completion message text
		undoText : 'Undo »', // Text for untranslate link
		
		undoLength : 10000, // Time undo link stays visible (milliseconds)
		
		fromLang : 'es', // Native language of your site
		
		ddLangs : [ // Languages in the dropdown
			'en',
			'cs',
			'pt-PT',
			'it',
			'ru',
			'ar',
			'zh-CN',
			'ja',
			'ko'
		],
		
		noBtn : false, //whether to disable the button styling
		btnImg : 'http://x.translateth.is/tt-btn1.png',
		btnWidth : 180,
		btnHeight : 18,
		
		noImg : false, // whether to disable flag imagery
		imgHeight : 12, // height of flag icons
		imgWidth : 8, // width of flag icons
		bgImg : 'http://x.translateth.is/tt-sprite.png',
		
		maxLength : 900, // maxLength of strings passed to Google
		reparse : true // whether to reparse the DOM for each translation
	});

Cufon.replace('#menu', { fontFamily: 'Steiner', hover: true });
Cufon.replace('h2', { fontFamily: 'Champagne' });
Cufon.replace('.titulo_obra', { fontFamily: 'OCR', textShadow: '-1px 1px 5px #000000' });
Cufon.replace('.formato_obra', { fontFamily: 'OCR', textShadow: '-1px 1px 5px #000000' });
Cufon.replace('#copy', { fontFamily: 'Champagne', textShadow: '-1px 1px 5px #000000' });
	
// VERTICALLY ALIGN FUNCTION
$.fn.vAlign = function() {
	return this.each(function(i){
	var ah = $(this).height();
	var ph = $(this).parent().height();
	var mh = Math.ceil((ph-ah) / 2);
	$(this).css('margin-top', mh);
	});
};
})(jQuery);

