window.addEvent('domready', function() {
			if($('faq-accordion')) {
				$$('h3.heading').each(function(item, index){
				if(item.hasClass('active')){
					item.setStyle('color', '#ccc');	
					item.setStyle('background-image','url(/graphics/question.gif)');
				}
				item.addEvent('mouseover', function() {
						item.setStyle('background-color','#edeff0');
						//item.setStyle('background-image','url(/graphics/question.gif)');
						//item.setStyle('background-position','left top');
				});
				item.addEvent('mouseout', function() {
						if(item.hasClass('active')){
							item.setStyle('background-color','transparent');
						}
						else {
							item.setStyle('background-color','transparent');
							item.setStyle('background-image','url(/graphics/layout/arrow-down.gif)');
							item.setStyle('background-position','left center');
						}
				});
					
		});

			var accordion = new Accordion('h3.heading','div.show', {
				opacity: false,
				onActive: function(toggler, element){
						toggler.addClass('active');
						toggler.setStyle('color', '#26800e');
						toggler.setStyle('background-image','url(/graphics/question.gif)');
						toggler.setStyle('background-position','left top');
					},
	 
				onBackground: function(toggler, element){
						toggler.removeClass('active');
						toggler.setStyle('color', '#3e57ae');
						toggler.setStyle('background-image','url(/graphics/layout/arrow-down.gif)');
						toggler.setStyle('background-position','left center');
				}
	
			}, $('faq-accordion'));
		}	
		$$('.toggler').each(function(item,index) {
			var bc = item.getStyle('background-color');
			item.addEvent('mouseover', function() {
				item.setStyle('background-color','#edeff0');
			});	
			item.addEvent('mouseout', function() {
				item.setStyle('background-color',bc);
			});
		});
	});

/*  DO MOUSEOVERS  */
/*function mo(state,image)
{
	var src = image.src, ext = src.substring(src.lastIndexOf('.'),src.length);
	image.src = state ? src.replace(ext,'-mo' + ext) : src.replace('-mo' + ext,ext); return;
}

/*  GET AN ELEMENT  */
/*if(typeof $ != 'function') { function $(element) { return document.getElementById(element); } } */
	


var afterSlide = new Class({
	initialize:function(fullSize, beforeCaption, beforeImage, afterCaption, afterImage) {
		this.szFull=fullSize;  
		this.szSmall=0;
		this.befCap=$(beforeCaption);                              
		this.befImg=$(beforeImage);  
		this.aftCap=$(afterCaption);                              
		this.aftImg=$(afterImage);
		this.setMouseovers();
	},
	setMouseovers:function(){
		var before = new Fx.Style(this.befImg,'width', {wait: false, duration: 500});
		var after = new Fx.Style(this.aftImg,'width',{wait: false, duration: 500});
		this.befCap.addEvent('mouseover',function() {
					if(this.befImg.getStyle('width').toInt() == 0) {
						before.start(this.szSmall, this.szFull);	
						after.start(this.szFull, this.szSmall);
					}
			}.bind(this));
		this.aftCap.addEvent('mouseover',function() {
				
					if(this.aftImg.getStyle('width').toInt() == 0) {
						after.start(this.szSmall, this.szFull);	
						before.start(this.szFull, this.szSmall);
					}
			}.bind(this));
	}
	

	

});
