// JavaScript Document

var imageWindow = '';

function ImageOpen(Id){
	var image = document.getElementById(Id);
	if(image)
	{
		
		path = new String(image.src);
		newpath = path.replace("/thumbs/", "/src/");
		image = new Image() 
		image.src = newpath;

		if(imageWindow)
			imageWindow.close();
			
		imageWindow = window.open(newpath,'image','left='+ (self.screen.width - image.width) / 2 +',top='+ (self.screen.height - image.height) / 2 +',width='+ image.width +',height='+ image.height+',toolbar=NO,resizable=YES,menubar=NO,status=NO,location=NO');	

	}

}