var Roxlu = new Class({
	initialize: function() {
		this.initTransparent();
		this.initCufon();
		
	}
	
	,initCufon: function() {
		Cufon.replace('h1');
		Cufon.now();
	}
	,initImageWidths: function() {
		
		document.getElements('img').each(function(oEl){
			
			var s = oEl.getSize();
			if(s.y > 140) {
				if(s.x <= 500) {
					var d = 500-s.x + 125;
					oEl.setStyle('margin-left',d);
				}
			}
			if (s.x > 625) {
				oEl.setStyle('width',625);
			}
			//if(oEl.getSize().y  > 140)
			//	oEl.setStyle('width', "624px");
			oEl.show();
			oEl.setStyle('visibility','visible');
		});
		$$('.carousel').createCarousel({
		});
	}
	,initTransparent: function() {
		try {
			var site = $('site');
			if(site) {
				if(site.hasClass("of")) {
					document.getElement('body').addClass("transparent");
				}
			}	
		}
		catch (oEx) {
		}
	}
});

var roxlu;

window.addEvent('domready',function() {
	roxlu = new Roxlu();
	//SyntaxHighlighter.all();
});

window.addEvent('load',function() {
	//roxlu.initImageWidths();
});



