Fx.Morph = Fx.Styles.extend({
	start: function(className){
		var to = {};
		$each(document.styleSheets, function(style){
			var rules = style.rules || style.cssRules;
			$each(rules, function(rule){
				if (!rule.selectorText.test('\.' + className + '$')) return;
				Fx.CSS.Styles.each(function(style){
					if (!rule.style || !rule.style[style]) return;
					var ruleStyle = rule.style[style];
					to[style] = (style.test(/color/i) && ruleStyle.test(/^rgb/)) ? ruleStyle.rgbToHex() : ruleStyle;
				});
			});
		});
		return this.parent(to);
	}
});
 
Fx.CSS.Styles = ["backgroundColor", "backgroundPosition", "color", "width", "height", "left", "top", "bottom", "right", "fontSize", "letterSpacing", "lineHeight", "textIndent", "opacity"];

Fx.CSS.Styles.extend(Element.Styles.padding);
Fx.CSS.Styles.extend(Element.Styles.margin);
 
Element.Styles.border.each(function(border){
	['Width', 'Color'].each(function(property){
		Fx.CSS.Styles.push(border + property);
	});
});
 
var myMorph = new Fx.Morph('morpher', {wait: false});
$('morpher').addEvent('mouseleave', function(e){
	new Event(e).stop();
	myMorph.start('morph2');
});
$('morpher').addEvent('mouseenter', function(e){
	new Event(e).stop();
	myMorph.start('morph1');
});

var myMorph2 = new Fx.Morph('morpher2', {wait: false});
$('morpher2').addEvent('mouseleave', function(e){
	new Event(e).stop();
	myMorph2.start('morph2');
});
$('morpher2').addEvent('mouseenter', function(e){
	new Event(e).stop();
	myMorph2.start('morph1');
});

var myMorph3 = new Fx.Morph('morpher3', {wait: false});
$('morpher3').addEvent('mouseleave', function(e){
	new Event(e).stop();
	myMorph3.start('morph2');
});
$('morpher3').addEvent('mouseenter', function(e){
	new Event(e).stop();
	myMorph3.start('morph1');
});

var myMorph4 = new Fx.Morph('morpher4', {wait: false});
$('morpher4').addEvent('mouseleave', function(e){
	new Event(e).stop();
	myMorph4.start('morph2'); 
});

$('morpher4').addEvent('mouseenter', function(e){
	new Event(e).stop();
	myMorph4.start('morph1');
});



	var springer = document.getElementById ("morpher");
	springer.style.display= "block";
	springer.onclick = function() {
		window.location.href="index.php?option=com_content&task=view&id=19&Itemid=34";
	};
	var springer2 = document.getElementById ("morpher2");
	springer2.style.display= "block";
	springer2.onclick = function() {
		window.location.href="index.php?option=com_content&task=view&id=43&Itemid=46";
	};
	var springer3 = document.getElementById ("morpher3");
	springer3.style.display= "block";
	springer3.onclick = function() {
		window.location.href="index.php?option=com_content&task=view&id=17&Itemid=32";
	};
	var springer4 = document.getElementById ("morpher4");
	springer4.style.display= "block";
	springer4.onclick = function() {
		window.location.href="index.php?option=com_content&task=view&id=21&Itemid=36";
	};
