/*
var b_IE = navigator.userAgent.indexOf('MSIE') > -1;
var mouseX,mouseY;
var vizibil=false;
var divName='preview';
var maxWidth=400;
*/
getWinSz = window.innerHeight != null 
		? function (b_hight) { return b_hight ? innerHeight : innerWidth; }
		: function (b_hight) { return document.body[b_hight ? 'clientHeight' : 'clientWidth']; };	
		/*
	
getWinSc = window.innerHeight != null 
		? function (b_hight) { return b_hight ? pageYOffset : pageXOffset; }
		: function (b_hight) { return document.body[b_hight ? 'scrollTop' : 'scrollLeft']; };	
		

var	tooltip_div=getElem(divName);


function getDiv(){
	if(!tooltip_div) 
		tooltip_div=getElem("preview");
		
	if(tooltip_div) return 1;
	else return 0;
}
	
if (window.opera) {
	
	document.onmousemove = function () {
		mouseX= event.clientX+getWinSc();
		mouseY= event.clientY+getWinSc(true);
		if(vizibil) reposition();
		return true;
	};
}
else {
	
	document.onmousemove = b_IE
	? function () {
		mouseX= event.clientX + document.body.scrollLeft;
		mouseY= event.clientY + document.body.scrollTop;
		if(vizibil) reposition();
		return true;
	} 
	: function (e) {
		mouseX= e.pageX;
		mouseY= e.pageY;
		if(vizibil) reposition();
		return true;
	};
}

function reposition(){
	if(!getDiv()) return;
	
	var n_x = mouseX+6, 
		n_y = mouseY+4;
		
	var n_win_w = getWinSz(), n_win_h = getWinSz(true),
		n_win_l = getWinSc(), n_win_t = getWinSc(true);
		
	
	if (n_x > n_win_w + n_win_l) n_x = n_win_w + n_win_l ;
	if (n_x < n_win_l) n_x = n_win_l;
	if (n_y  > n_win_h + n_win_t) n_y = n_win_h + n_win_t ;
	if (n_y < n_win_t) n_y = n_win_t;
	
	
	
	tooltip_div.style.left = n_x+'px';
	tooltip_div.style.top = n_y+'px';	
		 	
	if(tooltip_div.style.width>maxWidth)
		tooltip_div.style.width=maxWidth+'px';
}

function showprev(mesaj){	
	if(!getDiv()) return;
	
	vizibil=true;
	reposition();
	tooltip_div.style.display='';
	tooltip_div.innerHTML = mesaj;
	
}


function hideprev(){
	if(!getDiv()) return;
	
	vizibil=false;	
	tooltip_div.style.display='none';
}
*/