//full screen
document.fullscreen=function(){					
	h= document.body.clientHeight; 			
	$('body').css('overflow','hidden')
	$('body').height(h);
}

//dialog
function dialog(e,width){
	if(width==null){
		width='420px';
	}
	e.dialog("isOpen")==undefined && e.dialog({'width':width});
	e.dialog("isOpen")==false && e.dialog("open");
}

//lander
function lander(){	
	/*
	$("img").error(function(){			
		$(this).attr('src','/images/lander/'+$(this).attr('src'));
	});
	*/ 
	$("a[href*='_index.php']").text('TOP')
	$("a[href*='_index.php']").attr('href','#');	
}

Array.prototype.remove=function(dx)
{
  if(isNaN(dx)||dx>this.length){return false;}
  for(var i=0,n=0;i<this.length;i++)
  {
      if(this[i]!=this[dx])
      {
          this[n++]=this[i]
      }
  }
  this.length-=1
}

String.prototype.allreplace=function(find,replace){	
	var regS = new RegExp(find,"gi");
	return this.replace(regS,replace); 
}
