function clearDefaultValue ( object, defaultText ) {
	if( object.value == defaultText ) {
		object.value = '';
	}
}

function addDefaultValue ( object, defaultText ) {
	if( object.value == '' ) {
		object.value = defaultText;
	}
}

/*

var url = '/page/2/?ajax=true';

function nextPage( ){
	nextPage = new Ajax.Request(url, {
		method: 'get',
			onSuccess: function(transport) {
			$('content').update(transport.responseText)
		}
	});
}

Event.observe('nextLink', 'click', nextPage);


function nextPage( url, id ){
	alert(url);
	alert(id);
	nextPage = new Ajax.Request(url, {
		method: 'get',
			onSuccess: function(transport) {
			$(id).update(transport.responseText)
		}
	});
}

//alert($('nextLink'));
//var url = '&orderby=alphabetical&order=desc&posts_per_page=18?ajax=true';
//var url = '&orderby=date&order=desc&posts_per_page=18/page/2?ajax=true';
*/

function arrowSwitch( object ){
	if(object.innerHTML.charCodeAt(0) == '9654'){
		object.innerHTML = '&#9660;';
	}else{
		object.innerHTML = '&#9654;';
	}
}


function colorSwitch( object ){
	if(object.style.backgroundColor == 'white'){
		object.style.backgroundColor = '#F2F2F2';
	}else{
		object.style.backgroundColor = 'white';
	}
}


function showMe() {
     $$('img').each(function(object) {
          object.parentNode.style.border = 'none';
     });
}

function typeHover() {
	if($('Type').className == 'current'){
		$('Type').className = ' ';
	}else{
		$('Type').className = 'current';
	}
}


Event.observe(window, 'load', showMe);
