Raw Source
ilhanturkk / tema++

// ==UserScript==
// @name        tema++
// @namespace   https://twitter.com/fenerama
// @description ek�i s�zl�k | 27 ocak 2015 - 23:43
// @version     1.16
// @author      futurama
// @include     http://www.metasozluk.com*
// @include     http://www.metasozluk.com*
// @downloadURL https://dl.dropboxusercontent.com/u/82207064/tema/tema.user.js
// @updateURL	https://dl.dropboxusercontent.com/u/82207064/tema/tema.meta.js
// @grant       none
// @run-at		document-end
// @require		http://www.parsecdn.com/js/parse-1.3.2.min.js
// @require		https://dl.dropboxusercontent.com/u/82207064/tema/scroll.js
// ==/UserScript==
var temaversiyon="1.16";

function init(i,t){var o=$('<div class="minicolors" />'),e=$.minicolors.defaults;i.data("minicolors-initialized")||(t=$.extend(!0,{},e,t),o.addClass("minicolors-theme-"+t.theme).toggleClass("minicolors-with-opacity",t.opacity),void 0!==t.position&&$.each(t.position.split(" "),function(){o.addClass("minicolors-position-"+this)}),i.addClass("minicolors-input").data("minicolors-initialized",!1).data("minicolors-settings",t).prop("size",7).wrap(o).after('<div class="minicolors-panel minicolors-slider-'+t.control+'"><div class="minicolors-slider"><div class="minicolors-picker"></div></div><div class="minicolors-opacity-slider"><div class="minicolors-picker"></div></div><div class="minicolors-grid"><div class="minicolors-grid-inner"></div><div class="minicolors-picker"><div></div></div></div></div>'),t.inline||(i.after('<span class="minicolors-swatch"><span class="minicolors-swatch-color"></span></span>'),i.next(".minicolors-swatch").on("click",function(t){t.preventDefault(),i.focus()})),i.parent().find(".minicolors-panel").on("selectstart",function(){return!1}).end(),t.inline&&i.parent().addClass("minicolors-inline"),updateFromInput(i,!1),i.data("minicolors-initialized",!0))}
function destroy(i){var t=i.parent();i.removeData("minicolors-initialized").removeData("minicolors-settings").removeProp("size").removeClass("minicolors-input"),t.before(i).remove()}
function show(i){var t=i.parent(),o=t.find(".minicolors-panel"),e=i.data("minicolors-settings");!i.data("minicolors-initialized")||i.prop("disabled")||t.hasClass("minicolors-inline")||t.hasClass("minicolors-focus")||(hide(),t.addClass("minicolors-focus"),o.stop(!0,!0).fadeIn(e.showSpeed,function(){e.show&&e.show.call(i.get(0))}))}
function hide(){$(".minicolors-focus").each(function(){var i=$(this),t=i.find(".minicolors-input"),o=i.find(".minicolors-panel"),e=t.data("minicolors-settings");o.fadeOut(e.hideSpeed,function(){e.hide&&e.hide.call(t.get(0)),i.removeClass("minicolors-focus")})})}
function move(i,t,o){var e,n,s,a,r=i.parents(".minicolors").find(".minicolors-input"),c=r.data("minicolors-settings"),h=i.find("[class$=-picker]"),l=i.offset().left,d=i.offset().top,p=Math.round(t.pageX-l),u=Math.round(t.pageY-d),g=o?c.animationSpeed:0;t.originalEvent.changedTouches&&(p=t.originalEvent.changedTouches[0].pageX-l,u=t.originalEvent.changedTouches[0].pageY-d),0>p&&(p=0),0>u&&(u=0),p>i.width()&&(p=i.width()),u>i.height()&&(u=i.height()),i.parent().is(".minicolors-slider-wheel")&&h.parent().is(".minicolors-grid")&&(e=75-p,n=75-u,s=Math.sqrt(e*e+n*n),a=Math.atan2(n,e),0>a&&(a+=2*Math.PI),s>75&&(s=75,p=75-75*Math.cos(a),u=75-75*Math.sin(a)),p=Math.round(p),u=Math.round(u)),i.is(".minicolors-grid")?h.stop(!0).animate({top:u+"px",left:p+"px"},g,c.animationEasing,function(){updateFromControl(r,i)}):h.stop(!0).animate({top:u+"px"},g,c.animationEasing,function(){updateFromControl(r,i)})}
function updateFromControl(i,t){function o(i,t){var o,e;return i.length&&t?(o=i.offset().left,e=i.offset().top,{x:o-t.offset().left+i.outerWidth()/2,y:e-t.offset().top+i.outerHeight()/2}):null}var e,n,s,a,r,c,h,l=i.val(),d=i.attr("data-opacity"),p=i.parent(),u=i.data("minicolors-settings"),g=p.find(".minicolors-swatch"),m=p.find(".minicolors-grid"),f=p.find(".minicolors-slider"),b=p.find(".minicolors-opacity-slider"),v=m.find("[class$=-picker]"),x=f.find("[class$=-picker]"),$=b.find("[class$=-picker]"),k=o(v,m),y=o(x,f),C=o($,b);if(t.is(".minicolors-grid, .minicolors-slider")){switch(u.control){case"wheel":a=m.width()/2-k.x,r=m.height()/2-k.y,c=Math.sqrt(a*a+r*r),h=Math.atan2(r,a),0>h&&(h+=2*Math.PI),c>75&&(c=75,k.x=69-75*Math.cos(h),k.y=69-75*Math.sin(h)),n=keepWithin(c/.75,0,100),e=keepWithin(180*h/Math.PI,0,360),s=keepWithin(100-Math.floor(y.y*(100/f.height())),0,100),l=hsb2hex({h:e,s:n,b:s}),f.css("backgroundColor",hsb2hex({h:e,s:n,b:100}));break;case"saturation":e=keepWithin(parseInt(k.x*(360/m.width()),10),0,360),n=keepWithin(100-Math.floor(y.y*(100/f.height())),0,100),s=keepWithin(100-Math.floor(k.y*(100/m.height())),0,100),l=hsb2hex({h:e,s:n,b:s}),f.css("backgroundColor",hsb2hex({h:e,s:100,b:s})),p.find(".minicolors-grid-inner").css("opacity",n/100);break;case"brightness":e=keepWithin(parseInt(k.x*(360/m.width()),10),0,360),n=keepWithin(100-Math.floor(k.y*(100/m.height())),0,100),s=keepWithin(100-Math.floor(y.y*(100/f.height())),0,100),l=hsb2hex({h:e,s:n,b:s}),f.css("backgroundColor",hsb2hex({h:e,s:n,b:100})),p.find(".minicolors-grid-inner").css("opacity",1-s/100);break;default:e=keepWithin(360-parseInt(y.y*(360/f.height()),10),0,360),n=keepWithin(Math.floor(k.x*(100/m.width())),0,100),s=keepWithin(100-Math.floor(k.y*(100/m.height())),0,100),l=hsb2hex({h:e,s:n,b:s}),m.css("backgroundColor",hsb2hex({h:e,s:100,b:100}))}i.val(convertCase(l,u.letterCase))}t.is(".minicolors-opacity-slider")&&(d=u.opacity?parseFloat(1-C.y/b.height()).toFixed(2):1,u.opacity&&i.attr("data-opacity",d)),g.find("SPAN").css({backgroundColor:l,opacity:d}),doChange(i,l,d)}
function updateFromInput(i,t){var o,e,n,s,a,r,c,h=i.parent(),l=i.data("minicolors-settings"),d=h.find(".minicolors-swatch"),p=h.find(".minicolors-grid"),u=h.find(".minicolors-slider"),g=h.find(".minicolors-opacity-slider"),m=p.find("[class$=-picker]"),f=u.find("[class$=-picker]"),b=g.find("[class$=-picker]");switch(o=convertCase(parseHex(i.val(),!0),l.letterCase),o||(o=convertCase(parseHex(l.defaultValue,!0),l.letterCase)),e=hex2hsb(o),t||i.val(o),l.opacity&&(n=""===i.attr("data-opacity")?1:keepWithin(parseFloat(i.attr("data-opacity")).toFixed(2),0,1),isNaN(n)&&(n=1),i.attr("data-opacity",n),d.find("SPAN").css("opacity",n),a=keepWithin(g.height()-g.height()*n,0,g.height()),b.css("top",a+"px")),d.find("SPAN").css("backgroundColor",o),l.control){case"wheel":r=keepWithin(Math.ceil(.75*e.s),0,p.height()/2),c=e.h*Math.PI/180,s=keepWithin(75-Math.cos(c)*r,0,p.width()),a=keepWithin(75-Math.sin(c)*r,0,p.height()),m.css({top:a+"px",left:s+"px"}),a=150-e.b/(100/p.height()),""===o&&(a=0),f.css("top",a+"px"),u.css("backgroundColor",hsb2hex({h:e.h,s:e.s,b:100}));break;case"saturation":s=keepWithin(5*e.h/12,0,150),a=keepWithin(p.height()-Math.ceil(e.b/(100/p.height())),0,p.height()),m.css({top:a+"px",left:s+"px"}),a=keepWithin(u.height()-e.s*(u.height()/100),0,u.height()),f.css("top",a+"px"),u.css("backgroundColor",hsb2hex({h:e.h,s:100,b:e.b})),h.find(".minicolors-grid-inner").css("opacity",e.s/100);break;case"brightness":s=keepWithin(5*e.h/12,0,150),a=keepWithin(p.height()-Math.ceil(e.s/(100/p.height())),0,p.height()),m.css({top:a+"px",left:s+"px"}),a=keepWithin(u.height()-e.b*(u.height()/100),0,u.height()),f.css("top",a+"px"),u.css("backgroundColor",hsb2hex({h:e.h,s:e.s,b:100})),h.find(".minicolors-grid-inner").css("opacity",1-e.b/100);break;default:s=keepWithin(Math.ceil(e.s/(100/p.width())),0,p.width()),a=keepWithin(p.height()-Math.ceil(e.b/(100/p.height())),0,p.height()),m.css({top:a+"px",left:s+"px"}),a=keepWithin(u.height()-e.h/(360/u.height()),0,u.height()),f.css("top",a+"px"),p.css("backgroundColor",hsb2hex({h:e.h,s:100,b:100}))}i.data("minicolors-initialized")&&doChange(i,o,n)}
function doChange(i,t,o){var e=i.data("minicolors-settings"),n=i.data("minicolors-lastChange");n&&n.hex===t&&n.opacity===o||(i.data("minicolors-lastChange",{hex:t,opacity:o}),e.change&&(e.changeDelay?(clearTimeout(i.data("minicolors-changeTimeout")),i.data("minicolors-changeTimeout",setTimeout(function(){e.change.call(i.get(0),t,o)},e.changeDelay))):e.change.call(i.get(0),t,o)),i.trigger("change").trigger("input"))}
function rgbObject(i){var t=parseHex($(i).val(),!0),o=hex2rgb(t),e=$(i).attr("data-opacity");return o?(void 0!==e&&$.extend(o,{a:parseFloat(e)}),o):null}
function rgbString(i,t){var o=parseHex($(i).val(),!0),e=hex2rgb(o),n=$(i).attr("data-opacity");return e?(void 0===n&&(n=1),t?"rgba("+e.r+", "+e.g+", "+e.b+", "+parseFloat(n)+")":"rgb("+e.r+", "+e.g+", "+e.b+")"):null}
function convertCase(i,t){return"uppercase"===t?i.toUpperCase():i.toLowerCase()}
function parseHex(i,t){return i=i.replace(/[^A-F0-9]/gi,""),3!==i.length&&6!==i.length?"":(3===i.length&&t&&(i=i[0]+i[0]+i[1]+i[1]+i[2]+i[2]),"#"+i)}
function keepWithin(i,t,o){return t>i&&(i=t),i>o&&(i=o),i}
function hsb2rgb(i){var t={},o=Math.round(i.h),e=Math.round(255*i.s/100),n=Math.round(255*i.b/100);if(0===e)t.r=t.g=t.b=n;else{var s=n,a=(255-e)*n/255,r=(s-a)*(o%60)/60;360===o&&(o=0),60>o?(t.r=s,t.b=a,t.g=a+r):120>o?(t.g=s,t.b=a,t.r=s-r):180>o?(t.g=s,t.r=a,t.b=a+r):240>o?(t.b=s,t.r=a,t.g=s-r):300>o?(t.b=s,t.g=a,t.r=a+r):360>o?(t.r=s,t.g=a,t.b=s-r):(t.r=0,t.g=0,t.b=0)}return{r:Math.round(t.r),g:Math.round(t.g),b:Math.round(t.b)}}
function rgb2hex(i){var t=[i.r.toString(16),i.g.toString(16),i.b.toString(16)];return $.each(t,function(i,o){1===o.length&&(t[i]="0"+o)}),"#"+t.join("")}
function hsb2hex(i){return rgb2hex(hsb2rgb(i))}
function hex2hsb(i){var t=rgb2hsb(hex2rgb(i));return 0===t.s&&(t.h=360),t}
function rgb2hsb(i){var t={h:0,s:0,b:0},o=Math.min(i.r,i.g,i.b),e=Math.max(i.r,i.g,i.b),n=e-o;return t.b=e,t.s=0!==e?255*n/e:0,t.h=0!==t.s?i.r===e?(i.g-i.b)/n:i.g===e?2+(i.b-i.r)/n:4+(i.r-i.g)/n:-1,t.h*=60,t.h<0&&(t.h+=360),t.s*=100/255,t.b*=100/255,t}
function hex2rgb(i){return i=parseInt(i.indexOf("#")>-1?i.substring(1):i,16),{r:i>>16,g:(65280&i)>>8,b:255&i}}
$.minicolors={defaults:{animationSpeed:50,animationEasing:"swing",change:null,changeDelay:0,control:"hue",defaultValue:"",hide:null,hideSpeed:100,inline:!1,letterCase:"lowercase",opacity:!1,position:"bottom left",show:null,showSpeed:100,theme:"default"}},$.extend($.fn,{minicolors:function(i,t){switch(i){case"destroy":return $(this).each(function(){destroy($(this))}),$(this);case"hide":return hide(),$(this);case"opacity":return void 0===t?$(this).attr("data-opacity"):($(this).each(function(){updateFromInput($(this).attr("data-opacity",t))}),$(this));case"rgbObject":return rgbObject($(this),"rgbaObject"===i);case"rgbString":case"rgbaString":return rgbString($(this),"rgbaString"===i);case"settings":return void 0===t?$(this).data("minicolors-settings"):($(this).each(function(){var i=$(this).data("minicolors-settings")||{};destroy($(this)),$(this).minicolors($.extend(!0,i,t))}),$(this));case"show":return show($(this).eq(0)),$(this);case"value":return void 0===t?$(this).val():($(this).each(function(){updateFromInput($(this).val(t))}),$(this));default:return"create"!==i&&(t=i),$(this).each(function(){init($(this),t)}),$(this)}}}),$(document).on("mousedown.minicolors touchstart.minicolors",function(i){$(i.target).parents().add(i.target).hasClass("minicolors")||hide()}).on("mousedown.minicolors touchstart.minicolors",".minicolors-grid, .minicolors-slider, .minicolors-opacity-slider",function(i){var t=$(this);i.preventDefault(),$(document).data("minicolors-target",t),move(t,i,!0)}).on("mousemove.minicolors touchmove.minicolors",function(i){var t=$(document).data("minicolors-target");t&&move(t,i)}).on("mouseup.minicolors touchend.minicolors",function(){$(this).removeData("minicolors-target")}).on("mousedown.minicolors touchstart.minicolors",".minicolors-swatch",function(i){var t=$(this).parent().find(".minicolors-input");i.preventDefault(),show(t)}).on("focus.minicolors",".minicolors-input",function(){var i=$(this);i.data("minicolors-initialized")&&show(i)}).on("blur.minicolors",".minicolors-input",function(){var i=$(this),t=i.data("minicolors-settings");i.data("minicolors-initialized")&&(i.val(parseHex(i.val(),!0)),""===i.val()&&i.val(parseHex(t.defaultValue,!0)),i.val(convertCase(i.val(),t.letterCase)))}).on("keydown.minicolors",".minicolors-input",function(i){var t=$(this);if(t.data("minicolors-initialized"))switch(i.keyCode){case 9:hide();break;case 13:case 27:hide(),t.blur()}}).on("keyup.minicolors",".minicolors-input",function(){var i=$(this);i.data("minicolors-initialized")&&updateFromInput(i,!0)}).on("paste.minicolors",".minicolors-input",function(){var i=$(this);i.data("minicolors-initialized")&&setTimeout(function(){updateFromInput(i,!0)},1)});

var nick=$("#top-navigation li a[href^='/biri/']").attr("title");
if(nick===undefined){sessionStorage.removeItem("objectid");}

//parse
Parse.initialize("NRzF7khurhqTQ6upFKvBWGyGDujHwKcA5fYEqVlT","oO57HaxSMvEiGt6bmmJn3upCEi7LksZFth4jaCZq");

function objectid_getir(){
if(sessionStorage.getItem("objectid")===null)
{
if(nick!==undefined){
var ParseOku2 = Parse.Object.extend("ayarlar");
var query2 = new Parse.Query(ParseOku2);
query2.equalTo("name",nick);
query2.descending("updatedAt");
query2.first({success: function(object){sessionStorage.setItem("objectid",object.id);}});
}
}
}

function parse_oku(){
var ParseOku = Parse.Object.extend("ayarlar");
var query = new Parse.Query(ParseOku);

query.equalTo("name",nick);
query.descending("updatedAt");
query.first({
success: function(object) {
localStorage.setItem("ayarlar", JSON.stringify(JSON.parse(object.get('value'))));
location.reload();
},
error: function(error) {console.log("s��t�: " + error.code + " " + error.message);}
});
}

function parse_yaz(name,value)
{
if(sessionStorage.getItem("objectid")===null)
{
//parseyaz object yarat
var ParseYaz = Parse.Object.extend("ayarlar");
var parseyaz = new ParseYaz();
 
parseyaz.set("name", name);
parseyaz.set("value", value);
 
parseyaz.save(null, {
  success: function(parseyaz){location.reload();},
  error: function(parseyaz,error) {console.log("s��t�:"+error);}
});
}
else
{
//parseyaz object g�ncelle
var ParseUpdate = Parse.Object.extend("ayarlar");
var query3 = new Parse.Query(ParseUpdate);
query3.equalTo("objectId", sessionStorage.getItem("objectid"));
query3.first({
success: function (xx) {
xx.save(null, {
success: function (yy) {
yy.set("name", name);
yy.set("value", value);
yy.save();
location.reload();
}
});
}
,
error: function(error) {console.log("s��t�: " + error.code + " " + error.message);}
});
}

}
//

var title=$("#topic>h1#title>a>span").text().replace("'"," ");
var ayarlar,renk0,renk1,renk2,renk3,renk4,renk5,renk6,renk7,renk8,renk9,renk10,renk11,renk12,renk13,renk14,renk15,renk16,renk17,renk18,temalarim,ben_var,usengec_modu,kaydetme_modu,cizgi_modu,mycss,sabit_baslik,logo_var,mesaj_var,mesaj_yok,olay_var,olay_yok,gizleme_modu,font_select,font_boyutu,font_w,ben_kontrol,badi_kontrol,balon_modu,mesaj_olay,bos_bkz,alaka_modu,cerceve_modu,kanal_modu,yolla_text,kenar_text,durma_text,header_resmi,fon_resmi,fon_modu,fon_opacity,entry_box_resmi,msg_box_resmi,alarm_saat,alarm_ses,mesaj_ses,olay_ses,sf_baslik,sf_baslik2,sf_yenile,balongecikme,yazargizle,yazarbaslikgizle,fbmod1,fbmod2,fbmod3;
var index_section,index_section_,s_container,main,top_sol,top_sag,content_body,site_footer,youtube1,ayar_top,tab_genislik;
var ajax1,timeout;
var ekran_yuksekligi=screen.height;
var ekran_genisligi=screen.width;
var container_genisligi=$(window).width()+17+"px";
var cozunurluk=ekran_genisligi+"px"+" "+ekran_yuksekligi+"px";
var olaytakip=[{caption:"takip et",link:"track"},{caption:"takip etme",link:"untrack"}];
$("body").append("<div class=arkaplan></div>").append("<div id=supriz></div>").after("<div id=balon></div>");

if(typeof InstallTrigger !== 'undefined'){var tarayici="firefox";}else{var tarayici="chrome";}

switch(true) {
case (ekran_genisligi>="1920"):var p_genis=parseInt($(window).width())-700;index_section="300px";main="305px";top_sol="367px";top_sag="340px";s_container="300px";content_body=p_genis+"px";site_footer="20%";youtube1="560";tab_genislik="6px 10px";break;
case (ekran_genisligi>="1600" && ekran_genisligi<"1920"):var p_genis=parseInt($(window).width())-640;index_section="260px";main="260px";top_sol="323px";top_sag="323px";s_container="300px";content_body=p_genis+"px";site_footer="20%";youtube1="560";tab_genislik="6px 8px";break;
case (ekran_genisligi>="1440" && ekran_genisligi<"1600"):var p_genis=parseInt($(window).width())-600;index_section="250px";main="250px";top_sol="312px";top_sag="294px";s_container="250px";content_body=p_genis+"px";site_footer="23%";youtube1="560";tab_genislik="4px 8px";break;
case (ekran_genisligi>="1360" && ekran_genisligi<"1440"):var p_genis=parseInt($(window).width())-555;index_section="235px";main="235px";top_sol="297px";top_sag="265px";s_container="245px";content_body=p_genis+"px";site_footer="25%";youtube1="560";tab_genislik="4px 6px";break;
case (ekran_genisligi>="1280" && ekran_genisligi<"1360"):var p_genis=parseInt($(window).width())-550;index_section="220px";main="220px";top_sol="282px";top_sag="274px";s_container="250px";content_body=p_genis+"px";site_footer="28%";youtube1="560";tab_genislik="4px 4px";break;
case (ekran_genisligi>="1152" && ekran_genisligi<"1280"):var p_genis=parseInt($(window).width())-500;index_section="210px";main="210px";top_sol="228px";top_sag="0px";s_container="220px";content_body=p_genis+"px";site_footer="30%";youtube1="480";tab_genislik="4px 2px";break;
case (ekran_genisligi<"1152"):var p_genis=parseInt($(window).width())-510;index_section="235px";main="240px";top_sol="217px";top_sag="0px";s_container="220px";content_body=p_genis+"px";site_footer="30%";youtube1="480";tab_genislik="4px 2px";break;
default:var p_genis=parseInt($(window).width())-555;index_section="235px";main="235px";top_sol="297px";top_sag="265px";s_container="245px";content_body=p_genis+"px";site_footer="25%";youtube1="560";tab_genislik="4px 6px";//1366 ile ayn�
} 
index_section_=parseInt(index_section)-17+"px";

$(window).resize(function() {
switch(true) {
case (ekran_genisligi>="1920"):$("#content-body").css({"width":$(window).width()-700+"px"});break;
case (ekran_genisligi>="1600" && ekran_genisligi<"1920"):$("#content-body").css({"width":$(window).width()-640+"px"});break;
case (ekran_genisligi>="1440" && ekran_genisligi<"1600"):$("#content-body").css({"width":$(window).width()-600+"px"});break;
case (ekran_genisligi>="1360" && ekran_genisligi<"1440"):$("#content-body").css({"width":$(window).width()-555+"px"});break;
case (ekran_genisligi>="1280" && ekran_genisligi<"1360"):$("#content-body").css({"width":$(window).width()-550+"px"});break;
case (ekran_genisligi<"1280"):$("#content-body").css({"width":$(window).width()-500+"px"});break;
}
$("#container").css({"width":$(window).width()+"px"});
});

if(ekran_yuksekligi>="900"){ayar_top="10%";}else{ayar_top="3%";}
////
if(localStorage.getItem('ayarlar') === null)
{
if(nick!==undefined){parse_oku();}
ortak(0);
fabrika();
}
else
{
ayarlar=JSON.parse(localStorage.getItem('ayarlar'));renk0=ayarlar['renk0'];renk1=ayarlar['renk1'];renk2=ayarlar['renk2'];renk3=ayarlar['renk3'];renk4=ayarlar['renk4'];renk5=ayarlar['renk5'];renk6=ayarlar['renk6'];renk7=ayarlar['renk7'];renk8=ayarlar['renk8'];renk9=ayarlar['renk9'];renk10=ayarlar['renk10'];renk11=ayarlar['renk11'];renk12=ayarlar['renk12'];renk13=ayarlar['renk13'];renk14=ayarlar['renk14'];renk15=ayarlar['renk15'];renk16=ayarlar['renk16'];renk17=ayarlar['renk17'];renk18=ayarlar['renk18'];
temalarim=ayarlar['temalarim'];mycss=ayarlar['mycss'];mesaj_var=ayarlar['mesaj_var'];ben_var=ayarlar['ben_var'];mesaj_yok=ayarlar['mesaj_yok'];olay_var=ayarlar['olay_var'];olay_yok=ayarlar['olay_yok'];logo_var=ayarlar['logo_var'];font_w=ayarlar['font_w'];gizleme_modu=ayarlar['gizleme_modu'];font_select=ayarlar['font_select'];font_boyutu=ayarlar['font_boyutu'];yolla_text=ayarlar['yolla_text'];kenar_text=ayarlar['kenar_text'];durma_text=ayarlar['durma_text'];sabit_baslik=ayarlar['sabit_baslik'];
balon_modu=ayarlar['balon_modu'];mesaj_olay=ayarlar['mesaj_olay'];bos_bkz=ayarlar['bos_bkz'];ben_kontrol=ayarlar['ben_kontrol'];badi_kontrol=ayarlar['badi_kontrol'];alaka_modu=ayarlar['alaka_modu'];fbmod1=ayarlar['fbmod1'];fbmod2=ayarlar['fbmod2'];fbmod3=ayarlar['fbmod3'];cerceve_modu=ayarlar['cerceve_modu'];cizgi_modu=ayarlar['cizgi_modu'];kaydetme_modu=ayarlar['kaydetme_modu'];usengec_modu=ayarlar['usengec_modu'];kanal_modu=ayarlar['kanal_modu'];yazarbaslikgizle=ayarlar['yazarbaslikgizle'];sf_baslik=ayarlar['sf_baslik'];sf_baslik2=ayarlar['sf_baslik2'];yazargizle=ayarlar['yazargizle'];sf_yenile=ayarlar['sf_yenile'];balongecikme=ayarlar['balongecikme'];header_resmi=ayarlar['header_resmi'];fon_resmi=ayarlar['fon_resmi'];fon_modu=ayarlar['fon_modu'];fon_opacity=ayarlar['fon_opacity'];entry_box_resmi=ayarlar['entry_box_resmi'];
msg_box_resmi=ayarlar['msg_box_resmi'];alarm_saat=ayarlar['alarm_saat'];alarm_ses=ayarlar['alarm_ses'];mesaj_ses=ayarlar['mesaj_ses'];olay_ses=ayarlar['olay_ses'];
}

var renk0ust=renk(renk0,34,1);var renk0alt=renk(renk0,-34,0);var renk0ust2=renk(renk0,17,1);
var renk1ust=renk(renk1,51,1);var renk1alt=renk(renk1,-51,0);
var renk3hover=renk(renk3,34,1);var renk3alt=renk(renk3,-51,0);
var renk6ust=renk(renk6,17,1);var renk6alt=renk(renk6,-17,0);
var renk7ust=renk(renk7,17,1);var renk7alt=renk(renk7,-17,0);
var renk11ust=renk(renk11,17,1);var renk11alt=renk(renk11,-17,0);
var renk17ust=renk(renk17,17,1);

var h1boyutu=font_boyutu.split("px")[0];h1boyutu=parseInt(h1boyutu)+6+"px";
var h2boyutu=font_boyutu.split("px")[0];h2boyutu=parseInt(h2boyutu)+4+"px";
var h3boyutu=font_boyutu.split("px")[0];h3boyutu=parseInt(h3boyutu)+2+"px";
var h4boyutu=font_boyutu.split("px")[0];h4boyutu=parseInt(h4boyutu)+1+"px";

var line_height=parseInt(font_boyutu)+8+"px";
var line_height1=parseInt(font_boyutu)+6+"px";
var line_height2=parseInt(font_boyutu)+4+"px";
var line_height3=parseInt(font_boyutu)+2+"px";


/////tema ayarlar�
$("#sub-navigation").append("<ul id=ekleme><li><a id=temaayarlari title='tema++'>tema++</a></li></ul>");$('head').append('<style>#ekleme{margin-top:10px!important;position:absolute;top:-40px;}</style>');
$("#options-dropdown").appendTo("ul#main-index-nav");

