function position(id){
	if(navigator.appName=="Netscape" || navigator.appName=="Mozila Firefox" || navigator.appName=="Opera" || navigator.appName=="Safari"){
		screenwidth = window.innerWidth;
		screenheight = window.innerHeight;	
	}else if(navigator.appName=="Microsoft Internet Explorer"){
		screenwidth =  document.documentElement.offsetWidth;
		screenheight =  document.documentElement.offsetHeight;
	}
	
	Img = new Image(); 
	Img.src = document.getElementById('img'+id).getElementsByTagName('img')[0].src;
	x = Img.width;
	y = Img.height;
	
	if (y > screenheight){
		dH = screenheight;
		dW = parseInt((x * dH) / y, 10);
		document.getElementById('img'+id).style.position='fixed';
		document.getElementById('img'+id).getElementsByTagName('img')[0].height = dH;
		document.getElementById('img'+id).style.top=((screenheight/2)-(dH/2))+'px';
		document.getElementById('img'+id).style.left=((screenwidth/2)-(dW/2))+'px';
		document.getElementById('img'+id).style.zIndex='200';
	} else if(x > screenwidth) {
		dW = screenwidth;
		dH = parseInt((y * dW) / x, 10);
		document.getElementById('img'+id).style.position='fixed';
		document.getElementById('img'+id).getElementsByTagName('img')[0].width = dW;		
		document.getElementById('img'+id).style.top=((screenheight/2)-(dH/2))+'px';
		document.getElementById('img'+id).style.left=((screenwidth/2)-(dW/2))+'px';
		document.getElementById('img'+id).style.zIndex='200';
	}else{
		Img = new Image(); 
		Img.src = document.getElementById('img'+id).getElementsByTagName('img')[0].src;
		x = Img.width;
		y = Img.height;
		document.getElementById('img'+id).style.minwidth=x+'px';
		document.getElementById('img'+id).style.minHeight=y+'px';
		document.getElementById('img'+id).style.position='fixed';
		document.getElementById('img'+id).style.top=((screenheight/2)-(y/2))+'px';
		document.getElementById('img'+id).style.left=((screenwidth/2)-(x/2))+'px';
		document.getElementById('img'+id).style.zIndex='200';
	} 
	}

