if(self!=top)document.images?top.location.replace(window.location.href):(top.location.href=window.location.href);
Cufon.replace('#head li a:not(.cur)',{fontFamily:'cielo',textShadow:'0 2px 3px #c3b89d',hover:{textShadow:'none',color:'#f7f2e6'}});
Cufon.replace('#head li a.cur,button,a.button',{fontFamily:'cielo'});

$.placeholder=function(e){
	var i=$(this),v=i.val(),t=this.title;
	i.val(e.type=='blur'?v||i.addClass('empty')&&t:(i.removeClass('unvalid empty').val()==t?'':v));
}

$.validate=function(css,obj,fail){
	$(css).each(function(ok,el){
		if(ok=el.value==el.title?false:el.value)$.each(obj,function(n,fn){if(el.name==n&&!fn.call(el,el.value))ok=false});
		if($(el)[ok?'removeClass':'addClass']('unvalid')&&!ok)fail=true;
	});
	return !fail;
}

$.support.opacity||$(function(){
	setTimeout(function(){$('#head ul').children().appendTo('#head ul')},100);
	var filter='progid:DXImageTransform.Microsoft.AlphaImageLoader(src=\'@\',sizingMethod=\'scale\')';
	$('img[src$=png]').each(function(i,el){(i=$(el)).css({filter:filter.replace('@',el.src),width:i.width(),height:i.height()}).attr('src','g/blank.gif')});
});
