
// VARIABLES

var fsAktifObj
// FUNCTIONS
fxReferansContent = function() { return xajax.request( { xjxfun: 'fxReferansContent' }, { parameters: arguments } ); };

function fPageCheck(sPage){
  if(location.href.search(sPage)>0)
    return true
  else
    return false
}

function fEnable(ID){
  fGetID(ID).disabled = false
  fGetID(ID).className = ""
}

function fDisable(ID){
  fGetID(ID).disabled = true
  fGetID(ID).className = "disabled"
}

function fAlert(sContent){
  sContent = ' \
  <div id="AlertHolder"> \
    <div id="close"><img src="/img/close.png" onClick="fAlertClose()"></div> \
    <div id="content">'+sContent+'</div> \
  </div> \
  ';  
  $("body").prepend(sContent);
  oDocElem = document.documentElement
  nScrollTop = oDocElem.scrollTop
  nScrollLeft = oDocElem.scrollLeft  
  nClientHeight = oDocElem.clientHeight
  nClientWidth = oDocElem.clientWidth
  nHeight = $("#AlertHolder").height()
  nWidth = $("#AlertHolder").width()
  nTop = nScrollTop+((nClientHeight-nHeight)/2)
  nLeft = nScrollLeft+((nClientWidth-nWidth)/2)
  $("#AlertHolder").css("top",nTop);
  $("#AlertHolder").css("left",nLeft);
}

function fAlertClose(){
  $("#AlertHolder").remove();
  $("#PageHolder").removeClass('pasif50').removeClass('pasif');
}

$(document).ready(function(){
  $("#PageHolder #Center > div,#PageHolderAlt #Center > div").hover(function(){$(this).addClass('on');$(this).children('div[id=submenu]').fadeIn()},function(){$(this).children('div[id=submenu]').hide();$(this).removeClass('on')});
}
);
