var ARV = {
	initialized: false,
	start: function(){
		//if( !Browser.Engine.trident || ( Browser.Engine.trident && Browser.Engine.version > 4 ) ){
			ARV.initImageZoom();
			ARV.initHighlight();
			ARV.initBricks();
			//ARV.initTabs();
		//}
	},
	initHighlight: function(){
		SyntaxHighlighter.config.clipboardSwf = CLIPBOARD_SWF;
		SyntaxHighlighter.all();
	},
	initImageZoom:function(){
		initImageZoom({overlay:false,loadImage:LOADING_GIF});
	},
	initBricks: function(){
		if(document.id('postlist')){
			document.id('postlist').masonry({
				singleMode: true,
				columnWidth: 240,
				itemSelector: '.post' 
			});
		}
		
		if(document.id('projectlist')){
			document.id('projectlist').masonry({
				singleMode: true,
				columnWidth: 240,
				itemSelector: '.projectbrick' 
			});
		}
	},
	initTabs: function(){
			this.tabs = new MGFX.Tabs('.tab','.feature',{
				autoplay: false,
				transitionDuration:500,
				slideInterval:3000,
				hover:true
			});
	}
}

window.addEvent('domready', ARV.start);
