<!--	

// Pencere
window.name = "derkenar";
window.status = " R e s i m l i   H a y a t   A n s i k l o p e d i s i ";

// Frame engelleyici
if (top.location != location) {
top.location.href = document.location.href;
}

// Pencere boyutu
//if (screen.width > 1152) { 
//window.resizeTo(1024, screen.availHeight) 
//moveTo(0,0)
//}

// Host sabitleyici
if (window.location.host != "localhost") {
if (window.location.host != "www.derkenar.com") {
top.location.href = "http://www.derkenar.com" + window.location.pathname;
}
}

// Bölüm Bul
var path = window.location.pathname;
var bolum = path.split('/')[1]
var sayfa = path.split('/')[2]
if (bolum == "") {bolum = "anasayfa"};
// stylesheet
if (bolum == "necdetsen" || bolum == "aliturkan") {bolum = "yazar"};
document.write('<style type="text/css">');
document.write('#menu #'+bolum+', #menu #'+bolum+':hover { ');
document.write('font: bold 14pt/24px Times New Roman, Georgia, Times, serif !important; color: #687eb5 !important; letter-spacing: 1px; ');
document.write('background-color: #fffff6 !important; padding: 4px 10px 0 !important; ');
document.write('border: 1px solid !important; border-color: #ccd8ec #ccd8ec #fffff6 #ccd8ec !important; ');
document.write('-moz-border-radius-topright: 6px; -moz-border-radius-topleft: 6px; -webkit-border-radius: 6px; } ');
if (sayfa == "" || bolum == "anasayfa") {
document.write('#icerik .imza { font-weight: bold; font-size: 8pt; color: #4a4a4a; letter-spacing: 2px}');
document.write('.imza a { font-weight: normal; }');
}
if (bolum == "webgezgini" || bolum == "mavra") {
document.write('#altblok { background: url();}');
}
document.write('#google #q, .shadetabs li a, #font img { -moz-border-radius: 5px; -webkit-border-radius: 5px; }');
document.write('#yorumlar div { -moz-border-radius: 8px; -webkit-border-radius: 8px; }');
document.write('</style>');
//document.write(bolum);

// Resim Koruma
function mhfz() {
var imge = document.getElementById('imge')
if (imge != null) {
var imgew = imge.width+6
var imgeh = imge.height+6
var mhfz = document.getElementById('mhfz')
mhfz.innerHTML = '<div id="mhf" style="width:'+imgew+'px; height:'+imgeh+'px"><\/div>'; 
}
return false; 
} 
window.onload = mhfz

// Font Boyutu
function buyuk() {
document.getElementById("icerik").style.fontSize="130%";
return false; 
}
function normal() {
document.getElementById("icerik").style.fontSize="";
return false; 
}

// Form alanı içine yazıldıkça büyüyor
function Uzat() { 
var metin = document.yazarformu.Metin
var uzunluk = metin.value.length
if (Math.round(uzunluk/40) > 2) {
metin.style.height = Math.round(uzunluk/2)+"px"; 
}
metin.style.font = "bold 12pt Arial";	// font boyutu
return false;
}

// Aç Kapa
function AcKapa(Link) {
if (document.getElementById(Link).style.display == 'none') {
document.getElementById(Link).style.display = ''; 
return false; 
}
else {
document.getElementById(Link).style.display = 'none';
return false; 
}
}

// Harf sınırlaması (2000 vuruş)
function LimitText(limitField, limitCount, limitNum) {
if (limitField.value.length > limitNum) {
limitField.value = limitField.value.substring(0, limitNum); 
alert("2000 vuruşluk uzunluk limiti doldu.");
} 
else { 
limitCount.value = limitNum - limitField.value.length;
}
} 

// Copy/Paste engelleyici
function say() {
setTimeout("tazele()",300);
}
function tazele() {
var icerik = document.getElementById('icerik')
icerik.innerHTML = icerik.innerHTML;
}
//document.onmouseup = say

// ERROR STOPER
function stopError() {
return true;
}
//window.onerror = stopError;

//-->