// JavaScript Document

window.templatePath = '/webdesign/templates/rt_refraction_j15';
		window.uri = '/webdesign';
		window.currentStyle = 'custom';
	
window.addEvent('domready', function() {
		var modules = ['side-mod', 'showcase-panel'];
		var header = ['h3','h1'];
		RokBuildSpans(modules, header);
	});
InputsExclusion.push('.content_vote','#login-module')
window.addEvent('domready', function() {
		var featured = $('featuremodules'), featOpacity = 0.7;
		if (featured) {
			var featChildren = featured.getChildren();
			if (featChildren.length > 1) {
				featChildren.each(function(feat, i) {
					var color = feat.getStyle('color');
					var lnks = feat.getElements('a');
					var h3s = feat.getElements('h3');
					
					var fxColors = [];
					if (lnks.length > 0) {
						var lnkColor = feat.getElement('a').getStyle('color');
						lnks.each(function(lnk, i) { fxColors.push(new Fx.Style(lnk, 'color', {wait: false}).set(color)); });
					}
					
					var fxH3s = [];
					if (h3s.length > 0) {
						var h3Color = feat.getElement('h3').getStyle('color');
						h3s.each(function(h3, i) { fxH3s.push(new Fx.Style(h3, 'color', {wait: false}).set(color));	});
					}
					
					var fx = new Fx.Style(feat, 'opacity', {duration: 300, wait: false}).set(featOpacity);
					
					feat.addEvents({
						'mouseenter': function() {
							fx.start(1);
							if (fxColors.length) { fxColors.each(function(fxC) { fxC.start(lnkColor); }); }
							if (fxH3s.length) { fxH3s.each(function(fxH) { fxH.start(h3Color); }); }
						},
						'mouseleave': function() {
							fx.start(featOpacity);
							if (fxColors.length) { fxColors.each(function(fxC) { fxC.start(color); }); }
							if (fxH3s.length) {	fxH3s.each(function(fxH) { fxH.start(color); }); }
						}
					})
				});
			}
		}	
	});
