function CC_noErrors() {
return true;
}
window.onerror = CC_noErrors;
if (document.getElementById)
document.documentElement.className = 'rgizle';
var randomcontentdisplay={
divholders:new Object(),
masterclass: "rgoster",

init:function(){
if (!document.getElementById)
return
var alldivs=document.getElementsByTagName("div")
var randomcontentsearch=new RegExp(this.masterclass+"\\s+(rreklam\\d+)", "i")
for (var i=0; i<alldivs.length; i++){
if (randomcontentsearch.test(alldivs[i].className)){
if (typeof this.divholders[RegExp.$1]=="undefined")
this.divholders[RegExp.$1]=new Array()
this.divholders[RegExp.$1].push(alldivs[i])
}
}
this.showone()
},
showone:function(){
for (group in this.divholders){
var chosenOne=Math.floor(Math.random()*this.divholders[group].length)
this.divholders[group][chosenOne].style.display="block"
}
}
}
function Idno(id)
{
return document.getElementById(id);
}
function Manset_Liste() {
for(i=0;i<10;i++) {
if (i == MevcutManset) {
//$(Idno("mhaber"+i)).slideUp();
Idno("mhaber"+i).style.display = "block";
//document.getElementById("hno"+i).className = "lhover";
}
else
{
//$(Idno("mhaber"+i)).slideUp();
Idno("mhaber"+i).style.display = "none";
//});
//document.getElementById("hno"+i).className = "";
} 
} 
} 
function MansetDiger(Haberid) {
if (Haberid >= 0) {
clearTimeout(Gosterzaman);
MevcutManset = Haberid;
Manset_Liste();
}
else 
{
Manset_Liste();
MevcutManset = MevcutManset + 1;
if(MevcutManset >= 10) MevcutManset = 0;

Gosterzaman = setTimeout("MansetDiger(-1)", '5000');
} 
} 
var MevcutManset = 0;
var Gosterzaman =1;
Gosterzaman = setTimeout("MansetDiger(-1)", '1000');
/////////////////////////////////////////
function SManset_Liste() {
for(i=0;i<16;i++) {
if (i == SMevcutManset) {
Idno("myhaber"+i).style.display = "block";
//document.getElementById("hno"+i).className = "lhover";
}
else
{
Idno("myhaber"+i).style.display = "none";
//document.getElementById("hno"+i).className = "";
} 
} 
} 
function SMansetDiger(SHaberid) {
if (SHaberid >= 0) {
SMevcutManset = SHaberid;
SManset_Liste();
}
else 
{
SManset_Liste();
SMevcutManset = SMevcutManset + 1;
if(SMevcutManset >= 16) SMevcutManset = 0;
} 
} 
var SMevcutManset = 0;
var SGosterzaman =1;
/////////////////////////////////////////
function Gkodjs(valImageId) {
var objImage = document.images[valImageId];
if (objImage == undefined) {
return;
}
var now = new Date();
objImage.src = objImage.src.split('?')[0] + '?x=' + now.toUTCString();
}
function fkontrol()
{
if(document.yrmyaz.yad.value==''){alert("Adını yazmayı unuttun.");
document.yrmyaz.yad.focus(); return false;}
if((document.yrmyaz.yposta.value.indexOf("@"))<1){alert("E-Mail adresi hatalı.");
document.yrmyaz.yposta.focus();return false;}
if((document.yrmyaz.yposta.value.lastIndexOf("."))-(document.yrmyaz.yposta.value.indexOf("@"))<2){alert("E-Mail adresi hatalı.");
document.yrmyaz.yposta.focus();return false;}
if((document.yrmyaz.yweb.value.indexOf("."))<1){alert("Web site adresinde hata var.");
document.yrmyaz.yposta.focus();return false;}
if((document.yrmyaz.yweb.value.lastIndexOf("."))-(document.yrmyaz.yweb.value.indexOf("."))<2){alert("Web site adresinde hata var.");
document.yrmyaz.yweb.focus();return false;}
//if(document.yform.yweb.value==''){alert("Web siteni yazmayı unuttun.");
//document.yform.yweb.focus(); return false;}
if(document.yrmyaz.yyorum.value==''){alert("Bos alan biraktiniz!");
document.yrmyaz.yyorum.focus(); return false;}
}
/////////////////////////////////////////
function ggizle(tabloid)
{
var tablo = document.getElementById(tabloid);
if (tablo.style.display == "block")
tablo.style.display = "none";
else
tablo.style.display = "block";
}
function kutuggizle(bolumid,kutuid)
{
var bolum = document.getElementById(bolumid);
var kutuad = document.getElementById(kutuid);
if (bolum.value == "1")
kutuad.style.display = "block";
else
kutuad.style.display = "none";
}
function formreset(formad)
{
document.getElementById(formad).reset();
}
function Ajaxla(gelen,giden,sayfa){
$("#"+giden).ajaxStart(
function(){$(this).html('<img src="Grafikler/yukleniyor.gif" alt="Yükleniyor..." />');
})
$.ajax({
type:'POST',
url:sayfa,
data:$('form#'+gelen).serialize(),
success:function(ajaxCevap){
$('#'+giden).html(ajaxCevap);
document.getElementById(gelen).reset();
}
})
}
$(document).ready(function(){
$("li.ajax").click(function(){
$(".aktif").removeClass("aktif");
$(this).addClass("aktif");
$(".ggcliste").slideUp();
var efektyer = $(this).attr("value");
$("#"+efektyer).slideDown();
});
});
function Degeryaz(gelen,giden){
var gadres = gelen;
var degisken = "#"+giden;
$("#"+giden).html('<img src="Grafikler/yukleniyor.gif" alt="Yükleniyor..." style="width:16px; height:11px;" />');
$("#"+giden).html(gadres);
}
degisken = document.all.tags("blink");
no = 1;
linkuyari();
function linkuyari(){
if (no == 1){
durum = "visible";
no = 0;
}
else{
durum = "hidden";
no = 1;
}
for(i=0;i<degisken.length;i++){
degisken[i].style.visibility = durum;
}
setTimeout("linkuyari()", 500)
}
/////////////////////////////////////////
function karanlik()
{
$("body").append('<div id="karanlik"></div>');
$("#karanlik").css({
background: '#000000',
zIndex: 9999,
opacity: .8,
position: 'absolute',
top: '0px',
left: '0px',
width: '100%',
height: $(document).height()
});
}
function aydinlik()
{
$("#karanlik").remove();
}
document.onkeydown=function(e){
if(e==null){
keycode=event.keyCode;
}else{
keycode=e.which;
}
if(keycode==27){
aydinlik()
}
};
function Illerjs(secilenil)
{
if (window.XMLHttpRequest)
{
xmlhttp=new XMLHttpRequest();
}
else
{
xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
}
xmlhttp.onreadystatechange=function()
{
if (xmlhttp.readyState==4 && xmlhttp.status==200)
{
document.getElementById("ilhaberliste").innerHTML=xmlhttp.responseText;
}
}
xmlhttp.open("GET","Ilhaberi.asp?ID=" + secilenil,true);
xmlhttp.send();
ggizle("illistesi");
}
function Yenikod(Guvenlik) {
var Guvenlikid = document.images[Guvenlik];
if (Guvenlikid == undefined) {
return;
}
var now = new Date();
Guvenlikid.src = Guvenlikid.src.split('?')[0] + '?x=' + now.toUTCString();
}
