// JavaScript Document
function HighlightEffect(element,basla,bitir,sure){ // ----	------	------	------	Highligh EFEKTİ
	if (!(basla)) basla = "#FFFFCC";
	if (!(bitir)) bitir = "#ebf2f6";
	if (!(sure)) sure = 3;
   new Effect.Highlight(element, 
				  {
					startcolor: basla,//"#FFFFCC",
					endcolor: bitir,//"#ebf2f6",
					restorecolor: bitir,//"#ebf2f6",
					duration: sure
				  });
	try{
		element.style.cursor='pointer'; 
	}catch(err){
	}
}
/****************************************************************************/
function Highlight(element,basla,bitir){ // ----	------	------	------	Highligh EFEKTI
	if (!(basla)) basla = "#FFFFCC";
	if (!(bitir)) bitir = "#DFE7EC";

	element.style.cursor='pointer'; 
	element.style.background = basla;
	element.onmouseout = function(){element.style.background = bitir;};
}
function HighlightUP(element, renk){ // ------	------	------	------	SARI YANMASI
	if (!(renk)) renk = "FFFFCC";
	$(element).style.background = "#"+renk;
	$(element).style.cursor='pointer'; 
}
function HighlightDOWN(element){ // ------	------	------	------	SARI SÖNMESİ
	$(element).style.background = 'none';
}

/****************************************************************************/
function flu(element,miktar){ // --------	------	------	------	BLUR VERME
	element.filters.blur.strength = miktar;
	element.style.filter = 'blur(strength=' + miktar + ')';
}
function fligran(element,miktar){ // --------	------	------	------	BLUR VERME
	element.style.opacity = miktar;
	element.style.filter = 'alpha(opacity=' + miktar + ')';
}
/****************************************************************************/
function ac(element){ // ------	------	------	------	------	ELEMENTİ AÇMA
	$(element).style.display = 'block';
}
function kapa(element){ // ------	------	------	------	------	ELEMENTİ KAPAMA
	$(element).style.display = 'none';
}
function ackapa(element){ // ------	------	------	------	------	ELEMENTI AÇMA
	if ($(element).style.display == 'none' ) $(element).style.display = 'block';
	else if ($(element).style.display == 'block' ) $(element).style.display = 'none';
}
/****************************************************************************/
function aktif(element){ 
	$(element).disabled = false;
}
function pasif(element){ 
	$(element).disabled = true;
}
function aktifpasif(element){ 
	//alert("ss : "+element + "-" + $(element).disabled);
	if ($(element).disabled) $(element).disabled = false;
	else $(element).disabled = true;
}
/****************************************************************************/
function gizle(element){ // ------	------	------	------	------	ELEMENTİ Gizle
	$(element).style.visibility = 'hidden';
}
function goster(element){ // ------	------	------	------	------	ELEMENTİ Göster
	$(element).style.visibility = 'visible';
}
function gizlegoster(element){ // ------	------	------	------	------	ELEMENTI Gizle veya Göster
	if ($(element).style.visibility == 'hidden' ) $(element).style.visibility = 'visible';
	else if ($(element).style.visibility == 'visible' ) $(element).style.visibility = 'hidden';
}
/****************************************************************************/
function PopSayfaAc(url,name,w,h) 
{ 
//	alert(url+" "+name+" "+w+" "+h);
   newwindow=window.open(url,name,'height='+h+',width='+w+',toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0'); 
   if (window.focus) {newwindow.focus()} 
} 
function bookmarksite(title, url){
	if (document.all)
	window.external.AddFavorite(url, title);
	else if (window.sidebar)
	window.sidebar.addPanel(title, url, "")
}

function addLoadEvent(func)
{
  var oldonload = window.onload;
  if (typeof window.onload != 'function')
  {
    window.onload = func;
  }
  else
  {
	window.onload = function()
	{
      if (oldonload)
	  {
        oldonload();
      }
      func();
    }
  }
}
