function viewfullsize(bild) {
	
	this.url = bild;
	this.loaded = false;
	
	this.image = new Image();
	this.image.src = bild;
	this.image.onload = viewfullsize.onload;
	this.image.onerror = viewfullsize.onerror;
	this.image.onabort = viewfullsize.onabort;
	
	setTimeout("viewfullsize.onComplete()", 3000);
}
	

viewfullsize.onComplete = function() {

	if (loaded == true) {
		return;
	}
	
	loaded = true;
	
	var height = image.height;
	var width =  image.width;

	var win = window.open("imagefullsize.htm?image="+url, "Bild", "width="+image.width+",height="+(image.height+15)+",left=0,top=0,modal,scrollbars=no,toolbar=no,status=no,menuebar=no,resizable=no");
	win.focus();
}


viewfullsize.onload = function() 
{
	viewfullsize.onComplete();
}

viewfullsize.onerror = function()
{
   viewfullsize.onComplete();
}

viewfullsize.onabort = function()
{
   viewfullsize.onComplete();
}

