var s;
var IE = document.all?true:false
if (!IE) document.captureEvents(Event.MOUSEMOVE)

document.onmousemove = getMouseXY;

var tempX = 0
var tempY = 0
var cx = 0
var cy = 0

function getMouseXY(e) {
  if (IE) { // grab the x-y pos.s if browser is IE
    tempX = event.clientX + document.body.scrollLeft
    tempY = event.clientY + document.body.scrollTop
  } else {  // grab the x-y pos.s if browser is NS
    tempX = e.pageX
    tempY = e.pageY
  }  
  // catch possible negative values in NS4
  if (tempX < 0){tempX = 0}
  if (tempY < 0){tempY = 0}  
  // show the position values in the form named Show
  // in the text fields named MouseX and MouseY
  cx = tempX
  cy = tempY
  return true
}


function rsm(imaj, yazi){

	
	clearTimeout(s);
	var w = document.body.clientWidth;
	var h = document.body.clientHeight;
	
	document.getElementById("koca_resim").style.width ='600px';
	document.getElementById("koca_resim").style.height ='600px';	
	
	var px, py, rw, rh;
	

	
	px = Math.floor(w/2)-100;
	py = Math.floor(h/2)-100;	
	
	px = cx - 300;
	py = cy - 300;
	
	document.getElementById("koca_resim").style.left=px+'px';
	document.getElementById("koca_resim").style.top=py+'px';
	document.getElementById("resim_alani").innerHTML = '<img id = "bbbb" src="'+imaj+'">';
	document.getElementById("resim_baslik").innerHTML = yazi;
	rw = document.getElementById("bbbb").clientWidth + 20;
	rh = document.getElementById("bbbb").clientHeight + 50 ;
	document.getElementById("koca_resim").style.width =rw+'px';
	document.getElementById("koca_resim").style.height =rh+'px';
	document.getElementById("koca_resim").style.display='';

	s = setTimeout("boyutla()", 500);
	s = setTimeout("boyutla()", 1000);
}


function boyutla (){
	rw = document.getElementById("bbbb").clientWidth + 20;
	rh = document.getElementById("bbbb").clientHeight + 50 ;
	document.getElementById("koca_resim").style.width =rw+'px';
	document.getElementById("koca_resim").style.height =rh+'px';
	
}