var Site = {
	

	
	start: function(){
		
		if ($('imj_home_item')) Site.parseimj_home_items();

	},
	
	parseimj_home_items: function(){
		var imj_home_items = $$('#imj_home_item .imj_home_item');
		var fx = new Fx.Elements(imj_home_items, {wait: false, duration: 200, transition: Fx.Transitions.quadOut});
		imj_home_items.each(function(imj_home_item, i){
			imj_home_item.addEvent('mouseover', function(e){
				e = new Event(e).stop();
				var obj = {};
				obj[i] = {
					'width': [imj_home_item.getStyle('width').toInt(), 578]
				};
				current = i;
				imj_home_items.each(function(other, j){
					if (other != imj_home_item){
						var w = other.getStyle('width').toInt();
						if (w != 100) obj[j] = {'width': [w, 100]};
					}
				});
				fx.start(obj);
			});
		});
		
		document.addEvent('mouseover', function(e){
			e = new Event(e);
			var rel = e.relatedTarget;
			if (!rel) return;
			if (rel.hasClass && (rel.hasClass('imj_home_items') || rel.hasClass('imj_home_item') || rel.id == 'imj_home_item')){
				var obj = {};
				imj_home_items.each(function(other, j){
					obj[j] = {'width': [other.getStyle('width').toInt(), 219]};
				});
				fx.start(obj);
			};
		});
	}
};

window.addEvent('domready', Site.start);

window.addEvent('domready', function(){
 	var accordionActive = false;
 	var accordion = new Accordion('h3.atStart', 'div.atStart', {
 		opacity: false,
 		onActive: function(toggler, element){
	 		toggler.setStyle('color', '#663399');
			if(accordionActive){
				tmp=$(element).getPrevious().innerHTML;
				if(cmsdesigmode == false) { _gaq.push(['_trackEvent', 'Accordion', 'Open', tmp]); }
			}
			accordionActive=true;
 		},
		onBackground: function(toggler, element){
 			toggler.setStyle('color', '#919191');
 		}
 	}, $('accordion'));

	var allAnchors = $(document.body).getElements('a');
	allAnchors.each(function(other, j){
		if(allAnchors[j].href.indexOf('file.cfm/') != -1){
			allAnchors[j].addEvent('click', function(){
			   lTemp = allAnchors[j].href.split("/");//alert(allAnchors[j].href);
			   if(cmsdesigmode == false) { _gaq.push(['_trackEvent', 'Downloads', 'PDF', lTemp[lTemp.length-1]]); }
			});
		}
	});
	
 }); 



if(typeof sIFR == "function"){

	sIFR.replaceElement(named({sSelector:"h1.pageTitle", sFlashSrc:"/common/img/template08/praxis.swf", sColor:"#ffffff", nHeight:98,  nPaddingTop:0, nPaddingBottom:0, sFlashVars:"",sWmode:"transparent"}));
	
};






