	window.addEvent('domready',function() {
		var compares = [$('compare_1'),$('compare_2'),$('compare_3'),$('compare_4')];
		compares.each(function(el) {
			
			if (window.ie){el.setAttribute('rel','width:950,height:650');}
			else {el.setAttribute('rel','width:950,height:625');}
		});
		$$('.prod_comp').setProperty('style','cursor:pointer');
	});
	
	var prodComp = new Class({
		initialize: function() {
			var that = this;
			window.addEvent('domready',function() {
				that.mBox = new MultiBox('prod_comp',{ajax: true,fixedTop:20});
			});
		},
		modSel: function(modChg,modChgPos,modFam) {
			$$('#compare_'+modChgPos+' img').each(function(el) {
				el.setProperty('src','/img/prod_lineup/car_'+modChg+'.jpg');
				el.setProperty('rel',modChg);		
			});
			$('compare_'+modChgPos+'_fam').setProperty('src','/img/compare/'+modFam+'.jpg');
			this.mBox.close();
			$('comp'+modChgPos).value=modChg;
			$('lnkPC').setAttribute('href','/comparison_results.html?'+$('compForm').toQueryString());
		}
	});
	
	var pC = new prodComp();