$("#temaayarlari").click(function(){objectid_getir();
if($(this).hasClass("acik")==false){$(this).addClass("acik");
$("body").append("<div id=tema_ayarlar></div>");
$("#tema_ayarlar").append('<ul class="secmece"><li><input type="radio" name="secmece" id="secme0"><label for="secme0">temalar</label><div id="secme-content0" class="secme-content"></div></li><li><input type="radio" name="secmece" id="secme1"><label for="secme1">tema renkleri</label><div id="secme-content1" class="secme-content"></div></li><li><input type="radio" name="secmece" id="secme2"><label for="secme2">yaz� �izi</label><div id="secme-content2" class="secme-content"></div></li><li><input type="radio" name="secmece" id="secme3"><label for="secme3">�ekil �email</label><div id="secme-content3" class="secme-content"></div></li><li><input type="radio" name="secmece" id="secme4"><label for="secme4">bildirimler</label><div id="secme-content4" class="secme-content"></div></li><li><input type="radio" name="secmece" id="secme5"><label for="secme5">gizli</label><div id="secme-content5" class="secme-content"></div></li><li><input type="radio" name="secmece" id="secme6"><label for="secme6">dosya al / ver</label><div id="secme-content6" class="secme-content"></div></li><li><input type="radio" name="secmece" id="secme7"><label for="secme7">hakk�nda</label><div id="secme-content7" class="secme-content"></div></li><li id=kapakapa><input type="radio" name="secmece" id="secme8"><label class="kapakapa" for="secme8">X</label><div id="secme-content8" class="secme-content"></div></li></ul>');
$("#secme-content0").append("<br><div class=t_a_sl>temalar:</div><select id=temalarim><option value=fabrika>her zamanki gibi ama pek de�il</option><option value=fabrika_gece>her zamanki gibi ama pek de�il - gece</option><option value=ates>her zamanki gibi ama pek de�il - ate�</option><option value=yol>yol</option><option value=dw>doctor who</option><option value=td>true detective</option><option value=hmd>house m.d.</option><option value=bb>breaking bad</option><option value=pisi>pisipisi</option><option value=kfb>koyu fenerbah�eli</option><option value=asl>aslan</option><option value=krt>kartal</option><option value=bkb>beslenir ki bu</option><option value=pis>�ok pis</option><option value=neci>not enough coffee in</option><option value=zpc>zen pour hommes</option><option value=ssgrengi>ssg'nin rengi</option><option value=dietcoke>diet coke</option><option value=owb>obsessed with blue</option><option value=tefter>ek$i tefter</option><option value=req4>requiem 4 a dream</option><option value=adidas>adidas</option>"+temalarim+"</select>");

$("#secme-content1").append("<br><div class=t_a_sl>�st men� fon rengi:</div><input type=text class=renkler id=renk16 value="+renk16+"><div class='t_a_sg renk16'>AaSsGgIiWwQq</div>");
$("#secme-content1").append("<div class=t_a_sl>�st men� yaz� rengi:</div><input type=text class=renkler id=renk17 value="+renk17+"><div class='t_a_sg renk17'>AaSsGgIiWwQq</div><hr>");
$("#secme-content1").append("<div class=t_a_sl>fon rengi:</div><input type=text class=renkler id=renk0 value="+renk0+"><div class='t_a_sg renk0'>AaSsGgIiWwQq</div>");
$("#secme-content1").append("<div class=t_a_sl>sol frame ba�l�k rengi:</div><input type=text class=renkler id=renk1 value="+renk1+"><div class='t_a_sg renk1'>AaSsGgIiWwQq</div>");
$("#secme-content1").append("<div class=t_a_sl>sol frame ba�l�k �st�ne gelince g�r�nen renk:</div><input type=text class=renkler id=renk2 value="+renk2+"><div class='t_a_sg renk2'>AaSsGgIiWwQq</div>");
$("#secme-content1").append("<div class=t_a_sl>sol frame ba�l�k �st�ne gelince g�r�nen fon rengi:</div><input type=text class=renkler id=renk15 value="+renk15+"><div class='t_a_sg renk15'>AaSsGgIiWwQq</div>");
$("#secme-content1").append("<div class=t_a_sl>sol frame ba�l�klar� ay�ran �izgi rengi:</div><input type=text class=renkler id=renk18 value="+renk18+"><div class='t_a_sg renk18'>AaSsGgIiWwQq</div>");
$("#secme-content1").append("<div class=t_a_sl>konu ba�l�klar�n�n rengi:</div><input type=text class=renkler id=renk3 value="+renk3+"><div class='t_a_sg renk3'>AaSsGgIiWwQq</div>");
$("#secme-content1").append("<div class=t_a_sl>entry yaz� rengi:</div><input type=text id=renk5 class=renkler value="+renk5+"><div class='t_a_sg renk5'>AaSsGgIiWwQq</div>"); 
$("#secme-content1").append("<div class=t_a_sl>entry link rengi:</div><input type=text id=renk4 class=renkler value="+renk4+"><div class='t_a_sg renk4'>AaSsGgIiWwQq</div>");  
$("#secme-content1").append("<div class=t_a_sl>entry link �st�ne gelince g�r�nen renk:</div><input type=text id=renk8 class=renkler value="+renk8+"><div class='t_a_sg renk8'>AaSsGgIiWwQq</div>");
$("#secme-content1").append("<div class=t_a_sl>entry oylama butonlar�n�n rengi:</div><input type=text class=renkler id=renk9 value="+renk9+"><div class='t_a_sg renk9'>AaSsGgIiWwQq</div>"); 
$("#secme-content1").append("<div class=t_a_sl>entry oylama butonlar�n�n �st�ne gelince g�r�nen renk:</div><input type=text class=renkler id=renk10 value="+renk10+"><div class='t_a_sg renk10'>AaSsGgIiWwQq</div>"); 
$("#secme-content1").append("<div class=t_a_sl>buton(sayfa se�ici vs.) rengi:</div><input type=text class=renkler id=renk11 value="+renk11+"><div class='t_a_sg renk11'>AaSsGgIiWwQq</div>");
$("#secme-content1").append("<div class=t_a_sl>buton yaz� rengi:</div><input type=text class=renkler id=renk12 value="+renk12+"><div class='t_a_sg renk12'>AaSsGgIiWwQq</div>");
$("#secme-content1").append("<div class=t_a_sl>butonlerin �st�ne gelince g�r�nen renk:</div><input type=text class=renkler id=renk7 value="+renk7+"><div class='t_a_sg renk7'>AaSsGgIiWwQq</div>");  
$("#secme-content1").append("<div class=t_a_sl>yard�mc� men�lerin rengi:</div><input type=text class=renkler id=renk6 value="+renk6+"><div class='t_a_sg renk6'>AaSsGgIiWwQq</div>"); 
$("#secme-content1").append("<div class=t_a_sl>entry ve mesaj kutular�n�n fon rengi:</div><input type=text class=renkler id=renk14 value="+renk14+"><div class='t_a_sg renk14'>AaSsGgIiWwQq</div>");
$("#secme-content1").append("<div class=t_a_sl>entry ve mesaj kutular�n�n yaz� rengi:</div><input type=text class=renkler id=renk13 value="+renk13+"><div class='t_a_sg renk13'>AaSsGgIiWwQq</div>");
$("#secme-content1").append("<div class=uyari>rengi �effaf yapmak istiyorsan�z ilgili kutuyu bo� b�rak�n.</div>");
$("[id^='renk']").each(function(){if($(this).val()=="transparent"){$(this).val("");}});
//
$("#secme-content2").append("<br><div class=t_a_sl>yaz� tipi:</div><select id=font_select><option value=verdana>verdana</option><option value=tahoma>tahoma</option><option value=arial>arial</option><option value='lucida sans unicode'>lucida sans unicode</option><option value='trebuchet ms'>trebuchet</option><option value='comic sans ms'>comic sans</option><option value='segoe ui'>segoe ui</option>"+font_select+"</select><div class='t_a_sg font_select'>AaSsGgIiWwQq</div>");
$("#secme-content2").append("<div class=t_a_sl>yaz� boyutu:</div><select id=font_boyutu><option value=9px>9px</option><option value=10px>10px</option><option value=11px>11px</option><option value=12px>12px</option><option value=13px>13px</option><option value=14px>14px</option><option value=15px>15px</option><option value=16px>16px</option>"+font_boyutu+"</select><div class='t_a_sg font_boyutu'>AaSsGgIiWwQq</div>");
$("#secme-content2").append("<div class=t_a_sl>yaz� kal�nl���:</div><select id=font_w><option value=normal>normal</option><option value=bold>kal�n</option>"+font_w+"</select><div class='t_a_sg font_w'>AaSsGgIiWwQq</div><hr>");
$("#secme-content2").append("<div class=t_a_sl>\"yolla\" yazmas�n, bunu yazs�n:</div><input type=text id=yolla_text value="+yolla_text+">");
$("#secme-content2").append("<div class=t_a_sl>\"kenarda dursun\" yazmas�n, bunu yazs�n:</div><input type=text id=kenar_text value="+kenar_text+">");
$("#secme-content2").append("<div class=t_a_sl>\"durmas�n\" yazmas�n, bunu yazs�n:</div><input type=text id=durma_text value="+durma_text+"><hr>");
$("#secme-content2").append("<div class=t_a_sl>* bu ba�l�klar� farkl� renkte g�ster:</div><input title='belirtti�iniz ba�l�klar� di�erlerinden farkl� renkle g�sterir.' type=text id=sf_baslik value="+sf_baslik+"><div class='t_a_sg'><button id=haniben class=more-data>hani ben?</button></div><hr>");
$("#secme-content2").append("<div class=t_a_sl>* ba�l�klar� otomatik yenile(saniye):</div><input title='30 yazarsan�z 30 saniyede bir sol frame yenilenir. 0 yazarsan�z yenileme yap�lmaz.' type=text id=sf_yenile value="+sf_yenile+"><hr>");
$("#secme-content2").append("<div class=t_a_sl>* konu ba�l�klar�n� sabitle:</div><input title='sayfay� kayd�rsan�z bile, konu ba�l��� ve alt�ndaki men�n�n sabit kalmas�n� sa�lar.' type=checkbox id=sabit_baslik value="+sabit_baslik+"><hr>");
$("#secme-content2").append("<div class=t_a_sl>* entry'ye g�m�lm�� linkleri yeni sekmede a�:</div><input title='g�m�l� bkz veya g�rsel gibi i�eri�e sahip linkleri yeni sekmede a�ar.' type=checkbox id=usengec_modu value="+usengec_modu+"><hr>");
$("#secme-content2").append("<div class=t_a_sl>* entry'leri �er�eveye al:</div><input type=checkbox id=cerceve_modu value="+cerceve_modu+"><hr>");
$("#secme-content2").append("<div class=t_a_sl>* entry aralar�ndaki �izgiyi kald�r:</div><input type=checkbox id=cizgi_modu value="+cizgi_modu+"><hr>");
$("#secme-content2").append("<div class=t_a_sl>* feedback butonlar� (��kela vs.) her zaman g�r�ns�n:</div><input title='' type=checkbox id=fbmod1 value="+fbmod1+"><hr>");
$("#secme-content2").append("<div class=t_a_sl>* feedback butonlar�n� sa�a al:</div><input title='' type=checkbox id=fbmod3 value="+fbmod3+"><hr>");
$("#secme-content2").append("<div class=t_a_sl>* feedback butonlar�n�n d�zeni:</div><select id=fbmod2 class=kutukutu><option value=0>facebook - twitter - favori - ��kela - �ok k�t�</option><option value=1>facebook - twitter - ��kela - �ok k�t� - favori</option><option value=2>favori - facebook - twitter - ��kela - �ok k�t�</option><option value=3>favori - ��kela - �ok k�t� - facebook - twitter</option><option value=4>��kela - �ok k�t� - facebook - twitter - favori</option><option value=5>��kela - �ok k�t� - favori - facebook - twitter</option>"+fbmod2+"></select><hr>");

//
$("#secme-content3").append("<br><div class=t_a_sl>* �st men� g�rseli:</div><input title='belirledi�iniz g�rseli butonlar�n �st�n� kapatacak �ekilde ekler.' type=text id=header_resmi value="+header_resmi+"><hr>");
$("#secme-content3").append("<div class=t_a_sl>* girdi�im ba�l��a g�re fon g�rselini de�i�tir:</div><input title='o an bulundu�unuz ba�l�kla alakal� bir g�rseli fon resminiz yapar.' type=checkbox id=fon_modu value="+fon_modu+">");
$("#secme-content3").append("<div class=t_a_sl>fon g�rseli:</div><input type=text id=fon_resmi value="+fon_resmi+">");
$("#secme-content3").append("<div class=t_a_sl>fon g�rselinin g�r�n�rl���:</div><input title='0 ve 1 aras� de�er girerek fondaki g�rselin g�r�n�rl���n� de�i�tirebilirsiniz.' type=text id=fon_opacity value="+fon_opacity+"><hr>");
$("#secme-content3").append("<div class=t_a_sl>entry yaz�m alan� g�rseli:</div><input type=text id=entry_box_resmi value="+entry_box_resmi+"><hr>");
$("#secme-content3").append("<div class=t_a_sl>mesaj yaz�m alan� g�rseli:</div><input type=text id=msg_box_resmi value="+msg_box_resmi+"><hr>");
$("#secme-content3").append("<div class=t_a_sl>ben g�rseli:</div><input type=text id=ben_var value="+ben_var+">");
$("#secme-content3").append("<div class=t_a_sl>mesaj var g�rseli:</div><input type=text id=mesaj_var value="+mesaj_var+">");
$("#secme-content3").append("<div class=t_a_sl>mesaj yok g�rseli:</div><input type=text id=mesaj_yok value="+mesaj_yok+">");
$("#secme-content3").append("<div class=t_a_sl>olay var g�rseli:</div><input type=text id=olay_var value="+olay_var+">");
$("#secme-content3").append("<div class=t_a_sl>olay yok g�rseli:</div><input type=text id=olay_yok value="+olay_yok+"><hr>");
$("#secme-content3").append("<div class=t_a_sl>logo:</div><input type=text id=logo_var value="+logo_var+"><hr>");
$("#secme-content3").append("<div class=t_a_sl>* girilen ba�l�kla \"�ok alakal�\" videolar� g�ster:</div><input type=checkbox id=alaka_modu value="+alaka_modu+">");
$("#secme-content3").append("<div class=t_a_sl>* ba�l���n kanallar�n� g�ster:</div><input type=checkbox id=kanal_modu value="+kanal_modu+"><hr>");
$("#secme-content3").append("<div class=uyari>g�rsel kullanmak istemiyorsan�z ilgili kutuyu bo� b�rak�n.</div>");
//
$("#secme-content4").append("<br><div class=t_a_sl>* ba�l�k bilgilendirme balonunu aktif et:</div><input title='sol frame �zerinde "+balongecikme+" sn. bekleyince ba�l���n ilk entrysi g�r�n�r.' type=checkbox id=balon_modu value="+balon_modu+"><hr>");
$("#secme-content4").append("<div class=t_a_sl>* bilgilendirme balonu i�in bekleme s�resi(saniye):</div><input title='balonun g�z�kmesi i�in ba�l�k �zerinde beklenmesi gereken s�renin saniye cinsinden de�eri' type=text id=balongecikme value="+balongecikme+"><hr>");
$("#secme-content4").append("<div class=t_a_sl>* badilerim entry girerse uyar:</div><input title='badilerinizin entry girdi�inde, girdi�i ba�l��� ve kimin yazd���n� belirtir.' type=checkbox id=badi_kontrol value="+badi_kontrol+"><hr>");
$("#secme-content4").append("<div class=t_a_sl>* ben'i otomatik kontrol et:</div><input title='entryleriniz oyland���nda veya favland���nda ben butonu ���k verir.' type=checkbox id=ben_kontrol value="+ben_kontrol+"><hr>");
$("#secme-content4").append("<div class=t_a_sl>* mesaj & olay'� otomatik kontrol et:</div><input title='mesaj gelip gelmedi�ini veya olay bildirimi olup olmad���n� 20 saniyede bir kontrol eder.' type=checkbox id=mesaj_olay value="+mesaj_olay+"><hr>");
$("#secme-content4").append("<div class=t_a_sl>* bo� bkz'lar� belirt:</div><input type=checkbox id=bos_bkz value="+bos_bkz+"><hr>");
$("#secme-content4").append("<br><hr><div class=t_a_sl>sesli bildirimler</div>");
$("#secme-content4").append("<div class=t_a_sl>mesaj sesi:</div><input title='mesaj ald���n�zda �al�nacak ses' type=text id=mesaj_ses value="+mesaj_ses+">");
$("#secme-content4").append("<div class=t_a_sl>olay sesi:</div><input title='olay bildirimi ald���n�zda �al�nacak ses' type=text id=olay_ses value="+olay_ses+"><hr>");
$("#secme-content4").append("<div class=t_a_sl>alarm saati:</div><input placeholder='9:45' title='istedi�iniz saatte sesli olarak uyar�r' type=text id=alarm_saat value="+alarm_saat+">");
$("#secme-content4").append("<div class=t_a_sl>alarm sesi:</div><input title='alarm olarak kullan�lacak ses' type=text id=alarm_ses value="+alarm_ses+"><hr>");
$("#secme-content4").append("<div class=uyari>sesli bildirim i�in �rnek link: https://dl.dropboxusercontent.com/u/82207064/tema/audio/snc.mp3</div>");
//
$("#secme-content5").append("<br><div class=t_a_sl>* bu kelimeleri i�eren ba�l�klar� gizle:</div><textarea rows=4 class=kutukutu title='belirtti�iniz kelimeyi i�eren ba�l�klar� g�zden uzak tutar.' id=sf_baslik2 value="+sf_baslik2+"></textarea><hr>");
$("#secme-content5").append("<div class=t_a_sl>* bu yazarlar�n entry'lerini gizle:</div><textarea rows=5 class=kutukutu title='belirtti�iniz yazarlar�n entrylerini gizler, dilerseniz butona t�klay�p okuyabilirsiniz.' id=yazargizle value="+yazargizle+"></textarea>");
$("#secme-content5").append("<div class=t_a_sl>* entry gizleme modu:</div><select id=gizleme_modu class=kutukutu><option value=0>entry hi� g�r�nmesin</option><option value=1>entry kapal� gelsin, istersem a�abileyim</option>"+gizleme_modu+"</select>");
$("#secme-content5").append("<div class=t_a_sl>* bu yazarlar�n a�t��� ba�l�klar� da gizle:</div><input title='gizledi�iniz yazarlar�n a�t��� ba�l�klar� g�zden uzak tutar.' type=checkbox id=yazarbaslikgizle value="+yazarbaslikgizle+">");
$("#secme-content5").append("<div class=t_a_sl>engellenmi� yazarlar� kopyala:</div><button style='display:inline-block;margin-top:2px;' id=engelligetir class=more-data title='ek�i s�zl�k engelli listesini getirir.' >engellediklerimi getir</button><br><hr>");
$("#secme-content5").append("<div class=uyari>yazarlar(ba�l�klar) aras�na ; ekleyin. �rnek: futurama;ffmvain</div>");
//
$("#secme-content6").append("<div id=tema_butonlar><button id=export class=more-data>ayarlar�m� dosya olarak ver</button><button id=import class=more-data>ayarlar�m� dosyadan al</button><button id=tema_uygula class=more-data>uygula</button><button id=tema_kaydetme class=more-data>vazcay</button><input id=fayl type=file></input></div>");
$("#secme-content6").append("<br><hr><div class=t_a_sl>css ekle:</div><textarea rows=5 id=mycss value="+mycss+"></textarea><hr>");

//
$("#secme-content7").append("<br><div class=t_a_sl></div><div class='t_a_sg hakk'><a href='/tema--4544437'>tema++</a></div><hr>");
$("#secme-content7").append("<div class=t_a_sl>versiyon:</div><div class='t_a_sg hakk'><a href='/tema--4544437'>"+temaversiyon+"</a></div><hr>");
$("#secme-content7").append("<div class=t_a_sl>yazan & y�neten & iyi adam:</div><div class='t_a_sg hakk'><a href='/biri/futurama'>futurama</a></div><hr>");
$("#secme-content7").append("<div class=t_a_sl>iyi kad�n:</div><div class='t_a_sg hakk'><a href='/maura-isles--2165404'>maura isles</a></div><hr>");
$("#secme-content7").append("<div class=t_a_sl>k�t� adam:</div><div class='t_a_sg hakk'><a href='/biri/ffmvain'>ffmvain</a></div><hr>");
$("#secme-content7").append("<div class=t_a_sl>k�t� kad�n:</div><div class='t_a_sg hakk'><a href='/catwoman--58801'>catwoman</a></div><hr>");
$("#secme-content7").append("<div class=t_a_sl>d�� ses:</div><div class='t_a_sg hakk'><a href='/biri/primarymaster'>primarymaster</a></div><hr>");
$("#secme-content7").append("<div class=t_a_sl>yap�mc�:</div><div class='t_a_sg hakk'><a href='/biri/ssg'>ssg</a></div><hr>");
$("#secme-content7").append("<div class=t_a_sl>yiyimci:</div><div class='t_a_sg hakk'><a href='/biri/kanzuk'>kanzuk</a></div><hr>");
$(".secmece").append("<input title='UYGULA BUTONUNA BASMANIZDAN SONRA yapt���n�z her ayar� kaydeder' type=checkbox id=kaydetme_modu value="+kaydetme_modu+"><div title='UYGULA BUTONUNA BASMANIZDAN SONRA yapt���n�z her ayar� kaydeder' id=kaydetme_modu_text style='margin-left:15px;bottom:5px;color:#aaa;'>otomatik kaydet</div>");



$('[id^="secme"]:not(#secme-content6)').append("<div id=tema_butonlar><button id=tema_fabrika class=more-data>fabrika ayarlar�</button><button id=tema_ayar_getir class=more-data>benim ayarlar�m</button><button id=tema_ayar_gonder class=more-data>ayarlar�m� kaydet</button><button id=tema_uygula class=more-data>uygula</button><button id=tema_kaydetme class=more-data>vazcay</button></div>");

$('head').append('<style>#kapakapa{float:right;font-weight:bold;}#kapakapa label.kapakapa{background-color:#f00;}.secmece{top:'+ayar_top+';width:800px;font-size:12px;margin:0 auto;float:none;list-style:none;position:fixed;left:0px;right:0px;z-index:100000;}.secmece li{float:left;}.secmece label{display:block;padding:3px 10px;margin-right:2px;color:#ccc;font-size:12px;background:#666;cursor:pointer;position:relative;top:5px;}.secmece label:hover {top: 0;padding-bottom: 6px;}[id^=secme]:checked + label {background:#999;color:#000;top: 0;padding-bottom: 6px;}[id^=secme]:checked ~ [id^=secme-content] {display: block;}.secme-content{z-index: 2;display: none;text-align: left;width: 100%;height:564px;background:#000;border:1px solid #999;padding:5px;position:absolute;top:25px;left:0px;}.secmece input[type=radio]{position:absolute;top:-9999px;left:-9999px;}</style>');
$('head').append('<style>.t_a_sl{width:400px;margin-right:5px;margin-bottom:1px;color:#aaa;display:inline-block;text-align:right;}.t_a_sg{margin-left:5px;margin-bottom:5px;display:inline-block;vertical-align:middle;}#tema_ayarlar input,#mycss,.kutukutu{display: inline-block;width:215px;max-width:100%;float:none;margin-top:1px;vertical-align:middle;}.kutukutu{width:360px!important;}#tema_ayarlar input[type=checkbox]{width:auto;}#tema_ayarlar select{width:215px;margin-top:4px;margin-bottom:8px;} #tema_ayarlar hr{display:block;height:1px;border:0;border-top:1px solid #444;margin:2px 0px;padding:0px;}#tema_ayarlar #secme-content1 input[type=text]{height:24px;}.uyari{text-align:center;color:#f54;}</style>');
$('head').append('<style>#tema_butonlar{position:absolute;bottom:5px;left:0px;width:100%;}#tema_ayar_getir,#tema_ayar_gonder,#kaydetme_modu,#kaydetme_modu_text,#tema_fabrika,#tema_uygula,#tema_kaydetme,#export,#import{width:auto;text-align:center;position:absolute;bottom:0px;}#tema_fabrika,#export{left:10px;right:auto;}#tema_ayar_getir{left:142px;right:auto;}#tema_ayar_gonder{left:280px;right:auto;}#kaydetme_modu,#kaydetme_modu_text{z-index:100001;left:430px;top:561px;right:auto;}#kaydetme_modu_text{cursor:pointer;top:558px;}#tema_uygula{right:10px;}#import{left:218px;right:auto;}#tema_kaydetme{right:90px;}#fayl{display:none !important;}#haniben{position:relative;top:6px;}select#temalarim{width:300px;}.t_a_sg.hakk a{color:#fe0;}.t_a_sg.hakk a:hover{color:#15a;}</style>');

$("#header_resmi").val(header_resmi);
$("#sf_baslik").val(sf_baslik);
$("#sf_baslik2").val(sf_baslik2);
$("#yazargizle").val(yazargizle);
$("#sf_yenile").val(sf_yenile);
$("#fon_resmi").val(fon_resmi);
$("#ben_var").val(ben_var);
$("#mesaj_var").val(mesaj_var);
$("#mesaj_yok").val(mesaj_yok);
$("#olay_var").val(olay_var);
$("#olay_yok").val(olay_yok);
$("#logo_var").val(logo_var);
$("#mycss").val(mycss);
$("#fon_opacity").val(fon_opacity); 
$("#entry_box_resmi").val(entry_box_resmi);
$("#msg_box_resmi").val(msg_box_resmi);    
$("#alarm_saat").val(alarm_saat);
$("#alarm_ses").val(alarm_ses);
$("#mesaj_ses").val(mesaj_ses);
$("#olay_ses").val(olay_ses);
$("#gizleme_modu").val(gizleme_modu);
$("#fbmod2").val(fbmod2);
$("#font_select").val(font_select);
$("#font_boyutu").val(font_boyutu);
$("#font_w").val(font_w);
$("#temalarim").val(temalarim);
$("#yolla_text").val(yolla_text);
$("#kenar_text").val(kenar_text);
$("#durma_text").val(durma_text);
$("#balongecikme").val(balongecikme);
if(badi_kontrol=="1"){$("#badi_kontrol").prop("checked",true);}else{$("#badi_kontrol").prop("checked",false);}
if(ben_kontrol=="1"){$("#ben_kontrol").prop("checked",true);}else{$("#ben_kontrol").prop("checked",false);}
if(balon_modu=="1"){$("#balon_modu").prop("checked",true);}else{$("#balon_modu").prop("checked",false);}
if(mesaj_olay=="1"){$("#mesaj_olay").prop("checked",true);}else{$("#mesaj_olay").prop("checked",false);}
if(bos_bkz=="1"){$("#bos_bkz").prop("checked",true);}else{$("#bos_bkz").prop("checked",false);}
if(alaka_modu=="1"){$("#alaka_modu").prop("checked",true);}else{$("#alaka_modu").prop("checked",false);}
if(fbmod1=="1"){$("#fbmod1").prop("checked",true);}else{$("#fbmod1").prop("checked",false);}
if(fbmod3=="1"){$("#fbmod3").prop("checked",true);}else{$("#fbmod3").prop("checked",false);}
if(cerceve_modu=="1"){$("#cerceve_modu").prop("checked",true);}else{$("#cerceve_modu").prop("checked",false);}
if(cizgi_modu=="1"){$("#cizgi_modu").prop("checked",true);}else{$("#cizgi_modu").prop("checked",false);}
if(kaydetme_modu=="1"){$("#kaydetme_modu").prop("checked",true);}else{$("#kaydetme_modu").prop("checked",false);}
if(kanal_modu=="1"){$("#kanal_modu").prop("checked",true);}else{$("#kanal_modu").prop("checked",false);}
if(usengec_modu=="1"){$("#usengec_modu").prop("checked",true);}else{$("#usengec_modu").prop("checked",false);}
if(fon_modu=="1"){$("#fon_modu").prop("checked",true);}else{$("#fon_modu").prop("checked",false);}
if(sabit_baslik=="1"){$("#sabit_baslik").prop("checked",true);}else{$("#sabit_baslik").prop("checked",false);}
if(yazarbaslikgizle=="1"){$("#yazarbaslikgizle").prop("checked",true);}else{$("#yazarbaslikgizle").prop("checked",false);}

if($("#fon_modu").is(":checked")==true){$('head').append('<style>#fon_resmi{visibility:hidden;}</style>');}else{$('head').append('<style>#fon_resmi{visibility:visible;}</style>');} 
if($("#balon_modu").is(":checked")==false){$('head').append('<style>#balongecikme{visibility:hidden;}</style>');}else{$('head').append('<style>#balongecikme{visibility:visible;}</style>');} 


$(".t_a_sg.renk0").css({"color":renk0});    
$(".t_a_sg.renk1").css({"color":renk1});
$(".t_a_sg.renk2").css({"color":renk2}); 
$(".t_a_sg.renk3").css({"color":renk3});
$(".t_a_sg.renk4").css({"color":renk4});
$(".t_a_sg.renk5").css({"color":renk5});
$(".t_a_sg.renk6").css({"color":renk6});  
$(".t_a_sg.renk7").css({"color":renk7}); 
$(".t_a_sg.renk8").css({"color":renk8});
$(".t_a_sg.renk9").css({"color":renk9});
$(".t_a_sg.renk10").css({"color":renk10}); 
$(".t_a_sg.renk11").css({"color":renk11});
$(".t_a_sg.renk12").css({"color":renk12});
$(".t_a_sg.renk13").css({"color":renk13});
$(".t_a_sg.renk14").css({"color":renk14});
$(".t_a_sg.renk15").css({"color":renk15});
$(".t_a_sg.renk16").css({"color":renk16});
$(".t_a_sg.renk17").css({"color":renk17});
$(".t_a_sg.renk18").css({"color":renk18});
$(".t_a_sg.font_select").css({"font-family":$("#font_select").val()}); 
$(".t_a_sg.font_boyutu").css({"font-size":$("#font_boyutu").val()}); 
$(".t_a_sg.font_w").css({"font-weight":$("#font_w").val()});
  
  
$('head').append('<style>.minicolors{position:relative;}.minicolors-swatch{position:absolute;vertical-align:middle;background:url(http://i.imgur.com/NpbkBBg.png) -80px 0;border:1px solid #ccc;cursor:text;padding:0;margin:0;display:inline-block}.minicolors-swatch-color{position:absolute;top:0;left:0;right:0;bottom:0}.minicolors input[type=hidden]+.minicolors-swatch{width:28px;position:static;cursor:pointer}.minicolors-panel{position:absolute;width:173px;height:152px;background:#fff;border:1px solid #CCC;box-shadow:0 0 20px rgba(0,0,0,.2);z-index:99999;-moz-box-sizing:content-box;-webkit-box-sizing:content-box;box-sizing:content-box;display:none}.minicolors-panel.minicolors-visible{display:block}.minicolors-position-top .minicolors-panel{top:-154px}.minicolors-position-right .minicolors-panel{right:0}.minicolors-position-bottom .minicolors-panel{top:auto}.minicolors-position-left .minicolors-panel{left:0}.minicolors-with-opacity .minicolors-panel{width:194px}.minicolors .minicolors-grid{position:absolute;top:1px;left:1px;width:150px;height:150px;background:url(http://i.imgur.com/NpbkBBg.png) -120px 0;cursor:crosshair}.minicolors .minicolors-grid-inner{position:absolute;top:0;left:0;width:150px;height:150px;background:0 0}.minicolors-slider-saturation .minicolors-grid{background-position:-420px 0}.minicolors-slider-saturation .minicolors-grid-inner{background:url(jquery.minicolors.png) -270px 0}.minicolors-slider-brightness .minicolors-grid{background-position:-570px 0}.minicolors-slider-brightness .minicolors-grid-inner{background:#000}.minicolors-slider-wheel .minicolors-grid{background-position:-720px 0}.minicolors-opacity-slider,.minicolors-slider{position:absolute;top:1px;left:152px;width:20px;height:150px;background:#fff url(http://i.imgur.com/NpbkBBg.png);cursor:row-resize}.minicolors-slider-saturation .minicolors-slider{background-position:-60px 0}.minicolors-slider-brightness .minicolors-slider,.minicolors-slider-wheel .minicolors-slider{background-position:-20px 0}.minicolors-opacity-slider{left:173px;background-position:-40px 0;display:none}.minicolors-with-opacity .minicolors-opacity-slider{display:block}.minicolors-grid .minicolors-picker{position:absolute;top:70px;left:70px;width:12px;height:12px;border:1px solid #000;border-radius:10px;margin-top:-6px;margin-left:-6px;background:0 0}.minicolors-grid .minicolors-picker>div{position:absolute;top:0;left:0;width:8px;height:8px;border-radius:8px;border:2px solid #fff;-moz-box-sizing:content-box;-webkit-box-sizing:content-box;box-sizing:content-box}.minicolors-picker{position:absolute;top:0;left:0;width:18px;height:2px;background:#fff;border:1px solid #000;margin-top:-2px;-moz-box-sizing:content-box;-webkit-box-sizing:content-box;box-sizing:content-box}.minicolors-inline{display:inline-block}.minicolors-inline .minicolors-input{display:none!important}.minicolors-inline .minicolors-panel{position:relative;top:auto;left:auto;box-shadow:none;z-index:auto;display:inline-block}.minicolors-theme-default .minicolors-swatch{top:5px;left:5px;width:18px;height:18px}.minicolors-theme-default.minicolors-position-right .minicolors-swatch{left:auto;right:5px}.minicolors-theme-default.minicolors{width:auto;display:inline-block}.minicolors-theme-default .minicolors-input{width:auto;display:inline-block;padding-left:26px}.minicolors-theme-default.minicolors-position-right .minicolors-input{padding-right:26px;padding-left:inherit}.minicolors-theme-bootstrap .minicolors-swatch{top:3px;left:3px;width:28px;height:28px;border-radius:3px}.minicolors-theme-bootstrap .minicolors-swatch-color{border-radius:inherit}.minicolors-theme-bootstrap.minicolors-position-right .minicolors-swatch{left:auto;right:3px}.minicolors-theme-bootstrap .minicolors-input{padding-left:44px}.minicolors-theme-bootstrap.minicolors-position-right .minicolors-input{padding-right:44px;padding-left:12px}.minicolors-theme-bootstrap .minicolors-input.input-lg+.minicolors-swatch{top:4px;left:4px;width:37px;height:37px;border-radius:5px}.minicolors-theme-bootstrap .minicolors-input.input-sm+.minicolors-swatch{width:24px;height:24px}</style>');
$(".renkler").minicolors();


if(nick===undefined){$("#tema_ayar_getir,#tema_ayar_gonder,#haniben,#engelligetir,#kaydetme_modu,#kaydetme_modu_text").hide();}
if(localStorage.getItem("sekmetut")===null){$("#secme0").prop("checked",true);}else{var sekmetut=localStorage.getItem("sekmetut");$("#"+sekmetut+"").prop("checked",true);}

}
});


