var isFF = false;
var currOpen = null;
var currOpenId = "";
//alert(navigator.appName);
if(navigator.appName.indexOf("Netscape") > -1){isFF = true;}
var hideCaptions = new Array();
var svdCount = 0;
function mrUpdatePicks(chk){
if(okToSave){
updatePicks(chk);
togglePicksDiv(chk, false); 
} else {
chk.checked = false;
}
}

function hideBrokenImage(obj, paId){
obj.style.display = "none";
hideCaptions[hideCaptions.length] = paId;
}

function cleanUpCaptions(){

if(hideCaptions.length > 0){
for(i=0;i<hideCaptions.length;i++){
if(document.getElementById("pc_"+hideCaptions[i])){

document.getElementById("pc_"+hideCaptions[i]).innerHTML = "&nbsp;";
}
}
}
}
var okToSave = false;

function mrInit(){
cleanUpCaptions();
okToSave = true;
}

var xArr = new Array();
var yArr = new Array();
var ffVarianceX = 0;
var ffVarianceY = 0;


if(is_ff){
ffVarianceY = 1;
}
var isSingleRow = false;
var isSingleRow30 = false;


isSingleRow30 = true;

var isSingleRowFF = false;



var timerX = null;
function doVoid(){
}

function showToolTip(srcObj, offX, offY, lid){
if(isSingleRow || okToSave){
if(isSingleRow30){
document.getElementById("sp_rowview").style.backgroundImage = "url(/search/images/multiRIcon_on.gif)";
} else {
document.getElementById("sp_rowview").style.backgroundImage = "url(/search/images/singleRIcon_on.gif)";
}
window.clearTimeout(timerX);
if(!(isSingleRow && (parseInt(tempY) > 350))){

if(!xArr[lid]){
xArr[lid] = parseInt(tempX);
yArr[lid] = parseInt(tempY);
}


if(is_ff){
document.getElementById("ttPointerWrapper").style.width = "446px";
document.getElementById("ttWrapperLeft").style.width = "224px";
document.getElementById("ttWrapperRight").style.width = "219px";
}


var posArr = getPos(srcObj);

if(isSingleRow30){offX = offX+2;}
document.getElementById("ttPointerWrapper").style.left = parseInt(posArr[0])+offX+ffVarianceX+'px';

if(isSingleRow){
if(lid == 2){
document.getElementById("ttPointerWrapper").style.top = '26px';
} else {
document.getElementById("ttPointerWrapper").style.top = '18px';
}
} else {
document.getElementById("ttPointerWrapper").style.top = (((parseInt(posArr[1]))+offY+ffVarianceY)-1)+'px';
}
document.getElementById("ttPointerWrapper").style.visibility = "visible";
if(document.getElementById("sortJump")){
document.getElementById("sortJump").style.visibility = "hidden";
}

}
}
}

function holdOpenToolTip(){
window.clearTimeout(timerX);
}

function setDelayOff(){
window.clearTimeout(timerX);
timerX = window.setTimeout("hideToolTip()", 50);
}

function hideToolTip(){
if(isSingleRow30){
document.getElementById("sp_rowview").style.backgroundImage = "url(/search/images/multiRIcon_off.gif)";
} else {
document.getElementById("sp_rowview").style.backgroundImage = "url(/search/images/singleRIcon_off.gif)";
}
document.getElementById("ttPointerWrapper").style.visibility = "hidden";
if(document.getElementById("sortJump")){
document.getElementById("sortJump").style.visibility = "visible";
}
}
function mauseBilgiVer(eID,msj){
		document.getElementById(eID).innerHTML=msj;
}