function baslik(durum) {
if (durum) {
yaz='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="775" height="221">';
yaz=yaz+'<param name="movie" value="_flash/top.swf"><param name="quality" value="high">';
yaz=yaz+'<embed src="_flash/top.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="775" height="221"></embed></object>';
} else {
yaz='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="775" height="221">';
yaz=yaz+'<param name="movie" value="_flash/top.swf"><param name="quality" value="high">';
yaz=yaz+'<embed src="_flash/top.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="775" height="221"></embed></object>';
}
document.all.top.innerHTML=yaz;
}


function startclock() {
var thetime=new Date();
var nhours=thetime.getHours();
var nmins=thetime.getMinutes();
var nsecn=thetime.getSeconds();
var nday=thetime.getDay();
var nmonth=thetime.getMonth();
var ntoday=thetime.getDate();
var nyear=thetime.getYear();
var AorP=" ";

if (nhours>=12)
    AorP=" ";
else
    AorP=" ";

if (nhours>=13)
    nhours-=12;

if (nsecn<10)
 nsecn="0"+nsecn;

if (nmins<10)
 nmins="0"+nmins;

if (nday==0)
  nday="Pazar";
if (nday==1)
  nday="Pazartesi";
if (nday==2)
  nday="Salı";
if (nday==3)
  nday="Çarşamba";
if (nday==4)
  nday="Perşembe";
if (nday==5)
  nday="Cuma";
if (nday==6)
  nday="Cumartesi";

nmonth+=1;

if (nyear<=99)
  nyear= "19"+nyear;

if ((nyear>99) && (nyear<2000))
 nyear+=1900;

document.all.saat.innerHTML="&nbsp;&nbsp;&nbsp;<b><font size=1 >"+nhours+":"+nmins+":"+nsecn+" "+AorP+" "+nday+", "+ntoday+"/"+nmonth+"/"+nyear+"</font></b>";
setTimeout('startclock()',1000);
}  




document.write('<div id="layer" style="position:absolute;top:0px;left:0px;"></div><div id="layer2" style="position:absolute;top:0px;left:0px;"></div>')
var sayac;

function abdr(menu,TopTT,LeftLL){

LeftLL = (document.body.clientWidth/2 - 387) + LeftLL;

clearTimeout(sayac)
menuGizle()

str='<div id=layernew style="position:absolute; left:'+LeftLL+'px; top:'+TopTT+'px; width:300px; z-index:2; visibility: visible" onmouseover="uzeri()" onmouseout="sil()">'
str+='<table border="0" cellpadding="0" cellspacing="0">'
for (i=0; i<menu.length; i++){
m=menu[i].split('|')

str+='<tr height="18"><td background="_images/buttonbg.jpg"><a onclick="baslik(0);TT=136;" onmouseover="'

if (m[1].charAt(0) == '#' ) {
} else {
str+='menuGizle2();' 
}
str+='" target="icerik" class="menu" href='+m[1]+' onMouseMove="status = \''+m[0]+'\'"><b>&nbsp; '+m[0]+' &nbsp;</b></a></td><td background="_images/buttonbg.jpg">&nbsp;</td></tr>'

}
str+='<tr><td background="_images/buttonbg.jpg">&nbsp;</td>'
str+='<td width="9"><img src="_images/buttonsag.gif" width="9" height="17"></td></tr>'
str+='</table></div>'
document.all.layer.innerHTML=str
}

function abdr2(menu,TopTT){
leftLL = (document.body.clientWidth/2) - 84;
str='<div id=layernew2 style="position:absolute; left:'+leftLL+'px; top:'+TopTT+'px; width:160px; z-index:3; visibility: visible" onmouseover="uzeri()" onmouseout="sil()">'
str+='<table width="100%" border="0" cellpadding="0" cellspacing="1" bgcolor="#ffffff">'
for (i=0; i<menu.length; i++){
m=menu[i].split('|')
str+='<tr><td width="6" bgcolor="#CCCCCC">&nbsp;</td><td><a class="menu" href='+m[1]+' onMouseMove="status = \''+m[0]+'\'"><b>&nbsp; '+m[0]+' &nbsp;</b></a></td></tr><tr><td colspan="2" bgcolor="#CCCCCC" height="1"></td></tr>'
}
str+='</table>'
str+='</div>'
document.all.layer2.innerHTML=str
}

function sil(){
clearTimeout(sayac);
sayac = setTimeout("menuGizle()",400);
status = ". : : KIRÇEV - Kırsal Çevre ve Ormancılık Sorunları Araştırma Derneği : : .";
}
function menuGizle(){
document.all.layer.innerHTML=""
document.all.layer2.innerHTML=""
}
function menuGizle2(){
document.all.layer2.innerHTML=""
}

function uzeri(){
clearTimeout(sayac);
}




function ac(URL, W, H){
var W, H, Tt, Ll;
Ll=(screen.width/2)-(W/2);
Tt=(screen.height/2)-(H/2);

window.open(URL,'','width='+W+', height='+H+', left='+Ll+', top='+Tt+', status=no, resizable=no, scrollbars=no, toolbar=no');
}


function resac(NAME){
res=window.open('','','width=100, height=100, status=no, resizable=yes, scrollbars=no, toolbar=no');
res.document.write('<html><head><title>KIRÇEV</title>'+ '\n' +
'<META http-equiv=Content-Type content="text/html; charset=windows-1254">'+ '\n' +
'<META http-equiv=Content-Type content="text/html; charset=iso-8859-9">'+ '\n' +
'<SCRIPT src="_java/default.js"></SCRIPT>'+ '\n' +
'</head>'+ '\n' +
'<body bgcolor="#000000" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onload="restore()">'+
'<table width="100%" height="100%"><tr><td align="center">'+ 
'<a href="#" onClick="window.close();"><img onload="restore()" name="tusi" src="'+NAME+'" border="0" alt="pencereyi kapatmak için resme tıklayın."></a>'+
'</td></tr></table>'+ '\n' +
'</body></html>'+ '\n' +
'<script>'+ '\n' +
'redirTime = "2000";'+ '\n' +
'function restore() {'+ '\n' +
'window.resizeTo(200,200);'+ '\n' +
'hH=200-document.body.clientHeight;'+ '\n' +
'wW=200-document.body.clientWidth;'+ '\n' +
'window.resizeTo(document.body.scrollWidth+wW,document.body.scrollHeight+hH);'+ '\n' +
'}'+ '\n' +
'self.setTimeout("restore()",redirTime);'+ '\n' +
'</script>'); 
}