function ortak(mod){
	ben_kontrol="0";	
	badi_kontrol="0";	
	balon_modu="0";
	mesaj_olay="1";	
	bos_bkz="0";	
	alaka_modu="0";
	cizgi_modu="0";
	fbmod1="1";
	fbmod2="4";
	fbmod3="1";	
	cerceve_modu="0";	
	kaydetme_modu="1";	
	kanal_modu="0";
	yazarbaslikgizle="0";	
	usengec_modu="0";	
	sf_yenile="0";
	balongecikme="1.5";	
	fon_modu="0";
	sabit_baslik="1";
	header_resmi="";
	gizleme_modu="1";
	
	if(mod=="0")
	{
	sf_baslik="tema++";
	sf_baslik2="";
	yazargizle="";	
	}
}
function fabrika(){  
	renk0="#ebebeb";
	renk1="#0027b8";
	renk2="#0027b8";
	renk3="#0027b8";
	renk4="#0027b8";
	renk5="#0f0f0f";
	renk6="#666666";
	renk7="#bbbbbb";
	renk8="#111111";
	renk9="#ababab";	
	renk10="#0027b8";
	renk11="#cccccc";
	renk12="#000000";
	renk13="#000000";
	renk14="#ffffff";	
	renk15="#d8d8d8";
	renk16="#333333";
	renk17="#dddddd";
	renk18="#d7d7d7";	
	fon_resmi="";
	entry_box_resmi="";
	msg_box_resmi="";	
	ben_var="";
	mesaj_var="";
	mesaj_yok="";
	olay_var="";
	olay_yok="";
	logo_var="https://ekstat.com/img/logov2.png";	
	mycss="";
	fon_opacity="0.15";
	alarm_saat="";
	alarm_ses="";
	mesaj_ses="";
	olay_ses="";
	font_select="verdana";
	font_boyutu="12px";
	font_w="normal";
	temalarim="fabrika";	
	yolla_text="yolla";
	kenar_text="kenarda dursun";
	durma_text="durmas�n";
}
function fabrika_gece(){  
	renk0="#191919";
	renk1="#79cc42";
	renk2="#79cc42";
	renk3="#79cc42";
	renk4="#79cc42";
	renk5="#ccccc2";
	renk6="#777777";
	renk7="#bbbbbb";
	renk8="#99ec62";
	renk9="#555555";	
	renk10="#79cc42";
	renk11="#cccccc";
	renk12="#000000";
	renk13="#ccccc2";
	renk14="#222222";	
	renk15="#292929";
	renk16="#292929";
	renk17="#ccccc2";	
	renk18="transparent";	
	fon_resmi="";
	entry_box_resmi="";
	msg_box_resmi="";	
	ben_var="";
	mesaj_var="";
	mesaj_yok="";
	olay_var="";
	olay_yok="";
	logo_var="https://ekstat.com/img/logov2.png";	
	mycss="";
	fon_opacity="0.15";		
	alarm_saat="";alarm_ses="";	
	mesaj_ses="";
	olay_ses="";
	font_select="verdana";
	font_boyutu="12px";
	font_w="normal";
	temalarim="fabrika_gece";	
	yolla_text="yolla";
	kenar_text="kenarda dursun";
	durma_text="durmas�n";
}
function ates(){  
	renk0="#191919";
	renk1="#e36526";
	renk2="#e36526";
	renk3="#e36526";
	renk4="#e36526";
	renk5="#ccccc2";
	renk6="#777777";
	renk7="#bbbbbb";
	renk8="#f37536";
	renk9="#555555";	
	renk10="#e36526";
	renk11="#cccccc";
	renk12="#000000";
	renk13="#ccccc2";
	renk14="#222222";	
	renk15="#292929";
	renk16="#292929";
	renk17="#ccccc2";	
	renk18="transparent";	
	fon_resmi="";
	entry_box_resmi="";
	msg_box_resmi="";	
	ben_var="";
	mesaj_var="";
	mesaj_yok="";
	olay_var="";
	olay_yok="";
	logo_var="https://ekstat.com/img/logov2.png";	
	mycss="";
	fon_opacity="0.15";		
	alarm_saat="";alarm_ses="";	
	mesaj_ses="";
	olay_ses="";
	font_select="verdana";
	font_boyutu="12px";
	font_w="normal";
	temalarim="ates";	
	yolla_text="yolla";
	kenar_text="kenarda dursun";
	durma_text="durmas�n";
}
function koyu_fenerbahceli(){    
	renk0="#000000";
	renk1="#878787";
	renk2="#007dfa";
	renk3="#7ccc0c";
	renk4="#ffef08";
	renk5="#aaaaaa";
	renk6="#666666";
	renk7="#28a3eb";
	renk8="#aaaaaa";
	renk9="#555555";	
	renk10="#7ccc0c";
	renk11="#cccccc";
	renk12="#000000";
	renk13="#ffffff";
	renk14="transparent";	
	renk15="transparent";	
	renk16="transparent";
	renk17="#aaaaaa";	
	renk18="transparent";	
	fon_resmi="http://i.imgur.com/xcLQVNd.jpg";
	entry_box_resmi="http://i.imgur.com/Py7VRgM.png";
	msg_box_resmi="http://i.imgur.com/53rMUHZ.png";	
	mesaj_var="http://i.imgur.com/l3Kl5HC.gif";
	mesaj_yok="http://i.imgur.com/QJpDBCr.png";
	olay_var="http://i.imgur.com/Gtf5c2B.png";
	olay_yok="http://i.imgur.com/0DyUYiQ.png";
	logo_var="https://ekstat.com/img/logov2.png";	
	ben_var="http://i.imgur.com/2WRwBwj.png";
	mycss="";
	fon_opacity="0.15";			
	alarm_saat="19:07";
	alarm_ses="https://dl.dropboxusercontent.com/u/82207064/tema/audio/ysfb.mp3";
	mesaj_ses="";
	olay_ses="";
	font_select="verdana";
	font_boyutu="12px";
	font_w="normal";
	temalarim="kfb";	
	yolla_text="�uuuuuut";
	kenar_text="ve ta�";
	durma_text="aut";	
}
function aslan(){    
	renk0="#000000";
	renk1="#fac414";
	renk2="#faa300";
	renk3="#cc4b0a";
	renk4="#f5ab0c";
	renk5="#f0ddc5";
	renk6="#917957";
	renk7="#faa300";
	renk8="#fa8500";
	renk9="#715937";	
	renk10="#cca50a";
	renk11="#cccccc";
	renk12="#000000";
	renk13="#ffffff";
	renk14="transparent";	
	renk15="transparent";	
	renk16="transparent";	
	renk17="#f0ddc5";	
	renk18="transparent";	
	fon_resmi="http://i.imgur.com/nbjxkZa.jpg";
	entry_box_resmi="";
	msg_box_resmi="";	
	mesaj_var="";
	mesaj_yok="";
	olay_var="";
	olay_yok="";
	ben_var="";	
	logo_var="https://ekstat.com/img/logov2.png";	
	mycss="";
	fon_opacity="0.15";		
	alarm_saat="";
	alarm_ses="";	
	mesaj_ses="";
	olay_ses="";
	font_select="verdana";
	font_boyutu="12px";
	font_w="normal";
	temalarim="asl";	
	yolla_text="yolla";
	kenar_text="kenarda dursun";
	durma_text="durmas�n";	
}
function kartal(){    
	renk0="#000000";
	renk1="#ababab";
	renk2="#dfdfdf";
	renk3="#d10f0f";
	renk4="#feffff";
	renk5="#bcbcbc";
	renk6="#666666";
	renk7="#dddddd";
	renk8="#ff0000";
	renk9="#555555";	
	renk10="#f2f7ea";
	renk11="#cccccc";
	renk12="#000000";
	renk13="#ffffff";
	renk14="transparent";	
	renk15="transparent";	
	renk16="transparent";	
	renk17="#bcbcbc";
	renk18="transparent";	
	fon_resmi="http://i.imgur.com/XBkEpj6.jpg";
	entry_box_resmi="";
	msg_box_resmi="";	
	mesaj_var="";
	mesaj_yok="";
	olay_var="";
	olay_yok="";
	ben_var="";	
	logo_var="https://ekstat.com/img/logov2.png";	
	mycss="";
	fon_opacity="0.1";		
	alarm_saat="";
	alarm_ses="";	
	mesaj_ses="";
	olay_ses="";
	font_select="verdana";
	font_boyutu="12px";
	font_w="normal";
	temalarim="krt";	
	yolla_text="yolla";
	kenar_text="kenarda dursun";
	durma_text="durmas�n";	
}
function beslenirkibu(){    
	renk0="#e0e0c9";
	renk1="#640032";
	renk2="#276b42";
	renk3="#ff2f0b";
	renk4="#640032";
	renk5="#000000";
	renk6="#640032";
	renk7="#e2d1bb";
	renk8="#640032";
	renk9="#0C4214";	
	renk10="#0C4214 ";
	renk11="#ead9c4";
	renk12="#000000";
	renk13="#000000";
	renk14="transparent";	
	renk15="transparent";	
	renk16="transparent";	
	renk17="#000000";
	renk18="transparent";	
	fon_resmi="http://i.imgur.com/KOloLdc.gif";
	entry_box_resmi="http://i.imgur.com/fZVRZxW.gif";
	msg_box_resmi="http://i.imgur.com/QyGF8FZ.jpg";	
	mesaj_var="http://i.imgur.com/R4bnylS.gif";
	mesaj_yok="";//http://i.imgur.com/XAPZJ2H.gif
	olay_var="http://i.imgur.com/hSFyZxn.gif";
	olay_yok="";//http://i.imgur.com/D0Vdc5t.gif
	logo_var="https://ekstat.com/img/logov2.png";	
	ben_var="";	
	mycss="";
	fon_opacity="1";		
	alarm_saat="";
	alarm_ses="";	
	mesaj_ses="";
	olay_ses="";
	font_select="verdana";
	font_boyutu="12px";
	font_w="normal";
	temalarim="bkb";	
	yolla_text="bakkala git";
	kenar_text="dolaba sakla";
	durma_text="durmas�n";	
}
function truedetective(){    
	renk0="#000000";
	renk1="#ccff00";
	renk2="#010002";
	renk15="#acdf00";	
	renk3="#ad8a00";
	renk5="#ccddbb";
	renk4="#ccff00";
	renk8="#acdf00";
	renk9="#445533";	
	renk10="#acdf00";
	renk11="#cccccc";
	renk12="#000000";
	renk7="#acdf00";
	renk6="#667755";
	renk14="transparent";
	renk13="#ffffff";
	renk16="transparent";	
	renk17="#ccddbb";	
	renk18="transparent";	
	fon_resmi="http://i.imgur.com/aSbZGnA.jpg";//http://i.imgur.com/bGoSkPx.jpg//http://i.imgur.com/RXyLitg.jpg
	entry_box_resmi="http://i.imgur.com/4jAFzgi.png";
	msg_box_resmi="http://i.imgur.com/Z4pLjWI.jpg";	
	mesaj_var="http://i.imgur.com/zFjLSng.png";//http://i.hizliresim.com/GbqMDr.png
	mesaj_yok="";
	olay_var="http://i.imgur.com/W86K0f6.png";//http://i.hizliresim.com/72O3Va.png
	olay_yok="";
	ben_var="http://i.imgur.com/zHPWLws.png;http://i.imgur.com/3W0O4B0.png";//http://i.imgur.com/K1tOIpI.png;http://i.imgur.com/UOXyEl2.png	
	logo_var="http://i.imgur.com/Ie49qy8.png";	
	mycss="";
	fon_opacity="0.15";		
	alarm_saat="";
	alarm_ses="";	
	mesaj_ses="";
	olay_ses="";
	font_select="verdana";
	font_boyutu="12px";
	font_w="normal";
	temalarim="td";	
	yolla_text="yolla";
	kenar_text="kenarda dursun";
	durma_text="durmas�n";
}
function breakingbad(){    
	renk0="#000000";
	renk1="#efb81f";
	renk2="#010002";
	renk3="#30c76a";
	renk4="#fac628";
	renk5="#ffe9a8";
	renk6="#666666";
	renk7="#efb81f";
	renk8="#e0e01d";
	renk9="#555555";	
	renk10="#f0f01f";
	renk11="#cccccc";
	renk12="#000000";
	renk13="#ffffff";
	renk14="transparent";	
	renk15="#efb81f";	
	renk16="transparent";	
	renk17="#ffe9a8";	
	renk18="transparent";	
	fon_resmi="http://i.imgur.com/XlnItXt.jpg";
	entry_box_resmi="";
	msg_box_resmi="";	
	mesaj_var="";
	mesaj_yok="";
	olay_var="";
	olay_yok="";
	ben_var="";	
	logo_var="https://ekstat.com/img/logov2.png";	
	mycss="";
	fon_opacity="0.15";		
	alarm_saat="";
	alarm_ses="";	
	mesaj_ses="";
	olay_ses="";
	font_select="verdana";
	font_boyutu="12px";
	font_w="normal";
	temalarim="bb";	
	yolla_text="yolla";
	kenar_text="kenarda dursun";
	durma_text="durmas�n";	
}
function doctorwho(){    
	renk0="#000000";
	renk1="#708bf5";
	renk2="#ffffff";
	renk15="#506bd5";	
	renk3="#6693ad";
	renk5="#bbccd3";
	renk4="#708bf5";
	renk8="#3db1ff";
	renk9="#445566";	
	renk10="#2d9aff";
	renk11="#cccccc";
	renk12="#000000";
	renk7="#708bf5";
	renk6="#667788";
	renk14="transparent";
	renk13="#bbccd3";
	renk16="transparent";	
	renk17="#bbccd3";	
	renk18="transparent";	
	fon_resmi="http://i.imgur.com/vgX7OUm.jpg";
	entry_box_resmi="http://i.imgur.com/EuoMQKm.png";//http://i.imgur.com/TVqDdWh.png http://i.imgur.com/nD1OUAS.png
	msg_box_resmi="";	
	mesaj_var="http://i.imgur.com/vz10TbB.png";
	mesaj_yok="http://i.imgur.com/kvDI2ip.png";
	olay_var="http://i.imgur.com/JI63rEy.png";
	olay_yok="http://i.imgur.com/2RAyRg9.png";
	logo_var="http://i.imgur.com/8nG7tVq.gif";//http://i.hizliresim.com/0bOEz8.gif	
	ben_var="http://i.imgur.com/QMZfKYb.png;http://i.imgur.com/GvkPnDr.png;http://i.imgur.com/nYGhXTt.png";//http://i.imgur.com/rCNKWcd.png
	mycss="";
	fon_opacity="0.25";			
	alarm_saat="";
	alarm_ses="";
	mesaj_ses="https://dl.dropboxusercontent.com/u/82207064/tema/audio/snc.mp3";
	olay_ses="https://dl.dropboxusercontent.com/u/82207064/tema/audio/trds.mp3";
	font_select="verdana";
	font_boyutu="12px";
	font_w="normal";
	temalarim="dw";	
	yolla_text="allons-y";
	kenar_text="geronimo";
	durma_text="exterminate";	
	//
	ben_kontrol="1";
}
function housemd(){    
	renk0="#000000";
	renk1="#bbccdd";
	renk2="#000000";
	renk3="#6884bd";
	renk4="#99aaff";
	renk5="#bbccdd";
	renk6="#666666";
	renk7="#bbccff";
	renk8="#bbccff";
	renk9="#555555";	
	renk10="#bbccff";
	renk11="#cccccc";
	renk12="#000000";
	renk13="#ffffff";
	renk14="transparent";	
	renk15="#99aaff";	
	renk16="transparent";	
	renk17="#bbccdd";	
	renk18="transparent";	
	fon_resmi="http://i.imgur.com/Ps0zzq2.jpg";
	entry_box_resmi="http://i.imgur.com/OeQZtW8.png";//http://i.imgur.com/McHI57B.png http://i.imgur.com/7R7GCFN.png
	msg_box_resmi="http://i.imgur.com/CqdeCEt.png";	
	mesaj_var="";
	mesaj_yok="";
	olay_var="";//http://i.hizliresim.com/M9qVla.png
	olay_yok="";
	logo_var="https://ekstat.com/img/logov2.png";	
	ben_var="";	
	mycss="";
	fon_opacity="0.15";			
	alarm_saat="";
	alarm_ses="";
	mesaj_ses="";
	olay_ses="";
	font_select="verdana";
	font_boyutu="12px";
	font_w="normal";
	temalarim="hmd";	
	yolla_text="yolla";
	kenar_text="kenarda dursun";
	durma_text="durmas�n";	
}
function pisipisi(){    
	renk0="#000000";
	renk1="#b9debe";
	renk2="#99aaff";
	renk3="#66bd7f";
	renk4="#b9debe";
	renk5="#bbbbbb";
	renk6="#777777";
	renk7="#b9debe";
	renk8="#c9eece";
	renk9="#555555";	
	renk10="#bbccff";
	renk11="#cccccc";
	renk12="#000000";
	renk13="#ffffff";
	renk14="transparent";	
	renk15="transparent";	
	renk16="transparent";	
	renk17="#bbbbbb";	
	renk18="transparent";	
	fon_resmi="http://i.imgur.com/ucxTuY0.jpg";
	entry_box_resmi="";
	msg_box_resmi="";	
	mesaj_var="";
	mesaj_yok="";
	olay_var="";
	olay_yok="";
	logo_var="https://ekstat.com/img/logov2.png";	
	ben_var="";	
	mycss="";
	fon_opacity="0.15";	
	alarm_saat="";	
	alarm_ses="";	
	mesaj_ses="";
	olay_ses="";
	font_select="verdana";
	font_boyutu="12px";
	font_w="normal";
	temalarim="pisi";	
	yolla_text="yolla";
	kenar_text="kenarda dursun";
	durma_text="durmas�n";
}
function cokpis(){    
	renk0="#B1AC99";
	renk1="#ffffff";
	renk2="#fff9f9";
	renk3="#ffffff";
	renk4="#ffffff";
	renk5="#36312E";
	renk6="#dddddd";
	renk7="#b1ac99";
	renk8="#BA7663";
	renk9="#dddddd";	
	renk10="#ffffff";
	renk11="#eae9e5";
	renk12="#000000";
	renk13="#36312e";
	renk14="#ffffff";
	renk15="#BA7663";	
	renk16="transparent";	
	renk17="#ffffff";	
	renk18="transparent";	
	fon_resmi="http://i.imgur.com/MstoGqJ.jpg";
	entry_box_resmi="";
	msg_box_resmi="";	
	mesaj_var="";
	mesaj_yok="";
	olay_var="";
	olay_yok="";
	logo_var="http://i.imgur.com/1l4TJ5r.png";	
	ben_var="";	
	mycss="";
	fon_opacity="1";			
	alarm_saat="";
	alarm_ses="";
	mesaj_ses="";
	olay_ses="";
	font_select="trebuchet ms";
	font_boyutu="13px";	
	font_w="normal";
	temalarim="pis";	
	yolla_text="yolla";
	kenar_text="kenarda dursun";
	durma_text="durmas�n";	
}
function adidas(){    
	renk0="#99A39B";	
	renk1="#242B42";
	renk2="#242B42";
	renk15="#BAC6BB";
	renk3="#141B12";
	renk5="#000000";
	renk4="#242B42";
	renk8="#242B42";
	renk9="#444B62";
	renk10="#545B72";
	renk11="#4D5950";
	renk12="#ffffff";
	renk7="#253228";
	renk6="#444B62";
	renk14="#D2D7D3";
	renk13="#000000";
	renk16="transparent";
	renk17="#000000";	
	renk18="transparent";	
	fon_resmi="http://i.imgur.com/qR0qQZT.jpg";
	entry_box_resmi="";
	msg_box_resmi="";	
	mesaj_var="";
	mesaj_yok="";
	olay_var="";
	olay_yok="";
	logo_var="https://ekstat.com/img/logov2.png";
	ben_var="";
	mycss="";
	fon_opacity="1";			
	alarm_saat="";
	alarm_ses="";
	mesaj_ses="";
	olay_ses="";
	font_select="verdana";
	font_boyutu="12px";	
	font_w="normal";
	temalarim="adidas";	
	yolla_text="yolla";
	kenar_text="kenarda dursun";
	durma_text="durmas�n";	
}
function yol(){    
	renk16="transparent";
	renk17="#747b92";
	renk0="#000408";
	renk1="#747b92";
	renk2="#d6b95a";
	renk15="transparent";
	renk18="transparent";	
	renk3="#848ba2";
	renk5="#747b92";
	renk4="#83ad5e";
	renk8="#d6b95a";
	renk9="#444b62";
	renk10="#d6b95a";
	renk11="#4e5057";
	renk12="#000000";
	renk7="#5e6067";
	renk6="#545b72";
	renk14="transparent";
	renk13="#d6b95a";
	fon_resmi="http://i.imgur.com/DgKeFnc.jpg";
	entry_box_resmi="";
	msg_box_resmi="";	
	mesaj_var="";
	mesaj_yok="";
	olay_var="";
	olay_yok="";
	logo_var="https://ekstat.com/img/logov2.png";
	ben_var="";
	mycss="";
	fon_opacity="0.5";			
	alarm_saat="";
	alarm_ses="";
	mesaj_ses="";
	olay_ses="";
	font_select="verdana";
	font_boyutu="12px";	
	font_w="normal";
	temalarim="yol";	
	yolla_text="yola getir";
	kenar_text="kenara �ek";
	durma_text="yoldan ��kar";	
	//
	alaka_modu="0";	
}
function req4(){    
	renk16="transparent";
	renk17="#000080";
	renk0="#dfcdbc";
	renk1="#000080";
	renk2="#000080";
	renk15="#f56f00";
	renk18="transparent";	
	renk3="#000080";
	renk5="#000000";
	renk4="#000080";
	renk8="#000080";
	renk9="#000080";
	renk10="#000080";
	renk11="#e53f00";
	renk12="#ffffff";
	renk7="#f56f00";
	renk6="#8f7d6c";
	renk14="#ffffff";
	renk13="#000000";
	fon_resmi="";
	entry_box_resmi="";
	msg_box_resmi="";	
	mesaj_var="";
	mesaj_yok="";
	olay_var="";
	olay_yok="";
	logo_var="https://ekstat.com/img/logov2.png";
	ben_var="";
	mycss="";
	fon_opacity="0.15";			
	alarm_saat="";
	alarm_ses="";
	mesaj_ses="";
	olay_ses="";
	font_select="verdana";
	font_boyutu="12px";	
	font_w="normal";
	temalarim="req4";	
	yolla_text="yolla";
	kenar_text="kenarda dursun";
	durma_text="durmas�n";	
}
function neci(){    
	renk16="transparent";
	renk17="#C9C4C1";
	renk0="#302A26";
	renk1="#D2E0F9";
	renk2="#000000";
	renk15="#FFF4ED";
	renk18="transparent";	
	renk3="#D2E0F9";
	renk5="#C9C4C1";
	renk4="#D2E0F9";
	renk8="#D2E0F9";
	renk9="#D2E0F9";
	renk10="#D2E0F9";
	renk11="#6E5649";
	renk12="#ffffff";
	renk7="#13110F";
	renk6="#5C544F";
	renk14="#3F3732";
	renk13="#ffffff";
	fon_resmi="http://i.imgur.com/viW1SEI.jpg";
	entry_box_resmi="";
	msg_box_resmi="";	
	mesaj_var="http://i.imgur.com/ZX1admO.gif";
	mesaj_yok="http://i.imgur.com/lGaBFpq.gif";
	olay_var="http://i.imgur.com/vNAA01U.gif";
	olay_yok="http://i.imgur.com/KQB8zc8.gif";
	logo_var="http://i.imgur.com/hX7pCAV.png";
	ben_var="";
	mycss="";
	fon_opacity="1";			
	alarm_saat="";
	alarm_ses="";
	mesaj_ses="";
	olay_ses="";
	font_select="verdana";
	font_boyutu="12px";	
	font_w="normal";
	temalarim="neci";	
	yolla_text="yolla";
	kenar_text="kenarda dursun";
	durma_text="durmas�n";	
}
function zpc(){    
	renk16="transparent";
	renk17="#555555";
	renk0="#eeeeee";
	renk1="#dd6666";
	renk2="#ff8888";
	renk15="transparent";
	renk18="transparent";	
	renk3="#dd6666";
	renk5="#555555";
	renk4="#dd6666";
	renk8="#ff8888";
	renk9="#dd6666";
	renk10="#ff8888";
	renk11="#f2f2f2";
	renk12="#dd6666";
	renk7="#ff8888";
	renk6="#776655";
	renk14="#f5f5f5";
	renk13="#555555";
	fon_resmi="http://i.imgur.com/r20NFTp.jpg";
	entry_box_resmi="";
	msg_box_resmi="";	
	mesaj_var="";
	mesaj_yok="";
	olay_var="";
	olay_yok="";
	logo_var="https://ekstat.com/img/logov2.png";
	ben_var="";
	mycss="";
	fon_opacity="1";			
	alarm_saat="";
	alarm_ses="";
	mesaj_ses="";
	olay_ses="";
	font_select="trebuchet ms";
	font_boyutu="12px";	
	font_w="normal";
	temalarim="zpc";	
	yolla_text="yolla";
	kenar_text="kenarda dursun";
	durma_text="durmas�n";	
}
function ssgrengi(){    
	renk16="transparent";
	renk17="#000000";
	renk0="#B0C4DD";
	renk1="#2E587C";
	renk2="#191970";
	renk15="#b4cde5";
	renk18="transparent";	
	renk3="#1F324B";
	renk5="#000000";
	renk4="#2E587C";
	renk8="#191970";
	renk9="#2E587C";
	renk10="#191970";
	renk11="#556575";
	renk12="#F0FFF0";
	renk7="#778899";
	renk6="#666666";
	renk14="#D7E4F0";
	renk13="#000000";
	fon_resmi="";
	entry_box_resmi="";
	msg_box_resmi="";	
	mesaj_var="";
	mesaj_yok="";
	olay_var="";
	olay_yok="";
	logo_var="http://i.imgur.com/2jjzA93.gif";
	ben_var="";
	mycss="";
	fon_opacity="0.15";			
	alarm_saat="";
	alarm_ses="";
	mesaj_ses="";
	olay_ses="";
	font_select="verdana";
	font_boyutu="12px";	
	font_w="normal";
	temalarim="ssgrengi";	
	yolla_text="yolla";
	kenar_text="kenarda dursun";
	durma_text="durmas�n";	
}
function dietcoke(){    
	renk16="transparent";	//header fon rengi
	renk17="#000000";		//header yaz� rengi
	renk0="#EAEAEA";		//fon rengi
	renk1="#B22222";//sol frame ba�l�k rengi
	renk2="#ff0000";//sol frame ba�l�k �st�ne gelince g�r�nen renk
	renk15="#ffffff";	//sol frame ba�l�k �st�ne gelince g�r�nen fon rengi
	renk18="transparent";	//sol frame ba�l�k aralar�ndaki �izginin rengi
	renk3="#B22222";//konu ba�l�klar�n�n rengi
	renk5="#000000";//entry yaz� rengi
	renk4="#B22222";//entry link rengi
	renk8="#ff0000";//entry link �st�ne gelince g�r�nen renk
	renk9="#B22222";//entry oylama butonlar�n�n rengi	
	renk10="#ff0000";//entry oylama butonlar�n�n �st�ne gelince g�r�nen renk
	renk11="#B22222";//se�ici(sayfa se�ici vs.) rengi
	renk12="#ffffff";//se�ici yaz� rengi
	renk7="#E11E1E";//se�icilerin �st�ne gelince g�r�nen renk
	renk6="#666666";//yard�mc� men�lerin rengi
	renk14="#ffffff";//entry ve mesaj kutular�n�n fon rengi
	renk13="#000000";//entry ve mesaj kutular�n�n yaz� rengi
	fon_resmi="";
	entry_box_resmi="";
	msg_box_resmi="";	
	mesaj_var="";
	mesaj_yok="";
	olay_var="";
	olay_yok="";
	logo_var="http://i.imgur.com/meVIOfW.gif";
	ben_var="";
	mycss="";
	fon_opacity="0.15";			
	alarm_saat="";
	alarm_ses="";
	mesaj_ses="";
	olay_ses="";
	font_select="verdana";
	font_boyutu="12px";	
	font_w="normal";
	temalarim="dietcoke";	
	yolla_text="yolla";
	kenar_text="kenarda dursun";
	durma_text="durmas�n";	
}
function owb(){    
	renk16="transparent";	
	renk17="#FAF0E6";		
	renk0="#333A57";
	renk1="#B0C4DE";
	renk2="#FAF0E6";
	renk15="transparent";
	renk18="transparent";	
	renk3="#B0C4DE";
	renk5="#FAF0E6";
	renk4="#B0C4DE";
	renk8="#FAF0E6";
	renk9="#B0C4DE";
	renk10="#FAF0E6";
	renk11="#566484";
	renk12="#FAF0E6";
	renk7="#667494";
	renk6="#778899";
	renk14="#454D76";
	renk13="#FAF0E6";
	fon_resmi="";
	entry_box_resmi="";
	msg_box_resmi="";	
	mesaj_var="";
	mesaj_yok="";
	olay_var="";
	olay_yok="";
	logo_var="http://i.imgur.com/j3YihQp.gif";
	ben_var="";
	mycss="";
	fon_opacity="0.15";			
	alarm_saat="";
	alarm_ses="";
	mesaj_ses="";
	olay_ses="";
	font_select="verdana";
	font_boyutu="12px";	
	font_w="normal";
	temalarim="owb";	
	yolla_text="yolla";
	kenar_text="kenarda dursun";
	durma_text="durmas�n";	
}
function tefter(){    
	renk16="transparent";
	renk17="#4D4D4D";
	renk0="#cccccc";
	renk1="#BD3431";
	renk2="#BD3431";
	renk15="#DEE3EF";
	renk18="transparent";	
	renk3="#BD3431";
	renk5="#4D4D4D";
	renk4="#BD3431";
	renk8="#4D4D4D";
	renk9="#BD3431";
	renk10="#4D4D4D";
	renk11="#DEE3EF";
	renk12="#7F7F7F";
	renk7="#eEf3fF";
	renk6="#778899";
	renk14="#DEE3EF";
	renk13="#4D4D4D";
	fon_resmi="http://i.imgur.com/0eKgwC3.gif";
	entry_box_resmi="";
	msg_box_resmi="";	
	mesaj_var="";
	mesaj_yok="";
	olay_var="";
	olay_yok="";
	logo_var="http://i.imgur.com/3XuvF28.gif";
	ben_var="";
	mycss="";
	fon_opacity="1";			
	alarm_saat="";
	alarm_ses="";
	mesaj_ses="";
	olay_ses="";
	font_select="verdana";
	font_boyutu="12px";	
	font_w="normal";
	temalarim="tefter";	
	yolla_text="yolla";
	kenar_text="kenarda dursun";
	durma_text="durmas�n";	
}

