/************************************************************************/
/*							 Cikolata Radyo System 				        */
/* =====================================================================*/
var tiplayer= document.getElementById("tiplayer");
var toolTipSTYLE = tiplayer.style;
var ns4 = document.layers;
var ns6 = document.getElementById && !document.all;
var ie4 = document.all;
var gusername =null;
var guserid=null;
var Mtimer=null;
var x=null;
var y=null;
offsetX = -10;
offsetY = -5;
/************************************************************************/
function getXY(e) {
  x = (window.Event) ? e.pageX : event.clientX;
  y = (window.Event) ? e.pageY : event.clientY;
}
/************************************************************************/
function init() {
if (window.Event) 
	document.captureEvents(Event.MOUSEMOVE); 
}
/************************************************************************/
function moveToMouseLoc(e)
{
  if(ns4||ns6)
  {
   	window.onload = init;	
  	document.onmousemove = getXY;
  }
  else
  {
    x = event.x + document.body.scrollLeft;
    y = event.y + document.body.scrollTop;
  }
  toolTipSTYLE.left = x + offsetX;
  toolTipSTYLE.top = y + offsetY;
  return true;
}
/************************************************************************/
moveToMouseLoc();
function show_user_info(img,username){
clearTimeout(Mtimer);
gusername=username;
moveToMouseLoc();
var resim= document.getElementById("resimcell");
resim.innerHTML = "<img src="+img+">";
toolTipSTYLE.display = 'block';
Mtimer=setTimeout('re()',8000);
}
/************************************************************************/
function re(){toolTipSTYLE.display = 'none'}
function gpm() {pen_ac('ciko.php?icerik=PM&;p=wri_msg&amp;towho='+gusername,200,360);re();clearTimeout(Mtimer);}
function gwp() {location='ciko.php?icerik=Uyeler&p=wup&uname='+gusername;re();clearTimeout(Mtimer);}
/************************************************************************/
function pen_ac (url, ht, wt)
{window.open(url,"_blank","scrollbars=1 height= " + ht +" width= " + wt + ", top= "+ (((screen.height)/2)-(ht/2)) + ", left=" + (((screen.width)/2)-(wt/2)));}
function pen_ac_target (url, ht, wt)
{var yuxel=window.open(url,"yuxel","scrollbars=1 height= " + ht +" width= " + wt + ", top= "+ (((screen.height)/2)-(ht/2)) + ", left=" + (((screen.width)/2)-(wt/2)));}
function hc(obj) {obj.className='Over'}
function rc(obj) {obj.className='Normal'}