window.addEvent('domready', function(){
	
	Cufon.now();
	Cufon.replace('.gotham_bold', { fontFamily: 'Gotham Bold' });
	Cufon.replace('.gotham_bold span', { fontFamily: 'Gotham Book' });
	Cufon.replace('.gotham_bold div', { fontFamily: 'Gotham Book' });
	Cufon.replace('.gotham_book', { fontFamily: 'Gotham Book' });
	
	$$('.input_search').each(function(item){
		var text = item.get('value');
		item.addEvent('focus', function(){
			if(this.value == text){
				this.value = '';
			}
		});
		
		item.addEvent('blur', function(){
			if(this.value == ''){
				this.value = text;
			}
		});
	});
	
	$$('select[name=archives]').addEvent('change', function(){
		location = this.options[this.selectedIndex].value;
	});
	
	new WriterSlider('#our_writers li');
});

var randDARTNumber=0;
function genSetRandDARTNumber()
{
	randDARTNumber = Math.round(Math.random()*1000000000000);
}
genSetRandDARTNumber();
