$(document).ready(function(){
	/*setTimeout(popup, 2000);
	var bottom = "-200px";
	
	function popup(){	$('.slidebox').find('.linkspopup').animate({ bottom : bottom}, {queue: false});}
	$('.slidebox').bind({
	  mouseenter: function() {
		$(this).find('.linkspopup').animate({ bottom : '0'}, {queue: false});
	  },
	  mouseleave: function() {
		$(this).find('.linkspopup').animate({ bottom : bottom}, {queue: false});	
	  }
	});*/
});	

function cleanOnFocus(field,defaultText){
	try{
		if(!field.tagName == "INPUT" || !field.type=="text" || !field.value)
			return false;
		if(field.value == defaultText)
			field.value='';
	}catch(e){
		return false;
	}
}
function resetOnLostFocus(field,defaultText){
	try{
		if(!field.tagName == "INPUT" || !field.type=="text")
			return false;
		if(!field.value)
			field.value=defaultText;
	}catch(e){
		return false;
	}
}
function swapPNGs(){
	try{
		var is = $('img');
		for(var i =0;i<is.length;i++)
			if(is[i].src.search(/.png/i) > 0)
				is[i].src =  is[i].src.replace(/.png/i,".gif");
	}catch(e){}
}


