/************************************************************************/
/*							 GNUTURK PORTAL SYSTEM 				        */
/* =====================================================================*/
/*                                                                      */
/*			 Copyright (c) 2003-2006 by Yüksel Kurtbas                  */
/* 					http://www.gnuturk.com                              */
/*                                                                      */
/* Bu yazilim GNU/GPL lisansi altinda dagitilmaktadir. Yazilim üzerinde */
/* her türlü degisiklik, güncellemeyi yapabilirsiniz. Yazilimi dagitma 	*/
/* ve resmi sürüm çikarma haklari sadece üreticiye aittir. Emege saygi 	*/
/* göstererek bu kurala  uyunuz ve copyright satirini silmeyiniz		*/
/************************************************************************/
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;
}
/************************************************************************/
function show_user_info(username){
moveToMouseLoc();
gusername = username;
toolTipSTYLE.display = 'block'
setTimeout('re()',5000)
}
function re(){toolTipSTYLE.display = 'none'}
function gwi() {location='mods.php?go=Members&p=wup&uname='+gusername;re()}
function gpm() {pen_ac('mods.php?go=PM&p=wri_msg&towho='+gusername,130,350);re()}
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;
/* end of user part */
moveToMouseLoc(); // ;-)

function go(url){window.location.href= url + ".php";}

function gom(url)
{
var theurl= 'mods.php?go=' + url;
window.location.href= theurl;
}

function pen_ac (url, ht, wt)
{window.open(url,"","toolbar=0,menubar=0,scrollbars=1,status=0,resizable=1, height= " + ht +", width= " + wt + ", top= "+ (((screen.height)/2)-(ht/2)) + ", left=" + (((screen.width)/2)-(wt/2)));}

function cs(obj) {obj.className='Highlight'}
function rs(obj) {obj.className='Normal'}
function r_cs(obj) {obj.className='Highlight_blue'}

function check_news_search(val)
{
	if(val == "" || val == "    " || val.length <4) {alert('ARAMA EN AZ 4 KARAKTER OLMALI'); return false;}
	else return true;
}
