var PictureView={
	base:false,
	current:false,
	init:function(){},
	open:function(o,src,e){
		if(!this.base){
			this.base = document.getElementById("PictureView");
			this.base._body = this.base.getElementsByTagName("div")[0];
			this.base._close = this.base._body.getElementsByTagName("a")[0];
			this.base._container = this.base._body.getElementsByTagName("div")[0];
			this.base._img = this.base._body.getElementsByTagName("img")[0];
		}
		var p = compono.findElementPosition(o);
		this.base.style.top = (p.top + o.offsetHeight) + "px";
		this.base.style.left = (p.left) + "px";
		
		this.base._img.src = "";
		this.base._img.src = src;

		this.cache = new Image();
		this.cache.src = src;
		this.cache.__src = src;
		this.cache.object = this;
		this.cache.onload = function(){
			this.object.base._img.src = this.src;
		}
		this.cache.onerror = function(){
			this.src = "";
			this.src = this.__src;
		}
		
		compono.appendClassName("picture-view-openup",this.base);
	},
	close:function(o,e){
		compono.removeClassName("picture-view-openup",this.base);
		this.base._img.src = "";
	}
}