function alayar(mod){
	$("[id^='renk']").each(function(){if($(this).val()==""){$(this).val("transparent");}});
    renk0=$("#renk0").val();
    renk1=$("#renk1").val();
    renk2=$("#renk2").val();
    renk3=$("#renk3").val(); 
    renk4=$("#renk4").val(); 
    renk5=$("#renk5").val();
    renk6=$("#renk6").val();
    renk7=$("#renk7").val();
    renk8=$("#renk8").val();
    renk9=$("#renk9").val();
    renk10=$("#renk10").val();
    renk11=$("#renk11").val();
    renk12=$("#renk12").val();
    renk13=$("#renk13").val();
    renk14=$("#renk14").val();	
    renk15=$("#renk15").val();	
    renk16=$("#renk16").val();
    renk17=$("#renk17").val();	
    renk18=$("#renk18").val();	
    header_resmi=$("#header_resmi").val();
    ben_var=$("#ben_var").val();
    mesaj_var=$("#mesaj_var").val();
    mesaj_yok=$("#mesaj_yok").val();
    olay_var=$("#olay_var").val();
    olay_yok=$("#olay_yok").val();	
    logo_var=$("#logo_var").val();
    mycss=$("#mycss").val();		
    sf_baslik=$("#sf_baslik").val();
    sf_baslik2=$("#sf_baslik2").val();
    yazargizle=$("#yazargizle").val();	
    sf_yenile=$("#sf_yenile").val();
    balongecikme=$("#balongecikme").val();	
    fon_resmi=$("#fon_resmi").val(); 
	fon_opacity=$("#fon_opacity").val();
    entry_box_resmi=$("#entry_box_resmi").val();
    msg_box_resmi=$("#msg_box_resmi").val();	
    mesaj_ses=$("#mesaj_ses").val();
    alarm_saat=$("#alarm_saat").val();
    alarm_ses=$("#alarm_ses").val();	
    olay_ses=$("#olay_ses").val();
    gizleme_modu=$("#gizleme_modu").val();
    fbmod2=$("#fbmod2").val();	
    font_select=$("#font_select").val();
    font_boyutu=$("#font_boyutu").val();sessionStorage.setItem("font_boy",font_boyutu);
    font_w=$("#font_w").val();
    temalarim=$("#temalarim").val();	
    yolla_text=$("#yolla_text").val();	
    kenar_text=$("#kenar_text").val();	
    durma_text=$("#durma_text").val();	
	fon_modu=($("#fon_modu").is(":checked")==true)?1:0;
	badi_kontrol=($("#badi_kontrol").is(":checked")==true)?1:0;
	ben_kontrol=($("#ben_kontrol").is(":checked")==true)?1:0;
	balon_modu=($("#balon_modu").is(":checked")==true)?1:0;
	mesaj_olay=($("#mesaj_olay").is(":checked")==true)?1:0;	
	bos_bkz=($("#bos_bkz").is(":checked")==true)?1:0;		
	alaka_modu=($("#alaka_modu").is(":checked")==true)?1:0;
	fbmod1=($("#fbmod1").is(":checked")==true)?1:0;	
	fbmod3=($("#fbmod3").is(":checked")==true)?1:0;		
 	cerceve_modu=($("#cerceve_modu").is(":checked")==true)?1:0;
 	cizgi_modu=($("#cizgi_modu").is(":checked")==true)?1:0;	
 	kaydetme_modu=($("#kaydetme_modu").is(":checked")==true)?1:0;		
 	kanal_modu=($("#kanal_modu").is(":checked")==true)?1:0;
 	yazarbaslikgizle=($("#yazarbaslikgizle").is(":checked")==true)?1:0;	
 	usengec_modu=($("#usengec_modu").is(":checked")==true)?1:0;
	sabit_baslik=($("#sabit_baslik").is(":checked")==true)?1:0;
	if(mod=="0"){set_ayarlar(0);}
	if(mod=="1"){set_ayarlar(1);}
}	
function set_ayarlar(mod){sekmetut();
	sessionStorage.setItem("font_boy",font_boyutu);
    ayarlar={"temalarim":temalarim,"renk0":renk0,"renk1":renk1,"renk2":renk2,"renk3":renk3,"renk4":renk4,"renk5":renk5,"renk6":renk6,"renk7":renk7,"renk8":renk8,"renk9":renk9,"renk10":renk10,"renk11":renk11,"renk12":renk12,"renk13":renk13,"renk14":renk14,"renk15":renk15,"renk16":renk16,"renk17":renk17,"renk18":renk18,"logo_var":logo_var,"mesaj_var":mesaj_var,"ben_var":ben_var,"mesaj_yok":mesaj_yok,"olay_var":olay_var,"olay_yok":olay_yok,"font_w":font_w,"gizleme_modu":gizleme_modu,"font_select":font_select,"font_boyutu":font_boyutu,"yolla_text":yolla_text,"kenar_text":kenar_text,"durma_text":durma_text,"badi_kontrol":badi_kontrol,"ben_kontrol":ben_kontrol,"balon_modu":balon_modu,"mesaj_olay":mesaj_olay,"bos_bkz":bos_bkz,"alaka_modu":alaka_modu,"fbmod1":fbmod1,"fbmod2":fbmod2,"fbmod3":fbmod3,"kaydetme_modu":kaydetme_modu,"cizgi_modu":cizgi_modu,"cerceve_modu":cerceve_modu,"kanal_modu":kanal_modu,"yazarbaslikgizle":yazarbaslikgizle,"usengec_modu":usengec_modu,"header_resmi":header_resmi,"sf_baslik":sf_baslik,"sf_baslik2":sf_baslik2,"sf_yenile":sf_yenile,"yazargizle":yazargizle,"balongecikme":balongecikme,"fon_resmi":fon_resmi,"fon_modu":fon_modu,"sabit_baslik":sabit_baslik,"fon_opacity":fon_opacity,"entry_box_resmi":entry_box_resmi,"msg_box_resmi":msg_box_resmi,"alarm_saat":alarm_saat,"alarm_ses":alarm_ses,"mesaj_ses":mesaj_ses,"olay_ses":olay_ses,"mycss":mycss};
    localStorage.setItem("ayarlar", JSON.stringify(ayarlar));
	//parse yaz
	if(mod=="0"){location.reload();}
	if(mod=="1"){if(nick!==undefined){parse_yaz(nick,JSON.stringify(ayarlar));}}
	if(mod=="2"){return;}
	//	
}
$(document).on("click", "#kaydetme_modu_text", function(e) {if($("#kaydetme_modu").is(":checked")==true){$("#kaydetme_modu").prop("checked",false);}else{$("#kaydetme_modu").prop("checked",true);}});	
$(document).on("click", "#tema_fabrika", function(e) {
$('head').append('<style>#fabrika_dialog{position:absolute;z-index:100002;background-color:#222;color:#aaa;left:10px;top:-140px;width:500px;height:100px;border:1px solid #555;border-radius:3px;}#fabrika_check{margin:10px;margin-top:6px!important;}#fabrika_buton{margin-left:10px;}</style>');
$(this).before("<div id=fabrika_dialog><br><input type=checkbox checked id=fabrika_check>listelerimi koru (gizli yazarlar, gizli ba�l�klar, farkl� renkli ba�l�klar)<br><br><button id=fabrika_buton class=more-data>tamam</button></div>");
$("#fabrika_dialog").addClass("acik");
$(document).on("click", "#fabrika_buton", function(e) {
if($("#fabrika_check").is(":checked")==true){ortak(1);}else{ortak(0);}
switch(true) {
case (temalarim=="fabrika"):fabrika();break;
case (temalarim=="fabrika_gece"):fabrika_gece();break;
case (temalarim=="ates"):ates();break;
case (temalarim=="kfb"):koyu_fenerbahceli();break;
case (temalarim=="asl"):aslan();break;
case (temalarim=="krt"):kartal();break;
case (temalarim=="bkb"):beslenirkibu();break;
case (temalarim=="td"):truedetective();break;
case (temalarim=="bb"):breakingbad();break;
case (temalarim=="dw"):doctorwho();break;
case (temalarim=="hmd"):housemd();break;
case (temalarim=="pisi"):pisipisi();break;
case (temalarim=="pis"):cokpis();break;
case (temalarim=="adidas"):adidas();break;
case (temalarim=="ssgrengi"):ssgrengi();break;
case (temalarim=="dietcoke"):dietcoke();break;
case (temalarim=="yol"):yol();break;
case (temalarim=="req4"):req4();break;
case (temalarim=="neci"):neci();break;
case (temalarim=="zpc"):zpc();break;
case (temalarim=="owb"):owb();break;
case (temalarim=="tefter"):tefter();break;
}	
set_ayarlar(0);
});
$(".secmece").click(function(e){if(hoverkontrol("#fabrika_dialog")==false){$("#fabrika_dialog").remove();}});
});	

$(document).on("click", "#tema_ayar_getir", function(e) {parse_oku();});
$(document).on("click", "#tema_ayar_gonder", function(e) {alayar(1);set_ayarlar(1);});
$(document).on("click", "#tema_uygula", function(e) {if($("#kaydetme_modu").is(":checked")==true){alayar(1);}else{alayar(0);}});
$(document).on("click", "#tema_kaydetme,#kapakapa", function(e) {$("#tema_ayarlar").remove();$("a#temaayarlari").removeClass("acik");});

$(document).on("click", "#haniben", function(e) {
var say=0;
var splits = $("#sf_baslik").val().trim().split(";");
for(var i =0;i<splits.length;i++){if(nick==splits[i].trim()){say=1;}}
if(say=="0" && nick!==undefined){$("#sf_baslik").val($("#sf_baslik").val()+";"+nick);}
});
$(document).on("click", "#engelligetir", function(e) {
$.get("https://eksisozluk.com/badi-engellenmis",function(data){
	var engelliler=[];
	$(data).find("#content-body .relation-block:eq(1) .relation-list li a:even").each(function(){engelliler.push($(this).text());});
	engelliler=engelliler.toString().replace(/,/g,";");
	$("#yazargizle").val(engelliler+";"+$("#yazargizle").val());
});
});
$(document).on("change", "#tema_ayarlar input:not('#kaydetme_modu,#fabrika_check')", function(e) {
	 $(".t_a_sg.renk0").css({"color":$("#renk0").val()});
     $(".t_a_sg.renk1").css({"color":$("#renk1").val()});
     $(".t_a_sg.renk2").css({"color":$("#renk2").val()});	
     $(".t_a_sg.renk3").css({"color":$("#renk3").val()});
     $(".t_a_sg.renk4").css({"color":$("#renk4").val()});
     $(".t_a_sg.renk5").css({"color":$("#renk5").val()});
     $(".t_a_sg.renk6").css({"color":$("#renk6").val()});
     $(".t_a_sg.renk7").css({"color":$("#renk7").val()});
     $(".t_a_sg.renk8").css({"color":$("#renk8").val()});
     $(".t_a_sg.renk9").css({"color":$("#renk9").val()});
     $(".t_a_sg.renk10").css({"color":$("#renk10").val()});
     $(".t_a_sg.renk11").css({"color":$("#renk11").val()});
     $(".t_a_sg.renk12").css({"color":$("#renk12").val()}); 
     $(".t_a_sg.renk13").css({"color":$("#renk13").val()});
     $(".t_a_sg.renk14").css({"color":$("#renk14").val()}); 
     $(".t_a_sg.renk15").css({"color":$("#renk15").val()});
     $(".t_a_sg.renk16").css({"color":$("#renk16").val()});
     $(".t_a_sg.renk17").css({"color":$("#renk17").val()});
     $(".t_a_sg.renk18").css({"color":$("#renk18").val()});  	 
     $(".arkaplan").css({"opacity":$("#fon_opacity").val()});    
});
	
$(document).on("change", "#temalarim", function(e) {
switch(true) {
case ($(this).val()=="fabrika"):fabrika();break;
case ($(this).val()=="fabrika_gece"):fabrika_gece();break;
case ($(this).val()=="ates"):ates();break;
case ($(this).val()=="kfb"):koyu_fenerbahceli();break;
case ($(this).val()=="asl"):aslan();break;
case ($(this).val()=="krt"):kartal();break;
case ($(this).val()=="bkb"):beslenirkibu();break;
case ($(this).val()=="td"):truedetective();break;
case ($(this).val()=="bb"):breakingbad();break;
case ($(this).val()=="dw"):doctorwho();break;
case ($(this).val()=="hmd"):housemd();break;
case ($(this).val()=="pisi"):pisipisi();break;
case ($(this).val()=="pis"):cokpis();break;
case ($(this).val()=="adidas"):adidas();break;
case ($(this).val()=="ssgrengi"):ssgrengi();break;
case ($(this).val()=="dietcoke"):dietcoke();break;
case ($(this).val()=="yol"):yol();break;
case ($(this).val()=="req4"):req4();break;
case ($(this).val()=="neci"):neci();break;
case ($(this).val()=="zpc"):zpc();break;
case ($(this).val()=="owb"):owb();break;
case ($(this).val()=="tefter"):tefter();break;
}	
set_ayarlar(0);
});

$(document).on("change", "#balon_modu,#fon_modu", function(e) {
    if($("#fon_modu").is(":checked")==true){$('head').append('<style>#fon_resmi{visibility:hidden;}</style>');}else{$('head').append('<style>#fon_resmi{visibility:visible;}</style>');}
if($("#balon_modu").is(":checked")==false){$('head').append('<style>#balongecikme{visibility:hidden;}</style>');}else{$('head').append('<style>#balongecikme{visibility:visible;}</style>');} 

    });
$(document).on("change", "#font_select,#font_boyutu,#font_w", function(e) {
     $(".t_a_sg.font_select,.t_a_sg.font_boyutu,.t_a_sg.font_w").css({"font-family":$("#font_select").val(),"font-size":$("#font_boyutu").val(),"font-weight":$("#font_w").val()}); 
    });	
$(document).on("keyup", "#font_select,#font_boyutu,#font_w", function(e) {
     $(".t_a_sg.font_select,.t_a_sg.font_boyutu,.t_a_sg.font_w").css({"font-family":$("#font_select").val(),"font-size":$("#font_boyutu").val(),"font-weight":$("#font_w").val()}); 	 
    });
