/* $Id: site.js, v0.1 - 28/11/08 13:21:31, http://remind.remidian.com, 30c8981ef5b0c0d85be9695c19c184ee, http://remidian.com Exp $ */



/*

function toggleDiv(divid){
  if(document.getElementById(divid).style.display == 'none'){
    document.getElementById(divid).style.display = 'block';
  }else{
    document.getElementById(divid).style.display = 'none';
  }
}
*/

window.addEvent('domready', function() {
	/*
	$$('ul.nav li a').each( function( el, i) {
		//el.addEvent( 'mouseenter', function(e) {
		var f = new Fx.Morph( el, { 'duration': 200, 'wait': false});
		var backgroundfrom	= '#eeeeee';
		var backgroundto		= '#000000';
		var colorfrom	= '#000000';
		var colorto		= '#ffffff';
		
		

		el.addEvent( 'mouseenter', function(e) { 			
			// var e = new Event(e).stop(); 
			f.start({ 
				'background-color': [ backgroundfrom, backgroundto],
				'color': [ colorfrom, colorto]
			}); 
		})
		el.addEvent( 'mouseout', function(e) { 			
			// var e = new Event(e).stop(); 
			f.start({ 
				'background-color': [ backgroundto, backgroundfrom],
				'color': [ colorto, colorfrom ]
			});  
		})
	})
	*/
	
	var _fxs1 = new Fx.Slide( 'archives', {
		duration: 160, 
		transition: Fx.Transitions.Elastic.pow
	});
	_fxs1.hide();
	$('archives').setStyle( 'display', 'block');


	$('t-archives').addEvent( 'click', function(e){
		var e = new Event(e).stop();
		_fxs1.toggle();
	})
	
	new SmoothScroll( { duration: 300});
	
})
