﻿//----------------------------------------------------------
// myCekirdek v0.7
// (C) 2007 Tüm Hakları Saklıdır.
// Yasin Karağandere(www.mynotlar.com)
//----------------------------------------------------------
// Cekirdek.js







$=function(a){return document.getElementById(a);};

$getsTag=function(elem, a){
try{
return (typeof elem == 'string' ? $(elem) : elem).getElementsByTagName(a);
} catch(hata){return [];}
}
/*css anim*/ var G1;var C1;function cssGir(){G1=true;C1=false;cssIslem();}
function cssCik(){C1 = true;G1=false;cssIslem();}
function cssIslem(){N='webcssikon';if(G1){$(N).style.zIndex=999;if($(N).height < 31){$(N).height += 2;if($(N).height >= 31){$(N).width=88;G1=false;C1=false;}else{$(N).width += 6;setTimeout("cssIslem()",40);}}}else if(C1){$(N).style.zIndex = 1;if($(N).height > 21){$(N).height -= 2;if($(N).height <= 21){$(N).width=60;G1=false;C1=false;}else{$(N).width -= 6;setTimeout("cssIslem()",40);}}}}
/*xhmtl anim*/ var G2;var C2;function xhtmlGir(){G2 = true;C2=false;xhtmlIslem();}
function xhtmlCik(){C2 = true;G2=false;xhtmlIslem();}function xhtmlIslem(){N='webxhtmlikon';if(G2){$(N).style.zIndex=999;if($(N).height < 31){$(N).height += 2;if($(N).height >= 31){$(N).width=88;G2=false;C2=false;}else{$(N).width += 6;setTimeout("xhtmlIslem()",40);}}}else if(C2){$(N).style.zIndex = 1;if($(N).height > 21){$(N).height -= 2;if($(N).height <= 21){$(N).width=60;G2=false;C2=false;}else{$(N).width -= 6;setTimeout("xhtmlIslem()",40);}}}}
/*wcag anim*/ var G3;var C3;function wcagGir(){G3 = true;C3=false;wcagIslem();}function wcagCik(){C3 = true;G3=false;wcagIslem();}function wcagIslem(){N='webwcagikon';if(G3){$(N).style.zIndex=999;if($(N).height < 31){$(N).height += 2;if($(N).height >= 31){$(N).width=88;G3=false;C3=false;}else{$(N).width += 6;setTimeout("wcagIslem()",40);}}}else if(C3){$(N).style.zIndex = 1;if($(N).height > 21){$(N).height -= 2;if($(N).height <= 21){$(N).width=60;G3=false;C3=false;}else{$(N).width -= 6;setTimeout("wcagIslem()",40);}}}}
yazbr = function(a) {document.write(a+'<br/>');}
window.onload=function()
{
    document.styleSheets.fontSize = +1;
    //if(self.screen.width>1024) Degistir('18%','60px')
}
function Degistir(genislik, yukseklik)
{
    var Elemanlar = document.getElementsByTagName('li');
    for(i=0; i<Elemanlar.length;i++)
    {
        if((Elemanlar[i].className == 'kategori') ||
           (Elemanlar[i].className == 'kayit'))
           {
                Elemanlar[i].style.width = genislik;
                if(yukseklik != 0)
                    Elemanlar[i].style.height = yukseklik;
           }
    }    
    //document.getElementById('anaust').style.background = 'Black url(UstBaslikSiyah.jpg) repeat scroll right center';
}
function paragLink()
{
pler = $getsTag('yazialan', 'P');
for(i = 0;i < pler.length;i++) {
	var paraf = pler[i];
	paraf.onmouseover = function() {
		alar = $getsTag(this, 'a')
		for(a = 0;a < alar.length;a++)
		{
			alar[a].style.color = 'navy';
			alar[a].style.textDecoration = 'underline';
		}
	}
	paraf.onmouseout = function() {
		alar = $getsTag(this, 'a')
		for(a = 0;a < alar.length;a++)
		{
			alar[a].style.color = alar[a].parentNode.style.color;
			alar[a].style.textDecoration = 'none';
		}
	}
}
}
if(document.addEventListener)
	window.addEventListener('load', paragLink, false)
else if(window.attachEvent)
	window.attachEvent('onload', paragLink);
