window.addEvent('domready', function(){
var menu = $$('#menu li a');
menu.each(function(element) {
 
	var fx = new Fx.Styles(element, {duration:500, wait:false});
 
	element.addEvent('mouseenter', function(){
		fx.start({
			'color': '#CEDEE7'
		});
	});
 
	element.addEvent('mouseleave', function(){
		fx.start({
			'color': '#F1F1F1'
		});
	});
 
});

var url = $$('.url a');
url.each(function(element) {
 
	var fx = new Fx.Styles(element, {duration:300, wait:false});
 
	element.addEvent('mouseenter', function(){
		fx.start({
			'color': '#B2B3B3'
		});
	});
 
	element.addEvent('mouseleave', function(){
		fx.start({
			'color': '#939494'
		});
	});
	});
	
var anch = $$('#container a');
anch.each(function(element) {
 
	var fx = new Fx.Styles(element, {duration:300, wait:false});
 
	element.addEvent('mouseenter', function(){
		fx.start({
				'color': '#0F0F0F'
		});
	});
 
	element.addEvent('mouseleave', function(){
		fx.start({
			'color': '#5E7F92'
		});
	});
	});
var input = $$('.input');
input.each(function(element) {
 
	var fx = new Fx.Styles(element, {duration:300, wait:false});
 
	element.addEvent('mouseenter', function(){
		fx.start({
				 '-moz-opacity':'1',
				 'filter':'alpha(opacity=100)',
                 'opacity':'1'
		});
	});
 
	element.addEvent('mouseleave', function(){
		fx.start({
			 '-moz-opacity':'0.5',
				 'filter':'alpha(opacity=50)',
                 'opacity':'0.5'
		});
	});
	
	

});

var input = $$('.gomb');
input.each(function(element) {
 
	var fx = new Fx.Styles(element, {duration:300, wait:false});
 
	element.addEvent('mouseenter', function(){
		fx.start({
				 '-moz-opacity':'1',
				 'filter':'alpha(opacity=100)',
                 'opacity':'1'
		});
	});
 
	element.addEvent('mouseleave', function(){
		fx.start({
			 '-moz-opacity':'0.8',
				 'filter':'alpha(opacity=80)',
                 'opacity':'0.8'
		});
	});
	
	

});

var dl = $$('#counter');
dl.each(function(element) {
 
	var fx = new Fx.Styles(element, {duration:500, wait:false});
 
	element.addEvent('mouseenter', function(){
		fx.start({
				 '-moz-opacity':'1',
				 'filter':'alpha(opacity=100)',
                 'opacity':'1'
		});
	});
 
	element.addEvent('mouseleave', function(){
		fx.start({
			 '-moz-opacity':'0.5',
				 'filter':'alpha(opacity=50)',
                 'opacity':'0.5'
		});
	});
	
	

});



var canch = $$('#content a');
canch.each(function(element) {
 
	var fx = new Fx.Styles(element, {duration:300, wait:false});
 
	element.addEvent('mouseenter', function(){
		fx.start({
				'color': '#0F0F0F'
		});
	});
 
	element.addEvent('mouseleave', function(){
		fx.start({
			'color': '#5E7F92'
		});
	});
	});

var proba = $$('#try');
proba.each(function(element) {
 
	var fx = new Fx.Styles(element, {duration:300, wait:false});
 
	element.addEvent('mouseenter', function(){
		fx.start({
				'color': '#0F0F0F'
		});
	});
 
	element.addEvent('mouseleave', function(){
		fx.start({
			'color': '#5E7F92'
		});
	});
	});

/*
$$('a').addEvent('click', function(e) {
								  
	e = new Event(e).stop();
	//document.getElementById('myAnchor').href="http://www.w3schools.com";
//var x=$('myElement').getElements('a'); 
for (var i = 0; i < document.links.length; i++) {
alert(document.links[i].href);}

 
	var url = x.href;
	//document.write.url;
	//"http://htpasswd.i-connector.com";
 
	/**
	 * The simple way for an Ajax request, use onRequest/onComplete/onFailure
	 * to do add your own Ajax depended code.
	 */
	/*new Ajax(url, {
		method: 'get',
		update: $('body')
	}).request();
});
 
	

*/
													





});
 function show() {
new Fx.Style( "like", 'top', {duration: 800 } ).start(-250,0);
new Fx.Style( "wrapper", 'height', {duration: 800 } ).start(33,263);
new Fx.Style( "menu", 'opacity', {duration: 500} ).start(1,0);
new Fx.Style( "url", 'opacity', {duration: 500} ).start(1,0);
}
 function hide() {
new Fx.Style( "menu", 'opacity', {duration: 1000 } ).start(0,1);
new Fx.Style( "url", 'opacity', {duration: 1000 } ).start(0,1);
new Fx.Style( "like", 'top', {duration: 500} ).start(0,-250);
new Fx.Style( "wrapper", 'height', {duration: 500 } ).start(263,33);
}