//////
$(document).on("click", "#export", function(e) {
	alayar(0);
    var a         = document.createElement('a');
    a.href        = 'data:attachment/json,' + encodeURIComponent(JSON.stringify(ayarlar)).replace(/'/g,"%27").replace(/"/g,"%22");
    a.target      = '_blank';
    a.download    = 'temam.json';
    document.body.appendChild(a);
    a.click();
});
$(document).on("change",'#fayl',function(e) {var files=e.target.files;for(var i=0,f;f=files[i];i++) {var reader=new FileReader();reader.onload=(function(theFile){return function(e) {localStorage.setItem("ayarlar", decodeURIComponent(e.target.result.replace(/\+/g," ")));location.reload();};})(f);reader.readAsText(f);}});
$(document).on("click","#import", function(e) {$('#fayl').trigger('click');});
//////

//
if(fon_modu=="1"){
var rastgele=0+Math.floor(Math.random()*4);
if(rastgele=="0"){title_=title;}
if(rastgele=="1"){title_=title+" deviantart";}
if(rastgele=="2"){title_=title+" hd wallpaper";}
if(rastgele=="3"){title_=title+" tumblr";}

$.getJSON('https://ajax.googleapis.com/ajax/services/search/images?v=1.0&q='+title_+'&imgsz=huge&rsz=4&callback=?', function(data) {
var ttl_=data["responseData"]["results"][rastgele]["url"];
$('head').append('<style>.arkaplan{background-image:url('+ttl_+');background-color:'+renk0+';opacity:'+fon_opacity+';background-position:50% 0%;background-attachment:fixed;background-repeat:no-repeat;position:fixed;z-index:-1;top:0;bottom:0;left:0;right:0;width:100%;height:100%;max-width:100%;max-height:100%;background-size:'+cozunurluk+' !important;}</style>');
});
}
else{
$('head').append('<style>.arkaplan{background-image:url('+fon_resmi+');background-color:'+renk0+';opacity:'+fon_opacity+';background-position:50% 0%;background-attachment:fixed;background-repeat:no-repeat;position:fixed;z-index:-1;top:0;bottom:0;left:0;right:0;width:100%;height:100%;max-width:100%;max-height:100%;background-size:'+cozunurluk+' !important;}</style>');
    if(fon_resmi=="http://i.imgur.com/xcLQVNd.jpg"){$(".arkaplan").css({"opacity":fon_opacity*7});}//��nar a�ac� resmi i�in mecburen
}   
//
$("[id^='medyanet'],#ad-sitewide-container,.ad-medyanet,.ad-adsense,.ad-flash,#aside>iframe,.showall.more-data:first,#videos,.twitter-info-card,#return-to-innocence").remove();$("html").removeClass("supersitewide sitewide");//.ad-theme-visual-home,.ad-theme-visual-inner,.ads

$('head').append('<style>*,input[type="file"]:focus,input[type="checkbox"]:focus,select:focus{outline:none;}html.no-touch>body{padding-top:0px;position:absolute;top:65px;overflow-y:auto;overflow-x:hidden;bottom:0px;}html{overflow-y:auto;}</style>');
$('head').append('<style>body{background-color:'+renk0+';color:'+renk5+';font-family:'+font_select+';font-size:'+font_boyutu+';line-height:'+line_height+';font-weight:'+font_w+';vertical-align:middle;background-position:50% 0%;background-attachment:fixed;background-repeat:no-repeat;}</style>');
$('head').append('<style>html,html>body>header #top-bar,#topic-channels>ul>li.channel>a.index-link{width:auto;max-width:1920px;}html.no-touch #index-section{width:'+index_section+';top:65px;}#search-form{position:absolute;top:10px;margin:0px;}</style>');
$('head').append('<style>#container{width:'+container_genisligi+';max-width:'+ekran_genisligi+'px;}#main{margin-left:'+main+';}#content-body{width:'+content_body+';}#sub-navigation{margin-left:-2px;position:absolute;top:38px;}#partial-index{margin-top:10px;background-color:transparent;line-height:'+line_height+';}</style>');
$('head').append('<style>#sub-navigation #quick-index-nav,#sub-navigation #main-index-nav{position:absolute;}#sub-navigation #quick-index-nav,form#search-form.inline,#top-bar > #advanced-search-form{left:'+top_sol+';}#sub-navigation #main-index-nav,#ekleme,#top-navigation{right:'+top_sag+';}h1,h2,h3,h4,h5,h6{color:'+renk3+';font-family:'+font_select+';font-weight:'+font_w+';}h1#title>a{color:'+renk3+';font-size:'+h1boyutu+';font-weight:'+font_w+';}h1#title>a:hover{color:'+renk3hover+';}#partial-index>h2{padding-left:8px;font-size:'+h2boyutu+';}#partial-index>p,#partial-index>h3,#partial-index>ul.index-list{padding-left:8px;}</style>');
$('head').append('<style>html.no-touch a,.tabs > li.active > a{color:'+renk4+';text-decoration:none;}html.no-touch a:hover,.creation-time:hover,#entry-list footer div.other > a:hover:after, #entry-list footer div.other > a:hover,#profile-cards>li>ul>li>a:hover,html.no-touch #entry-list .info > a:hover{color:'+renk8+';text-decoration:none;}.topic-list.partial>li>a{padding:2px 20px 2px 8px;color:'+renk1+';}#top-navigation > ul > li > a{color:'+renk17+';}#top-navigation > ul > li > a:hover{color:'+renk17ust+';}.topic-list.partial>li>a small{color:'+renk1+';top:3px;bottom:0px;}#partial-index>.topic-list>li>a>.detail{color:'+renk3alt+';text-decoration:none;}.topic-list li:hover,.index-list li:hover{background-color:'+renk15+';}</style>');

//opacity:1 color:#000 border:none background-color:transparent
$('head').append('<style>html.no-touch #entry-list .feedback, html.no-touch #entry-list .info > a,a.yzrgzl,#top-bar input.primary[type="submit"]:hover,#topic-channel-info #topic-channels li.channel > a:hover,#request-fill:hover,#aramesaj button:hover,form#message-thread-list-form button:hover,.edittools button:hover,.actions>button:hover,.more-data:hover,.last:hover,.next:hover,.prev:hover,.pager>select:hover,.editform>.vertical>h3>a:hover,#entry-list footer div.feedback a.favorite-count:hover,#in-topic-search-options button:hover,#yutub :hover,#yesterdays-best-entry-info .more-data:hover,#yesterdays-best-entry-info .more-data.next:hover,.arrow-down:hover,.arrow-up:hover{opacity:1;}</style>');
$('head').append('<style>.pager>a.prev,.pager>a.last,.pager>a.next,.pager>a.prev:hover,.pager>a.last:hover,.pager>a.next:hover,.pager>select:hover,#yesterdays-best-entry-info>a,#yesterdays-best-entry-info>a:hover,#yesterdays-best-entry-info>a small,#yesterdays-best-entry-info>a small:hover{color:'+renk12+';}</style>');
$('head').append('<style>.pager>a,#site-footer,#message-thread .edittools,#threads li + li,#message-send-form .edittools{border:none;}</style>');
$('head').append('<style>.ui-autocomplete>li>a:hover,.ui-autocomplete:hover,html.no-touch a.more-data:hover,html.no-touch .dropdown .dropdown-menu li:hover,#sub-navigation,html.no-touch #in-topic-search-options > li:hover,#message-thread .incoming, #message-thread .outgoing,#content-body ul.tabs,ul#i_ara,#threads li article>a:hover{background-color:transparent;}</style>');


$('head').append('<style>.topic-list li{border-color:rgba('+rgb_a(renk18,0.65)+');}#top-bar,body > header{background-color:'+renk16+';}.ui-autocomplete li a.ui-state-focus{background-color:'+renk6+';}#entry-list footer div.feedback a, #entry-list footer .rate-options a{color:'+renk9+';}#entry-list footer .share-link:after{border-top-color:'+renk9+';color:'+renk9+';}</style>');
$('head').append('<style>#entry-list footer div.feedback a:hover, #entry-list footer .rate-options a:hover,#entry-list footer .favorite-list-popup ul li a,#topic-share-menu>.share-dialog a,#in-topic-search-options a,.feedback .share-dialog a,.other.dropdown .dropdown-menu li > a,#bdengl a#buddy-link{color:'+renk10+';}#entry-list footer .share-link:hover:after,.dropdown .dropdown-toggle:hover:after{border-top-color:'+renk10+';color:'+renk10+';}</style>');
$('head').append('<style>#entry-list,#entry-list>li:not(:first-child){margin-top:20px;}#entry-list footer div.feedback a.favorite-count{color:'+renk3+'!important;font-weight:bold;}#entry-list .hidden, #entry-list .deleted{background-color:rgba(0,0,0, 0.3);padding:0;border-radius:3px;-webkit-border-radius: 3px;-moz-border-radius: 3px;}</style>');
$('head').append('<style>.sub-title-menu .share-links > a{color:'+renk6+'!important;}#entry-list footer .info{margin-top:2px;}#entry-list article{padding-bottom:50px;}#entry-list .content{padding-top:5px;}</style>');
//a.favorite-link:hover{color:#282!important;}a.like:hover{color:#0a0!important;}a.dislike:hover{color:#a00!important;}

if(cizgi_modu=="1")
{$('head').append('<style>#entry-list>li:before{border:0px;content:"";}#entry-list{list-style:decimal outside none;}</style>');
}else{$('head').append('<style>#entry-list>li:before{border-bottom:1px solid rgba('+rgb_a(renk6,0.3)+');}</style>');}



if(fbmod1=="0"){//butonlar� gizle
$("html.no-touch #entry-list .feedback,.yzrgzl").css({"visibility":"hidden"});
$("#entry-list>li").mouseover(function(){$(".feedback,.yzrgzl",this).css({"visibility":"visible"});})
.mouseout(function(){$(".feedback,.yzrgzl",this).css({"visibility":"hidden"});});
}

switch(true) {//buton d�zeni
//0 facebook - twitter - favori - ��kela - �ok k�t�
case (fbmod2=="1"):$('head').append('<style>html.no-touch #entry-list .feedback .favorite-links{float:right;}</style>');break//facebook twitter favori �ukela �ok k�t� 
case (fbmod2=="2"):$('head').append('<style>html.no-touch #entry-list .feedback .favorite-links{float:left;}</style>');break//favori - facebook - twitter - ��kela - �ok k�t�
case (fbmod2=="3"):$('head').append('<style>html.no-touch #entry-list .feedback .share-links{float:right;}</style>');break//favori - ��kela - �ok k�t� - facebook - twitter
case (fbmod2=="4"):$('head').append('<style>html.no-touch #entry-list .feedback .rate-options{float:left;}</style>');break//�ukela �ok k�t� facebook twitter favori
case (fbmod2=="5"):$('head').append('<style>html.no-touch #entry-list .feedback .rate-options{float:left;}html.no-touch #entry-list .feedback .share-links,html.no-touch #entry-list .feedback .favorite-links{float:right;}</style>');break//�ukela �ok k�t� favori facebook twitter
}


if(fbmod3=="1"){//butonlar� sa�a al
$('head').append('<style>#entry-list footer .vote-response-area{position:absolute;bottom:20px;left:auto;right:5px;}html.no-touch #entry-list .feedback{position:absolute;bottom:20px;right:-7px;}html.no-touch #entry-list .feedback{text-align:right;float:none;}#bdengl a,a.yzrgzl{margin-right:10px;}</style>');
}



$('head').append('<style>.sub-title-menu #topic-share-menu > .toggles:after, .sub-title-menu #topic-research-menu .toggles:after, .sub-title-menu #in-topic-search-menu > .toggles:after,#entry-list footer div.other > a:after{border-top-color:'+renk6+';}</style>'); 
$('head').append('<style>.pager select{background-color:'+renk11+';border-color:'+renk11alt+';color:'+renk12+';opacity:0.7;}#partial-index>.pager{text-align: center;}.more-data{margin-bottom:2px;margin-top:-4px;}</style>');
$('head').append('<style>#message-thread-form p button,#request-fill,.showall.more-data,.more-data,.last,.next,.prev,#in-topic-search-options button,.channel-button,#yesterdays-best-entry-info .more-data,#yesterdays-best-entry-info .more-data.next,#yenimesajgonder button.primary,#message-thread button.primary,#aramesaj button,form#message-thread-list-form button,#notlar_ form#user-note-form button.primary{opacity:0.7;background-image:-moz-linear-gradient(top,'+renk11ust+','+renk11alt+');background-image:-ms-linear-gradient(top, '+renk11ust+', '+renk11alt+');background-image:-webkit-gradient(linear, 0 0, 0 100%, from('+renk11ust+'), to('+renk11alt+'));background-image:-webkit-linear-gradient(top, '+renk11ust+', '+renk11alt+');background-image:-o-linear-gradient(top, '+renk11ust+', '+renk11alt+');background-image:linear-gradient(top, '+renk11ust+', '+renk11alt+');background-color:'+renk11+';color:'+renk12+';border-radius:3px;-webkit-border-radius: 3px;-moz-border-radius: 3px;box-shadow:0px 1px 2px rgba(0, 0, 0, 0.1);-webkit-box-shadow:0px 1px 2px rgba(0, 0, 0, 0.1);-moz-box-shadow:0px 1px 2px rgba(0, 0, 0, 0.1);background-repeat:repeat-x;border:1px solid transparent;width:auto;height:25px;padding:2px 10px;cursor:pointer;font-family:Verdana,sans-serif;}</style>');
$('head').append('<style>#yesterdays-best-entry-info .more-data,#yesterdays-best-entry-info .more-data.next{width:49%;}.sub-title-menu>#topic-share-menu>a,.sub-title-menu #topic-share-menu > .toggles:after,.sub-title-menu>#in-topic-search-menu>a,a#move-topic-link,a#track-topic-link,#spolari_tersle a{text-decoration:none;border-top-color:'+renk6+';color:'+renk6+';}</style>'); 
$('head').append('<style>.sub-title-menu>#topic-share-menu>a:hover,.sub-title-menu #topic-share-menu > .toggles:hover:after,.sub-title-menu>#in-topic-search-menu>a:hover,a#move-topic-link:hover,a#track-topic-link:hover,#spolari_tersle a:hover{text-decoration:none;border-top-color:'+renk5+';color:'+renk5+';}#a3-toggle,#a3-toggle:after{color:'+renk17+';}</style>');
$('head').append('<style>a#quick-index-continue-link,#partial-index a.index-link,ul.index-list a,#profile-cards>li>ul>li>a{color:'+renk1+';}html.no-touch #sub-navigation > ul > li > a{color:'+renk17+';}html.no-touch #sub-navigation > ul > li > a:hover{color:'+renk17ust+';}a#quick-index-continue-link:hover,#partial-index a.index-link:hover,ul.index-list a:hover{color:'+renk2+';}.dropdown .dropdown-menu,.modal,.ui-autocomplete,.ui-menu-item,#topic-channel-info #topic-channel-suggestion-menu,#top-bar > #advanced-search-form {background-color:'+renk0+';border-color:'+renk6+';}.share-dialog,#in-topic-search-options,#entry-list footer .favorite-list-popup,.other.dropdown .dropdown-menu{background-color:'+renk0+';border-color:'+renk6+';}.open a:hover{color:#888;}fieldset legend{color:'+renk6+';border-bottom-color:#333;}</style>');
$('head').append('<style>#topic-share-menu>.share-dialog{margin-top:2px;}#s_container>h2>a:hover{color:'+renk3hover+';}#topic-share-menu>.share-dialog a:hover,#in-topic-search-options a:hover,.muted,.feedback .share-dialog a:hover,#entry-list footer .favorite-list-popup ul li a:hover,.other.dropdown .dropdown-menu li > a:hover,#threads li article p,#threads li article.unread p,a#buddy-link:hover,a#blocked-link:hover,a#btnmsg:hover,#user-badges li.muted,#bdengl a#buddy-link:hover{color:'+renk5+';}</style>');
$('head').append('<style>#entry-list footer .favorite-list-popup{right:0px;}.showall.more-data{width:160px;margin:0 auto;line-height:'+line_height1+';}.showall.more-data:hover{border-color:'+renk11alt+';color:'+renk12+';opacity:1;}</style>');
$('head').append('<style>#video{margin:0 auto;width:50%;}#topic>.editform>.vertical>h3{color:transparent;}#content-body>form>fieldset.vertical label.checkbox{position:relative;margin:4px 0px 0px 12px;}#content-body>form>fieldset.vertical button{margin-left:-3px;}</style>');
$('head').append('<style>#message-thread .incoming,#message-thread .outgoing{border-color:#999;}#logo{margin-left:6px;margin-top:10px;}/*#sub-navigation #main-index-nav {margin-right:20px;}*/</style>');
$('head').append('<style>#in-topic-search-options input[type="text"]{width:81%;}.tabs{border-bottom-color:'+renk6+';}.tabs > li.active{border:1px solid '+renk6+';border-bottom-color:'+renk0+';background-color:transparent;}</style>');
$('head').append('<style>#partial-index .tabs > li a:hover,.tabs > li:hover,.tabs > li.active:hover{background-image:none!important;background-color:'+renk0ust+'!important;color:'+renk8+'!important;border-top-left-radius:4px;border-top-right-radius:4px;}</style>');
$('head').append('<style>html.no-touch #channel-follow-list li{border:1px solid transparent;}html.no-touch #threads li article{background-color:rgba('+rgb_a(renk0,0.8)+');border-radius:4px;border:1px solid rgba('+rgb_a(renk6,0.4)+')!important;margin-bottom:10px;}html.no-touch #threads li article.unread{background-color:rgba('+rgb_a(renk0ust,0.8)+');border-radius:4px;border:1px solid rgba('+rgb_a(renk4,0.6)+')!important;}#content-body .topic-list li a{border:1px solid transparent;padding-left:8px;}html.no-touch #threads li article:hover,html.no-touch #channel-follow-list li:hover,#content-body .topic-list li a:hover{border:1px solid '+renk5+';background-color:'+renk0+';border-radius:4px;}#channel-follow-list li .channel-button.primary{border-color:#d31;}</style>');
$('head').append('<style>#message-send-form{width:100%;margin:0 auto;z-index:21000;}textarea.edittextbox{background-color:'+renk0+';}.edittextbox.with-helpers {border-bottom:1px solid #999;}</style>');
$('head').append('<style>.topic-list li .detail{font-size:0.9em;}input[type="text"], input[type="email"], input[type="search"], input[type="url"], input[type="datetime"], input[type="date"], input[type="time"], input[type="password"], select, textarea {border: 1px solid #ccc;}input[type="text"]:focus, input[type="email"]:focus, input[type="search"]:focus, input[type="url"]:focus, input[type="datetime"]:focus, input[type="date"]:focus, input[type="time"]:focus, input[type="password"]:focus, textarea:focus, button:focus, input[type="submit"]:focus, input[type="button"]:focus{border-color:rgba(100,100,100, 0.7);box-shadow:0px 1px 3px rgba(0,0,0, 0.1) inset,0px 0px 8px rgba(100,100,100, 0.6);}</style>');
$('head').append('<style>ul#kullanici_menu,#s_container,#aside,#aside>div,#aside>section{position:fixed;width:'+s_container+';right:20px;margin-right:0;text-align:center;min-width:220px;}</style>');
$('head').append('<style>ul#kullanici_menu{top:50px;height:100px;margin:0;}ul#kullanici_menu li{position:relative;display:inline-block;height:0px;width:60px;max-width:25%;}ul#kullanici_menu li a:hover{color:'+renk1+';text-decoration:none;}</style>');
$('head').append('<style>ul#kullanici_menu li a{font-size:12px;line-height:20px;text-align:center;font-weight:bold;color:#333;padding:0;height: 100%;background-repeat: no-repeat;padding-top:80px;background-position: center bottom;-webkit-border-radius: 0px;-moz-border-radius: 0px;border-radius: 0px;-webkit-box-shadow: inset 0 0px 0px rgba(0, 0, 0, 0.1), 0 0 0px transparent;-moz-box-shadow: inset 0 0px 0px rgba(0, 0, 0, 0.1), 0 0 0px transparent;box-shadow: inset 0 0px 0px rgba(255, 0, 0, 0.1), 0 0 0px transparent;}</style>');


$("#top-navigation").append("<div id=sarimsak></div>");
$("#sarimsak").append("<div id=s_container><ul id=kullanici_menu></ul><div id=yutub></div><div id=a_side></div></div>");
$("#aside").appendTo("#a_side");
$("#top-navigation ul li a[href^='/biri/']").parent().appendTo("ul#kullanici_menu");
$("#top-navigation ul li.messages").appendTo("ul#kullanici_menu");
$("#top-navigation ul li.tracked").appendTo("ul#kullanici_menu");


$('head').append('<style>#s_container{right:20px;top:175px;z-index:10001;}</style>');
$('head').append('<style>#aside{float:right;}#topic-channel-info{float:none;width:auto;}#topic-channel-info #topic-channel-suggestion-menu{overflow-y:auto;top:46px;margin:0 auto;width:auto;padding:0;max-height:250px;right:0px;}#topic-channel-info #topic-channel-suggestion-menu h2,#topic-channel-info #topic-channel-suggestion-menu h2 a,a#topic-channel-suggestion-menu-toggle{margin-bottom:0;font-size:12px;line-height:20px;}</style>');
$('head').append('<style>#yutub :not(h2),#top-bar input.primary[type="submit"]{opacity:0.95;}#s_container>h2,#s_container>h2>a,#yutub>h2,h2#kanallar{margin-top:2px;margin-bottom:2px;color:'+renk3+';font-size:12px;line-height:20px;font-weight:bold;}</style>');
$('head').append('<style>.editform{position:relative;}#options-dropdown ul.dropdown-menu.toggles-menu.open{z-index:20000;}</style>');
$('head').append('<style>#topic>.editform>.vertical>.edittools{border:none;position:absolute;top:23px;right:4px;}#content-body>form.editform>fieldset.vertical>div.edittools{border:none;position:absolute;top:-2px;right:4px;}#content-body>form.editform>fieldset.vertical>div.edittools>button{margin-left:4px;}#aside iframe#twitter-widget-0{position:fixed;bottom:0px;right:20px;}h2#twitter,#delete-self-form .checkbox{display:none;}</style>');
$('head').append('<style>textarea#editbox{color:'+renk13+';opacity:0.4;font: 14px sans-serif,Arial;width:100%;height:250px;margin:10px 0px 3px 0px;background-image: url('+entry_box_resmi+');background-position:center left;background-attachment: scroll;background-repeat:repeat-x;border:solid 2px #999;border-radius: 6px;-moz-border-radius: 6px;-webkit-border-radius: 6px ;background-color:'+renk14+';}</style>');
$('head').append('<style>textarea#editbox:focus{color:'+renk13+';opacity:1;outline:none;border:solid 2px #bbb;box-shadow:0px 0px 4px 0px #888;-webkit-box-shadow:0px 0px 4px 0px #888;-moz-box-shadow:0px 0px 4px 0px #888;background-attachment: scroll;background-repeat:repeat-x;background-image: url('+entry_box_resmi+');}</style>');
$('head').append('<style>textarea.edittextbox{height:250px;margin-top:-5px;color:'+renk13+';background-color:'+renk14+';background-position:right top;background-repeat:no-repeat;opacity:0.4;background-image: url('+msg_box_resmi+');border:2px solid #999;margin-bottom:5px;}</style>');
$('head').append('<style>textarea.edittextbox:focus{color:'+renk13+';background-position:right top;background-repeat:no-repeat;opacity:1;background-image: url('+msg_box_resmi+');}</style>');
$('head').append('<style>.edittools button,.actions>button,#channel-follow-list li .channel-button.primary:hover{border-radius:3px;-webkit-border-radius: 3px;-moz-border-radius: 3px;box-shadow:0px 1px 2px rgba(0, 0, 0, 0.1);-webkit-box-shadow:0px 1px 2px rgba(0, 0, 0, 0.1);-moz-box-shadow:0px 1px 2px rgba(0, 0, 0, 0.1);opacity:0.7;background-image:-moz-linear-gradient(top,'+renk11ust+','+renk11alt+');background-image:-ms-linear-gradient(top, '+renk11ust+', '+renk11alt+');background-image:-webkit-gradient(linear, 0 0, 0 100%, from('+renk11ust+'), to('+renk11alt+'));background-image:-webkit-linear-gradient(top, '+renk11ust+', '+renk11alt+');background-image:-o-linear-gradient(top, '+renk11ust+', '+renk11alt+');background-image:linear-gradient(top, '+renk11ust+', '+renk11alt+');background-color:'+renk11+';color:'+renk12+';background-repeat:repeat-x;border:1px solid transparent;cursor:pointer;width:auto;}</style>');
$('head').append('<style>form.editform>fieldset.vertical>div.actions>button.primary:hover,.channel-button:hover,#tema_uygula:hover,#notlar_ form#user-note-form button.primary:hover,#yenimesajgonder button.primary:hover,#message-thread button.primary:hover{opacity:1;background-image:-moz-linear-gradient(top,#bd6,#9b4);background-image:-ms-linear-gradient(top, #bd6, #9b4);background-image:-webkit-gradient(linear, 0 0, 0 100%, from(#bd6), to(#9b4));background-image:-webkit-linear-gradient(top, #bd6, #9b4);background-image:-o-linear-gradient(top, #bd6, #9b4);background-image:linear-gradient(top, #bd6, #9b4);background-color:#ac5;}</style>');
$('head').append('<style>#save-draft-button:hover,#tema_fabrika:hover{background-image:-moz-linear-gradient(top,#fe6,#dc4);background-image:-ms-linear-gradient(top, #fe6, #dc4);background-image:-webkit-gradient(linear, 0 0, 0 100%, from(#fe6), to(#dc4));background-image:-webkit-linear-gradient(top, #fe6, #dc4);background-image:-o-linear-gradient(top, #fe6, #dc4);background-image:linear-gradient(top, #fe6, #dc4);background-color:#dd5;}</style>');
$('head').append('<style>#channel-follow-list li .channel-button.primary,#delete-draft-button:hover,#tema_kaydetme:hover{background-image:-moz-linear-gradient(top,#f42,#d20);background-image:-ms-linear-gradient(top, #f42, #d20);background-image:-webkit-gradient(linear, 0 0, 0 100%, from(#f42), to(#d20));background-image:-webkit-linear-gradient(top, #f42, #d20);background-image:-o-linear-gradient(top, #f42, #d20);background-image:linear-gradient(top, #f42, #d20);background-color:#d31;}</style>');
$('head').append('<style>#top-bar input.primary[type="submit"],.last:hover,.next:hover,.prev:hover,.pager>select:hover{background-image:-moz-linear-gradient(top,'+renk7ust+','+renk7alt+');background-image:-ms-linear-gradient(top, '+renk7ust+', '+renk7alt+');background-image:-webkit-gradient(linear, 0 0, 0 100%, from('+renk7ust+'), to('+renk7alt+'));background-image:-webkit-linear-gradient(top, '+renk7ust+', '+renk7alt+');background-image:-o-linear-gradient(top, '+renk7ust+', '+renk7alt+');background-image:linear-gradient(top, '+renk7ust+', '+renk7alt+');background-color:'+renk7+';border-color:'+renk7+';}</style>');                 
$('head').append('<style>.editform>.vertical>h3>a{opacity:0.7;position:absolute;z-index:1;top:22px;left:4px;color:'+renk5+';}</style>');
$('head').append('<style>fieldset.vertical>div{margin:0;}fieldset.vertical>div.actions{margin-top:0px;margin-left:5px;position:absolute;width:auto;}#preview-area{position:relative;top:40px;left:-40px;margin-bottom:100px;}</style>');
$('head').append('<style>fieldset.vertical>div>label.checkbox{position:relative;margin-top:4px;z-index:1;}</style>');
$('head').append('<style>#content{margin-left:45px;}#content-body>#topic>.editform{margin-left:-45px;}</style>');
$('head').append('<style>#site-footer{margin-right:'+site_footer+';}#site-footer a{color:'+renk6alt+';}#site-footer a:hover{color:'+renk6ust+';}#site-footer ul{text-align:center;}</style>');
$('head').append('<style>.aside-link{display:none;}#message-search-form > input[type="search"] {width:70%;}form#message-search-form{margin-bottom:1px;}</style>');
$('head').append('<style>#topic-channel-info #topic-channels li.channel > a {background-color:'+renk1+';border-color:'+renk1+';color:#000;}</style>');
$('head').append('<style>a#feed-refresh-link.more-data{box-shadow:none;opacity:1;background-color:transparent;background-image:none;color:transparent!important;position:relative;top:-27px;margin-bottom:-23px;font-size:20px;width:100%;text-align:left;}.rotator{margin-left:-12px;color:'+renk3+';}a#feed-refresh-link.more-data>small{position:relative;font-size:'+font_boyutu+';top:-1px;margin-left:0px;color:'+renk6+';}</style>');
$('head').append('<style>form#message-send-form.vertical.modal{width:500px;height:400px;}form#message-send-form.vertical.modal textarea{height:217px;}form#message-send-form.vertical.modal .edittools{position:relative;right:1px;top:-1px;z-index:1;}form#message-send-form.vertical.modal .actions{position:relative;left:1px;top:-35px;width:200px;z-index:2;}form#message-send-form.vertical.modal #latest-entry-date-info{display:inline-block;}</style>');
$('head').append('<style>.sub-title-menu.profile-buttons>form#message-send-form.vertical.modal{position:relative;}.editform > .vertical > h3 > a{font-size:'+h4boyutu+';top:29px;}#notlar_{position:relative;top:0px;left:0%;width:100%;height:160px;}textarea#user-note {position:absolute;height:150px;background-color:transparent;border-color:'+renk6+';color:'+renk5+';}#notlar_ form#user-note-form button{position:relative;left:0px;top:75px;}h2#notlar{margin-bottom:-5px;}</style>');
$('head').append('<style>h1#user-profile-title{margin-bottom:20px;}#profile-cards > li > h3, #profile-cards > li h4{border-bottom-color:'+renk6+';}#profile-cards h3 a,#user-notifications ul li a,form#message-send-form.vertical.modal a.modal-close,a#toggle-moderation-history{color:'+renk3+';}</style>');
$('head').append('<style>#partial-index .tabs > li > a{padding:'+tab_genislik+';}#topic-channel-info #topic-channels li.channel > a{background-color:transparent;color:'+renk1+';opacity:0.5;}#message-thread .incoming, #message-thread .outgoing,#content-body.dilim #entry-list>li{background-color:rgba('+rgb_a(renk0ust2,0.8)+');border-radius:4px;border:1px solid rgba('+rgb_a(renk6,0.4)+');}#content-body.dilim #entry-list footer div.feedback{bottom:5px;}#content-body.dilim #entry-list>li{list-style:none outside none;padding:5px;}#site-footer{margin-top:90px!important;margin-bottom:10px!important;}.field-validation-error{position:absolute;top:10px;left:5px;}#notlar_ form#user-note-form button.primary{position:relative;top:154px;left:0px;}#user-moderation-history{position:relative;top:50px;}.click-to-play:before{top:42%;}.click-to-play > img{height:100%;}.ustmenu{color:'+renk17+';padding-right:8px;padding-left:8px;}.ustmenu:hover{color:'+renk17ust+';cursor:pointer;}#user-notifications{position:fixed;left:0;right:0;margin:0 auto;top:70px;width:25%;text-align:center;z-index:40001;}#user-notifications ul li,.confirmbox.activepopup{background-color:'+renk0+';color:'+renk5+';border-color:'+renk6+';}.dropdown .dropdown-menu li.separated{border-top:1px solid transparent;}#user-entry-stats{margin-bottom:20px;color:'+renk6+';}#quote-entry:before, #quote-entry:after,#user-entry-stats li:after,#profile-cards > li > ul li:before,ul#profile-cards li h3 small,#profile-cards > li > ul li span,#entry-list footer .vote-response-area,a#buddy-link,a#blocked-link,a#btnmsg,.pager,time,#entry-list footer .entry-date,#site-footer ul li + li:before,#threads li article.unread h2 small,a#topic-channel-suggestion-menu-toggle,#entry-list footer div.other > a,.info a.icon{color:'+renk6+';}#quote-entry:before{top:20px;}#quote-entry:after{bottom:-20px;}#main #content #content-body>form{margin-bottom:50px;}#user-badges a{background-color:'+renk3+';border-color:'+renk3+';color:'+renk0+';}</style>');
$('head').append('<style>#balon .feedback,#profile-cards .feedback,#content-body.dilim .feedback{visibility:visible!important;}</style>');
//$('head').append('<style>#message-thread{display:flex;flex-direction:column-reverse;}</style>');
$('head').append('<style>#modlog-form .checkbox{margin:0px;padding:0px;display:block;}.favicon-favorite11-grey{background-position: 0px -62px;}.favicon-favorite11{background-position: 0px -123px;}</style>');
if(window.location.pathname.substring(0, 6)=="/giris" || window.location.pathname.substring(0, 6)=="/kayit" ){$('head').append('<style>.field-validation-error{position:relative;top:0px;left:5px;}</style>');}

//ben mesaj olay & alarm kontrol
if(mesaj_olay=="1"){
//mesaj olay kontrol
mesajkontrol();
setInterval(function(){
mesajkontrol();
olaykontrol();
sag_frame();
},20000);
}

if(badi_kontrol=="1"){
setInterval(function(){
badilerden();
},40000);
}

//alarm kontrol
if(alarm_ses!=""){
setInterval(function(){
var date=new Date;var saat=date.getHours()+":"+date.getMinutes();
if(saat==alarm_saat && sessionStorage.getItem("alarm")!="1"){$('<audio id="temaaudio"><source src="'+alarm_ses+'" type="audio/mpeg"></audio>').appendTo('body');$('#temaaudio')[0].play();sessionStorage.setItem("alarm",1);}
},50000);
}

if(cerceve_modu=="1"){
$('head').append('<style>#profile-cards .bkz-ana,#content-body .bkz-ana{border:0px;padding:0px;}#entry-list>li:before{border:0px;content:"";}#balon #entry-list footer div.feedback{bottom:0px;}#content-body > #topic > .editform{margin-left:0px;}#content-body #entry-list>li{background-color:rgba('+rgb_a(renk0ust2,0.9)+');border-radius:4px;border:1px solid rgba('+rgb_a(renk6,0.6)+');margin-bottom:10px;padding:5px;padding-bottom:15px;}#entry-list{list-style: inside decimal none;}</style>');
}

$("#profile-cards").after("<div id=notlar_></div>");
$("h2#notlar,form#user-note-form").appendTo("#notlar_");


//ba�l�k sabitle & yazar kontrol
$("h1#title").append("<a id=yzr style='display:none;' title='yazar� tefti� et' href='/biri/"+title+"'><div id=yzr2></div></a><div id=igne title='�ivili ba�l�k'></div>");
$('head').append('<style>#yzr2{position:relative;top:0px;left:-3px;width:16px;height:16px;display:inline-block;background-image:url(http://i.imgur.com/ZaPZtrK.png);}</style>');

if(sabit_baslik=="1"){
$('head').append('<style>#igne{position:relative;top:0px;left:-3px;width:16px;height:16px;display:inline-block;background-image:url(http://i.imgur.com/ZWpXKI5.png);}h1#title,h1#user-profile-title{position:fixed;top:75px;}.sub-title-menu{position:fixed;top:115px;z-index:9999;}html.no-touch > body{top:130px;}</style>');
}
//

$('head').append('<style>#top-navigation{position:relative;top:30px;left:auto;text-align:right;z-index:2;}</style>');

//yazarkontrol
$.ajax({'url':ek$i.baseUrl+'biri/'+title+'','async':true,'global': false,'dataType': "html",'success':function(data){$("#yzr").show();},'error':function(){$("#yzr").hide();}});
//

//////////////////////
if(window.location.pathname.substring(0, 6)=="/mesaj"){
$("#content-body>ul.tabs").before("<div id=aramesaj></div>");
$("#content-body>ul.tabs").next().after("<div id=yenimesajgonder></div>");
$("h2#ara,form#message-search-form").appendTo("#aramesaj");
$("h2#yeni-mesaj,form#message-send-form").appendTo("#yenimesajgonder");
$('head').append('<style>#aramesaj{position:relative;}#aramesaj h2#ara{position:absolute;top:-1px;right:200px;}#aramesaj form#message-search-form{position:absolute;top:4px;right:-16px;}#yenimesajgonder .edittools,#message-thread .edittools{position:relative;top:-280px;right:1px;z-index:1;}#yenimesajgonder input#To.nickpicker{position:relative;z-index:2;border-color:rgba('+rgb_a(renk6,0.7)+');}#yenimesajgonder button.primary,#message-thread button.primary{position:relative;top:-35px;}</style>');
}
if(window.location.pathname.substring(0, 7)=="/mesaj/"){$("#message-send-form .edittextbox.with-helpers").eq(0).focus();}//mesaja giri�te odaklanma i�in

$("#topic .checkbox").appendTo("fieldset.vertical>div.actions");
$(".showall.more-data").text("t�m�n� g�ster");

if(ekran_genisligi>=1360){$(".editform>.vertical>h3>a").prepend("\"").append("\" hakk�nda bilgi verin:");$('head').append('<style>.edittools button{margin-left:4px;}</style>');}else{var fntb=parseInt(font_boyutu)-2+"px";$('head').append('<style>.editform>.vertical>h3>a{font-size:'+fntb+';}.edittools button{margin-left:2px;}</style>');}
$("form.editform>fieldset.vertical>div.actions>button.primary").text(yolla_text).attr("title","yolla");$("#save-draft-button").text(kenar_text).attr("title","kenarda dursun");$("#delete-draft-button").text(durma_text).attr("title","durmas�n");


//rastgele
$("ul#quick-index-nav li:eq(2)").before("<li id=getirbisiler class=ustmenu title='g�nlerden bir g�n'>rastgele</li>");
$("#getirbisiler").click(function(){
var tarih=tarihal();
tarih_=pad(parseInt(tarih.substring(8,10))+1);
tarih_=tarih.substring(0,8)+tarih_;
$("input#searchForm_Keywords").val("");
$("input#searchForm_When_From").val(tarih);
$("input#searchForm_When_To").val(tarih_);
$("#searchForm_SortOrder").val("Date");
$("#searchForm_NiceOnly").prop("checked",true);
$("form#advanced-search-form .actions button.primary").click();
});
function tarihal(){
var trh="";var y=new Date().getFullYear()-1;
trh=getRandomInt(2000,y)+"-";
trh=trh+pad(getRandomInt(1,12))+"-";
trh=trh+pad(getRandomInt(1,28));
return trh;
}
function getRandomInt(min, max) {return Math.floor(Math.random() * (max - min + 1)) + min;}
function pad(n) {return (n < 10) ? ("0" + n) : n;}
//

//dilim
$("ul#quick-index-nav li:last").after("<li id=dlm class=ustmenu title='ba�l�klar� dilimle'>dilim</li>");
$(document).on("click", "#dlm", function(e) {
$("#content-body").addClass("dilim").html("").append("<h1>dilim dilim</h1>");
$(".topic-list>li>a").each(function(i){
var sf=$(this).attr("href");
$.ajax({'url':'../'+sf+'','async':true,'global': false,'dataType': "html",'success':function(data){
var t=$(data).find("h1#title").text();
var y ='<ol id="entry-list">' +  $(data).find("#entry-list li:first").prepend("<h2><a href='../"+sf+"'>"+t+"</a></h2>").wrap('<p/>').parent().html() + '</ol>';
$("#content-body.dilim").append(y);
	ek$i.entryMenu.attach(($("#content-body.dilim").find("article:not([data-menu-attached])")),"aaa");
	k =$("#content-body.dilim").find("footer");
	m = k.data();
	p = m.id;

bdtrll();//badi & engelle ekle

}});
});
});
//

//�nceki sonraki
$("ul#quick-index-nav li:last").after("<li id=onceki class=ustmenu title='�nceki ba�l�k'><</li><li id=sonraki class=ustmenu title='sonraki ba�l�k'>></li>");
$(document).on("click", "#onceki,#sonraki", function(event) {
var basliksayisi = $(".topic-list li a").length;
var bstest=0;
$(".topic-list li a").each(function (e) {
if($("#partial-index > h2").text()!="badi"){
if($("span",this).hasClass("caption")==false){var baslik=$(this).html();if(baslik.indexOf("<small")>0){baslik=baslik.split(" <small")[0];}else{baslik=$(this).text().substring(0,baslik.length-1);}}else{var baslik=$("span",this).text();}
}
else
{
var baslik=$(this).html();if(baslik.indexOf("<small")>0){baslik=baslik.split(" <small")[0];}else{baslik=baslik.split(" <div")[0];}
}

if(baslik.trim()==$("h1#title a").text()){
bstest=1;
if(event.target.id=="onceki"){var ee=e-1;}else{var ee=e+1;}
if(ee==basliksayisi){ee=0;}
$(".topic-list li a:eq("+ee+")")[0].click();}
if(bstest==0){$(".topic-list li a:eq(0)")[0].click();}
});
});
//

//bug�n dropdown
$("body").after("<div id=sfmenu><li><a id=bgndl>bug�n (dolu dolu)</a></li><br><li><a id=bgnyn>bug�n (yeniden eskiye)</a></li><br><li><a id=bgntrh>bug�n (tarihi)</a></li></div>");
$('head').append('<style>#sfmenu{display:none;position:absolute;left:'+top_sol+';top:70px;padding:10px;list-style:none;z-index:9999;background-color:'+renk(renk0,17,1)+';color:'+renk5+';border:1px solid rgba('+rgb_a(renk6,0.4)+');box-shadow: 3px 3px 3px '+renk0+';border-radius:3px;font-family:'+font_select+';font-size:12px;}</style>');
$("html.no-touch #sub-navigation > ul > li > a[href='/basliklar/bugun']").mouseover(function(){$(this).attr("title","");$("#sfmenu").show();});
$("html.no-touch #sub-navigation > ul > li > a[href='/basliklar/bugun'],#sfmenu").mouseout(function(){if(timeout){window.clearTimeout(timeout);timeout = null;}setTimeout(function(){if(hoverkontrol("#sfmenu")==false){$("#sfmenu").hide();}},1000)});
$(document).click(function(e){if(hoverkontrol("#sfmenu")==false){$("#sfmenu").hide();}});

$("#bgndl,#bgnyn").click(function(){
var t=new Date();var g=pad(t.getDate());var m=pad(t.getMonth()+1);var y=t.getFullYear();var tdy=y+"-"+m+"-"+g;
var d = t.getDate();var m = t.getMonth();var y = t.getFullYear();var NextDate= new Date(y, m, d+1);var tdy_=NextDate.getFullYear()+"-"+pad(NextDate.getMonth()+1)+"-"+pad(NextDate.getDate());
$("input#searchForm_Keywords").val("");
$("input#searchForm_When_From").val(tdy);
$("input#searchForm_When_To").val(tdy_);
if($(this).attr("id")=="bgndl"){$("#searchForm_SortOrder").val("Count");}else{$("#searchForm_SortOrder").val("Date");}
$("form#advanced-search-form .actions button.primary").click();
});

$("#bgntrh").click(function(){
var aylar=["ocak","�ubat","mart","nisan","may�s","haziran","temmuz","a�ustos","eyl�l","ekim","kas�m","aral�k"];
var t=new Date();var g=t.getDate();var m=aylar[t.getMonth()];var y=t.getFullYear();var klm=g+" "+m+" "+y;
$("input#searchForm_Keywords").val(klm);
$("input#searchForm_When_From,input#searchForm_When_To").val("");
$("#searchForm_SortOrder").val("Count");
$("form#advanced-search-form .actions button.primary").click();
});
//

//yaz� boyutu
if(sessionStorage.getItem("font_boy")===null){var font_val=$("body").css("font-size");}else{var font_val=sessionStorage.getItem("font_boy");$("body,.topic-list.partial>li>a").css({"font-size":font_val,"line-height":parseInt(font_val)+8+"px"});$("#font_val").text(font_val);}
$('head').append('<style>ul#ekleme li #slide{width:50px;background-color:transparent;cursor:pointer;position:relative;vertical-align: middle;margin-right:3px;}ul#ekleme li #slide_,ul#ekleme li #slider,ul#ekleme li #font_val{position: relative;top: 0px;left: 0px;display: inline-block;color:'+renk17+';}#font_val{margin-right:10px;}input[type=range],input[type=range]::-moz-range-track{background-color:'+renk5+';height: 2px;}input[type=range]::-webkit-slider-thumb,input[type=range]::-moz-range-thumb{background-color:transparent;box-shadow:inset 0 0 10px '+renk0+';border: 1px solid '+renk1+';}</style>');
$("#ekleme").prepend("<li><div id='slider'>yaz�: <input id='slide' type='range' min='9' max='16' step='1' value='"+parseInt(font_val)+"'/><div id='font_val'>"+font_val+"</div></div></li>");
$("#slide").change(function(){sessionStorage.setItem("font_boy",$(this).val()+"px");$("body,.topic-list.partial>li>a").css({"font-size":$(this).val()+"px","line-height":parseInt($(this).val())+8+"px"});$("#font_val").text($(this).val()+"px");});
//

//g�mmeye ba�la
var arw_marg="7px 0px 0px -17px";var arw_spo="20px";
switch(true) {
case (font_boyutu=="13px"):arw_marg="8px 0px 0px -17px";arw_spo="24px";break//24px
case (font_boyutu=="14px"):arw_marg="9px 0px 0px -17px";arw_spo="26px";break
case (font_boyutu=="15px"):arw_marg="10px 0px 0px -17px";arw_spo="30px";break
case (font_boyutu=="16px"):arw_marg="11px 0px 0px -17px";arw_spo="34px";break
default:arw_marg="7px 0px 0px -17px";arw_spo="20px";
}
$('head').append('<style>.arrow-down,.arrow-up{border-left:7px solid transparent;border-right:7px solid transparent;margin:'+arw_marg+';width:0px;height:0px;position:absolute;opacity:0.7;overflow:hidden;cursor:pointer;}.arrow-down{border-top:7px solid '+renk4+';}.arrow-up{border-bottom:7px solid '+renk5+';}</style>');
$('head').append('<style>.arrow-spo{margin-left:'+arw_spo+';}.content img{max-width:100%;}.gomulu{margin-right:20px;}.bkz-ana{margin:2px;padding:5px;border:solid 2px #999;border-radius: 4px;-moz-border-radius: 4px;-webkit-border-radius: 4px;}.bkz-ana #entry-list{list-style:none inside none;}</style>');
//ara�t�r 
if($("#in-topic-search-menu").length>0){var arastir=$("#in-topic-search-menu");}else{if($("#move-topic-link").length>0){var arastir=$("#move-topic-link");$("#move-topic-link").css({"margin-right":"10px"});}else{if($("a#buddy-link").length>0){var arastir=$("a#buddy-link");}else{var arastir=$(".sub-title-menu");}}}
arastir.after("<ul id=i_ara><li><a>ara�t�r</a><ul class=sub-i_ara><li><a href='https://www.google.com/search?q="+title+"' title='google' target='_blank' class='google-ikon ikoncanlar'></a></li><li><a href='http://www.yandex.com.tr/yandsearch?lr=11511&text="+title+"' title='yandex' target='_blank' class='yandex-ikon ikoncanlar'></a></li><li><a href='http://www.bing.com/search?q="+title+"' title='bing' target='_blank' class='bing-ikon ikoncanlar'></a></li><li><a href='https://twitter.com/search?src=typd&q="+title+"' title='twitter' target='_blank' class='twitter-ikon ikoncanlar'></a></li><li><a href='http://tr.wikipedia.org/w/index.php?title=Özel%3AAra&profile=default&search="+title+"&fulltext=Search' title='wikipedia' target='_blank' class='wiki-ikon ikoncanlar'></a></li><li><a href='http://www.tdk.gov.tr/index.php?option=com_gts&kelime="+title+"' title='t�rk dil kurumu' target='_blank' class='tdk-ikon ikoncanlar'></a></li><li><a href='https://www.google.com/search?q="+title+"&source=lnms&tbm=isch' title='google g�rseller' target='_blank' class='google-g-ikon ikoncanlar'></a></li><li><a href='http://yandex.com.tr/gorsel/search?text="+title+"' title='yandex g�rseller' target='_blank' class='yandex-g-ikon ikoncanlar'></a></li><li><a href='http://www.bing.com/images/search?q="+title+"' title='bing g�rseller' target='_blank' class='bing-g-ikon ikoncanlar'></a></li><li><a href='https://www.youtube.com/results?search_query="+title+"' title='youtube' target='_blank' class='youtube-ikon ikoncanlar'></a></li><li><a href='http://us.imdb.com/find?q="+title+"' title='imdb' target='_blank' class='imdb-ikon ikoncanlar'></a></li><li><a href='http://kickass.to/usearch/"+title+"' title='kickass' target='_blank' class='kickass-ikon ikoncanlar'></a></li></ul></li></ul>");
$('head').append('<style>.ikoncanlar:hover{opacity:1;}.ikoncanlar{opacity:0.75;background-image:url(http://i.imgur.com/uumWqfd.png);width:24px;height:24px;margin:3px;margin-bottom:-4px;}.google-ikon{background-position:0px 0px;}.yandex-ikon,.yandex-g-ikon{background-position:-52px 0px;}.bing-ikon{background-position:-78px 0px;}.bing-g-ikon{background-position:-104px 0px;}.youtube-ikon{background-position:-208px 0px;}.imdb-ikon{background-position:-182px 0px;}.kickass-ikon{background-position:-233px 0px;}.twitter-ikon{background-position:-130px 0px;}.wiki-ikon{background-position:-156px 0px;}.tdk-ikon{background-position:-259px 0px;}.google-g-ikon{background-position:-26px 0px;}ul#i_ara li a:hover{color:'+renk5+';}.sub-title-menu>a.url{display:none;}ul#i_ara,ul#i_ara ul.sub-i_ara{z-index:20000;padding:0;margin:0;display:inline-block;background-color:'+renk0+';font-size:0.9em;margin-right:10px;}ul#i_ara{background-color:transparent!important;}ul#i_ara ul.sub-i_ara{border:1px solid '+renk6+';border-radius:3px;-webkit-border-radius: 3px;-moz-border-radius: 3px;}ul#i_ara li, ul#i_ara ul.sub-i_ara li {list-style-type: none;display: inline-block;}ul#i_ara li a, ul#i_ara li ul.sub-i_ara li a {text-decoration: none;color:'+renk6+';display:inline-block;}ul#i_ara li {position: relative;}ul#i_ara li ul.sub-i_ara li a {padding:0px;}ul#i_ara li ul.sub-i_ara {display:none;position: absolute;top:17px;padding:0px;left:0px;width: 183px;height:62px;}</style>');
$("#i_ara li a").click(function(){
if($("ul.sub-i_ara").hasClass("acik")==false){$("ul.sub-i_ara").css({"display":"block"}).addClass("acik");}else{$("ul.sub-i_ara").css({"display":"none"}).removeClass("acik");}
});
$("ul#i_ara li").mouseover(function(){$("ul.sub-i_ara").css({"display":"block"});}).mouseout(function(){if($("ul.sub-i_ara").hasClass("acik")==false){$("ul.sub-i_ara").css({"display":"none"});}});
$(document).click(function(e){if ($(e.target).closest('#i_ara').length>0 || $(e.target).closest('#i_ara li a').length>0) return;
$("ul.sub-i_ara").css({"display":"none"}).removeClass("acik");
});
//bkz
$(".content a[href^='/entry/'],#profile-cards a[href^='/entry/']").each(function() { 
    var entry_href=$(this).attr("href");
	var entry_title=$(this).text();
	var entry_id=entry_href.split("/entry/")[1];var entrid=$(this).closest("#entry-list>li").attr("id");if(entrid===undefined){entrid=entry_id;}
	var rast=1+Math.floor(Math.random()*100000);entrid=entrid+rast+entry_id;
    $(this).before('<a class=gomulu href="'+entry_href+'">'+entry_title+'</a>').replaceWith("<span class='arrow-down arrow"+entrid+"'></span>");
$(".arrow"+entrid+"").click(function(){
    if($(this).hasClass("arrow-down")==true)
{
$(this).removeClass("arrow-down").addClass("arrow-up").after("<div class='bkz-ana bkz-embed"+entrid+"'></div>");
$.ajax({'url':'../'+entry_href+'','async':true,'global': false,'dataType': "html",'success':function(data){
var t=$(data).find("h1#title").text();
var y ='<ol id="entry-list">' +  $(data).find("#entry-list li:first").prepend("<h2><a href='../"+entry_href+"'>"+t+"</a></h2>").wrap('<p/>').parent().html() + '</ol>';
$(".bkz-embed"+entrid+"").append(y);
//Alay� burada//
ek$i.entryMenu.attach(($(".bkz-embed"+entrid+"").find("article:not([data-menu-attached])")),"aaa");
k =$(".bkz-embed"+entrid+"").find("footer");
m = k.data();
p = m.id;
// attachOptions(p,k);
}});		
}
else{$(this).removeClass("arrow-up").addClass("arrow-down");$(".bkz-embed"+entrid+"").remove();}
});	
});

$("head").append("<style>#profile-cards .bkz-ana h2{display:none;}#profile-cards .bkz-ana span:after,#profile-cards .bkz-ana span:before,#profile-cards .bkz-ana li:before{content:'';}#profile-cards > li > ul{text-indent:0px;}#profile-cards #entry-list{margin-bottom:0px;}</style>");
//tweet
$(".content a[href*='twitter.com/']").each(function() {
       var tweet_url = this.href;
	   var tweet_title = $(this).text();
	   var tweet_id = tweet_url.split("/")[5];
	   if(tweet_id!==undefined)
	   {
	   var entrid=$(this).closest("#entry-list>li").attr("id");
	   var rast=1+Math.floor(Math.random()*100000);entrid=entrid+rast+tweet_id;
	   
       $(this).before('<a class=gomulu target="_blank" href="'+tweet_url+'">'+tweet_title+'</a>').replaceWith("<span class='arrow-down arrow"+entrid+"'></span>");
$(".arrow"+entrid+"").click(function(){
if($(this).hasClass("arrow-down")==true)
	{$(this).removeClass("arrow-down").addClass("arrow-up").after("<div class='twt-embed"+entrid+"'></div>");  $.getJSON("https://api.twitter.com/1/statuses/oembed.json?id="+tweet_id+"&callback=?",function(d){$(".twt-embed"+entrid+"").html(d.html);});}
else{$(this).removeClass("arrow-up").addClass("arrow-down");$(".twt-embed"+entrid+"").remove();}
});	
		}
});
//
//youtube && vimeo
function Getvideoid(videolink)
{
var regExp = /^.*((youtu.be\/)|(v\/)|(\/u\/\w\/)|(embed\/)|(watch\?))\??v?=?([^#\&\?]*).*/;
var match = videolink.match(regExp);
if (match && match[7].length == 11){return match[7];}
regExp = "vimeo\\.com/(?:.*#|.*/videos/)?([0-9]+)";
match = videolink.match(regExp);
if(match){var videoid = videolink.split('/')[videolink.split('/').length - 1];return videoid;}
else{return;}//bilinmeyen url
}
$("a[href*='youtube.com/watch?v='],a[href*='youtu.be/']").each(function() {
       var yt_url = this.href;var yt_title = $(this).text();var yt_id = Getvideoid(yt_url);var entrid=$(this).closest("#entry-list>li").attr("id");var rast=1+Math.floor(Math.random()*100000);entrid=entrid+rast+yt_id;
if(yt_id){	   
       $(this).before('<a class=gomulu target="_blank" href="' + yt_url + '">' + yt_title + '</a>').replaceWith("<span class='arrow-down arrow"+entrid+"'></span>");
$(".arrow"+entrid+"").click(function(){
    if($(this).hasClass("arrow-down")==true){
       $(this).removeClass("arrow-down").addClass("arrow-up").after("<div class='ytb-embed"+entrid+"'></div>");$(".ytb-embed"+entrid+"").html("<br><iframe width="+youtube1+" height=315 src=https://www.youtube.com/embed/"+yt_id+"?controls=2 frameborder=0 allowfullscreen></iframe>");}else{
       $(this).removeClass("arrow-up").addClass("arrow-down");$(".ytb-embed"+entrid+"").remove();}
});	
}
});
$("a[href*='vimeo.com/']").each(function() {
       var yt_url = this.href;var yt_title = $(this).text();var yt_id = Getvideoid(yt_url);var entrid=$(this).closest("#entry-list>li").attr("id");var rast=1+Math.floor(Math.random()*100000);entrid=entrid+rast+yt_id;
if(yt_id){
       $(this).before('<a class=gomulu target="_blank" href="' + yt_url + '">' + yt_title + '</a>').replaceWith("<span class='arrow-down arrow"+entrid+"'></span>");
$(".arrow"+entrid+"").click(function(){
    if($(this).hasClass("arrow-down")==true){
       $(this).removeClass("arrow-down").addClass("arrow-up").after("<div class='ytb-embed"+entrid+"'></div>");$(".ytb-embed"+entrid+"").html("<br><iframe src=//player.vimeo.com/video/"+yt_id+" width="+youtube1+" height=315 frameborder=0 webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe>");}else{
       $(this).removeClass("arrow-up").addClass("arrow-down");$(".ytb-embed"+entrid+"").remove();}
});	
}
});
//
//resim
$("#topic>ol#entry-list>li a.url").each(function(){
       var entry_link=$(this).attr("href");
       var uzanti = ['jpg','gif','png','jpeg'];
       var link_uzanti = entry_link.substr(entry_link.lastIndexOf('.') + 1);
	   
if ($.inArray(link_uzanti, uzanti) != -1){var img_title = $(this).html();var img_id=1+Math.floor(Math.random()*10000000);var entrid=$(this).closest("#entry-list>li").attr("id");img_id=entrid+img_id;$(this).before('<a class=gomulu target="_blank" href="' + entry_link + ' ">' + img_title + '</a>').replaceWith("<span class='arrow-down arrow"+img_id+"'></span>");}
$(".arrow"+img_id+"").click(function(){
    if($(this).hasClass("arrow-down")==true){
       $(this).removeClass("arrow-down").addClass("arrow-up").after("<div class='rsm-embed"+img_id+"'></div>");$(".rsm-embed"+img_id+"").html("<br><img src="+entry_link+"></img>");}else{
       $(this).removeClass("arrow-up").addClass("arrow-down");$(".rsm-embed"+img_id+"").remove();}
});	    
});
//
//spoiler
$("#topic>ol#entry-list>li a.b[href*='spoiler']").each(function(){
if ($(this).next().text().indexOf('spoiler') != 0){$(this).after("<span class='arrow-spo arrow-down'></span>");}
});

$("#topic>ol#entry-list>li").each(function(){
    $(".arrow-spo:even",this).each(function(){
	
//spoiler varsa spoiler tersle butonu ekle	
if(window.location.pathname.substring(0, 5)!="/biri" && $(".sub-title-menu").find("#spolari_tersle").length==0){
$(".sub-title-menu").append("<div id=spolari_tersle><a>spoiler tersle</a></div>");
}
//	
    var $set = $();
    var nxt = this.nextSibling;
    while(nxt) {
        if(!$(nxt).is(".arrow-spo:odd")) {
            $set.push(nxt);
            nxt = nxt.nextSibling;
        } else break;
    } 
   $set.wrapAll('<div class="spoiler-icerigi spoyler" />');        
});
    $(".arrow-spo:odd",this).hide();
});

$(".arrow-spo").click(function() {
$(this).next().toggleClass("sakla , spoiler-icerigi");//$(this).parent().find(".spoyler").toggleClass("sakla , spoiler-icerigi");//
$(this).toggleClass("arrow-up , arrow-down");
}); 
$('head').append('<style>.sakla{display:inline;}.spoiler-icerigi{display:none;}</style>');

//spoiler terslen
$("#spolari_tersle a").click(function(){
$("#topic>ol#entry-list>li").each(function(){
$(this).find(".spoyler").toggleClass("sakla , spoiler-icerigi");
$(this).find(".arrow-spo").toggleClass("arrow-up , arrow-down");
});
});
//
//g�mmeyi bitir

//��kela modu bug�n
$(".sub-title-menu #in-topic-search-menu li a[href*='nice']").after("<a id=sklbgn>��kela modu (bug�n)</a><a id=bnme>neler yazm���m?</a>");
$("#sklbgn").click(function(){
var t=new Date();var g=pad(t.getDate());var m=pad(t.getMonth()+1);var y=t.getFullYear();
var tdyfrom=y+"-"+m+"-"+g;
var tdyto=y+1+"-"+m+"-"+g;
var ttlhref=$("h1#title a").attr("href");
var sklbgnhref=ttlhref+"?searchform.when.from="+tdyfrom+"&searchform.when.to="+tdyto+"&searchform.niceonly=true&a=search";
window.location.assign(sklbgnhref);
});
//


//neler yazm���m?
$("#bnme").click( function() {
$("#in-topic-search-options input[type='text']").val("@"+nick+"");
$("#in-topic-search-options button").click();
});
//

//��enge� modu
if(usengec_modu=="0"){if(window.location.pathname.substring(0, 5)!="/biri"){$(".gomulu").click(function(e){e.preventDefault();var span = $(this).next();$(span).trigger("click");});}}
//



$("header").mouseover( function() {
if($("#sarimsak").is(":hover")==false){show_top();}
}).mouseout( function() {
if($("#search-textbox").is(":focus")==false){if($("form#advanced-search-form").hasClass("open")==false){if($("#options-dropdown.dropdown ul.dropdown-menu.toggles-menu").hasClass("open")==false){hide_top();}}}
});

$("#search-textbox").blur( function() {hide_top();});

$(document).ready( function() {
/*	
//sembol modu
$("#entry-list .feedback a.like").text(":)");
$("#entry-list .feedback a.dislike").text(":(");
$("#entry-list .feedback a:contains('mesaj at')").text("M");
$("#entry-list .feedback .favorite-link").text("").css({"vertical-align":"middle"});	
*/

	
yazargzle();
bdtrll();



//sol frame scroll
var scrollrenk=renk1;
switch(true) {
case (temalarim=="fabrika"):
case (temalarim=="fabrika_gece"):
case (temalarim=="ates"):var scrollrenk=renk6;break
}	
$("#partial-index").css("padding-right","15px");
$("#partial-index").niceScroll({cursorwidth:"10",cursorborder:"0px",cursorborderradius:"0px",cursorcolor:""+scrollrenk+"",cursoropacitymin:"0.1",cursoropacitymax:"0.2",scrollspeed:"50" });
//

hide_top();    
sol_frame();
sag_frame();
youtube_section();
if(sf_yenile!=""){if(sf_yenile!=0){if(sf_yenile<10&&sf_yenile!=0){sf_yenile=10;}setInterval(function(){$("#feed-refresh-link").trigger("click");}, sf_yenile*1000);}}
olayterk();
badilerden();


});   



$(document).ajaxComplete( function(event) { //console.log(event);
sol_frame();
if(document.activeElement.id=="search-textbox"){return;}//autocomplete an�nda sorun olmamas� i�in 
sag_frame();
});

$("#top-navigation #top-login-link,#top-navigation a[href^='/kayit']").hover(function(){show_top();});

if(sessionStorage.getItem("kanallar-arrow")===null || sessionStorage.getItem("kanallar-arrow")==="up"){$("h2#kanallar").append("<span class=sarimsak-arrow-up>");$("#topic-channels>ul").show();}else{$("h2#kanallar").append("<span class=sarimsak-arrow-down>");$("#topic-channels>ul").hide();}
if(kanal_modu=="0"){$("#topic-channel-info").hide();}
$(document).on("click","#yutub>h2>span",function(e){$("#yutub_").slideToggle(250);$(this).toggleClass("sarimsak-arrow-up , sarimsak-arrow-down");if($(this).hasClass("sarimsak-arrow-up")==true){sessionStorage.setItem("yutub-arrow", "up");}else{sessionStorage.setItem("yutub-arrow", "down");}return false;});
$(document).on("click","h2#kanallar>span",function(e){$("#topic-channels>ul").slideToggle(250);$(this).toggleClass("sarimsak-arrow-up , sarimsak-arrow-down");if($(this).hasClass("sarimsak-arrow-up")==true){sessionStorage.setItem("kanallar-arrow", "up");}else{sessionStorage.setItem("kanallar-arrow", "down");}return false;});
$("#logo a").css({"background-image":"url("+logo_var+")"});

//tema ekstralar�
switch(true) {
//herzamanki
case (temalarim=="fabrika_gece"):$("#logo").after("<div id=gece_logo></div>");$("head").append("<style>#gece_logo{background-image:url(http://i.imgur.com/anIBY5S.png);position: relative;width:48px;height:24px;top:22px;left:-75px;display:inline-block;}</style>");
case (temalarim=="fabrika"):
herz();
mesajolaylari("#ff9900","#00f000","#f0f000","#555");
break;
case (temalarim=="ates"):
herz();
mesajolaylari("#ff9900","#ff9900","#ff9900","#555");
break;
case (temalarim=="kfb"):mesajolaylari(renk2,renk4,renk3,renk2);
//header_resmi="http://i.imgur.com/YafTYnz.jpg";
//$('head').append('<style>#in-topic-search-options{background-image:url(http://i.imgur.com/AG8hiRW.png);background-position:top right;background-repeat:no-repeat;}#topic-share-menu>.share-dialog{margin-top:2px;background-image:url(http://i.imgur.com/XlbSQtO.png);background-position:center center;}</style>');
break;
case (temalarim=="asl"):mesajolaylari(renk1,renk1,renk1,renk2);break;
case (temalarim=="krt"):mesajolaylari(renk1,renk1,renk1,renk2);break;
case (temalarim=="pisi"):mesajolaylari(renk1,renk1,renk1,renk2);break;
case (temalarim=="bb"):mesajolaylari(renk1,renk1,renk1,renk2);break;
//
//beslenirkibu
case (temalarim=="bkb"):
$("header").append("<div class=uzaa></div>");$('head').append('<style>.uzaa{position:absolute;left:172px;top:0px;background-image:url(http://i.imgur.com/SagOoSU.jpg);z-index:-1;width:528px;height:10px;background-repeat:no-repeat;}</style>');
$("a#a3-toggle").after("<li id=logoo></li>");
$("#logoo").click(function(){$("#logo a")[0].click();});

$('head').append('<style>a{color:'+renk4+';}#search-form{margin-left:-7px;}#search-form #search-textbox{width:298px!important;}#logo a{display:none!important;}#logoo{cursor:pointer;background-image:url(http://i.imgur.com/ENmIwFK.jpg)!important;background-position:top left;top:1px;left:0px;background-size:21px;border:1px outset #fff !important;height:23px;position:relative;display:inline-block;width:24px;z-index:1000000!important}#logo a:active{border:1px inset #fff!important}#yenimesajgonder .edittools, #message-thread .edittools{top:-180px!important;}.arrow-up{border-bottom-color:#ff0000;}.arrow-down{border-top-color:#640032;}#topic-move-form .actions{margin-top:-10px;}#topic-move-form .actions button {padding-right: 0px;padding-left: 0px;}ul#kullanici_menu{top: 100px!important;}ul#kullanici_menu li{width:50px;}ul#kullanici_menu li a{font-size:9px;}ul#kullanici_menu li.messages,ul#kullanici_menu li.tracked {padding-bottom:17px;background-position:center bottom;}</style>');
$('head').append('<style>.arkaplan{background-position: bottom right !important;background-size:auto !important;}header{background-color:#E0E0C9;background-image:url(http://i.imgur.com/dZEcTzS.gif);background-position:top right;background-repeat:no-repeat;border-left:6px solid #000!important}.edittools button, .actions > button, #channel-follow-list li .channel-button.primary:hover,.showall.more-data,.more-data:not(#feed-refresh-link){border-color:#CCA371 !important;opacity:0.9!important;}.pager > a.prev,.pager select,.pager > a.last,.pager > a.next{border:1px solid #CCA371 !important;opacity:0.9!important;}#logo{background-repeat:no-repeat;background-image:url("http://i.imgur.com/vnFxJav.gif");margin-top:0px;margin-left:-10px;position:relative;z-index:20002;height:50px;width:232px;}#advanced-search-form button.primary{background-image:url(http://i.imgur.com/s8SMuoy.gif)!important;background-position:center center!important;background-repeat:no-repeat!important;font-size:0px!important;height:20px!important;width:175px!important;background-color:#cc8500!important;opacity:1!important;}#quick-index-nav a,.ustmenu,#temaayarlari,#slider,#top-bar input.primary[type="submit"],#a3-toggle,#top-navigation > ul > li a{background-color:#CC8500!important;border:1px solid #9F6800!important;color:#fff!important;padding:5px!important;font-size:11px!important;line-height:11px!important;border-radius:0px!important;background-image:none!important;height:auto!important}#top-bar input.primary[type="submit"]{padding-left:8px!important;padding-right:8px!important;}#top-bar input.primary[type="submit"],#a3-toggle{position:relative;top:-6px;left:0px;margin-right:4px;}#a3-toggle:after{display:none;}.ustmenu{margin-right:4px!important;}#site-footer ul li a{background-color:#CC8500;border:1px solid #9F6800;color:#fff !important;padding:5px!important;}button,button.primary,input[type=button],input[type=button].primary,input[type=submit],input[type=submit].primary{background:#ffb76b;border:1px solid #9F6800;color:#fff;font-size:11px!important}button.primary{padding-right:20px;padding-left:20px;background-color:#ffb76b!important;border-color:#9F6800!important;color:#333!important;background-image:none!important;font-weight:bold!important;opacity:0.9!important;font-size:12px!important;}#save-draft-button{font-size:12px!important;padding-right:16px;padding-left:16px;background-color:#86DE98!important;border-color:#2EA747!important;color: #792167!important;background-image:none!important;font-weight:bold!important;opacity:0.9!important;}#topic-move-form .actions button.cancel,form#message-send-form .actions button.cancel-button,#confirmno,#delete-draft-button{font-size:12px!important;padding-right:18px;padding-left:18px;background-color:#eaa7bc!important;border-color:#ba778c!important;color:#1f312c!important;background-image:none!important;font-weight:bold!important;opacity:0.9!important;}#entry-list li:hover{background-image:url(http://i.imgur.com/DaizA12.gif)!important;background-position:bottom left!important;background-repeat:no-repeat!important}#index-section{background-image:url(http://i.imgur.com/VtpFF3K.gif);background-position:bottom left;background-repeat:no-repeat;border-color:#000;margin-left:0;min-height:210px;}</style>');
$('head').append('<style>a.ara{color:#105712!important}a.b{color:red!important}a.empty-index-item{color:#c98f8f!important}a.url{background-color:transparent;color:#3D6219!important}a:hover{background-color:#E8E8D6;text-decoration:none!important}#content,#content-section,#partial-index,#partial-index-wrapper,#topic{background-color:transparent!important}#user-note{height:150px!important}.checkbox,.radio{background-color:transparent;border:none!important}.content{line-height:20px!important}.ui-corner-all{opacity:0.9!important}article h2 a{font-family:Arial,Helvetica,sans-serif;font-size:19px!important}article.unread,#threads li .unread,#message-thread .incoming, #message-thread .outgoing{background-color:#ebe9c5!important}div.dotdotdot{color:#453c45;font-style:italic!important}div.dotdotdot a{color:#4b5f9c!important}div.edittools{background-color:transparent!important}div.edittools button{color:#fff!important}div.feedback a{color:#0c4214!important}div.info address a{border-right-width:2px;color:#5e1010;font-weight:700;padding-left:8px;padding-right:8px;text-decoration:none!important}div.info time{color:#266332!important}div.links a{color:red!important}fieldset{color:sienna;margin:0;padding:2px!important}fieldset.inline{left:220px;position:absolute;top:35px!important}fieldset.vertical legend{color:#668f5e!important}form.modal{background-color:#ebdab0!important}form.modal fieldset button.primary.send-button{background-color:#CC8500;background-image:url(http://antik.eksisozluk.com/css/bkb_gonder2.gif);background-position:center center;background-repeat:no-repeat;border:1px solid #9F6800;height:15px;padding-top:13px;width:75px!important}form.open{background-color:#b5e0af;border-color:#63995c;border-style:solid;border-width:4px!important}h1,h1 a{background-color:#e0e0c9;color:red;font-family:Arial,Helvetica,sans-serif!important}h2 a small{color:#749430;font-size:15px;font-style:italic!important}h2,h2 a{color:#064222!important}hr{color:#000;height:1px!important}.topic-list.partial>li>a{border-bottom:1px solid transparent;border-top:1px solid transparent;}html.no-touch #partial-index{margin-bottom:90px!important}input.topic-picker.ui-autocomplete-input{width:200px!important}/*li{margin-right:4px;}*/li article h2 a{color:#8c5757!important}li h3,li h3 a{color:#292478!important}li.active a{background-color:#edf5ce!important}li.dropdown a{color:#fff!important}li.dropdown a:hover{background-color:transparent!important}li.padded a small{color:#050505;font-style:italic!important}nav.loggedin.toggles-menu{background-color:transparent!important}p.topic-list-description{color:#3d3d3d;font-style:italic!important}input,optgroup,select{background-color:#ead9c4;border:1px solid #CCA371;font:8pt Verdana,sans-serif!important}span.buddy-names{color:#575296!important}span.delete-info{color:#8a5050;font-style:italic!important}ul.dropdown-menu.toggles-menu.open{-moz-border-radius:10px;-webkit-border-radius:10px;background-color:#ead9c4!important}ul.dropdown-menu.toggles-menu.open a{font-size:11px!important}ul.dropdown-menu.toggles-menu.open li a{color:#964141!important}ul.tabs{background-color:#dbe8be!important}</style>');
$('head').append('<style>#main-index-nav a,#main-index-nav a:visited{background-color:#CC8500;border:1px solid #9F6800;color:#fff!important;font-size:11px;line-height:12px;padding:5px!important;}#main-index-nav a:active,#quick-index-nav a:active{background-color:red;border:1px solid #7B50B1!important}#main-index-nav a:hover,#quick-index-nav a:hover,#top-navigation .dropdown:hover,#top-bar input.primary[type="submit"]:hover,#a3-toggle:hover,#temaayarlari:hover,.ustmenu:hover,#top-navigation > ul > li a:hover{background-color:#FF4500!important;border:1px solid #7B50B1!important;cursor:pointer!important;}#partial-index{padding-left:15px!important;}.editform>.vertical>h3>a{top:23px!important}#topic>.editform>.vertical>.edittools{top:17px!important}ul#kullanici_menu li a,li.messages a:hover,li.tracked a:hover{background-color:transparent!important}ul#i_ara li ul.sub-i_ara{width:192px!important}ul.topic-list.partial a:hover,ol#stats.topic-list.partial a:hover{background-color:transparent;border-bottom:1px solid #30db80!important;border-top:1px solid #30db80!important;color:#276b42!important;}.editform > .vertical > h3 > a{top:19px!important;}#content-body > form.editform > fieldset.vertical > div.edittools{top:-13px!important;}#sub-navigation{margin-left:0px}</style>');
$('head').append('<style>textarea#editbox,textarea.edittextbox{background-color:#ead9c4!important;background-repeat:no-repeat!important;background-position:bottom right!important;border:1px solid #CCA371!important;scrollbar-track-color:#ead9c4!important;height:150px!important;overflow-y:auto!important;line-height:20px!important;opacity:0.9!important;}textarea.edittextbox.with-helpers::-webkit-scrollbar{width:15px!important}textarea.edittextbox.with-helpers::-webkit-scrollbar-thumb{-moz-border-radius:4px;-webkit-border-radius:4px;-webkit-box-shadow:inset 1px 1px 0 rgba(0,0,0,0.1),inset 0 -1px 0 rgba(0,0,0,0.07);background-color:rgba(224,165,100,0.4);border-radius:4px!important;}form.modal fieldset textarea{background-color:#EAD9C4;background-image:url(http://i.imgur.com/qh81R9K.gif);background-position:bottom center;background-repeat:no-repeat;border:1px solid #CCA371;color:#000;height:110px!important}html.no-touch #partial-index::-webkit-scrollbar-thumb{background-color:rgba(0,0,0,0.12);}</style>');
$('head').append('<style>#sub-navigation #main-index-nav, #ekleme, #top-navigation{margin-right:6px!important;}#dlm{margin-left:4px!important;}#top-navigation > ul{margin-right:2px;}#title a{color:#FF2F0B;font-family:Arial,Helvetica,sans-serif;font-size:20px!important}#title a:hover{background-color:transparent!important}#site-footer ul li a{padding:3px!important;font-size:10px;}#options-dropdown.dropdown{margin-left:-4px!important;}.ui-autocomplete li a.ui-state-focus{background-color:#daa!important;}#topic-channel-info #topic-channels li.channel > a{background-color:#CC8500;border-color:#9F6800;color:#000;}div.edittools button{color:'+renk1+'!important;}.edittools button{color:'+renk1+'!important;border-color:#CCA371!important;background-image:-moz-linear-gradient(top,#ead9c4,#cab9a4);background-image:-ms-linear-gradient(top, #ead9c4, #cab9a4);background-image:-webkit-gradient(linear, 0 0, 0 100%, from(#ead9c4), to(#cab9a4));background-image:-webkit-linear-gradient(top, #ead9c4, #cab9a4);background-image:-o-linear-gradient(top, #ead9c4, #cab9a4);background-image:linear-gradient(top, #ead9c4, #cab9a4);}.pager > a.prev:hover,.pager select:hover,.pager > a.last:hover,.pager > a.next:hover,button.primary:hover,#save-draft-button:hover,#delete-draft-button:hover,.ui-corner-all,textarea.edittextbox.with-helpers:focus,textarea#editbox,#yutub :not(h2){opacity:1!important;}ul#ekleme li #font_val{color:#fff!important;}</style>');
if(tarayici!="firefox"){$('head').append('<style>#slider{margin-right:4px!important;padding-top:0px!important;padding-bottom:0px!important;padding-right:0px!important;height:25px!important;top:-2px!important;}#temaayarlari{padding-top:6px!important;padding-bottom:6px!important;}</style>');}else{$('head').append('<style>#slider{margin-right:4px!important;padding-right:0px!important;}</style>');}
if(sabit_baslik=="0"){
$("h1#title").before("<div id=firat1></div>").after("<div id=firat2></div>");
$('head').append('<style>#firat1{position:relative;top:0px;left:0px;width:70px;height:56px;background-image: url(http://i.imgur.com/bxZRJFv.gif);display:inline-block;}</style>');
$('head').append('<style>#firat2{position:absolute;top:0px;left:auto;right:'+s_container+';margin-right:40px;width:179px;height:100px;background-image: url(http://i.imgur.com/GvnrMJg.gif);display:inline-block;}</style>');
$('head').append('<style>h1#title{position:relative;display:inline-block;top:-31px;left:5px;}.sub-title-menu{position:relative;top:-33px;left:75px;}</style>');
}
else{
$("h1#title").prepend("<div id=firat1></div>").after("<div id=firat2></div>");
$('head').append('<style>html.no-touch > body{top:166px;}#firat1{position:absolute;top:0px;left:0px;width:70px;height:56px;margin-left:-75px;background-image: url(http://i.imgur.com/bxZRJFv.gif);display:inline-block;}h1#title{margin-left:75px;top:90px;}.sub-title-menu{margin-left:75px;top:130px;}</style>');
$('head').append('<style>#firat2{position:fixed;top:65px;left:auto;right:'+s_container+';margin-right:40px;width:179px;height:100px;background-image: url(http://i.imgur.com/GvnrMJg.gif);}</style>');
}
switch(true) {
case (ekran_genisligi>="1024" && ekran_genisligi<"1280"):$('head').append('<style>#index-section {background-size:225px 1478px!important;}#site-footer ul li + li:before{margin-left:0px!important;margin-right:4px!important;}#site-footer ul li a{padding:3px!important;font-size:9px;}#logo{background-size:212px 50px!important;}#container{padding:0px!important;}header{background-size:1395px 55px!important;}h1#title > a{background-color:transparent!important;}.uzaa{display:none!important;}#yenimesajgonder input#To.nickpicker{width:220px!important;}#aramesaj h2#ara{font-size:18px!important;}</style>');break;
case (ekran_genisligi>="1280" && ekran_genisligi<"1360"):$('head').append('<style>#index-section {background-size:237px 1357px!important;}#site-footer ul li + li:before{margin-left:0px!important;margin-right:4px!important;}#site-footer ul li a{padding:3px!important;font-size:9px;}#logo{background-size:222px 50px!important;}#container{padding:0px!important;}header{background-size:1329px 55px!important;}h1#title > a{background-color:transparent!important;}.uzaa{display:none!important;}</style>');break;
case (ekran_genisligi>="1360" && ekran_genisligi<"1600"):$('head').append('<style>#index-section {background-size:246px 1479px!important;}#site-footer ul li + li:before{margin-left:0px!important;margin-right:4px!important;}#site-footer ul li a{padding:3px!important;font-size:9px;}#container{padding:0px!important;}h1#title > a{background-color:transparent!important;}.uzaa{display:none!important;}</style>');break;
}
break;
//
//truedetective
case (temalarim=="td"):mesajolaylari(renk1,renk1,renk1,renk2);
$('head').append('<style>ul#kullanici_menu > li{background-position:center center!important;}textarea#editbox,textarea#editbox:focus{background-repeat:no-repeat;background-position:right bottom;}textarea.edittextbox,textarea.edittextbox:focus{background-position:right bottom;background-color:'+renk0+';}#logo a{height:65px;line-height:65px;background-position:center center;margin-top:-10px;width:'+index_section_+';background-size:175px 60px;}</style>');
break;
//
//doctorwho
case (temalarim=="dw"):mesajolaylari(renk1,renk1,renk1,renk2);
$('head').append('<style>#kullanici_menu li.tracked a.new-update{-webkit-animation:blink 10000ms alternate;-moz-animation:blink 10000ms alternate;-o-animation:blink 10000ms alternate;animation:blink 10000ms alternate;}@-webkit-keyframes blink{0%{opacity:0;}10%{opacity:0.1;}20%{opacity:0.2;}25%{opacity:0.1;}30%{opacity:0.3;}35%{opacity:0.2;}40%{opacity:0.4;}45%{opacity:0.3;}50%{opacity:0.5;}55%{opacity:0.4;}60%{opacity:0.6;}65%{opacity:0.5;}70%{opacity:0.7;}75%{opacity:0.6;}80%{opacity:0.8;}85%{opacity:0.7;}90%{opacity:0.9;}95%{opacity:0.8;}100%{opacity:1;}}@keyframes blink{0%{opacity:0;}10%{opacity:0.1;}20%{opacity:0.2;}25%{opacity:0.1;}30%{opacity:0.3;}35%{opacity:0.2;}40%{opacity:0.4;}45%{opacity:0.3;}50%{opacity:0.5;}55%{opacity:0.4;}60%{opacity:0.6;}65%{opacity:0.5;}70%{opacity:0.7;}75%{opacity:0.6;}80%{opacity:0.8;}85%{opacity:0.7;}90%{opacity:0.9;}95%{opacity:0.8;}100%{opacity:1;}}#logo a{height:65px;line-height:65px;background-position:center center;margin-top:-10px;width:'+index_section_+';background-size:225px 65px;}</style>');
supriz("dw");
break;
//housemd
case (temalarim=="hmd"):mesajolaylari(renk1,renk1,renk1,renk2);
break;
//
//�ok pis 
case (temalarim=="pis"):mesajolaylari(renk1,renk1,renk1,renk6);
antik();
$('head').append('<style>\
html>body>header #top-bar{background-image:url(http://i.imgur.com/TyuIpO8.jpg);background-repeat:repeat-x!important;}\
#logo{margin:0px!important;}#logo a{background-size: 198px 65px!important;height:65px!important;line-height:65px!important;}\
a#feed-refresh-link.more-data > small{top:-5px!important;}a#feed-refresh-link.more-data > span.rotator{position:relative!important;top:-3px!important;}\
#topic-channel-info #topic-channels li.channel > a{color:#363529!important;border-color:#363529!important;}\
ul#kullanici_menu {top:128px!important;}\
ul#kullanici_menu li{width:54px;text-transform:uppercase;}\
ul#kullanici_menu > li > a{padding:2px 12px!important;}\
ul#kullanici_menu > li > a:hover,ul#kullanici_menu li:nth-child(1) a.new-update:hover,ul#kullanici_menu > li.messages > a.new-update:hover,ul#kullanici_menu > li.tracked > a.new-update:hover {border-color:transparent!important;color:'+renk5+'!important;}\
ul#kullanici_menu > li > a,ul#kullanici_menu li:nth-child(1) a.new-update,ul#kullanici_menu > li.messages > a.new-update,ul#kullanici_menu > li.tracked > a.new-update{background-size: 48px 21px;background-position:center center!important;font-weight:normal!important;font-family:lucida sans unicode;border-color:transparent!important;background-color:transparent!important;background-repeat:no-repeat!important;}\
ul#kullanici_menu li:nth-child(1) a{background-image: url(http://i.imgur.com/tvpX6CG.gif)!important;}\
ul#kullanici_menu li:nth-child(1) a.new-update{color:'+renk1+'!important;background-image: url(http://i.imgur.com/ZaA0Gqi.gif)!important;font-weight:bold!important;}\
ul#kullanici_menu > li.messages > a{background-image: url(http://i.imgur.com/sP2AiMX.gif)!important;}\
ul#kullanici_menu > li.messages > a.new-update{color:'+renk1+'!important;background-image: url(http://i.imgur.com/NEwllWe.gif)!important;font-weight:bold!important;}\
ul#kullanici_menu > li.tracked > a{background-image: url(http://i.imgur.com/2SnkltL.gif)!important;}\
ul#kullanici_menu > li.tracked > a.new-update{color:'+renk1+'!important;background-image: url(http://i.imgur.com/eJDmra7.gif)!important;font-weight:bold!important;}\
ul#kullanici_menu > li.messages{margin-left:-5px!important;}\
.tabs>li.active,button:hover,.primary:hover,.showall.more-data:hover,#slider:hover,a#a3-toggle:hover,a.prev:hover,a.last:hover,a.next:hover,.pager select:hover{background-image:url(http://i.imgur.com/s7jAKP7.jpg)!important;}\
button,.primary,.showall.more-data,#sub-navigation a,.ustmenu,#slider,a#a3-toggle,a.prev,a.last,a.next,.pager select{background-image:url(http://i.imgur.com/BaUhmjv.jpg)!important;font-family:lucida sans unicode,sans-serif!important;background-color: #837F6D!important;color:#ffffff!important;border:2px solid #363529!important;text-transform: uppercase;}\
a.prev,a.last,a.next{line-height:'+line_height+'!important;}button,.primary{line-height:'+line_height1+'!important;}.edittools button{line-height:'+line_height2+'!important;}.pager select{padding-top:0px!important;}\
#sub-navigation a,.ustmenu,#slider,a#a3-toggle{font-size:11px!important;line-height:16px!important;}\
#sub-navigation a,.ustmenu,#slider,a#a3-toggle{padding:2px 4px!important;}\
#partial-index li:hover,#partial-index li a:hover,#sub-navigation li a:hover,.ustmenu:hover{background-image:url(http://i.imgur.com/nT7Wvgf.jpg)!important;}#partial-index > .topic-list > li > a > .detail{color:'+renk5+'!important;}\
h1#title{width:'+content_body+'!important;background-image:url(http://i.imgur.com/3hpcEQg.jpg)!important;padding-left:2px;}h1#title a:hover{color:'+renk5+'!important;}h2,h3,h4,h5,h6{background-image:url(http://i.imgur.com/RRGIUa9.jpg)!important;}\
a#a3-toggle{position:relative!important;padding-top:3px!important;top:-1px!important;}\
textarea,textarea#editbox{opacity:1!important;border:2px solid rgba(54,53,41,0.7)!important;}.arkaplan{background-repeat:repeat!important;background-size:291px 198px!important;}select, input, optgroup {font: 11px trebuchet ms, sans-serif!important;background-color: #EAE9E5!important;border:1px solid #24231C!important;}.channel-button{margin-top:3px;margin-right:3px;}#topic > .editform > .vertical > h3{background-image:none!important;background-color:transparent!important;}</style>');
if(tarayici!="firefox"){$('head').append('<style>#slider{padding:0px 4px!important;}ul#ekleme li #slide{height:20px!important;}</style>');}
break;
//

//yol
case (temalarim=="yol"):
var yol_bt,yol_br,yol_mt,yol_mr,yol_ot,yol_or,yol_fs,yol_lh;
switch(true) {
case (cozunurluk=="1920px 1080px"):yol_bt="534px";yol_br="174px";yol_mt="416px";yol_mr="168px";yol_ot="463px";yol_or="109px";yol_fs="14px";break;
case (cozunurluk=="1680px 1050px"):yol_bt="519px";yol_br="147px";yol_mt="403px";yol_mr="140px";yol_ot="450px";yol_or="90px";yol_fs="14px";break;
case (cozunurluk=="1600px 1200px"):yol_bt="593px";yol_br="138px";yol_mt="463px";yol_mr="131px";yol_ot="514px";yol_or="86px";yol_fs="14px";break;
case (cozunurluk=="1600px 900px"):yol_bt="442px";yol_br="139px";yol_mt="344px";yol_mr="132px";yol_ot="383px";yol_or="85px";yol_fs="13px";break;
case (cozunurluk=="1440px 900px"):yol_bt="443px";yol_br="122px";yol_mt="345px";yol_mr="116px";yol_ot="383px";yol_or="74px";yol_fs="12px";break;
case (cozunurluk=="1366px 768px"):yol_bt="377px";yol_br="114px";yol_mt="293px";yol_mr="108px";yol_ot="325px";yol_or="69px";yol_fs="12px";break;
case (cozunurluk=="1360px 768px"):yol_bt="377px";yol_br="113px";yol_mt="293px";yol_mr="107px";yol_ot="325px";yol_or="68px";yol_fs="12px";break;
case (cozunurluk=="1360px 1024px"):yol_bt="506px";yol_br="111px";yol_mt="393px";yol_mr="105px";yol_ot="437px";yol_or="69px";yol_fs="13px";break;
case (cozunurluk=="1280px 1024px"):yol_bt="506px";yol_br="104px";yol_mt="394px";yol_mr="98px";yol_ot="438px";yol_or="63px";yol_fs="12px";break;
case (cozunurluk=="1280px 960px"):yol_bt="474px";yol_br="104px";yol_mt="369px";yol_mr="98px";yol_ot="411px";yol_or="63px";yol_fs="12px";break;
case (cozunurluk=="1280px 800px"):yol_bt="393px";yol_br="104px";yol_mt="306px";yol_mr="98px";yol_ot="340px";yol_or="63px";yol_fs="12px";break;
case (cozunurluk=="1280px 768px"):yol_bt="377px";yol_br="104px";yol_mt="293px";yol_mr="98px";yol_ot="325px";yol_or="63px";yol_fs="12px";break;
case (cozunurluk=="1280px 720px"):yol_bt="353px";yol_br="104px";yol_mt="274px";yol_mr="98px";yol_ot="304px";yol_or="63px";yol_fs="12px";break;
case (cozunurluk=="1024px 768px"):yol_bt="377px";yol_br="75px";yol_mt="293px";yol_mr="69px";yol_ot="324px";yol_or="47px";yol_fs="11px";break;
}
yol_lh=parseInt(yol_fs)+8+"px";

$('head').append('<style>\
body .content{text-shadow: 2px 2px 5px '+renk0+';}#search-form #search-textbox {background-color:'+renk0+';color:'+renk5+';border-color:'+renk0ust+';}\
textarea#editbox,textarea#editbox:focus{opacity:1!important;background-color:rgba(0,0,0,0.2)!important;border-color:'+renk0ust+';}\
#s_container{top:125px;}\
ul#kullanici_menu{top:335px;}ul#kullanici_menu li{position:fixed;display:block;   text-transform: capitalize;font-size:'+yol_fs+';line-height:'+yol_lh+';}ul#kullanici_menu li a{color:#777777;}\
ul#kullanici_menu li:nth-child(1){top:'+yol_bt+';right:'+yol_br+';}\
ul#kullanici_menu > li.messages{top:'+yol_mt+';right:'+yol_mr+';}\
ul#kullanici_menu > li.tracked{top:'+yol_ot+';right:'+yol_or+';}\
ul#kullanici_menu li:nth-child(1) > a.new-update,ul#kullanici_menu > li.messages a.new-update,ul#kullanici_menu > li.tracked a.new-update{color:#fff;text-shadow:0px 0px 10px #fff;}\
ul#kullanici_menu li:nth-child(1) > a.new-update:hover,ul#kullanici_menu > li.messages a.new-update:hover,ul#kullanici_menu > li.tracked a.new-update:hover{color:#ddd;}\</style>');

yol_araba();yol_kedi();
break;
//

//adidas
case (temalarim=="adidas"):mesajolaylari("#FFF7AF","#FFD6AF","#AFE7FF",renk2);
antik();
$('head').append('<style>\
#sub-navigation a,.ustmenu,#slider,#top-bar input.primary[type="submit"],a#a3-toggle{font-size:11px!important;line-height:16px!important;padding:3px 6px!important;}a#a3-toggle{padding-bottom:4px!important;}\
html.no-touch a:hover:not(a#feed-refresh-link.more-data),.creation-time:hover,#profile-cards>li>ul>li>a:hover,#threads article:hover{background-color:'+renk15+'!important;}ul#ekleme li #font_val{color:#fff!important;}\
button,.primary,.showall.more-data,#sub-navigation a,.ustmenu,#slider,#top-bar input.primary[type="submit"],a#a3-toggle,a.prev,a.last,a.next,.pager select{background-image:url(http://i.imgur.com/jBwei7K.jpg)!important;color:#ffffff!important;border:1px outset #343C36!important;}\
#sub-navigation li a:hover,.ustmenu:hover,button:hover,.primary:hover,.showall.more-data:hover,#slider:hover,#top-bar input.primary[type="submit"]:hover,a#a3-toggle:hover,a.prev:hover,a.last:hover,a.next:hover,.pager select:hover{background-image:url(http://i.imgur.com/5bhQ5VE.jpg)!important;border:1px outset #253228!important;}\
ul#kullanici_menu li{width:60px;text-transform:uppercase;}ul#kullanici_menu > li.messages{margin-left:-4px !important;}textarea,textarea#editbox{opacity:1!important;border:1px solid #909390!important;}\
</style>');
break;
//

//requiem 4 a dream
case (temalarim=="req4"):mesajolaylari("#f0f000","#00f000","#f0f000",renk2);
antik();antik2("#000000");
break;
//

//not enough coffee in 
case (temalarim=="neci"):mesajolaylari(renk1,renk1,renk1,renk2);
antik();antik2("#27221F");
$('head').append('<style>#logo a{background-size: 173px 50px!important;height:50px!important;line-height:50px!important;}#search-form #search-textbox,#To {background-color:'+renk0+';color:'+renk5+';border-color:'+renk0ust+'!important;}ul#kullanici_menu li{text-transform:uppercase;}</style>');
break;
//

//zen pour hommes
case (temalarim=="zpc"):mesajolaylari("#dd6666","#dd6666","#dd6666",renk2);
antik();antik2("#bbbbbb");
$('head').append('<style>\
.arkaplan{background-position:70% 100%!important;background-size:509px 429px!important;}ul#kullanici_menu li{text-transform:uppercase;}\
#index-section {background-image: url(http://i.imgur.com/iy8uiHW.jpg);background-position: left bottom;background-repeat:no-repeat;margin-left:0px;}\
#sub-navigation li a:hover,.ustmenu:hover,button:hover,.primary:hover,.showall.more-data:hover,#slider:hover,#top-bar input.primary[type="submit"]:hover,a#a3-toggle:hover,a.prev:hover,a.last:hover,a.next:hover,.pager select:hover{color:'+renk11+'!important;}\
</style>');
break;
//

//ssg'nin rengi
case (temalarim=="ssgrengi"):mesajolaylari("#f0f000","lime","#f0f000",renk2);
antik();antik2("#000000");
break;
//

//diet coke
case (temalarim=="dietcoke"):mesajolaylari("#ff0000","#ff0000","#ff0000",renk2);
antik();antik2("#DA3F3F");
$('head').append('<style>\
ul#kullanici_menu > li.messages > a.new-update,ul#kullanici_menu > li.tracked > a.new-update,ul#kullanici_menu li:nth-child(1) a.new-update{color:'+renk12+' !important;}\
</style>');
break;
//

//obsessed with blue
case (temalarim=="owb"):mesajolaylari("#949CC0","#CCD0E1","#949CC0",renk2);
antik();antik2("#778899");
break;
//

//tefter
case (temalarim=="tefter"):mesajolaylari("#D9FF08","#D43431","#E58EFB",renk2);
antik();antik2(renk6);
$('head').append('<style>\
#logo a{background-size: 175px 50px!important;height:50px!important;line-height:50px!important;}\
.last, .next, .prev{background-image:-moz-linear-gradient(center top , '+renk11+', '+renk11+')!important;}\
.arkaplan{background-size:80px 20px!important;background-repeat:repeat!important;}\
ul#kullanici_menu > li > a{background-color:rgba('+rgb_a(renk11,1)+')!important;color:'+renk12+' !important;border:1px solid rgba('+rgb_a(renk(renk6,-17,0),1)+')!important;}\
</style>');
break;
//
}	

function herz(){$('head').append('<style>ul#kullanici_menu li{width:52px!important;}#logo{margin-top:13px;}#s_container{top:200px !important;}#in-topic-search-options button,.channel-button,.edittools button, .actions > button, #channel-follow-list li .channel-button.primary:hover,.showall.more-data,.more-data:not(#feed-refresh-link),#message-send-form button.primary,form#message-search-form button,#message-thread-list-form p button,#message-thread-form p button,#notlar_ button{border-color:'+renk6+' !important;}.pager > a.prev,.pager select,.pager > a.last,.pager > a.next{border:1px solid '+renk6+' !important;}textarea:focus{box-shadow:0px 0px 1px 0px '+renk6+';-webkit-box-shadow:0px 0px 1px 0px '+renk6+';-moz-box-shadow:0px 0px 1px 0px '+renk6+';}#entry-list footer div.feedback a.favorite-count{color:'+renk9+';}textarea,#yutub :not(h2),h2#kanallar>span{opacity:1 !important;}#sarimsak h2{color:'+renk5+' !important;}.sarimsak-arrow-down{border-top-color:'+renk5+';}.sarimsak-arrow-up{border-bottom-color:'+renk5+';}#topic-channel-info #topic-channels li.channel > a {background-color:'+renk0alt+';border-color:'+renk6+';color:'+renk5+';}#user-badges a{background-color: #FFB96E;color: #333;border-radius: 3px;border: 1px outset #FFB96E;}html.no-touch #partial-index::-webkit-scrollbar-thumb{background-color:rgba(0,0,0,0.12);}</style>');if(temalarim=="fabrika"){$('head').append('<style>#partial-index > .topic-list > li > a > .detail{color:'+renk6+';}</style>');}}



//bo� bkz
if(bos_bkz=="1"){
$("#content-body #entry-list>li article .content a.b").each(function(){
var dis=$(this);
var bosb=$(this).attr("href");
$.ajax({'url':'../'+bosb+'','async':true,'global': false,'dataType': "html",'success':function(){},'error':function(){dis.css({"border-bottom":"1px dotted rgba("+rgb_a(renk4,"0.3")+")"});}});
});
}









//entry numaras� s�f�r ise gizle
if(document.URL.indexOf("?")>0){if(document.URL.split("?")[1].substring(0,6)=="a=nice" || document.URL.split("?")[1].substring(0,16)=="a=buddyfavorites"){$("head").append("<style>#entry-list{list-style:none outside none;}</style>");}}
//

$("head").append("<style>"+mycss+"</style>");

//versiyon kontrol
if(sessionStorage.getItem("verkontrol")!=1)
{
$.ajax({'url':'https://dl.dropboxusercontent.com/u/82207064/tema/tema.ver','async':true,'global': false,'dataType': "html",'success':function(data){
var new_v=data;
if(new_v>temaversiyon){
{$("#user-notifications ul").append("<li class=success><a href='tema++'>tema++</a> i�in g�ncelleme var.</li>");$("#user-notifications").fadeOut(15000);}
}
sessionStorage.setItem("verkontrol","1");
}});
}
//

//FONKSiYONLAR

// sol frame
function sol_frame(){
$("#partial-index>ul>li>a,#partial-index>ol>li>a").each(function () {

if($("#partial-index > h2").text()!="badi"){
if($("span",this).hasClass("caption")==false){var baslik=$(this).html();if(baslik.indexOf("<small")>0){baslik=baslik.split(" <small")[0];}else{baslik=$(this).text().substring(0,baslik.length-1);}}else{var baslik=$("span",this).text();}
}
else
{
var baslik=$(this).html();if(baslik.indexOf("<small")>0){baslik=baslik.split(" <small")[0];}else{baslik=baslik.split(" <div")[0];}
}

var splits = sf_baslik.trim().split(";");
for(var i =0;i<splits.length;i++)
{
if(baslik==splits[i].trim()){$(this).css("color",renk2).css("background-color",renk15);$("small",this).css("color",renk2).css("background-color",renk15).addClass("sf_baslik");}
}
if($(this).hasClass("sponsored")==true){$(this).parent().remove();}
if(baslik.trim()==$("h1#title a").text()){$(this).css("font-weight","bold");}
//ba�l�k gizle
//bu yazarlar�n a�t��� ba�l�klar� gizlesin
if(sessionStorage.getItem("gizlibaslik")!==null){
var sf_=$(this).attr("href");if(sf_.indexOf("?")>0){sf_=sf_.split("?")[0];}

var ssp = sessionStorage.getItem("gizlibaslik").trim().split(";");
for(var i =0;i<ssp.length;i++){if(sf_==ssp[i].trim()){$(this).parent().remove();i=ssp.length;}}

}
//bu kelimeleri i�eren ba�l�klar� gizlesin
if(sf_baslik2!=""){
var splits2 = sf_baslik2.trim().split(";");
for(var i =0;i<splits2.length;i++)
{
if(baslik.indexOf(splits2[i])>=0){$(this).parent().remove();}
}
}
//

});

$(".topic-list.partial>li").mouseover(function() {$("a,small",this).css({"background-color":renk15,"color":renk2});}).mouseout(function() {if($("small",this).hasClass("sf_baslik")==false){$("a,small",this).css({"background-color":"transparent","color":renk1});}});    
    
$("h2:not(h2#kanallar)").css({"color":renk3});    
if($("#feed-info").attr("data-deltacount")==0){$('.rotator').css({"color":"transparent"});}    

solframegoster();
trollbaslik();
}
//

//troll ba�l�k gizle
function trollbaslik(){
if(yazarbaslikgizle=="1"){
if(!yazargizle.trim()){sessionStorage.removeItem("gizlibaslik");/*sessionStorage.removeItem("ilkbaslik");*/}else{
var ilk="";
if(sessionStorage.getItem("yzrgzlclick")=="1"){
$("#partial-index .topic-list li").each(function(index){
if(index=="0"){ilk=$("a",this).text();}
var ff=$(this);
var sf_=$("a",this).attr("href");if(sf_.indexOf("?")>0){sf_=sf_.split("?")[0];}
if(sessionStorage.getItem("ilkbaslik")!=ilk){
$.ajax({'url':'https://eksisozluk.com'+sf_+'','async':true,'dataType': "html",'success':function(data){
var zz=$(data).find("address:first").text();
var splits = yazargizle.trim().split(";");
for(var i =0;i<splits.length;i++){
if(zz==splits[i].trim()){
ff.remove();
if(sessionStorage.getItem("gizlibaslik")!==null){
sessionStorage.setItem("gizlibaslik",sf_+";"+sessionStorage.getItem("gizlibaslik"));
}else{sessionStorage.setItem("gizlibaslik",sf_);}
}
}
}
});
}
});	
}
sessionStorage.setItem("ilkbaslik",ilk);
sessionStorage.setItem("yzrgzlclick",0);
}
}
}
//

//balon
function solframegoster(){
    if(balon_modu=="1"){
        if(ajax1){ajax1.abort();}
			$("#partial-index .topic-list li a").mouseover(function(){
				currentItem = $(this);
				
var pi_hover = !!currentItem.filter(function(){return $(this).is(":hover");}).length;
if(pi_hover==true){//hala ayn� ba�l���n �zerinde mi?
				
					if (!timeout){timeout = window.setTimeout(function(){
					 $("#balon").hide();
					var mouse_y = $(currentItem).offset().top+"px";//e.pageY+"px";
                    var c_y=ekran_yuksekligi-parseInt(mouse_y)-120+"px";
                    $("head").append("<style>#balon #entry-list footer .feedback .other{display:none;}#balon ol{margin-bottom:5px;}#balon{margin-left:3px;overflow-y:auto;max-height:"+c_y+";width:33%;left:"+main+";top:"+mouse_y+";bottom:auto;position:absolute;z-index:11111;background-color:"+renk(renk0,17,1)+";color:"+renk5+";border:1px solid rgba("+rgb_a(renk6,0.4)+");box-shadow: 3px 3px 3px "+renk0+";font-family:"+font_select+";font-size:12px;border-radius:5px;padding:5px;}#balon #entry-list .content{padding-bottom:5px;border-bottom:1px solid rgba("+rgb_a(renk6,0.2)+");}</style>");

					var sf=$(currentItem).attr("href");
					
					ajax1=$.ajax({'url':'../'+sf+'','async':true,'global': false,'dataType': "html",'success':function(data){
						var t=$(data).find("h1#title").text();
						var y ='<ol id="entry-list">' +  $(data).find("#entry-list li:first").prepend("<h2><a href='../"+sf+"'>"+t+"</a></h2>").wrap('<p/>').parent().html() + '</ol>';
                        $("#balon").html("").append(y);

                        ek$i.entryMenu.attach(($("#balon").find("article:not([data-menu-attached])")),"aaa");
                        k =$("#balon").find("footer");
                        m = k.data();
                        p = m.id;

				   $("#balon").show();
                    }});
					}, balongecikme*1000);
					}	
				}//hala ayn� ba�l���n �zerinde mi?
        });
		$("#partial-index .topic-list li a,#balon").mouseout(function(){
            if(timeout){window.clearTimeout(timeout);timeout = null;}
            setTimeout(function(){
				if(hoverkontrol("#partial-index")==false){//hala sol frame'de mi?
				if(hoverkontrol("#balon")==false){//balon �zerinde mi?
                        $("#balon").html("").hide();
                    }
                }
			if(ajax1){ajax1.abort();}
            },1000)});
    
$(document).click(function(e){
if(hoverkontrol("#balon")==false){
$("#balon").html("").hide();
if(ajax1){ajax1.abort();}
}
});
        
}
}

//mouseover kontrol
function hoverkontrol(x){return !!$(""+x+"").filter(function(){return $(this).is(":hover");}).length;}
//
//sag frame
function sag_frame(){
//mesaj
if($(".messages a").hasClass("new-update")==true){
$(".messages a").css({"background-image":"url("+mesaj_var+")"});}
else{$(".messages a").css({"background-color":"transparent","background-image":"url("+mesaj_yok+")"});}    
//

//olay
if($(".tracked a").hasClass("new-update")==true){
$(".tracked a").css({"background-image":"url("+olay_var+")"});}
else{$(".tracked a").css({"background-color":"transparent","background-image":"url("+olay_yok+")"});}     
//

//ben
if(ben_kontrol=="1"){
$.ajax({'url':'../biri/'+nick+'','async':true,'global': false,'dataType': "html",'success':function(data){
var oy=$(data).find("#profile-cards>li a[href='/basliklar/istatistik/"+nick+"/son-oylananlari']").next().text();
var fav=$(data).find("#profile-cards>li a[href='/basliklar/istatistik/"+nick+"/favorilenen-entryleri']").next().text();
var enb=$(data).find("#profile-cards>li a[href='/basliklar/istatistik/"+nick+"/en-begenilenleri']").next().text();
var tplm=enb+fav+oy;
sessionStorage.setItem("ben_arsiv",tplm);
if(localStorage.getItem('benben')==""){localStorage.setItem('benben',tplm);}
}});//oyfav say�s�

if(window.location.pathname.substring(0, 13)!="/entry/duzelt"){
if(localStorage.getItem('benben') < sessionStorage.getItem('ben_arsiv'))
{$("ul#kullanici_menu li:nth-child(1) a").addClass("new-update");
//rastgele ben g�rseli se�imi
if(sessionStorage.getItem('rastgele_ben')===null || sessionStorage.getItem('current_tema')!=temalarim)
{
var splits = ben_var.trim().split(";");
var rastgele=1+Math.floor(Math.random()*splits.length-1);
var rastgele_ben=splits[rastgele];
sessionStorage.setItem('rastgele_ben',rastgele_ben);
sessionStorage.setItem('current_tema',temalarim);
}
var rastgele_ben=sessionStorage.getItem('rastgele_ben');
$('head').append('<style>ul#kullanici_menu li:nth-child(1) a{background-image:url('+rastgele_ben+');background-repeat:no-repeat;}</style>');
}
}
$("ul#kullanici_menu li:nth-child(1)").click(function(){localStorage.setItem('benben',sessionStorage.getItem('ben_arsiv'));sessionStorage.removeItem('rastgele_ben');$("ul#kullanici_menu li:nth-child(1) a").removeClass("new-update");});
}
//
}
//

//�st men� gizle
function hide_top(){
if(header_resmi!=""){ 
$("#sub-navigation,#logo,form#search-form,#options-dropdown,#top-navigation a#top-login-link,#top-navigation a[href^='/kayit']").hide();
$("html>body>header #top-bar").css({"width":"auto","background-image":"url("+header_resmi+")","background-repeat":"no-repeat","background-position":"bottom left"});  
}
}
//

//�st men� g�ster
function show_top(){
if(header_resmi!=""){    
$("#sub-navigation,#logo,form#search-form,#options-dropdown,#top-navigation a#top-login-link,#top-navigation a[href^='/kayit']").show();
$("html>body>header #top-bar").css("background-image","none");   
}
}
//

// �ok alakal�
function youtube_section(){
if(alaka_modu=="1"){
if(sayfa_kontrol()=="1"){
$.getJSON('https://gdata.youtube.com/feeds/api/videos?q='+title+'&alt=json-in-script&max-results=10&format=5&callback=?', function(data) {
var id=data["feed"]["entry"][0]["link"][0]["href"].split('watch?v=')[1].split('&')[0];
if(sessionStorage.getItem("yutub-arrow")===null || sessionStorage.getItem("yutub-arrow")==="up"){var yutub_arrow="sarimsak-arrow-up";}else{var yutub_arrow="sarimsak-arrow-down";}
$("#yutub").append("<h2>�ok alakal�<span class="+yutub_arrow+"></span></h2><div id=yutub_><iframe width=240 height=135 src=https://www.youtube.com/embed/"+id+"?controls=2 frameborder=0 allowfullscreen></iframe></div>");
if(yutub_arrow=="sarimsak-arrow-up"){$("#yutub_").show();}else{$("#yutub_").hide();}
});
}
}
$('head').append('<style>#yutub_{background:#000;width:240px;height:135px;opacity:1 !important;margin: 0 auto;border:1px solid rgba(80,80,80,0.3);}.sarimsak-arrow-down,.sarimsak-arrow-up{margin:8px 0px 0px 5px;border-left:6px solid transparent;border-right:6px solid transparent;width:0px;height:0px;position:absolute;opacity:0.5 !important;overflow:hidden;cursor:pointer;}.sarimsak-arrow-down{border-top:6px solid '+renk3+';}.sarimsak-arrow-up{border-bottom:6px solid #f60;}.sarimsak-arrow-down:hover,.sarimsak-arrow-up:hover{opacity:1 !important;}</style>');
}
//

//sayfa kontrol
function sayfa_kontrol(){
switch(true)
{
case(window.location.pathname.substring(0, 6)=="/mesaj"):return 0;break;
case(window.location.pathname.substring(0, 5)=="/biri"):return 0;break;
case(window.location.pathname.substring(0, 15)=="/basliklar/olay"):return 0;break;
case(window.location.pathname.substring(0, 9)=="/kanallar"):return 0;break;
case(window.location.pathname.substring(0, 9)=="/sub-etha"):return 0;break;
//case(window.location.pathname.substring(0, 7)=="/giris?"):return 0;break;
default:return 1;
}
}
//

// antik gibi
function antik(){
$('head').append('<style>\
#sub-navigation #quick-index-nav{margin-left:2px;}\
#sub-navigation #main-index-nav, #ekleme, #top-navigation{margin-right:6px!important;}\
button,input,.edittools button,a.prev,a.last,a.next,.pager select,textarea,.actions > button,.showall.more-data,ul#kullanici_menu > li a,.tabs>li.active,.tabs>li:hover,html.no-touch #threads li article:hover,#partial-index .tabs > li a:hover{border-radius:0px!important;}\
#topic > .editform > .vertical > .edittools{right:0px;top:26px;}\
fieldset.vertical > div.actions{margin-left:0px!important;}#ekleme{top:-38px!important;}\
button,.primary,.showall.more-data,#sub-navigation a,.ustmenu,#slider,a#a3-toggle,a.prev,a.last,a.next,.pager select{opacity:0.85!important;background-repeat:repeat!important;}\
.ustmenu,#slider,#top-bar input.primary[type="submit"]{margin-right:4px!important;}#top-bar .dropdown-toggle{margin-left:-4px!important;}#dlm{margin-left:4px!important;}\
#search-form{top:9px!important;line-height:24px!important;}\</style>');
}
function antik2(brdr){
$('head').append('<style>\
#sub-navigation a,.ustmenu,#slider,#top-bar input.primary[type="submit"],a#a3-toggle{font-size:11px!important;line-height:16px!important;padding:3px 6px!important;}a#a3-toggle{line-height:17px!important;padding-bottom:3px!important;}\
html.no-touch a:hover:not(a#feed-refresh-link.more-data),.creation-time:hover,#profile-cards>li>ul>li>a:hover,#threads article:hover{background-color:'+renk15+'!important;}ul#ekleme li #font_val{color:'+renk12+'!important;}\
button,.primary,.showall.more-data,#sub-navigation a,.ustmenu,#slider,#top-bar input.primary[type="submit"],a#a3-toggle,a.prev,a.last,a.next,.pager select{background-color:'+renk11+'!important;color:'+renk12+'!important;border:1px solid '+brdr+'!important;}\
#sub-navigation li a:hover,.ustmenu:hover,button:hover,.primary:hover,.showall.more-data:hover,#slider:hover,#top-bar input.primary[type="submit"]:hover,a#a3-toggle:hover,a.prev:hover,a.last:hover,a.next:hover,.pager select:hover{background-image:none!important;background-color:'+renk7+'!important;border:1px solid '+brdr+'!important;}\
ul#kullanici_menu li{width:60px;}ul#kullanici_menu > li.messages{margin-left:-4px !important;}textarea,textarea#editbox{opacity:1!important;border:1px solid '+renk6+'!important;}\
#top-bar input.primary[type="submit"]{background-image:-moz-linear-gradient(top,'+renk11+','+renk11+');background-image:-webkit-gradient(linear, 0 0, 0 100%, from('+renk11+'), to('+renk11+'));background-image:-webkit-linear-gradient(top, '+renk11+', '+renk11+');background-image:-o-linear-gradient(top, '+renk11+', '+renk11+');background-image:linear-gradient(top, '+renk11+', '+renk11+');}button.archive,button.delete{color:'+renk5+'!important;}\
textarea#editbox:focus,textarea:focus{box-shadow: 0px 0px 4px 0px '+brdr+'!important;}\
#search-form #search-textbox,#To {background-color:'+renk14+';color:'+renk13+';border-color:rgba('+rgb_a(brdr,0.7)+')!important;}\
</style>');
if(tarayici!="firefox"){$('head').append('<style>#slider{padding:2px 6px!important;padding-bottom:0px!important;}</style>');}
}
//

//ben mesaj olay renklendirme
function mesajolaylari(b,m,o,y){//ben mesaj olay yazi
if(mesaj_var!="" || olay_var!="" || ben_var!=""){
$('head').append('<style>\
ul#kullanici_menu li a,ul#kullanici_menu li a.new-update{background-color:transparent;padding-top:80px;width:60px;position:absolute;left:0px;top:0px;}\
ul#kullanici_menu li a.new-update{color:'+renk4+';}\
ul#kullanici_menu li a.new-update:hover{color:'+renk5+';}</style>');
}else
{
$('head').append('<style>\
ul#kullanici_menu {top:134px!important;}\
ul#kullanici_menu > li > a{background-color:rgba('+rgb_a(renk6,0.25)+')!important;color:'+renk6+' !important;border:1px solid rgba('+rgb_a(renk(renk6,-17,0),0.3)+')!important;padding:5px!important;border-radius:3px !important;font-size:12px!important;}\
ul#kullanici_menu > li > a:hover{color:'+y+' !important;border-color:'+y+'!important;}\
ul#kullanici_menu > li.messages > a.new-update{background-color:'+m+' !important;border-color:'+renk(m,-51,0)+'!important;color:'+renk(m,-102,0)+' !important;opacity:0.95!important;}\
ul#kullanici_menu > li.tracked > a.new-update{background-color:'+o+' !important;border-color:'+renk(o,-51,0)+'!important;color:'+renk(o,-102,0)+' !important;opacity:0.95!important;}\
ul#kullanici_menu li:nth-child(1) a.new-update{background-color:'+b+' !important;border-color:'+renk(b,-51,0)+'!important;color:'+renk(b,-102,0)+' !important;opacity:0.95!important;}\
ul#kullanici_menu > li.messages > a.new-update:hover,ul#kullanici_menu  > li.tracked > a.new-update:hover,ul#kullanici_menu li:nth-child(1) a:hover{opacity:1!important;}\
ul#kullanici_menu > li.messages{margin-left:-1px !important;}</style>');
}
}
//

//doctor who cinlikleri
function supriz(tema){
var rand=1+Math.floor(Math.random()*100);
if(rand<94){return;}

var sprz_yksk=1+Math.floor(Math.random()*ekran_yuksekligi)+"px";
var sprz_gns=1+Math.floor(Math.random()*ekran_genisligi)+"px";

if(tema=="dw"){
var sprz_rsm="http://i.imgur.com/dBZCcyV.png;http://i.imgur.com/yTIq3iA.png;http://i.imgur.com/FkoU7vr.png;http://i.imgur.com/mcJMrRw.png;http://i.imgur.com/mVRQnuH.png";
}
var splits = sprz_rsm.trim().split(";");
var rastgele=1+Math.floor(Math.random()*splits.length-1);
var sprz_rsm_=splits[rastgele];

$('head').append('<style>#supriz{background-image:url('+sprz_rsm_+');top:'+sprz_yksk+';left:'+sprz_gns+';position:fixed;background-repeat:no-repeat;z-index:-1;width:100px;height:100px;opacity:0.3;}</style>');

setTimeout(function(){$('head').append('<style>#supriz{display:none;}</style>');}, 10000);
}
//

//yol - araba
function yol_araba(){
var rand=1+Math.floor(Math.random()*100);
if(rand<98){return;}
var rand=10000+Math.floor(Math.random()*30000);
setTimeout(function(){//sayfa y�klendikten x sn. sonra aktif olsun
$(".arkaplan").after("<div id=araba></div>");

var sprz_rsm="http://i.imgur.com/09ZST2K.png;http://i.imgur.com/8TYlDyz.png;http://i.imgur.com/lYPSq4b.png";//;http://i.imgur.com/dT7liZr.png
var splits = sprz_rsm.trim().split(";");
var rastgele=1+Math.floor(Math.random()*splits.length-1);
var sprz_rsm_=splits[rastgele];

$("head").append("<style>#araba{position:fixed;width:5670px;height:3290px;top:470px;left:900px;background-image:url("+sprz_rsm_+");background-repeat:no-repeat;z-index:-1;background-size:1%}</style>");
function arabahiz(){
return window.setInterval( function() {
var bs=$("#araba").css("background-size");var bs1=bs.split("%")[0];
bs1=parseInt(bs1)+1+"%";$("#araba").css({"background-size":bs1});
var xc1=$("#araba").css("left");xc1=parseInt(xc1)-90+"px";$("#araba").css({"left":xc1});
}, 45 );//h�z ayari
}
var arabahiz_id = arabahiz();
setTimeout(function(){window.clearInterval(arabahiz_id);$("#araba").hide();}, 5000);
}, rand);
}
//

//yol - kedi
function yol_kedi(){
var rand=1+Math.floor(Math.random()*100);
if(rand<96){return;}
var rand=10000+Math.floor(Math.random()*30000);
setTimeout(function(){//sayfa y�klendikten x sn. sonra aktif olsun
$(".arkaplan").after("<div id=cat></div>");
$("head").append("<style>#cat{position:fixed;width:112px;height:78px;top:500px;left:300px;background-image:url(http://i.imgur.com/Esq0PyC.gif);background-repeat:no-repeat;z-index:-1;background-size:100%}</style>");//http://i.hizliresim.com/9pQnlQ.gif
function kedihiz(){
return window.setInterval( function() {
var xc1=parseInt($("#cat").css("left"));if(xc1<ekran_genisligi-400){xc1=xc1+45+"px";$("#cat").css({"left":xc1});}else{xc1=xc1+4500+"px";$("#cat").css({"left":xc1});}
}, 80 );//h�z ayari
}
var kedihiz_id = kedihiz();
setTimeout(function(){window.clearInterval(kedihiz_id);$("#cat").hide();}, 8000);
}, rand);
}
//

//mesaj kontrol
function mesajkontrol()
{
if(window.location.pathname.substring(0, 7)=="/mesaj/"){
$.ajax({'url':window.location.pathname,'async':true,'global': false,'dataType': "html",'success':function(msgdata){
var zx=$(msgdata).find("#message-thread").html().split("<form action")[0];
$("#message-thread article").remove();
$("#message-thread").prepend(zx);
}
});
}

$.ajax({'url':'../mesaj','async':true,'global': false,'dataType': "html",'success':function(data){

if(window.location.pathname=="/mesaj" ){
var selection = ($("#message-thread-list-form").find(".pager").data("currentpage"));
if(selection=="1")
{
var zx=$(data).find("#message-thread-list-form");
$("#message-thread-list-form").replaceWith(zx);
$("#message-thread-list-form").find(".pager").pager();
}
}
		
			
var ma=[];//mesaj atanlar
$(data).find("#message-thread-list-form li article.unread a h2").each(function(){ma.push($(this).html().split("<small>")[0]);});

var e=ma.length;
if(e!=localStorage.getItem("mesajsayisi")){
if(ma!=localStorage.getItem("ma")){
if(e>localStorage.getItem("mesajsayisi")){

if(mesaj_ses!=""){
$('<audio id="temaaudio"><source src="'+mesaj_ses+'" type="audio/mpeg"></audio>').appendTo('body');$('#temaaudio')[0].play();
}

var pre_msg = "gen� k�zlar�n sevgilisi;biscolata erke�i;biskrem erke�i;victoria's secret mankeni;laf�n�n �st�ne gelen;m�kkkemmel insan;azimli insan;�ok �eker insan;adam G�B� adam;adam�n hammaddesi;anas�n�n kuzusu;k�t� g�n dostu;k���k da�lar� yaratan";
var splits = pre_msg.split(";");
var rastgele=1+Math.floor(Math.random()*splits.length-1);
var rastgele_msg=splits[rastgele];
$("#user-notifications ul").html("").append("<li class=success>"+rastgele_msg+" <a>"+ma[0]+"</a> size mesaj g�nderdi.</li>");$("#user-notifications").show().fadeOut(12000);

}
}
}

if(e>0){

if($(".messages a").hasClass("new-update")==false){
$("ul#kullanici_menu > li.messages a").addClass("new-update");$(".messages a").css({"background-image":"url("+mesaj_var+")"});
}

if($("head title").text().indexOf(')')> 0){var httl=$("head title").text().split(") ")[1];$("head title").text("("+e+") "+httl+"");}else{$("head title").prepend("("+e+") ");}


}else{
$("ul#kullanici_menu > li.messages a").removeClass("new-update");
$(".messages a").css({"background-color":"transparent","background-image":"url("+mesaj_yok+")"});
var httl=$("head title").text().split(") ")[1];$("head title").text(httl);
}
localStorage.setItem("ma",ma);
localStorage.setItem("mesajsayisi",e);
}//,'error':function(data){localStorage.setItem("ma",ma);localStorage.setItem("mesajsayisi",e);}
});

}

//

//olay kontrol
function olaykontrol()
{
$.ajax({'url':'../','async':true,'global': false,'dataType': "html",'success':function(data){
var o=$(data).find("#top-navigation ul li.tracked a.new-update").length;
if(o>0){//olay
if($(".tracked a").hasClass("new-update")==false){
if(olay_ses!=""){
$('<audio id="temaaudio"><source src="'+olay_ses+'" type="audio/mpeg"></audio>').appendTo('body');$('#temaaudio')[0].play();
}
$("ul#kullanici_menu > li.tracked a").addClass("new-update");
$(".tracked a").css({"background-image":"url("+olay_var+")"});
}
}
}});
}
//

// hex alt / �st
function h2d(h) {return parseInt(h,16);}
function d2h(d) {return d.toString(16);}
function renk(hex,deger,mod)
{hex=hex.substring(1,7);
if(hex.length!="6"){hex=hex.substring(0,1)+hex.substring(0,1)+hex.substring(1,2)+hex.substring(1,2)+hex.substring(2,3)+hex.substring(2,3);}
if(mod=="1"){var dec1ekle=parseInt(h2d(hex.substring(0,2)))+parseInt(deger);if(dec1ekle>255){dec1ekle=255;}var dec2ekle=parseInt(h2d(hex.substring(2,4)))+parseInt(deger);if(dec2ekle>255){dec2ekle=255;}var dec3ekle=parseInt(h2d(hex.substring(4,6)))+parseInt(deger);if(dec3ekle>255){dec3ekle=255;}var toplam_ekle=d2h(dec1ekle)+d2h(dec2ekle)+d2h(dec3ekle);return "#"+toplam_ekle;}
else
{var dec1cikar=parseInt(h2d(hex.substring(0,2)))+parseInt(deger);if(dec1cikar<=16){dec1cikar="00";}var dec2cikar=parseInt(h2d(hex.substring(2,4)))+parseInt(deger);if(dec2cikar<=16){dec2cikar="00";}var dec3cikar=parseInt(h2d(hex.substring(4,6)))+parseInt(deger);if(dec3cikar<=16){dec3cikar="00";}var toplam_cikar=d2h(dec1cikar)+d2h(dec2cikar)+d2h(dec3cikar);return "#"+toplam_cikar;}
}
//

//hex'ten rgba'ya �evir 
function rgb_a(hex,o){if(hex=="transparent"){hex="#000000";o="0";}var rgba1=parseInt(h2d(hex.split("#")[1].substring(0,2)));var rgba2=parseInt(h2d(hex.split("#")[1].substring(2,4)));var rgba3=parseInt(h2d(hex.split("#")[1].substring(4,6)));var rgbat=rgba1+","+rgba2+","+rgba3+","+o;return rgbat;}
//

//arrow up/down title 
(function($) {var origAppend = $.fn.append;$.fn.append = function () {return origAppend.apply(this, arguments).trigger("append");};})(jQuery);
$(".arrow-down").each(function(){$(this).attr("title","a� da g�relim");});
$(".arrow-up").each(function(){$(this).attr("title","kapa la kapa");});
$("#sarimsak").bind("append", function() { $(".sarimsak-arrow-down").attr("title","a� da g�relim"); $(".sarimsak-arrow-up").attr("title","kapa la kapa");  });
$(document).on("click",".arrow-down,.sarimsak-arrow-up",function(e){$(this).attr("title","a� da g�relim");});
$(document).on("click",".arrow-up,.sarimsak-arrow-down",function(e){$(this).attr("title","kapa la kapa");});
//

//favori & vote 
function attachOptions(p, k) {
    ek$i.entryMenu.attachVotingOptions(p, k);
    ek$i.entryMenu.attachFavoriteLink(p, k.find(".feedback"), k.data("isfavorite"), k.data("favorite-count"));
}
//

//badi & engelle
function addLinks(i)
{
    var t =$(i).find(".relation-link"),
        s = $(i).find("#buddy-link"),
        r = $(i).find("#blocked-link");
    t.on("click", function() {
        $.post($(this).data("url")).done(function(u) {
            if (u.Code === "LimitReached") {
                ek$i.addResponse("daha fazla " + a(this).data("name") + " eklemeniz m�mk�n de�il, s�n�rlardas�n�z.", "error");
                return
            }
            s.toggleClass("active", u.IsBuddy);
            r.toggleClass("active", u.IsBlocked)
        });
        return false
    });
}
//

// olay terk
function olayterk(){
    $("#content-body .topic-list li a").each(function(){
        var url = $(this).attr("href").split("?")[0];
        var currentItem = $(this);
        ajax1=$.ajax({'url':url,'async':true,'global': false,'dataType': "html",'success':function(d){
            var relations = "";
            $(d).find("#content-body .sub-title-menu a#track-topic-link").each(function(index, obj){
                relations+=$(obj).wrap('<p/>').parent().html();
            });
            $(currentItem).append("<span class='olayterk'>"+relations+"</span>");  
            trackTopic($(currentItem).find("span a"));
			$("head").append("<style>.olayterk a#track-topic-link{float:right;margin-left:20px;margin-right:20px;text-align:center;border:none!important;}</style>");
        }});
        
    });
}
function trackTopic(value) {
    var  item = $(value);
    if (item.length > 0) {
        var x = item.click(function(event){
            event.preventDefault();
            var x = item.data("tracked"),
                w = olaytakip[x],
                y = item.data(w.link + "url");
            
            $.post(y, null, function() {
                changeCaption(item,(x + 1) % 2);
            })   
            
        }).data("tracked");
        changeCaption(item,x);
    }
}
function changeCaption(item,value) {$(item).text(olaytakip[value].caption).data("tracked", value);}
//

//badilerden gelenler
function badilerden(){
if(badi_kontrol=="1"){
if(nick===undefined){return false;}

$("#topic").after("<iframe id=gizlisite width=0 height=0 src=https://eksisozluk.com/basliklar/badiler></iframe>");

document.getElementById("gizlisite").onload = function() {

	var data=$("#gizlisite").contents().find("html").html();
	$("#gizlisite").html("").remove();
	var yazanbadi=$(data).find("#content-body .topic-list li>a .detail:eq(0)").text().trim();if(yazanbadi.indexOf(",")>0){yazanbadi=yazanbadi.split(",")[0];}
    var smol=$(data).find("#content-body .topic-list li>a small:eq(0)").text();	
	var yb=$(data).find("#content-body .topic-list li>a:eq(0)").html();var yazilanbaslik=$(data).find("#content-body .topic-list li>a:eq(0)").text();if(yb.indexOf("<small")>0){yazilanbaslik=yazilanbaslik.split(yazanbadi)[0];yazilanbaslik=yazilanbaslik.split(smol)[0].trim();}else{yazilanbaslik=yazilanbaslik.split(yazanbadi)[0];}
	var yazilanbaslikhref=$(data).find("#content-body .topic-list li>a:eq(0)").attr("href");
    var ydk=yazanbadi+yazilanbaslik;
	var tabtest=$(data).find("#content-body .tabs li.active").text().trim();

	if(localStorage.getItem("yazanbadi")!=ydk && tabtest=="yazd�klar�" && nick!=yazanbadi){
	        $("#user-notifications ul").html("").append("<li class=success><a href=/biri/"+yazanbadi+">"+yazanbadi+"</a><a class=kutukapa style='cursor:pointer;float:right;font-weight:bold;'>X</a><br><a href='../"+yazilanbaslikhref+"'>"+yazilanbaslik+"</a><br>ba�l���na yazd�.</li>");
			$("#user-notifications").show().fadeOut(6000);
	}
    localStorage.setItem("yazanbadi",ydk);
	$(".kutukapa").click(function(){ $("#user-notifications").hide();});
	$("#user-notifications").mouseover(function(){$(this).stop().css("opacity","1");}).mouseout(function(){$(this).fadeOut(2000);});
}
}
}
//

//
function sekmetut(){$("#tema_ayarlar .secmece li input[type='radio']").each(function(){if($(this).is(":checked")==true){var sekmetut=$(this).attr("id");localStorage.setItem("sekmetut",sekmetut);};});}
//



//yazargizle
function yazargzle(){
$("#topic #entry-list>li").each(function(index) {
var liid=$(this).closest("#entry-list>li").attr("id");

var yzr_id="yzr"+liid;
var yazici=$(this).find("address").text();
//gizle&gizleme butonu ekle
var say=0;
var splits = yazargizle.trim().split(";");
for(var i=0;i<splits.length;i++){if(yazici==splits[i].trim()){say=1;}}
if(yazici!=nick){

	if(say=="0")
	{$(this).find("footer .other.dropdown ul").prepend("<li><a class='yzrgzl' title='yazar� gizle' yzr_id="+yzr_id+">gizle</a></li>");}
else{$(this).find("footer .other.dropdown ul").prepend("<li><a class='yzrgzl' title='yazar� gizleme' yzr_id="+yzr_id+">gizleme</a></li>");}


}
//

//gizli yazarlar�n entrylerini kapa
if(yazargizle!=""){
var yzrgzle = yazargizle.trim().split(";");
for(var i=0;i<yzrgzle.length;i++)
{
if(yazici==yzrgzle[i]){
if(gizleme_modu=="1"){
$(this).find(".content").before("<span class='gomulu gomulu-yzr'></span><span class='arrow-down arrow-yzr'></span>");  
$(this).find(".content").hide();}
else{
$(this).find("article").hide();$(this).css("list-style","inside none none");
var lisira=parseInt(index)+1;
$('head').append('<style>#content-body #entry-list>li:nth-child('+lisira+'){margin:0px;padding:0px;}#entry-list>li:nth-child('+lisira+'):before{content:"";border:none;}</style>');
}
}
}
}
//

});//each

$("#entry-list>li article").on('click', '.yzrgzl', function() {
var yzr_id=$(this).attr("yzr_id");
dis=$(this).closest("#entry-list>li");
var yazici=dis.find("address").text();

var gzl=$(this).text();
if(gzl=="gizle")
{
var say=0;
var splits = yazargizle.trim().split(";");
for(var i =0;i<splits.length;i++){if(yazici==splits[i].trim()){say=1;}}
if(say=="0"){yazargizle=yazici+";"+yazargizle;}
//gizle butonuna basar basma entry'de de�i�iklik i�in
if(gizleme_modu=="1"){
dis.find(".content").before("<span class='gomulu gomulu-yzr'></span><span class='arrow-down arrow-yzr'></span>");  
dis.find(".content").hide();}
else{
dis.find("article").hide();
dis.css("list-style","inside none none");
var lisira=parseInt(dis.index())+1;
$('head').append('<style>#content-body #entry-list>li:nth-child('+lisira+'){margin:0px;padding:0px;}#entry-list>li:nth-child('+lisira+'):before{content:"";border:none;}</style>');
}
//
}
else
{
var say=0;
var splits = yazargizle.trim().split(";");
var yazargizle_=[];
for(var i =0;i<splits.length;i++){
if(yazici!=splits[i].trim()){
yazargizle_.push(splits[i]);
}
}
yazargizle=yazargizle_.toString().replace(/,/g,";");
//gizleme butonuna basar basmaz entry'de de�i�iklik i�in
if(gizleme_modu=="1"){
dis.find(".gomulu-yzr").remove();
dis.find(".arrow-yzr").remove();
dis.find(".content").show();
}
//
}

set_ayarlar(2);

if(gzl=="gizle"){$(this).text("gizleme");}else{$(this).text("gizle");}
sessionStorage.setItem("yzrgzlclick",1);

trollbaslik();
});//yzrgzle click	


$("#entry-list>li article").on('click', '.arrow-yzr', function() {
    if($(this).hasClass("arrow-down")==true){
       $(this).removeClass("arrow-down").addClass("arrow-up");$(this).closest("#entry-list>li").find(".content").show();}else{
       $(this).removeClass("arrow-up").addClass("arrow-down");$(this).closest("#entry-list>li").find(".content").hide();}
});

}


//

//badi-gizle-entry no
function bdtrll(){
$("#entry-list>li .other.dropdown a").click(function(){
	var currentItem = $(this).closest("article");
		
	var liid=$(this).closest("#entry-list>li").attr("id");
	var entryd=liid.split("li")[1];
	
	//entry no
	var entry_no =currentItem.find(".entrynoinput");
    if(entry_no.length==0)
    {
	$("head").append("<style>#entry-list footer .other .dropdown-menu{text-align:right;}.entrynoinput{width:260px;margin:5px;border-radius:3px;font-size:12px;}</style>");	
	$(currentItem).find("footer .other.dropdown li:first").before("<input class=entrynoinput></input>");
	$(".entrynoinput",currentItem).val("https://eksisozluk.com/entry/"+entryd).select();
	}
	
	//badi
	if(ajax1){ajax1.abort()};
    var link = currentItem.find("footer .info address").text();
    var bdngl =currentItem.find("#bdengl");
    if(bdngl.length==0)
    {	
			ajax1=$.ajax({'url':'https://eksisozluk.com/biri/'+link+'','async':true,'dataType': "html",'success':function(d){
            var relations = "";
            $(d).find("#main #content #content-body .sub-title-menu .relation-link").each(function(index, obj){
                relations+=$(obj).wrap('<p/>').parent().html();
            });
            $(currentItem).find("footer .other.dropdown li:last").after("<li><span id='bdengl'><a>"+relations+"</a></span></li>");
			addLinks($(currentItem).find("#bdengl"));
			$("a#blocked-link").hide();
			}});
	}		
});
}
//

//FONKSiYONLAR