var nav=navigator.userAgent.toLowerCase();
var isopera=false;
if ((nav.indexOf('opera 1')!=-1) || (nav.indexOf('opera 2')!=-1) || (nav.indexOf('opera 3')!=-1) || (nav.indexOf('opera 4')!=-1) || (nav.indexOf('opera 5')!=-1) || (nav.indexOf('opera 6')!=-1)) isopera=true;

var dayarray=new Array("Pazar","Pazartesi","Salı","Çarşamba","Perşembe","Cuma","Cumartesi")
var montharray=new Array("Ocak","Şubat","Mart","Nisan","Mayıs","Haziran","Temmuz","Ağustos",
"Eylül","Ekim","Kasım","Aralık")

function getthedate(){
var mydate=new Date()
var year=mydate.getFullYear()
var day=mydate.getDay()
var month=mydate.getMonth()
var daym=mydate.getDate()
if (daym<10) daym="0"+daym
var hours=mydate.getHours()
var minutes=mydate.getMinutes()
var seconds=mydate.getSeconds()

var tz=Math.round(mydate.getTimezoneOffset()/60)
var shvaikatimezone=2
tz+=shvaikatimezone
var hourss=hours+tz;
hourss>=24?hourss-=24:hourss;
hourss<=0?hourss+=24:hourss;
if (hourss==24) hourss=0
if (hourss==0) hourss=24
if (minutes<=9) minutes="0"+minutes
if (seconds<=9) seconds="0"+seconds
// Altkısımda Face Yazan Yerden Font Değişikliği Yapabilirsiniz.//
var st1=""
var st2=""
var st3=""
if (mydate.getDay()!=0)
 cdate="<span class=anasayfahaberyazi>"+st1+daym+" "+montharray[month]+" "+year+"&nbsp;"+hours+":"+minutes+":"+seconds+"</span>"
else
  cdate="<span class=anasayfahaberyazi>"+st2+daym+" "+montharray[month]+" "+year+"&nbsp;"+hours+":"+minutes+":"+seconds+"</span>"

if (document.all&&isopera!=true)
{
 document.all.clock.style.position='relative'
 document.all.clock.innerHTML=cdate
}
else if (document.layers)
 {
  document.clock.visibility='show'
  document.clock.document.open();
  document.clock.document.write('<center>'+cdate+'</center>');
  document.clock.document.close();
 }
else if (document.getElementById&&isopera!=true)
  {document.getElementById("clock").innerHTML=cdate}
else document.write('<center>'+cdate+'</center>')
}

if (!document.layers&&!document.all&&!document.getElementById) getthedate()
else if (isopera!=true) setInterval("getthedate()",1000)
else getthedate();


/* SIK KULLANILANLARA EKLE */

function favori(isim,url){
var msg_netscape = "NetScape message";
var msg_other = "Bu özellik kullandığınız tarayıcı tarafından desteklenmiyor.";
var agt = navigator.userAgent.toLowerCase();
if(agt.indexOf("opera") != -1){
    if(window.opera && window.print){
        return true;
        }else{
            alert(msg_other);
        }
    }else if(agt.indexOf("firefox") != -1)
        window.sidebar.addPanel(isim,url,"");
    else if((agt.indexOf("msie") != -1) && (parseInt(navigator.appVersion) >=4)) window.external.AddFavorite(url,isim);
    else if(agt.indexOf("netscape") != -1) window.sidebar.addPanel(isim,url,"")
else if(window.sidebar && window.sidebar.addPanel) window.sidebar.addPanel(isim,url,"");
else alert(msg_other);
}

/* SIK KULLANILANLARA EKLE */


/* SON DAKİKA */
function startTicker() {  
// Define run time values  
theCurrentStory     = -1;  
theCurrentLength    = 0;  
// Locate base objects  
if (document.getElementById) {        
theAnchorObject     = document.getElementById("tickerAnchor");    
runTheTicker();        
}  else {
             document.write("<style>.ticki{display:none;}.ticko{border:0px; padding:0px;}<\/style>");
             return true;  
} 
} 
// Ticker main run loop 
function runTheTicker() {  
var myTimeout;    
// Go for the next story data block  
if(theCurrentLength == 0)  {   
theCurrentStory++;   
theCurrentStory      = theCurrentStory % theItemCount;   
var len = theSummaries[theCurrentStory].length;
if(len>=68)
{
theStorySummary      = theSummaries[theCurrentStory].replace(/&quot;/g,'"').substring(0,65)+'...';     
}else{
theStorySummary      = theSummaries[theCurrentStory].replace(/&quot;/g,'"')
}    
theTargetLink        = theSiteLinks[theCurrentStory];   
theAnchorObject.href = theTargetLink;   
thePrefix       = "";  
}  
// Stuff the current ticker text into the anchor  
theAnchorObject.innerHTML = thePrefix +   theStorySummary.substring(0,theCurrentLength) + whatWidget();  
// Modify the length for the substring and define the timer  
if(theCurrentLength != theStorySummary.length)  {   
theCurrentLength++;   myTimeout = theCharacterTimeout;  
}  else  {   
theCurrentLength = 0;   
myTimeout = theStoryTimeout;  } 
 // Call up the next cycle of the ticker  
setTimeout("runTheTicker()", myTimeout); } 
// Widget generator 
function whatWidget() {  
if(theCurrentLength == theStorySummary.length)  {   
return theWidgetNone;  
}   
if((theCurrentLength % 2) == 1)  {   return theWidgetOne;  }  else  {   return theWidgetTwo;  } } 

/* SON DAKİKA */
