window.addEvent('domready', function() {
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 comsupport = new Fx.Morph('com_support', {wait: false});
var netsupport = new Fx.Morph('net_support', {wait: false});
var bitcalc = new Fx.Morph('bitcalc', {wait: false});
var htmlcodes = new Fx.Morph('htmlcodes', {wait: false});
var asciicodes = new Fx.Morph('asciicodes', {wait: false});
var links = new Fx.Morph('links', {wait: false});
var content = new Fx.Morph('content', {wait: false});
var virus = new Fx.Morph('virus', {wait: false});
var main = new Fx.Morph('main', {wait: false});
 
$('com_support1').addEvent('click', function(e){
	new Event(e).stop();
 
	comsupport.start('content');
	
	new Event(e).stop();
 
	netsupport.start('net_support1');
	
	new Event(e).stop();
 
	bitcalc.start('bitcalc1');
	
	new Event(e).stop();
 
	htmlcodes.start('htmlcodes1');
	
	new Event(e).stop();
 
	asciicodes.start('asciicodes1');
	
	new Event(e).stop();
 
	links.start('links1');

	new Event(e).stop();
 
	virus.start('virus1');
	
	new Event(e).stop();
 
	content.start('content1');
	
	new Event(e).stop();
 
	main.start('main');



});

$('net_support1').addEvent('click', function(e){
	new Event(e).stop();
 
	netsupport.start('content');
	
	new Event(e).stop();
 
	comsupport.start('com_support1');
	
	new Event(e).stop();
 
	bitcalc.start('bitcalc1');
	
	new Event(e).stop();
 
	htmlcodes.start('htmlcodes1');
	
	new Event(e).stop();
 
	asciicodes.start('asciicodes1');
	
	new Event(e).stop();
 
	links.start('links1');

	new Event(e).stop();
 
	virus.start('virus1');
	
	new Event(e).stop();
 
	content.start('content1');
	
	new Event(e).stop();
 
	main.start('main');


});


$('bitcalc1').addEvent('click', function(e){
	new Event(e).stop();
 
	bitcalc.start('content');
	
	new Event(e).stop();
 
	netsupport.start('net_support1');
	
	new Event(e).stop();
 
	comsupport.start('com_support1');
	
	new Event(e).stop();
 
	htmlcodes.start('htmlcodes1');
	
	new Event(e).stop();
 
	asciicodes.start('asciicodes1');
	
	new Event(e).stop();
 
	links.start('links1');
	
	new Event(e).stop();
 
	virus.start('virus1');
	
	new Event(e).stop();
 
	content.start('content1');
	
	new Event(e).stop();
 
	main.start('main');



});

$('htmlcodes1').addEvent('click', function(e){
	new Event(e).stop();
 
	htmlcodes.start('content');
	
	new Event(e).stop();
 
	netsupport.start('net_support1');
	
	new Event(e).stop();
 
	comsupport.start('com_support1');
	
	new Event(e).stop();
 
	bitcalc.start('bitcalc1');
	
	new Event(e).stop();
 
	asciicodes.start('asciicodes1');
	
	new Event(e).stop();
 
	links.start('links1');
	
	new Event(e).stop();
 
	virus.start('virus1');
	
	new Event(e).stop();
 
	content.start('content1');
	
	new Event(e).stop();
 
	main.start('main');

});

$('asciicodes1').addEvent('click', function(e){
	new Event(e).stop();
 
	asciicodes.start('content');
	
	new Event(e).stop();
 
	netsupport.start('net_support1');
	
	new Event(e).stop();
 
	comsupport.start('com_support1');
	
	new Event(e).stop();
 
	bitcalc.start('bitcalc1');
	
	new Event(e).stop();
 
	htmlcodes.start('htmlcodes1');
	
	new Event(e).stop();
 
	links.start('links1');
	
	new Event(e).stop();
 
	virus.start('virus1');
	
	new Event(e).stop();
 
	content.start('content1');

	new Event(e).stop();
 
	main.start('main');
	
});

$('links1').addEvent('click', function(e){
	new Event(e).stop();
 
	links.start('content');
	
	new Event(e).stop();
 
	netsupport.start('net_support1');
	
	new Event(e).stop();
 
	comsupport.start('com_support1');
	
	new Event(e).stop();
 
	bitcalc.start('bitcalc1');
	
	new Event(e).stop();
 
	htmlcodes.start('htmlcodes1');
	
	new Event(e).stop();
 
	asciicodes.start('asciicodes1');

	new Event(e).stop();
 
	virus.start('virus1');
	
	new Event(e).stop();
 
	content.start('content1');
	
	new Event(e).stop();
 
	main.start('main');
});

$('virus1').addEvent('click', function(e){
	new Event(e).stop();
 
	virus.start('content');
	
	new Event(e).stop();
 
	netsupport.start('net_support1');
	
	new Event(e).stop();
 
	comsupport.start('com_support1');
	
	new Event(e).stop();
 
	bitcalc.start('bitcalc1');
	
	new Event(e).stop();
 
	htmlcodes.start('htmlcodes1');
	
	new Event(e).stop();
 
	asciicodes.start('asciicodes1');

	new Event(e).stop();
 
	links.start('links1');
	
	new Event(e).stop();
 
	content.start('content1');
	
	new Event(e).stop();
 
	main.start('main');
});

$('content1').addEvent('click', function(e){
	new Event(e).stop();
 
	content.start('content');
	
	new Event(e).stop();
 
	netsupport.start('net_support1');
	
	new Event(e).stop();
 
	comsupport.start('com_support1');
	
	new Event(e).stop();
 
	bitcalc.start('bitcalc1');
	
	new Event(e).stop();
 
	htmlcodes.start('htmlcodes1');
	
	new Event(e).stop();
 
	asciicodes.start('asciicodes1');

	new Event(e).stop();
 
	virus.start('virus1');
	
	new Event(e).stop();
 
	links.start('links1');
	
	new Event(e).stop();
 
	main.start('main');
});


$('main1').addEvent('click', function(e){
	new Event(e).stop();
 
	main.start('content');
	
	new Event(e).stop();
 
	netsupport.start('net_support1');
	
	new Event(e).stop();
 
	comsupport.start('com_support1');
	
	new Event(e).stop();
 
	bitcalc.start('bitcalc1');
	
	new Event(e).stop();
 
	htmlcodes.start('htmlcodes1');
	
	new Event(e).stop();
 
	asciicodes.start('asciicodes1');

	new Event(e).stop();
 
	virus.start('virus1');
	
	new Event(e).stop();
 
	links.start('links1');
	
	new Event(e).stop();
 
	content.start('content1');
});

});
