Raw Source
fenerama / tema++

// ==UserScript==
// @name        tema++
// @namespace   tema
// @description ekşi sözlük - 13 haziran 2016 - 15:00
// @version     3.52
// @author      futurama
// @include     https://eksisozluk.com*
// @downloadURL https://dl.dropboxusercontent.com/u/82207064/tema/tema.user.js
// @updateURL	https://dl.dropboxusercontent.com/u/82207064/tema/tema.meta.js
// @grant       GM_getResourceText
// @grant       GM_addStyle
// @grant       GM_xmlhttpRequest
// @run-at		document-start
// @noframes
// @require		https://cdnjs.cloudflare.com/ajax/libs/jquery/2.2.0/jquery.min.js
// @require		https://www.parsecdn.com/js/parse-1.6.14.min.js
// @require		https://cdn.jsdelivr.net/jquery.minicolors/2.1.2/jquery.minicolors.min.js
// @require		https://cdnjs.cloudflare.com/ajax/libs/jQuery-slimScroll/1.3.7/jquery.slimscroll.min.js
// @resource	titil https://fonts.googleapis.com/css?family=Titillium+Web&subset=latin,latin-ext
// @resource 	yCSS https://dl.dropboxusercontent.com/u/82207064/tema/fonts/font-awesome.min.css
// ==/UserScript==

GM_addStyle(GM_getResourceText("yCSS"));
GM_addStyle(GM_getResourceText("titil"));

var temaversiyon="3.52",tema_tarih="13 haziran 2016 - 15:00",ajax1,
ekran_yuksekligi=screen.height,
ekran_genisligi=screen.width,
cozunurluk=ekran_genisligi+"px"+" "+ekran_yuksekligi+"px",
ayarlar,renk0,renk1,renk2,renk3,renk4,renk5,renk6,renk9,renk15,renk16,renk17,renk18,temalarim,kanal_modu,scroll_modu,sf_renk,takip_modu,devamini_gor,video_modu,sey_modu,genis_modu,sayfa_entry,mesaj_ses,olay_ses,mycss,onizleme_modu,font_select,font_boyutu,mesaj_olay,cerceve_modu,fon_resmi,mesaj_var,olay_var,logo_var,fon_opacity,gizli_kelime,sf_yenile,fbmod1,fbmod3;

var _html_ = document.html || document.getElementsByTagName('html')[0],
 head = document.head || document.getElementsByTagName('head')[0];
//var body = document.body || document.getElementsByTagName('body')[0];

var storage_prefix = "",css_topla='',
site_url="https://eksisozluk.com",
        arrowdown = "fa fa-folder-o",
        arrowup = "fa fa-folder-open-o";

var style = document.createElement('style');style.type = 'text/css';
function css_ekle(css){if (style.styleSheet){style.styleSheet.cssText = css;}else{style.appendChild(document.createTextNode(css));}_html_.appendChild(style);}

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

    ortak(0);
	sade();

    if (localStorage.getItem(storage_prefix + 'ayarlar') === null) {
        parse_oku();
        ortak(0);
		sade();
    } else {
        ayarlar = JSON.parse(localStorage.getItem(storage_prefix + 'ayarlar'));

        if (ayarlar['temalarim'] !== undefined) {temalarim = ayarlar['temalarim'];} else {temalarim = 'sade';}
        if (ayarlar['renk0'] !== undefined) {renk0 = ayarlar['renk0'];} else {renk0 = '#fff';}		
        if (ayarlar['renk1'] !== undefined) {renk1 = ayarlar['renk1'];} else {renk1 = '#333';}		
        if (ayarlar['renk2'] !== undefined) {renk2 = ayarlar['renk2'];} else {renk2 = '#333';}		
        if (ayarlar['renk3'] !== undefined) {renk3 = ayarlar['renk3'];} else {renk3 = '#333';}		
        if (ayarlar['renk4'] !== undefined) {renk4 = ayarlar['renk4'];} else {renk4 = '#53A245';}		
        if (ayarlar['renk5'] !== undefined) {renk5 = ayarlar['renk5'];} else {renk5 = '#333';}		
        if (ayarlar['renk6'] !== undefined) {renk6 = ayarlar['renk6'];} else {renk6 = '#B0BEC5';}		
        if (ayarlar['renk9'] !== undefined) {renk9 = ayarlar['renk9'];} else {renk9 = '#B0BEC5';}		
        if (ayarlar['renk15'] !== undefined) {renk15 = ayarlar['renk15'];} else {renk15 = '#F6F7F7';}		
        if (ayarlar['renk16'] !== undefined) {renk16 = ayarlar['renk16'];} else {renk16 = '#fff';}		
        if (ayarlar['renk17'] !== undefined) {renk17 = ayarlar['renk17'];} else {renk17 = '#333';}		
        if (ayarlar['renk18'] !== undefined) {renk18 = ayarlar['renk18'];} else {renk18 = 'transparent';}		
        if (ayarlar['kanal_modu'] !== undefined) {kanal_modu = ayarlar['kanal_modu'];} else {kanal_modu = '1';}		
        if (ayarlar['scroll_modu'] !== undefined) {scroll_modu = ayarlar['scroll_modu'];} else {scroll_modu = '0';}		
        if (ayarlar['sf_renk'] !== undefined) {sf_renk = ayarlar['sf_renk'];} else {sf_renk = '1';}		
        if (ayarlar['takip_modu'] !== undefined) {takip_modu = ayarlar['takip_modu'];} else {takip_modu = '0';}		
        if (ayarlar['sf_yenile'] !== undefined) {sf_yenile = ayarlar['sf_yenile'];} else {sf_yenile = '0';}		
        if (ayarlar['mesaj_ses'] !== undefined) {mesaj_ses = ayarlar['mesaj_ses'];} else {mesaj_ses = '';}		
        if (ayarlar['olay_ses'] !== undefined) {olay_ses = ayarlar['olay_ses'];} else {olay_ses = '';}		
        if (ayarlar['fon_resmi'] !== undefined) {fon_resmi = ayarlar['fon_resmi'];} else {fon_resmi = '';}		
        if (ayarlar['mesaj_var'] !== undefined) {mesaj_var = ayarlar['mesaj_var'];} else {mesaj_var = '';}		
        if (ayarlar['olay_var'] !== undefined) {olay_var = ayarlar['olay_var'];} else {olay_var = '';}		
        if (ayarlar['logo_var'] !== undefined) {logo_var = ayarlar['logo_var'];} else {logo_var = '//i.imgur.com/l9Ba5ar.png';}		
        if (ayarlar['fon_opacity'] !== undefined) {fon_opacity = ayarlar['fon_opacity'];} else {fon_opacity = '0.15';}		
        if (ayarlar['mycss'] !== undefined) {mycss = ayarlar['mycss'];} else {mycss = '';}		
        if (ayarlar['gizli_kelime'] !== undefined) {gizli_kelime = ayarlar['gizli_kelime'];} else {gizli_kelime = '';}		
        if (ayarlar['font_select'] !== undefined) {font_select = ayarlar['font_select'];} else {font_select = 'source';}		
        if (ayarlar['font_boyutu'] !== undefined) {font_boyutu = ayarlar['font_boyutu'];} else {font_boyutu = '16px';}		
        if (ayarlar['video_modu'] !== undefined) {video_modu = ayarlar['video_modu'];} else {video_modu = '1';}		
        if (ayarlar['sey_modu'] !== undefined) {sey_modu = ayarlar['sey_modu'];} else {sey_modu = '0';}		
        if (ayarlar['genis_modu'] !== undefined) {genis_modu = ayarlar['genis_modu'];} else {genis_modu = '0';}		
        if (ayarlar['onizleme_modu'] !== undefined) {onizleme_modu = ayarlar['onizleme_modu'];} else {onizleme_modu = '1';}		
        if (ayarlar['fbmod1'] !== undefined) {fbmod1 = ayarlar['fbmod1'];} else {fbmod1 = '0';}		
        if (ayarlar['fbmod3'] !== undefined) {fbmod3 = ayarlar['fbmod3'];} else {fbmod3 = '0';}		
        if (ayarlar['devamini_gor'] !== undefined) {devamini_gor = ayarlar['devamini_gor'];} else {devamini_gor = '0';}		
        if (ayarlar['cerceve_modu'] !== undefined) {cerceve_modu = ayarlar['cerceve_modu'];} else {cerceve_modu = '0';}		
        if (ayarlar['sayfa_entry'] !== undefined) {sayfa_entry = ayarlar['sayfa_entry'];} else {sayfa_entry = '25';}		
    }



   //font tercihi
    switch (true) {
        case (font_select == "source"):css_topla += 'body,h1, h2, h3, h4, h5, h6,.yenimenu{font-family:"Source Sans Pro",sans-serif;}';break;
		case (font_select == "arial"):css_topla += 'body,h1, h2, h3, h4, h5, h6,.yenimenu{font-family:Arial, Helvetica, sans-serif;}';break;
        case (font_select == "comic"):css_topla += 'body,h1, h2, h3, h4, h5, h6,.yenimenu{font-family:"Comic Sans MS",cursive,sans-serif;}';break;
        case (font_select == "georgia"):css_topla += 'body,h1, h2, h3, h4, h5, h6,.yenimenu{font-family:Georgia, serif;}';break;
        case (font_select == "helvetica"):css_topla += 'body,h1, h2, h3, h4, h5, h6,.yenimenu{font-family:Helvetica;}';break;
        case (font_select == "lucida"):css_topla += 'body,h1, h2, h3, h4, h5, h6,.yenimenu{font-family:"Lucida Sans Unicode", "Lucida Grande", sans-serif;}';break;
        case (font_select == "tahoma"):css_topla += 'body,h1, h2, h3, h4, h5, h6,.yenimenu{font-family:Tahoma, Geneva, sans-serif;}';break;
        case (font_select == "times"):css_topla += 'body,h1, h2, h3, h4, h5, h6,.yenimenu{font-family:"Times New Roman", Times, serif}';break;
        case (font_select == "titillium"):css_topla += 'body,h1, h2, h3, h4, h5, h6,.yenimenu{font-family: "Titillium Web", sans-serif;}';break;
        case (font_select == "trebuchet"):css_topla += 'body,h1, h2, h3, h4, h5, h6,.yenimenu{font-family:"Trebuchet MS", Helvetica, sans-serif;}';break;
        case (font_select == "verdana"):css_topla += 'body,h1, h2, h3, h4, h5, h6,.yenimenu{font-family:Verdana, Geneva, sans-serif;}';break;
    }
    //

css_topla+='#google_flash_inline_div,#root_remplate_div,#adContent,[id^="medyanet"],[id^="google"],[id^="ad-"],[class^="ad-"],.spin,.ui-autocomplete-loading:after,.admatic_interstitial{display:none!important;}';
if(devamini_gor==0){css_topla+='#entry-list .content{max-height:100%;overflow:visible;width:auto;}.read-more-link-wrapper{display:none;}';}
if(kanal_modu==0){css_topla+='#topic-channel-info{display:none!important;}';}
if(video_modu==0){css_topla+='#videos{display:none!important;}';}
if(sey_modu==0){css_topla+='iframe.lazy{display:none!important;}';}
if(takip_modu==0){css_topla+='#who-to-follow{display:none!important;}';}
if(fbmod1=="1"){css_topla+='#entry-list footer .feedback{visibility:hidden;}#entry-list>li:hover footer .feedback{visibility:visible;}';}

//
//css_topla+='html {overflow-y: hidden;}html.no-touch > body{overflow-y:scroll;bottom:0px;height:auto;top:106px;padding-top:0px;width: auto;position: absolute;right: 0px;left:0px;}html.no-touch #index-section{top:106px;}html.no-touch #partial-index{top:0px;padding:10px;padding-right:3px;}#container{padding-top:0px;}';
css_topla+='.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;}';	
//	
css_topla+="\
.web-top-ad-not-loaded{display:none!important;}\
a.b[href*='spoiler']{pointer-events: none;}\
a[href$='.jpg']:after,a[href$='.png']:after,a[href$='.gif']:after,a[href$='.gifv']:after,a[href$='.jpeg']:after,a[href*='youtube.com/watch?v=']:after,a[href*='youtu.be/']:after,.content a[href^='/entry/']:after,.content a[href^='https://eksisozluk.com/entry/']:after,.content a[href*='twitter.com/']:after,.content a[href*='instagram.com/']:after{font-family:FontAwesome;content:'\\f114';pointer-events: all;margin-left:0.5em;}\
.content a[href^='/entry/']:before,.content a[href^='https://eksisozluk.com/entry/']:before{content:'beforebkz';pointer-events: none;display:none;}\
.content a[href*='twitter.com/']:before{content:'beforetwt';pointer-events: none;display:none;}\
.content a[href*='instagram.com/']:before{content:'beforeinsta';pointer-events: none;display:none;}\
a[href*='youtube.com/watch?v=']:before,a[href*='youtu.be/']:before{content:'beforeytb';pointer-events: none;display:none;}\
a[href$='.jpg']:before,a[href$='.png']:before,a[href$='.gif']:before,a[href$='.gifv']:before,a[href$='.jpeg']:before{content:'beforegorsel';pointer-events: none;display:none;}\
a.b[href*='spoiler']:before{content:'beforespo';pointer-events: none;display:none;}\
.content a[acik='1']:after{content:'\\f115';}\
.content .bkz-ana a:after{content:none;}\
.content .fa{font-size:1em;margin:0px 4px 0px -8px;color:"+renk4+"}\
.arrow-spo,.url::after{margin-left:8px!important;}\
.arrow-spo{display:inline;}\
.gomulu{margin-right:20px;}\
.gomulu_after{font-size:1em;margin:0px;margin-left:-2em;width:2.5em;position:absolute;cursor:pointer;}\
.gomulu_after_spo{font-size:1em;margin:0px;margin-left:-0.6em;width:3em;position:absolute;cursor:pointer;}\
.gomulu_after .fa,.gomulu_after_spo .fa{color:transparent!important;}\
#entry-list>li:before{content:attr(rakkam);font-size:75%;}\
body[current_href*='?a=find&keywords='] #entry-list>li:before{content:'başlık içi arama'}\
body[current_href*='?a=search&author='] #entry-list>li:before{content:'neler yazmış?'}\
body[current_href*='?a=nice'] #entry-list>li:before{content:'şükela modu tümü'}\
body[current_href*='?a=dailynice'] #entry-list>li:before{content:'şükela modu bugün'}\
body[current_href*='?a=find&keywords=http'] #entry-list>li:before{content:'linkler'}\
body[current_href*='?a=buddy'] #entry-list>li:before{content:'badi'}\
body[current_href*='?a=latestfollowups'] #entry-list>li:before{content:'son'}\
#entry-list>li.ilkentry:before{content:'ilk entry'}\
#in-topic-search-options{width:360px;}\
#in-topic-search-options .paylasgrup{margin:8px 8px 4px 0px;width:100%;table-layout:fixed;display:table;max-width: 100%;}\
#in-topic-search-options .paylasgrup i{display:inline-block;font-size:24px;width:24px;line-height:24px;}\
#in-topic-search-options .paylasgrup span{width:20%;text-align:center;display:table-cell;cursor:pointer;}\
.paylasgrup label span{white-space:nowrap;text-align: center;font-size:10px;line-height:10px;}\
.paylasgrup a,.paylasgrup i{color:"+renk6+"!important}\
.paylas_g1:hover i,.paylas_g1:hover a{color:#0266C8!important;}\
.paylas_f:hover i,.paylas_f:hover a{color:#3B5998!important;}\
.paylas_g2:hover i,.paylas_g2:hover a{color:#00933B!important;}\
.paylas_y:hover i,.paylas_y:hover a{color:#ffa44c!important;}\
.paylas_yt:hover i,.paylas_yt:hover a{color:#E50336!important;}\
.paylas_i:hover i,.paylas_i:hover a{color:#f6b42c!important;}\
.paylas_w:hover i,.paylas_w:hover a{color:"+renk5+"!important;}\
.paylas_t:hover i,.paylas_t:hover a,.paylas_t2:hover i,.paylas_t2:hover a{color:#4099ff!important;}\
#top-navigation a.new-update:hover{text-decoration: none;}\
.content img,.content iframe{max-width:100%;}.gomuluvideo {width:100%;height:315px;max-width:560px!important;}\
.spoiler-icerigi,.eksiseyler-logo,.sub-title-menu #topic-share-menu,.sub-title-menu .nice-modu-toggler span,a#feed-refresh-link .eksico,#onerikutusu,#spolari_tersle,#bugun_buton{display:none;}.sakla{display:inline;}\
table.striped tbody tr:nth-child(2n+1) td, table.striped tbody tr:nth-child(2n+1) th{background-color:transparent;}\
#who-to-follow,#topic-channel-info{background-color:rgba(128,128,128,0.08)}\
#topic #video{margin:0 auto;max-width:560px;}.sub-title-menu .nice-modu-toggler{cursor:pointer;margin-right:10px;}.sub-title-menu .nice-modu-toggler:hover{text-decoration:underline;}\
#search-form #search-textbox{padding:0px;padding-left:8px;}.editform .actions button.primary{float:left;margin-right:3px;}#logo a{width:210px}\
.bkz-ana{border:1px dotted "+renk9+";margin:1px;padding:1px;border-radius: 2px;text-indent:0px;}.bkz-ana #entry-list{margin:0px;padding:0px;}.bkz-ana #entry-list>li{border:none;}\
html.no-touch #partial-index::-webkit-scrollbar-thumb{background-color:rgba("+rgb_a(renk9,0.4)+");}.trash-link{font-weight:normal;}\
#sfmenu{position:fixed;left:auto;top:125px;padding:10px;list-style:none;width:auto:height:auto;z-index:1000;display:none;cursor:pointer;}\
#onerikutusu .baslik{position: relative;height: 35px;display: table;min-width:180px;}#onerikutusu span{cursor:pointer;display:table-cell;min-width:60px;width:33%;text-align:center;height:35px;line-height:35px;color:"+renk6+";}#onerikutusu span.active{color:"+renk1+";}#onerikutusu li{cursor:pointer;border-top:1px solid "+renk9+";list-style:none;padding:5px;}\
#top-navigation > ul > li > a{height:auto;}.stats.partial{margin-left:25px;}\
";

css_topla+='.secmece{top:4%}#kapakapa{float:right;font-weight:bold;}#kapakapa label.kapakapa{background-color:#f00;}.secmece{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:580px;background:#000;border:1px solid #999;padding:5px;position:absolute;top:25px;left:0px;}.secmece input[type=radio]{position:absolute;top:-9999px;left:-9999px;}\
.t_a_sl{width:450px;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:300px!important;}#tema_ayarlar input[type=checkbox]{width:auto;}#tema_ayarlar select{width:215px;margin-top:3px;margin-bottom:4px;} #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]{padding:2px 2px 2px 26px;height:24px;}.uyari{text-align:center;color:#f54;}\
#tema_butonlar{position:absolute;bottom:5px;left:0px;width:100%;}#tema_butonlar button{background-color:#ccc;color:#000;padding:10px;}.tema_ayar_getir,.tema_ayar_gonder,.tema_fabrika,.tema_uygula,.tema_kaydetme{width:auto;text-align:center;position:absolute;bottom:0px;}.tema_fabrika{left:10px;right:auto;}.tema_ayar_getir{left:142px;right:auto;}.tema_ayar_gonder{left:280px;right:auto;}.tema_uygula{right:10px;}.tema_kaydetme{right:90px;}#fayl{display:none !important;}#haniben{position:relative;top:6px;}#temalarim{width:300px;}.t_a_sg.hakk a{color:#fe0;}.t_a_sg.hakk a:hover{color:#15a;}';

css_topla+='\
body{background-color:'+renk0+';color:'+renk5+';}.tabs,.tabs > li.active,.more-data{border-color:'+renk6+';}.tabs > li.active{border-bottom-color:'+renk0+';}\
#top-bar > #advanced-search-form,#entry-list footer .other .dropdown-menu,.modal,#in-topic-search-options,.confirmbox,.favorite-list-popup,.dropdown .dropdown-menu,#user-notifications ul li,#topic-channel-info #topic-channel-suggestion-menu,.ui-autocomplete,#sfmenu,#onerikutusu{background-color:'+renk0+';color:'+renk5+';border-color:'+renk9+';border:1px solid '+renk9+';}\
#entry-list,.info,.topic-list,.topic-list li > a small,#in-topic-search-options.open a{font-size:'+font_boyutu+';}#entry-list footer .permalink{opacity:0.8;}.sub-title-menu{font-size:13px;}#title a,h2{font-size:'+parseInt(parseInt(font_boyutu)+4)+'px;}#entry-list footer .permalink{font-size:'+parseInt(parseInt(font_boyutu)-2)+'px;}\
#entry-list footer .eksico{width:'+font_boyutu+';height:'+font_boyutu+';margin-right:'+font_boyutu+'}#entry-list footer .rate-options{padding:0px}.share-links{margin-right:0px;}\
a,#entry-list a,#in-topic-search-options a,.tabs > li.active > a,.dropdown .dropdown-menu a, #draft-content a,#user-notifications ul li a,.ui-autocomplete > li a,#topic-channel-info #topic-channel-suggestion-menu a,.sub-title-menu .nice-mode-toggler .nice-on{color:'+renk4+';}\
.btn-group > .btn:hover, .btn-group > .btn:focus, .btn-group > .btn:active, .btn-group > .btn.active{background-color:'+renk4+';border:1px solid '+renk4+';}\
.topic-list li:hover a,.topic-list li:hover small,html.no-touch a.more-data:hover,html.no-touch #in-topic-search-options > li:hover,html.no-touch #in-topic-search-options > li:not(.paylasgrup) a:hover,.ui-autocomplete > li a.ui-state-focus, .ui-autocomplete > li a:hover,html.no-touch .pager > a:hover,html.no-touch .pager select:hover,html.no-touch .dropdown .dropdown-menu li:hover,html.no-touch .dropdown .dropdown-menu li:hover a{color:'+renk2+'!important;background-color:'+renk15+'!important;}html.no-touch #in-topic-search-options > li.paylasgrup:hover,html.no-touch #in-topic-search-options > li.basliktaara:hover,html.no-touch #in-topic-search-options > li.paylasgrup a:hover,html.no-touch #in-topic-search-options > li.basliktaara a:hover{background-color:transparent!important;}\
.topic-list li{border-bottom:1px solid '+renk18+'}\
#title a{color:'+renk3+'}h1,h2,h3,h4,h5,h6,.topic-list li > a.empty-index-item,.sub-title-menu,.sub-title-menu > div > a,.sub-title-menu .nice-modu-toggler,.sub-title-menu .nice-mode-toggler a{color:'+renk6+'}.sub-title-menu #in-topic-search-menu > .toggles::after{border-top:4px solid '+renk6+';}\
#entry-list footer .eksico,#entry-list footer .other .eksico,.sub-title-menu .eksico{fill:'+renk9+'}\
#entry-list>li:before,#entry-list footer .permalink,#entry-list .read-more-link-wrapper a,.sub-title-menu > a,  .sub-title-menu > div > .dropdown > a,#entry-list footer .feedback a{color:'+renk9+';}\
.separated > li,#feed-refresh-link,.showall{border-color:'+renk9+'}\
.pager > a,.pager select{background-color:transparent;color:'+renk4+';border:1px solid '+renk9+';border-radius:1px;}\
#entry-list>li .content{border-top:1px solid rgba('+rgb_a(renk9,0.3)+');padding-top:5px;}\
body > header{background-color:'+renk16+'!important;color:'+renk17+'!important;border-bottom:1px solid rgba('+rgb_a(renk6,0.2)+');}#index-section{border-right:none;}\
#top-navigation > ul > li > a,#sub-navigation > ul > li > a{color:'+renk17+'!important;}#top-navigation .eksico,#sub-navigation .eksico{fill:'+renk17+'!important;}\
.editform .actions #save-draft-button,#topic-channel-info #topic-channel-options > li > .name.passive{border: 1px solid #b0bec5;background-color: #f6f7f7;color: #333;}\
.hed,.hed2{position: absolute;top: 0px;left: 0px;height: 100%;width: 100%;}\
.hed{background-color: '+renk0+';}.hed2{background-image:url('+fon_resmi+');opacity:'+fon_opacity+';background-position:50% 0%;background-attachment:fixed;background-repeat:no-repeat;background-size:'+cozunurluk+'!important;}';


css_topla+='.minicolors{position:relative;}.minicolors-swatch{position:absolute;vertical-align:middle;background:url(//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(//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(//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}\
.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{position:absolute;top:50px;right:50px;}.fabrika_buton2{position:absolute;left:50px;top:50px;}\
.arrow-big-up{border-bottom:17px solid '+renk0+';border-left:17px solid transparent;border-right:17px solid transparent;right:12px;bottom:22px;z-index:1000001;width:0px;height:0px;position:absolute;opacity:1;overflow:hidden;cursor:pointer;}\
.arrow-big2-up{border-bottom:9px solid '+renk1+';border-left:9px solid transparent;border-right:9px solid transparent;right:19px;bottom:22px;z-index:1000002;width:0px;height:0px;position:absolute;opacity:1;overflow:hidden;cursor:pointer;}\
#backtop{position:fixed;background-color:'+renk1+';right:57px;bottom:45px;width:35px;height:35px;padding:10px;border-radius:4px;text-indent:-9999px;cursor:pointer;z-index:1000000;display:none;opacity:0.3;box-sizing:content-box;-webkit-box-sizing:content-box}#backtop:hover{opacity:0.6;}';

//
if(sf_renk==0){
css_topla+='.topic-list li > a,.topic-list li > a small,#feed-refresh-link{color:'+renk5+';}';
}else{
css_topla+='.topic-list li > a,.topic-list li > a small,#feed-refresh-link{color:'+renk1+';}';
}
//

if(genis_modu==1){
css_topla+='#index-section{width:250px;}#partial-index{padding-left:5px;}#main{margin-left:250px;}#container,html > body > header #top-bar{width:100%;max-width:100%;}#content-body {width:auto;float:none;}#main{margin-right:300px;}#aside{position:absolute;right:10px;top:0px;}';

if(video_modu==0 && kanal_modu==0 && takip_modu==0 && sey_modu==0){
css_topla+='#main{margin-right:0px;}#aside{position:relative;}';
}

}

	
if(cerceve_modu==1){
css_topla+='#profile-cards .bkz-ana,#content-body .bkz-ana{border:0px;padding:0px;}#entry-list>li{border:0px;content:"";}#content-body > #topic > .editform{margin-left:0px;}#entry-list>li{margin-bottom:20px;padding:5px;padding-bottom:25px;}#entry-list>li,.showall.more-data{background-color:rgba(128,128,128,0.08);border-radius:3px;border:1px solid rgba(100,100,100,0.1);}';
}

//css_topla+='#title{position:fixed;top:75px}.sub-title-container{position:fixed;top:126px}#entry-list{margin-top:75px;}';

//tema düzeltme
if(temalarim != "sade"){
css_topla+='#logo a{background-image:url('+logo_var+');background-position:3px 8px;}body > header{border-top:none;}#top-navigation li:not(#options-dropdown) .eksico{display:none}\
html > body > header #top-bar{height:75px;}html.no-touch > body,html.no-touch #index-section,#aside{top:75px;}html.no-touch > body{padding-top:75px;}#container{padding-top:0px;}#sub-navigation{position:relative;top:-10px;font-weight:normal;}#sub-navigation > ul{height:20px;line-height:20px;}.loggedin #sub-navigation > ul > li{display:inline-block;width:auto;}#sub-navigation > ul > li > a{margin:0px 10px;}\
html.no-touch #sub-navigation > ul > li:hover > a, html.no-touch #sub-navigation > ul > li.active > a{border-color:transparent}\
#entry-list > li{padding:10px 5px;}.topic-list.partial > li > a{padding:3px 25px 3px 0px}.topic-list.partial > li > a > small{top:3px;}#site-footer ul{display:inline-block;text-align:center;}';

css_topla+='\
#top-navigation > ul .new-update, #sub-navigation > ul .new-update{color:#fff!important;background-color:#3da724;line-height:45px;-webkit-border-radius:2px;-moz-border-radius:2px;border-radius:2px;-webkit-box-shadow:inset 0 1px 3px rgba(0,0,0,0.1),0 0 8px #3da724;-moz-box-shadow:inset 0 1px 3px rgba(0,0,0,0.1),0 0 8px #3da724;box-shadow:inset 0 1px 3px rgba(0,0,0,0.1),0 0 8px #3da724;}\
#topic-channel-info #topic-channels li.channel > a,#topic-channel-info #topic-channel-options > li > .name.active{color:#333;background-color:#bd6;border:1px solid #b5da59;}\
#top-bar > #advanced-search-form,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 '+renk6+'}\
#site-footer,.dropdown .dropdown-menu li.separated,#threads li + li{border-top:1px solid '+renk9+'}#site-footer a{color:rgba('+rgb_a(renk4,0.7)+');}\
#threads li article.unread h2,#message-thread .incoming a, #message-thread .outgoing a{color:'+renk4+';}\
.editform{background-color:rgba(128,128,128,0.08);}html.no-touch #threads li article:hover,.tabs > li.active:hover,.tabs > li:hover{background-color:rgba(100,100,100,0.1);}#threads li article.unread,#message-thread .incoming, #message-thread .outgoing{background-color:rgba(128,128,128,0.15);color:'+renk5+';}#message-thread .incoming, #message-thread .outgoing,table{border:1px solid '+renk6+';}#threads li article.unread p{color:'+renk5+'}';
}
//


if(fbmod3==1){
css_topla+='#entry-list>li,.bkz-ana #entry-list>li{padding-bottom:30px;}#entry-list footer .feedback {float: none;position: absolute;display: inline;right:10px;bottom: 5px;}';
}

function butonvs(bc,c,b,pbc,pc,pb,tbc,tc,tb,stc,mbc,mc){
css_topla+='button, input[type="submit"], input[type="button"],button:hover, input[type="submit"]:hover, input[type="button"]:hover, button:focus, input[type="submit"]:focus, input[type="button"]:focus,.editform .actions #save-draft-button{background-color:'+bc+';color:'+c+';border:1px solid '+b+';opacity:1;}\
button.primary, input.primary[type="submit"], input.primary[type="button"],button.primary:hover, input.primary[type="submit"]:hover, input.primary[type="button"]:hover, button.primary:focus, input.primary[type="submit"]:focus, input.primary[type="button"]:focus{background-color:'+pbc+';color:'+pc+';border:1px solid '+pb+';opacity:1;}\
button:hover, input[type="submit"]:hover, input[type="button"]:hover, button:focus, input[type="submit"]:focus, input[type="button"]:focus,button.primary:hover, input.primary[type="submit"]:hover, input.primary[type="button"]:hover, button.primary:focus, input.primary[type="submit"]:focus, input.primary[type="button"]:focus{opacity:0.9;}\
#search-form #search-textbox,#top-bar input, #top-bar select,input, select, textarea{background-color:'+tbc+';color:'+tc+';border:1px solid '+tb+';}#search-form #search-textbox{color:'+stc+'}#a3-toggle::after{border-top-color:'+stc+';}#tema_ayarlar select,#tema_ayarlar input,#tema_ayarlar textarea{background-color:#fff;color:#000;}\
#top-navigation > ul .new-update, #sub-navigation > ul .new-update{color:'+mc+'!important;background-color:'+mbc+'!important;-webkit-box-shadow:inset 0 1px 3px rgba(0,0,0,0.1),0 0 8px '+mbc+'!important;-moz-box-shadow:inset 0 1px 3px rgba(0,0,0,0.1),0 0 8px '+mbc+'!important;box-shadow:inset 0 1px 3px rgba(0,0,0,0.1),0 0 8px '+mbc+'!important;}\
#in-topic-search-options button .eksico{fill:'+pc+';}\
';
}

function mesajolayvar(){
css_topla+='#top-navigation > ul > li > a{color:'+renk9+'!important}#options-dropdown .eksico{fill:'+renk9+'!important}\
#top-navigation > ul > li:not(#options-dropdown){margin-right:15px;}\
#top-navigation > ul > li.messages a.new-update{background-image:url('+mesaj_var+');height:75px;line-height:75px;background-position: center;background-repeat:no-repeat;background-color:transparent!important;color:transparent!important;-webkit-box-shadow:none!important;-moz-box-shadow:none!important;box-shadow:none!important;}\
#top-navigation > ul > li.tracked a.new-update{background-image:url('+olay_var+');height:75px;line-height:75px;background-position: center;background-repeat:no-repeat;background-color:transparent!important;color:transparent!important;-webkit-box-shadow:none!important;-moz-box-shadow:none!important;box-shadow:none!important;}';
	
}

function logo_duzelt(x,y,z){
css_topla+='#logo a{height:50px;line-height:50px;background-size:'+x+' '+y+';background-position:'+z+' center;}';	
}

function st_duzelt(sfb,stb,sbf){
css_topla+='#search-form button[type="submit"]{background-color:'+sfb+';}#search-form #search-textbox{border:1px solid '+stb+';}#search-form button[type="submit"] .eksico{fill:'+sbf+';}';	
}


//tema düzeltmeleri
switch(true) {
case (temalarim=="sade"):break;

case (temalarim=="fabrika"):butonvs("#F6F7F7","#333","#B0BEC5","#80C14B","#333","#60a12B","#fff","#000","#fff","#000","#3da724","#fff");st_duzelt("#555","#fff",renk17);break;

case (temalarim=="fabrikamavi"):
case (temalarim=="fabrikamor"):
case (temalarim=="fabrikapembe"):
case (temalarim=="fabrikayesil"):
case (temalarim=="fabrikakirmizi"):butonvs("#F6F7F7","#333","#B0BEC5",renk4,renk0,renk(renk4,-34),"#fff","#000","#fff","#000",renk4,"#fff");st_duzelt("#555","#fff",renk17);break;

case (temalarim=="grilacivert"):
case (temalarim=="griyesil"):
case (temalarim=="grikahve"):
case (temalarim=="grimor"):
case (temalarim=="grimsi"):
case (temalarim=="grimavi"):butonvs("#999","#222","#888","#80C14B","#333","#60a12B","transparent","#000",renk6,"#ccc","#3da724","#fff");st_duzelt("#555","#555",renk17);break;

case (temalarim=="fabrika_gece"):
case (temalarim=="ates"):
case (temalarim=="ates2"):
case (temalarim=="sarimsi"):
case (temalarim=="pembemsi"):
case (temalarim=="gri2"):
case (temalarim=="eksiyesil"):butonvs("#444","#ccc","#333",renk4,renk0,renk(renk4,-34),"transparent","#ccc",renk6,"#ccc",renk4,renk(renk4,-51));st_duzelt(renk6,renk6,renk17);break;

case (temalarim=="acikkahve"):butonvs("#F6F7F7","#333","#B0BEC5",renk4,renk0,renk(renk4,-34),"#fff","#000","#fff","#000",renk0,renk16);st_duzelt("#555","#fff",renk17);break;

case (temalarim=="kahveton"):butonvs("#F6F7F7","#333","#B0BEC5",renk4,renk0,renk(renk4,-34),"#fff","#000","#fff","#000",renk0,renk16);st_duzelt("#4f4244","#fff",renk17);break;

case (temalarim=="sarilacivert"):butonvs(renk9,renk5,renk(renk9,-34),renk4,renk5,renk(renk4,-34),"transparent","#ccc",renk6,"#ccc",renk3,renk16);st_duzelt(renk9,renk9,renk17);
css_topla+='.arkaplan,body{background-color:'+renk3+';}#site-footer a{color:'+renk16+'}#content-body,#partial-index,#aside{background-color:'+renk16+';padding:10px;border-radius:3px;}#partial-index{margin-top:-4px}#search-form button[type="submit"] .eksico{fill:'+renk17+'}#aside,#container{margin-top:10px!important;}';
if(genis_modu==1){css_topla+='#aside{width:320px;}html.no-touch #index-section{left:10px;}';}else{css_topla+='#videos img,#videos .big-thumb span.video-title,#aside > div, #aside > section{width:280px}';}
break;

case (temalarim=="dw"):butonvs("#444","#ccc","#333",renk4,renk0,renk(renk4,-34),"transparent","#ccc","#666","#ccc",renk4,"#fff");mesajolayvar();logo_duzelt("255px","50px","center");st_duzelt(renk9,renk9,renk17);css_topla+='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;}}';break;
case (temalarim=="kfb"):butonvs("#444","#ccc","#333",renk4,renk0,renk(renk4,-34),"transparent","#ccc","#666","#ccc",renk4,"#fff");mesajolayvar();st_duzelt(renk9,renk9,renk17);break;
case (temalarim=="td"):butonvs("#444","#ccc","#333",renk4,renk0,renk(renk4,-34),"transparent","#ccc",renk6,"#ccc",renk4,"#fff");mesajolayvar();logo_duzelt("175px","45px","center");st_duzelt(renk9,renk9,renk17);break;
case (temalarim=="krt"):butonvs("#444","#ccc","#333",renk4,renk0,renk(renk4,-34),"transparent","#ccc","#666","#ccc",renk4,renk(renk4,-51));st_duzelt(renk9,renk9,renk17);break;
case (temalarim=="asl"):butonvs("#966215","#310","#865205",renk4,renk0,renk(renk4,-34),"transparent","#ccc","#666","#ccc",renk4,renk(renk4,-51));st_duzelt(renk9,renk9,renk17);break;
case (temalarim=="bb"):butonvs("#B08E2E","#210","#a07E1E",renk4,renk0,renk(renk4,-34),"transparent","#ccc","#666","#ccc",renk4,renk(renk4,-51));st_duzelt(renk9,renk9,renk17);break;
case (temalarim=="hmd"):butonvs("#444","#ccc","#333",renk4,renk0,renk(renk4,-34),"transparent","#ccc","#666","#ccc",renk4,renk(renk4,-51));st_duzelt(renk9,renk9,renk17);break;
case (temalarim=="pisi"):butonvs("#444","#ccc","#333",renk4,renk0,renk(renk4,-34),"transparent","#ccc","#666","#ccc",renk4,renk(renk4,-51));st_duzelt(renk9,renk9,renk17);break;
case (temalarim=="sw"):butonvs("#897d5c","#392d0c","#695d3c",renk4,renk0,renk(renk4,-34),"transparent","#ccc","#666","#ccc",renk4,renk(renk4,-51));logo_duzelt("108px","48px","center");st_duzelt(renk9,renk9,renk17);break;
case (temalarim=="got"):butonvs("#4A4338","#111","#5A5348",renk4,renk0,renk(renk4,-34),"transparent","#ccc","#666","#ccc",renk4,renk(renk4,-51));logo_duzelt("142px","45px","center");st_duzelt(renk9,renk9,renk17);break;
case (temalarim=="lord"):butonvs("#7aa791","#0a3711","#5a8771",renk4,renk0,renk(renk4,-34),"transparent","#ccc","#666","#ccc",renk1,renk(renk1,-51));logo_duzelt("210px","45px","center");st_duzelt(renk9,renk9,renk17);break;//225px
case (temalarim=="hp"):butonvs("#3F4D29",renk5,"#2F3D19",renk4,renk0,renk(renk4,-34),"transparent","#ccc","#666","#ccc",renk4,renk(renk4,-51));logo_duzelt("190px","45px","center");st_duzelt(renk9,renk9,renk17);break;

case (temalarim=="yol"):butonvs("#444","#ccc","#333",renk4,renk0,renk(renk4,-34),"transparent","#ccc","#666","#ccc",renk4,renk(renk4,-51));st_duzelt(renk9,renk9,renk17);break;

case (temalarim=="pof"):butonvs("#444","#ccc","#333",renk4,renk0,renk(renk4,-34),"transparent","#ccc","#666","#ccc",renk4,"#fff");mesajolayvar();logo_duzelt("225px","40px","center");st_duzelt(renk9,renk9,renk17);break;

case (temalarim=="antika"):butonvs("#F6F7F7","#333","#B0BEC5","#80C14B","#333","#60a12B","#fff","#000","#fff","#000","#28577A ","#fff");st_duzelt(renk9,renk9,renk17);break;
case (temalarim=="adidas"):butonvs("#4D5950","#eee","#3D4940","#4D5950","#eee","#3D4940","transparent",renk5,renk9,renk5,"#4D5950","#fff");st_duzelt("#4D5950","#4D5950",renk17);break;
case (temalarim=="req4"):butonvs("#af9d8c","#111","#9f8d7c","#af9d8c","#111","#9f8d7c","transparent","#000",renk9,"#000","#BF5D4D","#fed");st_duzelt("#9f8d7c","#9f8d7c",renk17);break;
case (temalarim=="owb"):butonvs("#566484","#eee","#465474","#566484","#eee","#465474","transparent","#eee",renk9,"#eee",renk4,"#fff");logo_duzelt("132px","45px","left");st_duzelt(renk9,renk9,renk17);break;
case (temalarim=="dietcoke"):butonvs("#B22222","#fff","#a21212","#B22222","#fff","#a21212","transparent","#000",renk9,"#000",renk4,"#fff");logo_duzelt("132px","45px","left");st_duzelt(renk9,renk9,renk17);break;
case (temalarim=="mermer"):butonvs("#F6F7F7","#333","#B0BEC5","#C68D19","#fff","#b67D09","#fff","#000","#fff","#000","#C68D19","#fff");st_duzelt("#C0BCA2","#C0BCA2","#fff");break;
case (temalarim=="ssgrengi"):butonvs("#556575","#F0FFF0","#455565","#556575","#F0FFF0","#455565","transparent","#000",renk9,"#000",renk4,"#fff");logo_duzelt("132px","45px","left");st_duzelt(renk9,renk9,renk17);break;
case (temalarim=="neci"):butonvs("#413027","#C9b4b1","#3c342f","#413027","#C9b4b1","#3c342f","transparent","#ccc",renk9,"#ccc",renk4,"#fff");logo_duzelt("173px","45px","left");st_duzelt(renk9,renk9,renk17);css_topla+='.slimScrollBar{background-color:#5c544f!important;}#search-form button[type="submit"]{background-color:'+renk6+';}#search-form #search-textbox{border-color:'+renk6+';}';mesajolayvar();break;
case (temalarim=="steam"):butonvs("#444","#ccc","#333",renk4,renk0,renk(renk4,-34),"transparent","#ccc","#666","#ccc",renk4,"#fff");logo_duzelt("250px","45px","left");st_duzelt(renk9,renk9,renk17);break;
case (temalarim=="zpc"):butonvs("#f2f2f2","#dd6666","#d2d2d2","#f2f2f2","#dd6666","#d2d2d2","transparent","#333",renk9,"#333",renk4,"#fff");st_duzelt("#aa5555","#aa5555","#eee");
css_topla+='.arkaplan{background-position:70% 100%!important;background-size:509px 429px!important;}#index-section {background-image: url(//i.imgur.com/iy8uiHW.jpg);background-position: left bottom;background-repeat:no-repeat;margin-left:0px;}';
break;
case (temalarim=="pis"):butonvs("#eae9e5","#333","#cac9c5","#eae9e5","#333","#cac9c5","transparent","#000",renk9,"#000",renk4,"#848C6C ");st_duzelt(renk17,renk17,"#D5A99E");
css_topla+='#logo{margin-left:-6px;margin-right:6px;}#logo a{background-size: 198px 50px;height:50px;line-height:50px;background-position:left top;}html>body>header #top-bar{background-image:url(//i.imgur.com/TyuIpO8.jpg);background-repeat:repeat-x;background-size: 147px 75px;}\
h1#title{background-image:url(//i.imgur.com/3hpcEQg.jpg)!important;padding-left:2px;}h1#title a:hover{color:'+renk5+'!important;}h2,h3,h4,h5,h6{background-image:url(//i.imgur.com/RRGIUa9.jpg)!important;}\
.arkaplan{background-repeat:repeat!important;background-size:291px 198px!important;}';
break;
case (temalarim=="bkb"):butonvs("#ead9c4","#000","#cab9a4","#CC8500","#333","#9F6800","#ead9c4","#000","#cab9a4","#000",renk4,"#848C6C ");st_duzelt(renk17,renk17,renk0);mesajolayvar();
css_topla+='.hed{background-color:transparent;}.arkaplan{background-position: bottom right;background-size:auto;}#logo{margin-left:-15px;margin-right:15px;}#logo a{display:none;}.bkb_logo{background-repeat:no-repeat;background-image:url("//i.imgur.com/vnFxJav.gif");top:0px;left:-3px;position:fixed;z-index:20002;height:50px;width:232px;max-height:50px;}\
header{border-left:7px solid #111;background-color:#E0E0C9;background-image:url(//i.imgur.com/LFeHIoY.gif);background-position:top right;background-repeat:no-repeat;background-size:100%;}\
#entry-list li:hover{background-image:url(//i.imgur.com/DaizA12.gif);background-position:center bottom;background-repeat:no-repeat}\
#content-body{background-image:url(//i.imgur.com/GvnrMJg.gif);background-position:right 0px;background-repeat:no-repeat}\
.bkb_sol{position:fixed;top:50px;bottom:0px;left:0px;width:210px;background-image:url(//i.imgur.com/VtpFF3K.gif);background-position:bottom left;background-repeat:no-repeat;}#partial-index{margin-bottom:60px;padding-left:14px}\
.editform .actions #save-draft-button{background-color:#86DE98;border-color:#2EA747;color: #792167;}';
break;
}

//
if(scroll_modu==1){
css_topla+='html.no-touch #partial-index{padding-right:15px;}.slimScrollBar{margin-top:20px;}';
}
//

if(fon_resmi==""){css_topla+='.hed,.hed2{display:none;}';}


css_ekle(css_topla);


//
_html_.setAttribute("mutation",0);
MutationObserver = window.MutationObserver || window.WebKitMutationObserver;
var observer = new MutationObserver(function(mutations) {
	mutations.forEach(function(mutation) {
		if(document.querySelector("#site-footer")!==null || document.querySelector("#aside")!==null){
		if(_html_.getAttribute("mutation")!=1) {
			//
			observer.disconnect();
			_html_.setAttribute("mutation",1);
			//
			
			basla();
			//
		}
		}
	});
});
observer.observe(document,{attributes:true,subtree:true,childList:true,characterData:true});
//

function basla(){
	var _body_=$("body");
	_body_.removeClass("theme-enabled").addClass("theme-disabled")
	.after("<div class=arkaplan></div>")
	.after("<div id=onerikutusu class=yenimenu><div class=baslik><span class=active data-header=0>bkz</span><span data-header=1>hede</span><span data-header=2>*</span></div><div class=govde></div></div>")
	.after("<a href='/' class=bkb_logo></a><div class=bkb_sol></div>");
$("html.no-touch > body > header").prepend("<div class=hed></div><div class=hed2></div>")
	
	
	_html_.setAttribute("nick",$("#top-navigation li a[href^='/biri/']").attr("title"));	

if(scroll_modu==1){
var pi=$("#partial-index");
pi.slimScroll({
	height: 'auto',
	size:'8px',
	color:renk9,
	wheelStep : 10,
	start:$("#partial-index"),
	borderRadius:'3px',
	disableFadeOut:true,
	alwaysVisible:true
	});
var ss=$(".slimScrollBar");
pi.scroll(function() {
    sessionStorage.setItem("sp",ss.offset().top)
});

ss.css({"top":parseInt(sessionStorage.getItem("sp")-95)+"px"})
}
            //otomatik mesaj olay kontrol
            if (mesaj_olay == "1") {
					mesajolaykontrol();
                setInterval(function() {
                    mesajolaykontrol();
                }, 30000);
            }
			//


		_body_.attr("current_href",window.location.href);
		
		//bugün dropdown & rastgele
		$("#index-section").prepend("<div id=bugun_buton style='right: 17px;position: absolute;top:13px;font-size: 13px;cursor:pointer;z-index:1;'><span class='fa-stack fa-lg'><i class='fa fa-circle fa-stack-2x' style='color:"+renk0+";text-shadow:0px 0px 7px "+renk6+";'></i><i class='fa fa-bars fa-stack-1x' style='color:"+renk6+"'></i></span></div>");

		_body_.after("<div id=sfmenu class=yenimenu><li id=bgndl><a>bugün (dolu dolu)</a></li><br><li id=bgnyn><a>bugün (yeniden eskiye)</a></li><br><li id=bgntrh><a>bugün (tarihi)</a></li><br><li id=getirbisiler title='günlerden bir gün'><a>rastgele</a></li></div>");
		//	
		
		entry_tara();

		
	$("#top-navigation #options-dropdown .dropdown-menu li a[href='/badi-engellenmis']").parent().after("<li><a target=_blank href='https://seyler.eksisozluk.com'>ekşi şeyler</a></li><li><a href=/sub-etha>sub-etha</a></li>");
	
	if($("#top-bar").hasClass("loggedin")==false){
	$("#top-navigation li:first").before("<li><a class=temaayarlari>tema++</a></li>");
	}else{
	$("#top-navigation #options-dropdown .dropdown-menu li:first").before("<li><a class=temaayarlari>tema++</a></li>");	
	}
	
	$("#in-topic-search-toggle").text("başlığın menüsü")
	
	//
	$("a[href$='.jpg'],a[href$='.png'],a[href$='.gif'],a[href$='.gifv'],a[href$='.jpeg'],a[href*='youtube.com/watch?v='],a[href*='youtu.be/'],.content a[href^='/entry/'],.content a[href^='https://eksisozluk.com/entry/'],.content a[href*='twitter.com/'],.content a[href*='instagram.com/']")
	.after("<span class=gomulu_after><i class='fa fa-folder-o'></i></span>");
	$("a.b[href*='spoiler']").after("<span class=gomulu_after_spo><i class='fa fa-folder-o'></i></span>");
	//

	//
	sf_gizle();
	//
	
//
if(sf_yenile==1){setInterval(function(){$("a#feed-refresh-link")[0].click();}, 60000);}
//

//
if(onizleme_modu=="1"){onizleme();}
//

//backtop
_body_.after("<div id=backtop><div class=arrow-big-up></div><div class=arrow-big2-up></div></div>");
var backtop = $('#backtop');
$(document).scroll(function(){var pos = $(window).scrollTop();if(pos >= 100){backtop.fadeIn(500);} else{backtop.fadeOut(500);}});
backtop.click(function(){$("html, html.no-touch>body").animate({  scrollTop:0  },  { duration: 1 });  });
//backtop	

//ekşicep
setTimeout(function(){
$("#site-footer ul").after("<div id=eksicep_reklam style='font-size:12px;text-align:center;'>ailenizin ekşi sözlük android uygulaması <a href=/eksicep--4986749>ekşicep</a>, bu yüzyıla özel indirim fırsatıyla tüm seçkin marketlerde! mutlaka deneyin!</div>")
,2000});
//

//css ekle
css_ekle(mycss);
//



	
//
//$("#site-footer li:last").after("<li><a class=temaayarlari>tema++</a></li>");
//


//yazarkontrol
var ttl=$("#title");
var english = /^[a-z 0-9]*$/;//ingilizce harf&boşluk&rakam
var title = ttl.data("title");
if(window.location.pathname.substring(0, 5)!="/biri"){
ttl.find("a:first").after("<span id=ilkbuton class=ilkentry_buton acik=0 style='margin-left:10px;cursor:pointer;color:"+renk3+"' title='ilk entry'><i class='fa fa-info-circle'></i></span><span id=spolari_tersle style='margin-left:10px;cursor:pointer;color:"+renk3+"' title='spoiler aç kapa'><i class='fa fa-strikethrough ' style='font-size:21px'></i></span>");
}
if (english.test(title) && window.location.pathname.substring(0, 13)!="/entry/duzelt" && title!==undefined){
$.ajax({'url':'https://eksisozluk.com/biri/'+title+'','async':true,'global': false,'dataType': "html",'success':function(data){ttl.find("a").after("<span style='margin-left:10px;cursor:pointer;color:"+renk3+"'><a href='https://eksisozluk.com/biri/"+title+"' title='yazarı teftiş et'><i class='fa fa-user' style='font-size:21px'></i></a></span>");},'error':function(){}});
}

//
	
	//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(7000);}
		}
		sessionStorage.setItem("verkontrol","1");
		}});
		}
	//

}


//entry ön izleme
function onizleme(){
$("#entry-list>li:last").after("<span value='' data-flags='share vote msg report entryrequestmove entrymodlog favorite' class=preview style='display:none;padding-left:5px;'></span>");
$("#entry-list").find(".preview").before("<div class=previewtext style='padding-left:5px;display:none;font-size:80%;border-bottom:1px solid rgba("+rgb_a(renk6,0.3)+");color:"+renk9+"'>ön izleme şeysi<div>")
	
$(document).on("keyup", "#editbox", function(e) {
var eT=this.value;

eT = eT.replace(/&/g,'&amp;').replace(/</g,'&lt;').replace(/>/g,'&gt;'); //tag'lardan kurtarma
eT = eT.replace(/\(bkz: (.{1,50}?)\)/g, bkzconvert); // (bkz: )
eT = eT.replace(/\`(.{1,50}?)\`/g, gbkzconvert); // `gizlibkz`
eT = eT.replace(/\(ara: (.{1,50}?)\)/g, araconvert ); // (ara: )
eT = eT.replace(/\[(\b(https?|ftp|file):\/\/[-A-Z0-9+&@#\/%?=~_|!:,.;]*[-A-Z0-9+&@#\/%=~_|]) (.{1,100}?)\]/ig, "<a class=\"url\" target=\"_blank\" href=\"$1\">$3</a>"); //[url word]
eT = eT.replace(/[^(href="](\b(https?|ftp|file):\/\/[-A-Z0-9+&@#\/%?=~_|!:,.;]*[-A-Z0-9+&@#\/%=~_|])/ig, " <a target=\"_blank\" href=\"$1\">$1</a>"); // url
eT = eT.replace(/^\s+|\s+$/g, ""); //trim
eT = eT.replace(/\n/g,"<br />"); //satir atlama

//linkler hariç harf küçültme
var regex = new RegExp("([A-Za-z][A-Za-z0-9+\\-.]*):(?:(//)(?:((?:[A-Za-z0-9\\-._~!$&'()*+,;=:]|%[0-9A-Fa-f]{2})*)@)?((?:\\[(?:(?:(?:(?:[0-9A-Fa-f]{1,4}:){6}|::(?:[0-9A-Fa-f]{1,4}:){5}|(?:[0-9A-Fa-f]{1,4})?::(?:[0-9A-Fa-f]{1,4}:){4}|(?:(?:[0-9A-Fa-f]{1,4}:){0,1}[0-9A-Fa-f]{1,4})?::(?:[0-9A-Fa-f]{1,4}:){3}|(?:(?:[0-9A-Fa-f]{1,4}:){0,2}[0-9A-Fa-f]{1,4})?::(?:[0-9A-Fa-f]{1,4}:){2}|(?:(?:[0-9A-Fa-f]{1,4}:){0,3}[0-9A-Fa-f]{1,4})?::[0-9A-Fa-f]{1,4}:|(?:(?:[0-9A-Fa-f]{1,4}:){0,4}[0-9A-Fa-f]{1,4})?::)(?:[0-9A-Fa-f]{1,4}:[0-9A-Fa-f]{1,4}|(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?))|(?:(?:[0-9A-Fa-f]{1,4}:){0,5}[0-9A-Fa-f]{1,4})?::[0-9A-Fa-f]{1,4}|(?:(?:[0-9A-Fa-f]{1,4}:){0,6}[0-9A-Fa-f]{1,4})?::)|[Vv][0-9A-Fa-f]+\\.[A-Za-z0-9\\-._~!$&'()*+,;=:]+)\\]|(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)|(?:[A-Za-z0-9\\-._~!$&'()*+,;=]|%[0-9A-Fa-f]{2})*))(?::([0-9]*))?((?:/(?:[A-Za-z0-9\\-._~!$&'()*+,;=:@]|%[0-9A-Fa-f]{2})*)*)|/((?:(?:[A-Za-z0-9\\-._~!$&'()*+,;=:@]|%[0-9A-Fa-f]{2})+(?:/(?:[A-Za-z0-9\\-._~!$&'()*+,;=:@]|%[0-9A-Fa-f]{2})*)*)?)|((?:[A-Za-z0-9\\-._~!$&'()*+,;=:@]|%[0-9A-Fa-f]{2})+(?:/(?:[A-Za-z0-9\\-._~!$&'()*+,;=:@]|%[0-9A-Fa-f]{2})*)*)|)(?:\\?((?:[A-Za-z0-9\\-._~!$&'()*+,;=:@/?]|%[0-9A-Fa-f]{2})*))?(?:\\#((?:[A-Za-z0-9\\-._~!$&'()*+,;=:@/?]|%[0-9A-Fa-f]{2})*))?")
var tokens = eT.split(' ');
var lowerText = '';
for(var i=0;i<tokens.length;i++){if(i!=0){lowerText += ' ';}if(!tokens[i].match(regex)){lowerText += tokens[i].toLowerCase();}else{lowerText += tokens[i];}}
//

if(lowerText){var a=document.querySelector(".preview");if(a){a.style.display='';a.innerHTML=lowerText;}var a=document.querySelector(".previewtext");if(a){a.style.display='';}}else{var a=document.querySelectorAll(".preview,.previewtext");if(a){for(i=0;i<a.length;i++){a[i].style.display = 'none';}}}

function bkzconvert(str,p1,offset,s){var p2=p1.replace(/ /g,"+");return "(bkz: <a class=\"b\" href=\"https://eksisozluk.com/?q="+p2+"\">"+p1+"</a>)";}
function gbkzconvert(str,p1,offset,s){
var p2=p1.replace(/ /g,"+");
var splitted = p1.split(":");
if(splitted.length == 1)
return "<a class=\"gb\" href=\"https://eksisozluk.com/?q="+p2+"\">"+p1+"</a>";
if(splitted.length == 2 && splitted[1] != "") 
var p3=splitted[1].replace(/ /g,"+");
return splitted[0]+"<sup class=\"ab\"><a href=\"https://eksisozluk.com/?q="+p3+"\" title=\"(bkz: "+p1+"\")>*</a></sup>";
//return "`"+p1+"`";
}
function araconvert(str,p1,offset,s){return "(ara: <a class=\"b\" href=\"https://eksisozluk.com/basliklar/ara?searchform.keywords="+p1+"\">"+p1+"</a>)";}
});
}
//

// hex alt / üst
function h2d(h) {return parseInt(h,16);}
function d2h(d) {return d.toString(16);}
function renk(hex,deger)
{if(hex=="transparent" || hex==""){return renk6;}
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(deger>0){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;}
//

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;}

    //mesaj & olay kontrol
    function mesajolaykontrol() {
if($("#top-bar").hasClass("loggedin")==false){return false;}
        $.ajax({
            'url': 'https://eksisozluk.com/mesaj',
            'dataType': "html",
            'success': function(data) {
				var j_data=$(data);
                    //
                    var ma = []; //mesaj atanlar

                    j_data.find("#message-thread-list-form li article.unread a h2").each(function() {
                        var dis = $(this),
                            msj_a = dis.html().split("<small>")[0],
                            msj_s = dis.find("small").text(),
                            msj_p = dis.closest("article.unread").find("p").text(),
                            msj_a2 = dis.closest("article.unread").find("a").attr("href"),
                            msj_t = msj_a + "," + msj_s + "," + msj_p + "," + msj_a2;
                        ma.push(msj_t);
                    });

					var ms=ma.length,ht=$("head title");
                    if (ms == 0) {
                        $(".messages a").removeClass("new-update");
                        localStorage.setItem(storage_prefix + "msj_a", "");
                        localStorage.setItem(storage_prefix + "msj_s", "");
						var httl=ht.text().split(") ")[1];ht.text(httl);
                    } else {
						//
						
						if(ht.text().indexOf(')')> 0){var httl=ht.text().split(") ")[1];ht.text("("+ms+") "+httl+"");}else{ht.prepend("("+ms+") ");}
                        //
						var msj_a = ma[0].split(",")[0],
                            msj_s = ma[0].split(",")[1],
                            msj_p = ma[0].split(",")[2],
                            msj_a2 = ma[0].split(",")[3];


                        if (msj_a != localStorage.getItem(storage_prefix + "msj_a") || msj_s > localStorage.getItem(storage_prefix + "msj_s")) {
if($(".messages a").hasClass("new-update")==false){
						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;çok aşık;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",
                                splits = pre_msg.split(";"),
                                rastgele = 1 + Math.floor(Math.random() * splits.length - 1);
								
                            $("#user-notifications ul").html("").append("<li class=success>" + splits[rastgele] + " <a>" + msj_a + "</a> mesaj gönderdi</li>");
                            setTimeout("$('#user-notifications li').remove();", 8000);



                            $(".messages a").addClass("new-update");

}
                        }

                        localStorage.setItem(storage_prefix + "msj_a", msj_a);
                        localStorage.setItem(storage_prefix + "msj_s", msj_s);
                    }
                    //

                    //olay kontrol
                    var o = j_data.find("#top-navigation ul li.tracked a.new-update").length;
                    if (o > 0) {
						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();
}
                        $(".tracked a").addClass("new-update");
					}
                    } else {
                        $(".tracked a").removeClass("new-update");
                    }
                    //
					

                } //success
        }); //ajax


    }
	//

    //
    function entry_tara() {
		//
		var sp=0;
		//
		
        //ayrac_getir hazırlık
        //
        var ayracgtr = _html_.getAttribute("ayrac_getir");
        //

        //entry no hazırlık
        var k1 = document.querySelector(".showall");
        if (k1) {
            var e = parseInt(k1.innerHTML),
                k = 0;
            while (k1 = k1.nextSibling) {
                if (k1.id == "entry-list") {
                    k = 1;
                }
            }
        }

        var s1 = document.querySelector("#topic .pager");
        if (s1) {
            var s = parseInt(s1.getAttribute('data-currentpage')) - 1;
        }
        //  
        //
        var ee,
		entrylistli = document.querySelectorAll('#entry-list>li');

        for (var i = 0, len = entrylistli.length; i < len; i++) { //entry-list>li each

            var currentItem = entrylistli[i],
                eid = currentItem.getAttribute("data-id");


                //entry no
                if (e && k == "1") {
                    ee = e + 1 + i;
                } else {
                    if (s) {
						if($("#top-bar").hasClass("loggedin")==true){ee = sayfa_entry * s + 1 + i;}else{ee = 10 * s + 1 + i;}
                    } else {
                        ee = 1 + i;
                    }
                }
                //	


            currentItem.setAttribute("rakkam",ee);
            //
            //entry no




            //ayrac aktifse entry'nin pozisyonu için class ekleniyor
            if (eid == ayracgtr) {
                currentItem.classList.add("ayrac");
                currentItem.querySelector("footer .feedback .ayrac_buton").classList.add("ok");

            }
            //				


                //spoiler
                var spo_entrylistli = currentItem.querySelectorAll("a.b[href*='spoiler']");
                for (var i_spo = spo_entrylistli.length; i_spo--;) {
                    if (spo_entrylistli[i_spo].nextSibling && spo_entrylistli[i_spo].nextSibling.textContent.indexOf('spoiler') != 0) {
                        spo_entrylistli[i_spo].insertAdjacentHTML('afterend', "<span class='arrow-spo " + arrowdown + "'></span>");
                    }
                }

                var spo_entrylistli = currentItem.querySelectorAll(".arrow-spo");
                for (var i_spo = spo_entrylistli.length; i_spo--;) {
                    if (i_spo % 2 == 0) {

                        var $set = $(),
                            nxt = spo_entrylistli[i_spo].nextSibling;
                        while (nxt) {
                            if (!$(nxt).is(".arrow-spo:odd")) {
                                $set.push(nxt);
                                nxt = nxt.nextSibling;
                            } else break;
                        }
                        $set.wrapAll('<div class="spoiler-icerigi spoyler" />');

						if(sp==0){
						var sp=1;
						css_ekle("#spolari_tersle{display:inline-block;}");
						}
                    } else {
                        spo_entrylistli[i_spo].style.display = 'none';
                    }
                }
                //spoiler    

   






        } //entry-list>li each





    }
    //entry tara    

	function sf_gizle(){
				var t=$("#partial-index").find("h2:first").text().trim();
				
				if(t!="kenar" && t!="son") 
			{
				if(gizli_kelime!="" && gizli_kelime.length>1){
				var	li = document.querySelectorAll('.topic-list>li>a'),split=gizli_kelime.split(";");
				for (var i = split.length; i--;) {
					for (var v = 0, len = li.length; v < len; v++) {
						if(li[v].childNodes[0].textContent.trim().indexOf(split[i])>-1 && split[i]!="" && split[i]!=" "){$(li[v]).parent().remove();}	
					}
				}
				}

			}			
	}

//spoiler terslen
    $(document).on("click", "#spolari_tersle", function(e) {
		$("#topic #entry-list>li").each(function(){
			var dis=$(this);
		dis.find(".spoyler").toggleClass("sakla , spoiler-icerigi");
		dis.find(".arrow-spo").toggleClass("" + arrowup + " " + arrowdown + "");
		});
	});

//
	
	//
    $(document).on("click", ".gomulu_after_spo", function(e) {
        e.preventDefault();	
		var dis=$(this);

		dis.next().next().toggleClass("sakla spoiler-icerigi");
        dis.next().toggleClass("" + arrowup + " " + arrowdown + "");

		if(devamini_gor==1){dis.closest("#entry-list>li").find(".content").css({"max-height":"100%","overflow":"visible","width":"auto"});}
	});
	
    $(document).on("click", ".gomulu_after", function(e) {
        e.preventDefault();	
		var self=$(this),dis=self.prev("a"), href = dis.attr("href");

		var a=window.getComputedStyle(dis[0],':before');
		if(a){
			a=a.content;
			var elli=dis.closest("#entry-list>li"),
				eid=elli.attr("data-id");
		if(devamini_gor==1){elli.find(".content").css({"max-height":"100%","overflow":"visible","width":"auto"});}
		switch(true){
			
		case(a.indexOf("beforegorsel")>-1):
			var aid = href.replace(/[^a-z0-9]/gi,'')+eid;
			 if (dis.attr("acik")!=1) {dis.attr("acik",1);if(href!=undefined&&href!=""){href=href.replace("imgur.com","filmot.com");}
				 if(href.indexOf(".gifv")>-1){
					 self.after("<div class='rsm-embed" + aid + "'><br><video autoplay loop src=" + href.replace("gifv","webm") + "></video></div>"); 
					 }
					 else
					 {
					self.after("<div class='rsm-embed" + aid + "'><br><img src=" + href + "></imag></div>");
				 }
				} else {dis.attr("acik",0);$(".rsm-embed" + aid + "").remove();}
		break;	
	
		case(a.indexOf("beforeytb")>-1):
			var yt_id = Getvideoid(href);
			 if (dis.attr("acik")!=1) {dis.attr("acik",1);
			 self.after("<div class='ytb-embed" + eid+yt_id + "'><br><iframe class=gomuluvideo src=//www.youtube.com/embed/" + yt_id + "?autoplay=1&html5=1&origin=https://eksisozluk.com frameborder=0 allowfullscreen></iframe></div>");
			} else {dis.attr("acik",0);$(".ytb-embed" + eid+yt_id + "").remove();}
		break;

		case(a.indexOf("beforetwt")>-1):
        var aid = href.replace(/[^a-z0-9]/gi,'')+eid,tweet_id = href.split("/")[5];
         if (dis.attr("acik")!=1) {dis.attr("acik",1);
			self.after("<div class='twt-embed" + aid + "'></div>");
			/*         
			$.getJSON("//api.twitter.com/1/statuses/oembed.json?id="+tweet_id+"&callback=?",function(d) {
                $(".twt-embed" + aid + "").html("<br>"+d.html);
            });	
			*/
			GM_xmlhttpRequest({
			  method: "GET",format:"json",
			  url: "https://api.twitter.com/1/statuses/oembed.json?id="+tweet_id+"",
			  onload: function(response) {
						 $(".twt-embed" + aid + "").html("<br>"+JSON.parse(response.responseText).html);
			  }
			});
			} else {dis.attr("acik",0);$(".twt-embed" + aid + "").remove();}					
		break;

		case(a.indexOf("beforeinsta")>-1):
        var aid = href.replace(/[^a-z0-9]/gi,'')+eid;

         if (dis.attr("acik")!=1) {dis.attr("acik",1);
			self.after("<div class='insta-embed" + aid + "'></div>");
            /*$.getJSON("//api.instagram.com/oembed?url=" + href, function(d) {
                $(".insta-embed" + aid + "").html("<br>"+d.html);
            });
			*/
			GM_xmlhttpRequest({
			  method: "GET",format:"json",
			  url: "https://api.instagram.com/oembed?url=" + href,
			  onload: function(response) {
				  $(".insta-embed" + aid + "").html("<br>"+JSON.parse(response.responseText).html);
			  }
			});
			} else {dis.attr("acik",0);$(".insta-embed" + aid + "").remove();}					
		break;			

		case(a.indexOf("beforebkz")>-1):		

        var aid = eid+href.split("/entry/")[1];
        if (dis.attr("acik")!=1) {dis.attr("acik",1);
			self.after("<div class='bkz-ana bkz-embed" + aid + "'></div>");

            if (ajax1) {
                ajax1.abort();
            }
            ajax1 = $.ajax({
                'url': "https://eksisozluk.com"+href,
                'dataType': "html",
                'success': function(dta) {
                    var dt=$(dta),t = dt.find("h1#title").text(),
                        y = '<ul id="entry-list">' + dt.find("#entry-list li:first").prepend("<h2><a href=" + href + ">" + t + "</a></h2>").wrap('<p/>').parent().html() + '</ul>';
                    $(".bkz-embed" + aid + "").append(y);
                    //Alayı burada//
                    ek$i.entryMenu.attach(($(".bkz-embed" + aid + "").find("#entry-list > li:not([data-menu-attached])")), "aaa");
                    k = $(".bkz-embed" + aid + "").find("footer");
                    m = k.data();
                    p = m.id;
                    // attachOptions(p,k);
                }
            });
        } else {
            dis.attr("acik",0);
            $(".bkz-embed" + aid + "").remove();
        }			
			break;
		}

	
		
		
			}		
    });
	//		
	
    //başlıkta ara
    $(document).on("mousedown", "#in-topic-search-menu", function(e) {
        e.preventDefault();

        var a = $("#in-topic-search-options");
            var dis = $(this);
            //başlıkta ara için eklemeler
            var _ttl = document.getElementById("title");
            if (_ttl) {
                var ara_title = _ttl.getAttribute("data-title"),
                    ara_href = "https://www.google.com/search?q=" + ara_title,
                    ara_href2 = "https://www.google.com/search?q=" + ara_title + "&source=lnms&tbm=isch",
                    ara_href3 = "http://www.yandex.com.tr/search/?lr=11505&clid=2143529&text=" + ara_title + "",
                    ara_href4 = "https://www.youtube.com/results?search_query=" + ara_title + "",
                    ara_href5 = "https://twitter.com/search?src=typd&q="+ara_title+"",
                    ara_href6 = "http://us.imdb.com/find?q="+ara_title+"",
                    ara_href7 = "http://tr.wikipedia.org/w/index.php?title=Özel%3AAra&profile=default&search="+ara_title+"&fulltext=Search",
                    konu_href = "https://eksisozluk.com" + document.querySelectorAll("#title a")[0].getAttribute("href") + "";	   



            }
            if ($(".paylasgrup").length == 0) {
                a.find("li:first").before("<li class=paylasgrup>\
		<span class='paylas_f'><a target=_blank title='facebook'><i class='fa fa-facebook'></i><label><span>paylaş</span></label></a></span>\
		<span class='paylas_t2'><a target=_blank title='twitter'><i class='fa fa-twitter'></i><label><span>paylaş</span></label></a></span>\
		<span class='paylas_g2'><a target=_blank title='google görsel'><i class='fa fa-google'></i><label><span>görsel</span></label></a></span>\
		<span class='paylas_g1'><a target=_blank title='google'><i class='fa fa-google'></i><label><span>ara</span></label></a></span>\
		<span class='paylas_y'><a target=_blank title='fenerbahçe yandex'><i class='fa fa-yahoo'></i><label><span>ara</span></label></a></span>\
		<span class='paylas_yt'><a target=_blank title='youtube'><i class='fa fa-youtube-play'></i><label><span>ara</span></label></a></span>\
		<span class='paylas_t'><a target=_blank title='twitter'><i class='fa fa-twitter'></i><label><span>ara</span></label></a></span>\
		<span class='paylas_i'><a target=_blank title='imdb'><i class='fa fa-film'></i><label><span>ara</span></label></a></span>\
		<span class='paylas_w'><a target=_blank title='wikipedia'><i class='fa fa-wikipedia-w'></i><label><span>ara</span></label></a></span>\
		</li>\
		<li class='basliktaara'></li>");


                $("#in-topic-search-menu form").appendTo(".basliktaara");

                a.find("li a:contains('benimkiler')").parent().after("\
		<li class='sahip_buton'><a>başlığın sahibi neler yazmış?</a></li><li><a href='"+document.querySelectorAll("#title a")[0].getAttribute("href")+"?a=caylaklar'>çaylaklar bugün ne yazmış?</a></li>"); //<li class=tasi><a>taşı</a></li>

            }


            document.querySelectorAll(".paylas_f>a")[0].setAttribute("href", $("#topic-share-menu a:first").attr("href"));
            document.querySelectorAll(".paylas_t2>a")[0].setAttribute("href", $("#topic-share-menu a:last").attr("href"));
            document.querySelectorAll(".paylas_g1>a")[0].setAttribute("href", ara_href);
            document.querySelectorAll(".paylas_g2>a")[0].setAttribute("href", ara_href2);
            document.querySelectorAll(".paylas_y>a")[0].setAttribute("href", ara_href3);
            document.querySelectorAll(".paylas_yt>a")[0].setAttribute("href", ara_href4);
            document.querySelectorAll(".paylas_t>a")[0].setAttribute("href", ara_href5);
            document.querySelectorAll(".paylas_i>a")[0].setAttribute("href", ara_href6);
            document.querySelectorAll(".paylas_w>a")[0].setAttribute("href", ara_href7);


            //


    });
    // 	



	//tema++ ayarları
    $(document).on("click", ".temaayarlari", function(e) {
        e.preventDefault();
		
//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">tercihler</label><div id="secme-content2" 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">listeler</label><div id="secme-content5" class="secme-content"></div></li><li><input type="radio" name="secmece" id="secme6"><label for="secme6">gelişmiş</label><div id="secme-content6" class="secme-content"></div></li><li><input type="radio" name="secmece" id="secme8"><label for="secme8">hakkında</label><div id="secme-content8" class="secme-content"></div></li><li id=kapakapa><input type="radio" name="secmece" id="secme9"><label class="kapakapa" for="secme9">X</label><div id="secme-content9" class="secme-content"></div></li></ul>');
$(".secme-content").append("<div id=tema_butonlar><button class='tema_fabrika more-data'>fabrika ayarları</button><button class='tema_ayar_getir more-data'>benim ayarlarım</button><button class='tema_ayar_gonder more-data'>ayarlarımı kaydet</button><button class='tema_uygula more-data'>uygula</button><button class='tema_kaydetme more-data'>vazcay</button></div>");
$("#secme-content0").append("<br><div class=t_a_sl>temalar:</div><select id=temalarim><option value=sade>sade</option><option value=fabrika>açık gri - lacivert</option><option value=fabrikamavi>açık gri - mavi</option><option value=fabrikayesil>açık gri - yeşil</option><option value=fabrikamor>açık gri - mor</option><option value=fabrikapembe>açık gri - pembe</option><option value=fabrikakirmizi>açık gri - kırmızı</option><option value=grilacivert>gri - lacivert</option><option value=grimavi>gri - mavi</option><option value=grimor>gri - mor</option><option value=grimsi>gri - açık mor</option><option value=griyesil>gri - koyu yeşil</option><option value=grikahve>gri - kahve</option><option value=gri2>koyu gri - gri</option><option value=fabrika_gece>koyu gri - yeşil</option><option value=ates>koyu gri - turuncu</option><option value=ates2>koyu gri - açık turuncu</option><option value=sarimsi>koyu gri - sarı</option><option value=pembemsi>koyu gri - pembe</option><option value=eksiyesil>koyu gri - ekşi yeşili</option><option value=acikkahve>açık kahve</option><option value=kahveton>kahve ve tonları</option><option value=sarilacivert>sarı - lacivert</option><option value=yol>yol</option><option value=dw>doctor who</option><option value=td>true detective</option><option value=pof>person of interest</option><option value=hmd>house</option><option value=bb>breaking bad</option><option value=mermer>mermer</option><option value=pisi>pisipisi</option><option value=sw>star wars</option><option value=lord>the lord of the rings</option><option value=got>game of thrones</option><option value=hp>harry potter</option><option value=kfb>koyu fenerbahçeli</option><option value=asl>aslan</option><option value=krt>kartal</option><option value=antika>antika</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=steam>steam</option><option value=dietcoke>diet coke</option><option value=owb>obsessed with blue</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_sl>üst menü yazı rengi:</div><input type=text class=renkler id=renk17 value="+renk17+"><hr>\
<div class=t_a_sl>fon rengi:</div><input type=text class=renkler id=renk0 value="+renk0+">\
<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_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_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_sl>sol frame başlıkları ayıran çizgi rengi:</div><input type=text class=renkler id=renk18 value="+renk18+">\
<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_sl>entry yazı rengi:</div><input type=text id=renk5 class=renkler value="+renk5+">\
<div class=t_a_sl>entry link rengi:</div><input type=text id=renk4 class=renkler value="+renk4+">\
<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_sl>yardımcı menülerin rengi:</div><input type=text class=renkler id=renk6 value="+renk6+">\
<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=arial>arial</option><option value='comic'>comic sans</option><option value='georgia'>georgia</option><option value='helvetica'>helvetica</option><option value='lucida'>lucida sans unicode</option><option value=source>source sans pro</option><option value=tahoma>tahoma</option><option value=times>times new roman</option><option value=titillium>titillium</option><option value=trebuchet>trebuchet</option><option value=verdana>verdana</option>"+font_select+"</select>\
<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><option value=18px>18px</option><option value=20px>20px</option><option value=24px>24px</option>"+font_boyutu+"</select><hr>\
<div class=t_a_sl>sayfa başı entry:</div><select id=sayfa_entry><option value=25>25</option><option value=50>50</option><option value=75>75</option><option value=100>100</option>"+sayfa_entry+"></select><hr>\
<div class=t_a_sl>geniş ekran:</div><input type=checkbox id=genis_modu value="+genis_modu+"><hr>\
<div class=t_a_sl>mesaj & olay'ı otomatik kontrol et:</div><input title='mesaj gelip gelmediğini veya olay bildirimi olup olmadığını kontrol eder.' type=checkbox id=mesaj_olay value="+mesaj_olay+"><hr>\
<div class=t_a_sl>devamını okuyayım:</div><input type=checkbox id=devamini_gor value="+devamini_gor+"><hr>\
<div class=t_a_sl>kimi takip etmeli:</div><input type=checkbox id=takip_modu value="+takip_modu+"><hr>\
<div class=t_a_sl>başlığın kanalları:</div><input type=checkbox id=kanal_modu value="+kanal_modu+"><hr>\
<div class=t_a_sl>konulu video:</div><input type=checkbox id=video_modu value="+video_modu+"><hr>\
<div class=t_a_sl>ekşi şeyler:</div><input type=checkbox id=sey_modu value="+sey_modu+"><hr>\
<div class=t_a_sl>otomatik sol frame yenile:</div><input type=checkbox id=sf_yenile value="+sf_yenile+"><hr>\
<div class=t_a_sl>entry'leri çerçeveye al:</div><input type=checkbox id=cerceve_modu value="+cerceve_modu+"><hr>\
<div class=t_a_sl>entry'leri canlı canlı ön izleme şeysi:</div><input type=checkbox id=onizleme_modu value="+onizleme_modu+"><hr>\
<div class=t_a_sl>entry butonları (şükela fav vs.) entry üzerine gelince görünsün:</div><input title='' type=checkbox id=fbmod1 value="+fbmod1+"><hr>\
<div class=t_a_sl>entry butonları (şükela fav vs.) sağda olsun:</div><input title='' type=checkbox id=fbmod3 value="+fbmod3+"><hr>\
<div class=t_a_sl>sol frame kaydırma çubuğunu chrome gibi yap:</div><input title='' type=checkbox id=scroll_modu value="+scroll_modu+"><hr>\
<div class=t_a_sl>sol frame başlıklarını renklendir:</div><input title='' type=checkbox id=sf_renk value="+sf_renk+"><hr>");
//


//
$("#secme-content4").append("<br>\
<br><hr><div class=t_a_sl>sesli bildirimler</div>\
<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+">\
<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>\
<div class=uyari>sesli bildirim için örnek linkler: <br>https://dl.dropboxusercontent.com/u/82207064/tema/audio/snc.mp3<br>https://dl.dropboxusercontent.com/u/82207064/tema/audio/pay.mp3<br>https://dl.dropboxusercontent.com/u/82207064/tema/audio/alt_FacebookPop.mp3<br>https://dl.dropboxusercontent.com/u/82207064/tema/audio/alt_HTCGamma.mp3<br>https://dl.dropboxusercontent.com/u/82207064/tema/audio/alt_HTCPebbles.mp3<br>https://dl.dropboxusercontent.com/u/82207064/tema/audio/alt_BlackberryEager.mp3<br>https://dl.dropboxusercontent.com/u/82207064/tema/audio/alt_CoinDrop.mp3<br>https://dl.dropboxusercontent.com/u/82207064/tema/audio/alt_TempleBell.mp3</div>");
//
$("#secme-content5").append("<br>\
<div class=t_a_sl>bu kelimeleri içeren başlıkları gizle:</div><textarea rows=5 class=kutukutu title='belirttiğiniz kelimeyi içeren başlıkları gözden uzak tutar.' id=gizli_kelime value="+gizli_kelime+"></textarea><hr>\
<div class=uyari>yazarlar(başlıklar) arasına ; ekleyin. örnek: futurama;ffmvain</div>");
//
$("#secme-content6").append("<br>\
<br><hr><div class=t_a_sl>css ekle:</div><textarea rows=5 id=mycss value="+mycss+"></textarea><hr>\
<div class=t_a_sl>fon görseli:</div><input type=text id=fon_resmi value="+fon_resmi+">\
<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>\
<div class=t_a_sl>mesaj var görseli:</div><input type=text id=mesaj_var value="+mesaj_var+">\
<div class=t_a_sl>olay var görseli:</div><input type=text id=olay_var value="+olay_var+">\
<div class=t_a_sl>logo:</div><input type=text id=logo_var value="+logo_var+">\
<div class=uyari>görsel kullanmak istemiyorsanız ilgili kutuyu boş bırakın.</div>");
//<button id=export class=more-data>ayarlarımı dosya olarak ver</button><button id=import class=more-data>ayarlarımı dosyadan al</button><input id=fayl type=file></input>");
//

//
$("#secme-content8").append("<br>\
<div class=t_a_sl></div><div class='t_a_sg hakk'><a href='/tema--4544437'>tema++</a></div><hr>\
<div class=t_a_sl>versiyon:</div><div class='t_a_sg hakk'><a href='/tema--4544437'>"+temaversiyon+"</a></div><hr>\
<div class=t_a_sl>son güncelleme tarihi:</div><div class='t_a_sg hakk'><a>"+tema_tarih+"</a></div><hr>\
<div class=t_a_sl>android cihazlar için:</div><div class='t_a_sg hakk'><a href='/eksicep--4986749'>ekşicep</a></div><hr>");





$("#gizli_kelime").val(gizli_kelime);
$("#sayfa_entry").val(sayfa_entry);
$("#fon_resmi").val(fon_resmi);
$("#mesaj_var").val(mesaj_var);
$("#olay_var").val(olay_var);
$("#logo_var").val(logo_var);

$("#mycss").val(mycss);
$("#fon_opacity").val(fon_opacity);
$("#mesaj_ses").val(mesaj_ses);
$("#olay_ses").val(olay_ses);
$("#font_select").val(font_select);
$("#font_boyutu").val(font_boyutu);

$("#temalarim").val(temalarim);



if(mesaj_olay=="1"){$("#mesaj_olay").prop("checked",true);}else{$("#mesaj_olay").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(kanal_modu=="1"){$("#kanal_modu").prop("checked",true);}else{$("#kanal_modu").prop("checked",false);}
if(scroll_modu=="1"){$("#scroll_modu").prop("checked",true);}else{$("#scroll_modu").prop("checked",false);}
if(sf_renk=="1"){$("#sf_renk").prop("checked",true);}else{$("#sf_renk").prop("checked",false);}
if(onizleme_modu=="1"){$("#onizleme_modu").prop("checked",true);}else{$("#onizleme_modu").prop("checked",false);}
if(takip_modu=="1"){$("#takip_modu").prop("checked",true);}else{$("#takip_modu").prop("checked",false);}
if(sey_modu=="1"){$("#sey_modu").prop("checked",true);}else{$("#sey_modu").prop("checked",false);}
if(video_modu=="1"){$("#video_modu").prop("checked",true);}else{$("#video_modu").prop("checked",false);}
if(genis_modu=="1"){$("#genis_modu").prop("checked",true);}else{$("#genis_modu").prop("checked",false);}
if(devamini_gor=="1"){$("#devamini_gor").prop("checked",true);}else{$("#devamini_gor").prop("checked",false);}
if(onizleme_modu=="1"){$("#onizleme_modu").prop("checked",true);}else{$("#onizleme_modu").prop("checked",false);}
if(sf_yenile=="1"){$("#sf_yenile").prop("checked",true);}else{$("#sf_yenile").prop("checked",false);}



 //mini__colors(); 
$(".renkler").minicolors();


if($("#top-navigation li a[href^='/biri/']").attr("title")===undefined){$(".tema_ayar_getir,.tema_ayar_gonder,#haniben").hide();}
if(sessionStorage.getItem("sekmetut")===null){$("#secme0").prop("checked",true);}else{var sekmetut=sessionStorage.getItem("sekmetut");$("#"+sekmetut+"").prop("checked",true);}


}		

		
	});


    $(document).on("click", ".tema_fabrika", function(e) {
$(this).before("<div class=fabrika_dialog><br><input type=checkbox checked class=fabrika_check>listelerimi koru (gizli başlıklar, css ekle vs.)<br><br><button class='fabrika_buton2 more-data'>vazcay</button><button class='fabrika_buton 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=="fabrikamor"):fabrikamor();break;
case (temalarim=="fabrikayesil"):fabrikayesil();break;
case (temalarim=="fabrikamavi"):fabrikamavi();break;
case (temalarim=="fabrikapembe"):fabrikapembe();break;
case (temalarim=="fabrikakirmizi"):fabrikakirmizi();break;
case (temalarim=="acikkahve"):acikkahve();break;
case (temalarim=="kahveton"):kahveton();break;
case (temalarim=="sarilacivert"):sarilacivert();break;
case (temalarim=="grilacivert"):grilacivert();break;
case (temalarim=="grimavi"):grimavi();break;
case (temalarim=="grimor"):grimor();break;
case (temalarim=="grikahve"):grikahve();break;
case (temalarim=="griyesil"):griyesil();break;
case (temalarim=="sade"):sade();break;
case (temalarim=="fabrika_gece"):fabrika_gece();break;
case (temalarim=="ates"):ates();break;
case (temalarim=="ates2"):ates2();break;
case (temalarim=="grimsi"):grimsi();break;
case (temalarim=="sarimsi"):sarimsi();break;
case (temalarim=="pembemsi"):pembemsi();break;
case (temalarim=="gri2"):gri2();break;
case (temalarim=="eksiyesil"):eksiyesil();break;
case (temalarim=="kfb"):koyu_fenerbahceli();break;
case (temalarim=="asl"):aslan();break;
case (temalarim=="krt"):kartal();break;
case (temalarim=="bkb"):beslenirkibu();break;
case (temalarim=="pof"):personofinterest();break;
case (temalarim=="td"):truedetective();break;
case (temalarim=="sw"):starwars();break;
case (temalarim=="got"):got();break;
case (temalarim=="lord"):lord();break;
case (temalarim=="hp"):hp();break;
case (temalarim=="bb"):breakingbad();break;
case (temalarim=="dw"):doctorwho();break;
case (temalarim=="hmd"):housemd();break;
case (temalarim=="mermer"):mermer();break;
case (temalarim=="pisi"):pisipisi();break;
case (temalarim=="pis"):cokpis();break;
case (temalarim=="adidas"):adidas();break;
case (temalarim=="ssgrengi"):ssgrengi();break;
case (temalarim=="steam"):steam();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=="antika"):antika();break;
}	
set_ayarlar(0);//1
});
$(".fabrika_buton2").click(function(e){$(".fabrika_dialog").remove();});

});
//

    //benim ayarlarım
    $(document).on("click", ".tema_ayar_getir", function(e) {

        parse_oku();

    });
    //

    //ayalarımı kaydet
    $(document).on("click", ".tema_ayar_gonder", function(e) {
        alayar(1);
        //set_ayarlar(1);

    });
    //

//uygula
    $(document).on("click", ".tema_uygula", function(e) {
        alayar(0);
	});
//

//vazcay
    $(document).on("click", ".tema_kaydetme,#kapakapa", function(e) {
		sekmetut();
		$("#tema_ayarlar").remove();
        $(".temaayarlari").removeClass("acik");

	});

//	


    $(document).on("change", "#temalarim", function(e) {
		//ortak(0);
		var v=$(this).val();
		tema_secim(v);
		set_ayarlar(0);//1
});

function tema_secim(v)
{
	switch(true) {
case (v=="sade"):sade();break;
case (v=="fabrika"):fabrika();break;
case (v=="fabrikamor"):fabrikamor();break;
case (v=="fabrikayesil"):fabrikayesil();break;
case (v=="fabrikamavi"):fabrikamavi();break;
case (v=="fabrikapembe"):fabrikapembe();break;
case (v=="fabrikakirmizi"):fabrikakirmizi();break;
case (v=="acikkahve"):acikkahve();break;
case (v=="kahveton"):kahveton();break;
case (v=="sarilacivert"):sarilacivert();break;
case (v=="grilacivert"):grilacivert();break;
case (v=="grimavi"):grimavi();break;
case (v=="grimor"):grimor();break;
case (v=="grikahve"):grikahve();break;
case (v=="griyesil"):griyesil();break;
case (v=="fabrika_gece"):fabrika_gece();break;
case (v=="ates"):ates();break;
case (v=="ates2"):ates2();break;
case (v=="grimsi"):grimsi();break;
case (v=="pembemsi"):pembemsi();break;
case (v=="gri2"):gri2();break;
case (v=="eksiyesil"):eksiyesil();break;
case (v=="sarimsi"):sarimsi();break;
case (v=="kfb"):koyu_fenerbahceli();break;
case (v=="asl"):aslan();break;
case (v=="krt"):kartal();break;
case (v=="bkb"):beslenirkibu();break;
case (v=="td"):truedetective();break;
case (v=="sw"):starwars();break;
case (v=="got"):got();break;
case (v=="lord"):lord();break;
case (v=="hp"):hp();break;
case (v=="pof"):personofinterest();break;
case (v=="bb"):breakingbad();break;
case (v=="dw"):doctorwho();break;
case (v=="mermer"):mermer();break;
case (v=="hmd"):housemd();break;
case (v=="pisi"):pisipisi();break;
case (v=="pis"):cokpis();break;
case (v=="adidas"):adidas();break;
case (v=="ssgrengi"):ssgrengi();break;
case (v=="steam"):steam();break;
case (v=="dietcoke"):dietcoke();break;
case (v=="yol"):yol();break;
case (v=="req4"):req4();break;
case (v=="neci"):neci();break;
case (v=="zpc"):zpc();break;
case (v=="owb"):owb();break;
case (v=="antika"):antika();break;
}	

}	
	
var a=document.querySelectorAll("#export");if(a){for (b=0;b<a.length;b++){a[b].onclick=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();

}}}


var a=document.querySelector("#fayl");if(a){a.onchange=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(true);};})(f);reader.readAsText(f);}
	
}}

var a=document.querySelector("#import");if(a){a.onclick=function(e){

	$('#fayl').trigger('click');

}}

//rastgele
    $(document).on("click", "#getirbisiler", function(e) {
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();
$("#sfmenu").attr("acik",0).hide();
	});
//	


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();
    renk9=$("#renk9").val();
    renk15=$("#renk15").val();	
    renk16=$("#renk16").val();
    renk17=$("#renk17").val();	
    renk18=$("#renk18").val();	
	    mesaj_ses=$("#mesaj_ses").val();
    olay_ses=$("#olay_ses").val();
	 mycss=$("#mycss").val();
		sayfa_entry=$("#sayfa_entry").val();
		    gizli_kelime=$("#gizli_kelime").val();
			    font_select=$("#font_select").val();
    font_boyutu=$("#font_boyutu").val();
    temalarim=$("#temalarim").val();

	    fon_resmi=$("#fon_resmi").val(); 
	    mesaj_var=$("#mesaj_var").val(); 
	    olay_var=$("#olay_var").val(); 
	    logo_var=$("#logo_var").val(); 
	fon_opacity=$("#fon_opacity").val();
	fbmod1=($("#fbmod1").is(":checked")==true)?1:0;	
	fbmod3=($("#fbmod3").is(":checked")==true)?1:0;	
		onizleme_modu=($("#onizleme_modu").is(":checked")==true)?1:0;
	 	sf_yenile=($("#sf_yenile").is(":checked")==true)?1:0;
	 	kanal_modu=($("#kanal_modu").is(":checked")==true)?1:0;
	 	sf_renk=($("#sf_renk").is(":checked")==true)?1:0;
	 	scroll_modu=($("#scroll_modu").is(":checked")==true)?1:0;
	 	takip_modu=($("#takip_modu").is(":checked")==true)?1:0;
	 	video_modu=($("#video_modu").is(":checked")==true)?1:0;
	 	sey_modu=($("#sey_modu").is(":checked")==true)?1:0;
	 	genis_modu=($("#genis_modu").is(":checked")==true)?1:0;
	 	devamini_gor=($("#devamini_gor").is(":checked")==true)?1:0;
		 	cerceve_modu=($("#cerceve_modu").is(":checked")==true)?1:0;

			set_ayarlar(mod);

}	


    function set_ayarlar(mod) {
        sekmetut();
    ayarlar={"temalarim":temalarim,"renk0":renk0,"renk1":renk1,"renk2":renk2,"renk3":renk3,"renk4":renk4,"renk5":renk5,"renk6":renk6,"renk9":renk9,"renk15":renk15,"renk16":renk16,"renk17":renk17,"renk18":renk18,"sf_renk":sf_renk,"scroll_modu":scroll_modu,"kanal_modu":kanal_modu,"takip_modu":takip_modu,"sey_modu":sey_modu,"video_modu":video_modu,"genis_modu":genis_modu,"devamini_gor":devamini_gor,"sayfa_entry":sayfa_entry,"mesaj_ses":mesaj_ses,"olay_ses":olay_ses,"mycss":mycss,"gizli_kelime":gizli_kelime,"font_select":font_select,"font_boyutu":font_boyutu,"sf_yenile":sf_yenile,"fbmod3":fbmod3,"fbmod1":fbmod1,"cerceve_modu":cerceve_modu,"mesaj_var":mesaj_var,"logo_var":logo_var,"olay_var":olay_var,"fon_resmi":fon_resmi,"fon_opacity":fon_opacity,"onizleme_modu":onizleme_modu};
   
        localStorage.setItem(storage_prefix + "ayarlar", JSON.stringify(ayarlar));
        //parse yaz
        if (mod == "0") {
            location.reload(true);
        }
        if (mod == "1") {
            var n = $("#top-navigation li a[href^='/biri/']").attr("title");
            if (n !== null && n !== undefined) {
                parse_yaz(n, JSON.stringify(ayarlar));
            }
        }
        if (mod == "2") {
            return;
        }
        //	
    }


//
function sekmetut(){$("#tema_ayarlar .secmece li input[type='radio']").each(function(){if($(this).is(":checked")==true){var sekmetut=$(this).attr("id");sessionStorage.setItem("sekmetut",sekmetut);};});}
//
    // 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;
        }
    }
    //
    //parse.com
    function parse_oku() {
        var n = $("#top-navigation li a[href^='/biri/']").attr("title");
        if (n !== null && n !== undefined) {
            var currentUser = Parse.User.current();
            if (currentUser) { //	
                ayaroku(currentUser.id, n);
            } else {

                //parse giriş
                Parse.User.logIn(n, n, { //user & pass
                    success: function(user) {
                        ayaroku(user.id, n);
                    },
                    error: function(user, error) {
                  //      ek$i.addResponse("alamadık ayarları : (", "error");
                    }
                });
                //

            }
        }
    }

    function parse_yaz(username, value) {
        var currentUser = Parse.User.current();
        if (currentUser) { //parse girişi yapılmışsa güncelle
            ayar_guncelle(username, value, currentUser.id);
        } else { //parse girişi yapılmamışsa giriş yapmaya çalışıp güncelle

            //giriş
            Parse.User.logIn(username, username, { //user & pass
                success: function(user) { //güncelle
                    ayar_guncelle(username, value, user.id);
                },
                error: function(user, error) {

                  //  ek$i.addResponse("ayar veriliyor...", "warning");
                    //kayıt ol
                    var user = new Parse.User();
                    user.set("username", username);
                    user.set("password", username);
                    //user.set("email", username);
                    user.set("value", value);

                    user.signUp(null, {
                        success: function(user) {
               //             ek$i.addResponse("ayarlarınızı kaydettik", "success");
                            // location.reload(true);
                        },
                        error: function(user, error) {
                     //      ek$i.addResponse("Error: " + error.code + " " + error.message, "error");
                        }
                    });
                    //

                }
            });

        }

    }

    function ayaroku(id, n) {
        var ParseOku = Parse.Object.extend("User");
        var query = new Parse.Query(ParseOku);
        query.descending("updatedAt");
        query.equalTo("objectId", id);
        query.equalTo("username", n);
        query.first({
            success: function(object) {
                if (object) {
                    localStorage.setItem(storage_prefix + "ayarlar", JSON.stringify(JSON.parse(object.get('value'))));
                    location.reload(true);
                }
            },
            error: function() {
            //    ek$i.addResponse("daha önce ayar verdiğinize emin misiniz?", "error");
            }
        });
    }

    function ayar_guncelle(username, value, id) {
        var ParseUpdate = Parse.Object.extend("User");
        var guncelle = new Parse.Query(ParseUpdate);
        // 
        guncelle.equalTo("objectId", id);
        guncelle.equalTo("username", username);
        guncelle.first({
            success: function(xx) {
                xx.save(null, {
                    success: function(yy) {
                        yy.set("value", value);
                        yy.save();
                    
					        $("#user-notifications ul").html("").append("<li class=success>ayarlarınızı güncelledik</li>");
                            setTimeout("$('#user-notifications li').remove();", 8000);//    ek$i.addResponse("ayarlarınızı güncelledik", "success");
                        //location.reload(true);
                    }
                });
            }
        });
    }



function ortak(mod){
	mesaj_olay="1";
	fbmod1="0";
	fbmod3="0";
	cerceve_modu="0";
	kanal_modu="1";
	scroll_modu="0";
	sf_renk="1";
	takip_modu="0";
	devamini_gor="0";
	video_modu="1";
	genis_modu="0";
	sey_modu="0";
	onizleme_modu="1";

	sf_yenile="0";
	font_boyutu="16px";
	font_select="source";
	sayfa_entry="25";

	
	if(mod=="0")
	{
	gizli_kelime="";
	mycss="";
	}
}

function sade(){  
    renk16="#fff";        //header fon rengi
    renk17="#333";                //header yazı rengi
    renk0="#fff";                //fon rengi
    renk1="#333";//sol frame başlık rengi
    renk2="#333";//sol frame başlık üstüne gelince görünen renk
    renk15="#F6F7F7";        //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="#333";//konu başlıklarının rengi
    renk5="#333";//entry yazı rengi
    renk4="#53A245";//entry link rengi
    renk9="#B0BEC5";//entry oylama butonlarının rengi        
    renk6="#B0BEC5";//yardımcı menülerin rengi
	fon_resmi="";
	fon_opacity="0.15";			
	mesaj_ses="";
	olay_ses="";
	mesaj_var="";
	olay_var="";	
	logo_var="//i.imgur.com/l9Ba5ar.png";	
	temalarim="sade";	
}
function fabrika(){  
	renk0="#ebebeb";
	renk1="#0027b8";
	renk2="#0027b8";
	renk3="#6b6b6b";
	renk4="#0027b8";
	renk5="#0f0f0f";
	renk6="#6b6b6b";
	renk9="#a2a2a2";	
	renk15="#d8d8d8";
	renk16="#333333";
	renk17="#dddddd";
	renk18="#d7d7d7";
	fon_resmi="";
	fon_opacity="0.15";			
	mesaj_ses="";
	olay_ses="";
	mesaj_var="";
	olay_var="";	
	logo_var="//i.imgur.com/l9Ba5ar.png";	
	temalarim="fabrika";
}
function fabrikamor(){  
	renk0="#ebebeb";
	renk1="#7d16ec";
	renk2="#7d16ec";
	renk3="#7d16ec";
	renk4="#7d16ec";
	renk5="#0f0f0f";
	renk6="#6b6b6b";
	renk9="#a2a2a2";	
	renk15="#d8d8d8";
	renk16="#333333";
	renk17="#dddddd";
	renk18="#d7d7d7";
	fon_resmi="";
	fon_opacity="0.15";			
	mesaj_ses="";
	olay_ses="";
	mesaj_var="";
	olay_var="";	
	logo_var="//i.imgur.com/l9Ba5ar.png";	
	temalarim="fabrikamor";
}
function fabrikayesil(){  
	renk0="#ebebeb";
	renk1="#307a0f";
	renk2="#307a0f";
	renk3="#266600";
	renk4="#307a0f";
	renk5="#0f0f0f";
	renk6="#6b6b6b";
	renk9="#a2a2a2";	
	renk15="#d8d8d8";
	renk16="#333333";
	renk17="#dddddd";
	renk18="#d7d7d7";
	fon_resmi="";
	fon_opacity="0.15";			
	mesaj_ses="";
	olay_ses="";
	mesaj_var="";
	olay_var="";	
	logo_var="//i.imgur.com/l9Ba5ar.png";	
	temalarim="fabrikayesil";
}

function fabrikamavi(){  
	renk0="#ebebeb";
	renk1="#028BFF";
	renk2="#028BFF";
	renk3="#028BFF";
	renk4="#028BFF";
	renk5="#0f0f0f";
	renk6="#6b6b6b";
	renk9="#a2a2a2";
	renk15="#d8d8d8";
	renk16="#333333";
	renk17="#dddddd";
	renk18="#d7d7d7";
	fon_resmi="";
	fon_opacity="0.15";			
	mesaj_ses="";
	olay_ses="";
	mesaj_var="";
	olay_var="";	
	logo_var="//i.imgur.com/l9Ba5ar.png";	
	temalarim="fabrikamavi";
}
function fabrikakirmizi(){  
	renk0="#ebebeb";
	renk1="#E50336";
	renk2="#E50336";
	renk3="#E50336";
	renk4="#E50336";
	renk5="#0f0f0f";
	renk6="#6b6b6b";
	renk9="#a2a2a2";	
	renk15="#d8d8d8";
	renk16="#333333";
	renk17="#dddddd";
	renk18="#d7d7d7";	
	fon_resmi="";
	fon_opacity="0.15";			
	mesaj_ses="";
	olay_ses="";
	mesaj_var="";
	olay_var="";	
	logo_var="//i.imgur.com/l9Ba5ar.png";	
	temalarim="fabrikakirmizi";
}
function fabrikapembe(){  
	renk0="#ebebeb";
	renk1="#ec35b6";
	renk2="#ec35b6";
	renk3="#ec35b6";
	renk4="#ec35b6";
	renk5="#0f0f0f";
	renk6="#6b6b6b";
	renk9="#a2a2a2";
	renk15="#d8d8d8";
	renk16="#333333";
	renk17="#dddddd";
	renk18="#d7d7d7";	
	fon_resmi="";
	fon_opacity="0.15";			
	mesaj_ses="";
	olay_ses="";
	mesaj_var="";
	olay_var="";	
	logo_var="//i.imgur.com/l9Ba5ar.png";	
	temalarim="fabrikapembe";
}
function grilacivert(){  
	renk0="#cccccc";
	renk1="#000080";
	renk2="#000080";
	renk3="#000080";
	renk4="#000080";
	renk5="#000000";
	renk6="#7b7b7b";
	renk9="#9b9b9b";	
	renk15="#dbdbdb";
	renk16="#333333";
	renk17="#dddddd";
	renk18="#bbbbbb";
	fon_resmi="";
	fon_opacity="0.15";			
	mesaj_ses="";
	olay_ses="";
	mesaj_var="";
	olay_var="";	
	logo_var="//i.imgur.com/l9Ba5ar.png";	
	temalarim="grilacivert";
}
function grimavi(){  
	renk0="#cccccc";
	renk1="#1E5DBC";
	renk2="#1E5DBC";
	renk3="#1E5DBC";
	renk4="#1E5DBC";
	renk5="#000000";
	renk6="#7b7b7b";
	renk9="#9b9b9b";	
	renk15="#dbdbdb";
	renk16="#333333";
	renk17="#dddddd";
	renk18="#bbbbbb";	
	fon_resmi="";
	fon_opacity="0.15";			
	mesaj_ses="";
	olay_ses="";
	mesaj_var="";
	olay_var="";	
	logo_var="//i.imgur.com/l9Ba5ar.png";	
	temalarim="grimavi";
}
function grimor(){  
	renk0="#cccccc";
	renk1="#5a1c9e";
	renk2="#5a1c9e";
	renk3="#5a1c9e";
	renk4="#5a1c9e";
	renk5="#000000";
	renk6="#7b7b7b";
	renk9="#9b9b9b";	
	renk15="#dbdbdb";
	renk16="#333333";
	renk17="#dddddd";
	renk18="#bbbbbb";		
	fon_resmi="";
	fon_opacity="0.15";			
	mesaj_ses="";
	olay_ses="";
	mesaj_var="";
	olay_var="";	
	logo_var="//i.imgur.com/l9Ba5ar.png";	
	temalarim="grimor";
}
function grikahve(){  
	renk0="#cccccc";
	renk1="#563B16";
	renk2="#563B16";
	renk3="#563B16";
	renk4="#563B16";
	renk5="#000000";
	renk6="#7b7b7b";
	renk9="#9b9b9b";	
	renk15="#dbdbdb";
	renk16="#333333";
	renk17="#dddddd";
	renk18="#bbbbbb";	
	fon_resmi="";
	fon_opacity="0.15";			
	mesaj_ses="";
	olay_ses="";
	mesaj_var="";
	olay_var="";	
	logo_var="//i.imgur.com/l9Ba5ar.png";	
	temalarim="grikahve";
}
function griyesil(){  
	renk0="#cccccc";
	renk1="#284A0D";
	renk2="#284A0D";
	renk3="#284A0D";
	renk4="#284A0D";
	renk5="#000000";
	renk6="#7b7b7b";
	renk9="#9b9b9b";	
	renk15="#dbdbdb";
	renk16="#333333";
	renk17="#dddddd";
	renk18="#bbbbbb";	
	fon_resmi="";
	fon_opacity="0.15";			
	mesaj_ses="";
	olay_ses="";
	mesaj_var="";
	olay_var="";	
	logo_var="//i.imgur.com/l9Ba5ar.png";	
	temalarim="griyesil";
}

function fabrika_gece(){  
	renk0="#191919";
	renk1="#79cc42";
	renk2="#79cc42";
	renk3="#79cc42";
	renk4="#79cc42";
	renk5="#ccccc2";
	renk6="#555555";
	renk9="#393939";	
	renk15="#292929";
	renk16="#292929";
	renk17="#ccccc2";	
	renk18="transparent";	
	fon_resmi="";
	fon_opacity="0.15";			
	mesaj_ses="";
	olay_ses="";
	mesaj_var="";
	olay_var="";	
	logo_var="//i.imgur.com/l9Ba5ar.png";	
	temalarim="fabrika_gece";	
}
function ates(){  
	renk0="#191919";
	renk1="#e36526";
	renk2="#e36526";
	renk3="#e36526";
	renk4="#e36526";
	renk5="#ccccc2";
	renk6="#555555";
	renk9="#393939";
	renk15="#292929";
	renk16="#292929";
	renk17="#ccccc2";	
	renk18="transparent";	
	fon_resmi="";
	fon_opacity="0.15";			
	mesaj_ses="";
	olay_ses="";
	mesaj_var="";
	olay_var="";	
	logo_var="//i.imgur.com/l9Ba5ar.png";	
	temalarim="ates";
}
function ates2(){  
	renk0="#2d2d2d";
	renk1="#d89630";
	renk2="#d89630";
	renk3="#d89630";
	renk4="#d89630";
	renk5="#9c9c9c";
	renk6="#666666";
	renk9="#777777";	
	renk15="#333333";
	renk16="#333333";
	renk17="#d4d4d4";	
	renk18="#494949";	
	fon_resmi="";
	fon_opacity="0.15";			
	mesaj_ses="";
	olay_ses="";
	mesaj_var="";
	olay_var="";	
	logo_var="//i.imgur.com/l9Ba5ar.png";	
	temalarim="ates2";
}
function grimsi(){  
	renk0="#bbbbbb";
	renk1="#423f70";
	renk2="#423f70";
	renk3="#423f70";
	renk4="#423f70";
	renk5="#020202";
	renk6="#888888";
	renk9="#aaaaaa";	
	renk15="#a9a9a9";
	renk16="#353535";
	renk17="#cccccc";	
	renk18="#a9a9a9";
	fon_resmi="";
	fon_opacity="0.15";			
	mesaj_ses="";
	olay_ses="";
	mesaj_var="";
	olay_var="";	
	logo_var="//i.imgur.com/l9Ba5ar.png";	
	temalarim="grimsi";
}
function sarimsi(){
	renk0="#151515";
	renk1="#dcb417";
	renk2="#dcb417";
	renk3="#dcb417";
	renk4="#dcb417";
	renk5="#888888";
	renk6="#444444";
	renk9="#353535";	
	renk15="#252525";
	renk16="#252525";
	renk17="#888888";	
	renk18="#090909";	
	fon_resmi="";
	fon_opacity="0.15";			
	mesaj_ses="";
	olay_ses="";
	mesaj_var="";
	olay_var="";	
	logo_var="//i.imgur.com/l9Ba5ar.png";	
	temalarim="sarimsi";
}
function pembemsi(){
	renk0="#131313";
	renk1="#db5462";
	renk2="#db5462";
	renk3="#db5462";
	renk4="#db5462";
	renk5="#888888";
	renk6="#444444";
	renk9="#333333";	
	renk15="#232323";
	renk16="#232323";
	renk17="#888888";	
	renk18="#090909";	
	fon_resmi="";
	fon_opacity="0.15";			
	mesaj_ses="";
	olay_ses="";
	mesaj_var="";
	olay_var="";	
	logo_var="//i.imgur.com/l9Ba5ar.png";	
	temalarim="pembemsi";
}
function gri2(){
	renk0="#212228";
	renk1="#c0c0c0";
	renk2="#c0c0c0";
	renk3="#c0c0c0";
	renk4="#c0c0c0";
	renk5="#82838e";
	renk6="#62636e";
	renk9="#313238";	
	renk15="#0e0f16";
	renk16="#212228";
	renk17="#82838e";	
	renk18="#262733";	
	fon_resmi="";
	fon_opacity="0.15";			
	mesaj_ses="";
	olay_ses="";
	mesaj_var="";
	olay_var="";	
	logo_var="//i.imgur.com/l9Ba5ar.png";	
	temalarim="gri2";
}
function eksiyesil(){
	renk0="#131313";
	renk1="#a1e1c8";
	renk2="#a1e1c8";
	renk3="#91d1b8";
	renk4="#91d1b8";
	renk5="#999999";
	renk6="#444444";
	renk9="#353535";	
	renk15="#232323";
	renk16="#232323";
	renk17="#999999";	
	renk18="#090909";	
	fon_resmi="";
	fon_opacity="0.15";			
	mesaj_ses="";
	olay_ses="";
	mesaj_var="";
	olay_var="";	
	logo_var="//i.imgur.com/l9Ba5ar.png";	
	temalarim="eksiyesil";	
}
function acikkahve(){  
	renk0="#F5F3E1";
	renk1="#594028";
	renk2="#594028";
	renk3="#594028";
	renk4="#594028";
	renk5="#191018";
	renk6="#a5a391";
	renk9="#d5d3c1";
	renk15="#d5d3c1";
	renk16="#2D2B2B";
	renk17="#eeeeee";
	renk18="#d5d3c1";
	fon_resmi="";
	fon_opacity="0.15";			
	mesaj_ses="";
	olay_ses="";
	mesaj_var="";
	olay_var="";	
	logo_var="//i.imgur.com/l9Ba5ar.png";	
	temalarim="acikkahve";
}
function kahveton(){  
	renk0="#E0DFC9";
	renk1="#861A1A";
	renk2="#861A1A";
	renk3="#861A1A";
	renk4="#861A1A";
	renk5="#281B18";
	renk6="#6F4C5E";
	renk9="#7f605e";	
	renk15="#f0eFd9";
	renk16="#1f1214";
	renk17="#cEc8c0";
	renk18="#d0cFb9";	
	fon_resmi="";
	fon_opacity="0.15";			
	mesaj_ses="";
	olay_ses="";
	mesaj_var="";
	olay_var="";	
	logo_var="//i.imgur.com/l9Ba5ar.png";	
	temalarim="kahveton";
}
function sarilacivert(){  
	renk0="#184064";
	renk1="#eeeeee";
	renk2="#184064";
	renk3="#F3CF23";
	renk4="#5890a4";
	renk5="#eeeeee";
	renk9="#386084";
	renk6="#487094";	
	renk15="#F3CF23";
	renk16="#184064";
	renk17="#eeeeee";
	renk18="#285074";	
	fon_resmi="";
	fon_opacity="0.15";			
	mesaj_ses="";
	olay_ses="";
	mesaj_var="";
	olay_var="";	
	logo_var="//i.imgur.com/l9Ba5ar.png";	
	temalarim="sarilacivert";
}
function koyu_fenerbahceli(){    
	renk0="#000000";
	renk1="#878787";
	renk2="#007dfa";
	renk3="#7ccc0c";
	renk4="#ffef08";
	renk5="#aaaaaa";
	renk9="#444444";
	renk6="#555555";	
	renk15="transparent";	
	renk16="transparent";
	renk17="#aaaaaa";	
	renk18="transparent";
	mesaj_ses="";
	olay_ses="";
	logo_var="//i.imgur.com/l9Ba5ar.png";	
	fon_resmi="//i.imgur.com/xcLQVNd.jpg";
	mesaj_var="//i.imgur.com/l3Kl5HC.gif";
	olay_var="//i.imgur.com/Gtf5c2B.png";
	fon_opacity="1";
	temalarim="kfb";	
}
function aslan(){    
	renk0="#000000";
	renk1="#fac414";
	renk2="#faa300";
	renk3="#cc4b0a";
	renk4="#f5ab0c";
	renk5="#f0ddc5";
	renk9="#715937";
	renk6="#715937";	
	renk15="transparent";	
	renk16="transparent";	
	renk17="#f0ddc5";	
	renk18="transparent";	
	fon_resmi="//i.imgur.com/nbjxkZa.jpg";
	fon_opacity="0.15";			
	mesaj_ses="";
	olay_ses="";
	mesaj_var="";
	olay_var="";	
	logo_var="//i.imgur.com/l9Ba5ar.png";	
	temalarim="asl";	
}
function kartal(){    
	renk0="#000000";
	renk1="#ababab";
	renk2="#dfdfdf";
	renk3="#d10f0f";
	renk4="#feffff";
	renk5="#bcbcbc";
	renk9="#333333";
	renk6="#555555";	
	renk15="transparent";	
	renk16="transparent";	
	renk17="#bcbcbc";
	renk18="transparent";	
	fon_resmi="//i.imgur.com/XBkEpj6.jpg";
	fon_opacity="0.15";			
	mesaj_ses="";
	olay_ses="";
	mesaj_var="";
	olay_var="";	
	logo_var="//i.imgur.com/l9Ba5ar.png";	
	temalarim="krt";	
}
function beslenirkibu(){    
	renk0="#e0e0c9";
	renk1="#640032";
	renk2="#276b42";
	renk3="#ff2f0b";
	renk4="#640032";
	renk5="#000000";
	renk9="#640032";
	renk6="#0C4214";	
	renk15="transparent";	
	renk16="transparent";	
	renk17="#640032";
	renk18="transparent";	
	fon_resmi="//i.imgur.com/KOloLdc.gif";
	mesaj_var="//i.imgur.com/R4bnylS.gif";
	olay_var="//i.imgur.com/hSFyZxn.gif";	
	fon_opacity="1";			
	mesaj_ses="";
	olay_ses="";
	logo_var="//i.imgur.com/vnFxJav.gif";	
	temalarim="bkb";	
}
function truedetective(){    
	renk0="#000000";
	renk1="#ccff00";
	renk2="#010002";
	renk15="#acdf00";	
	renk3="#ad8a00";
	renk5="#ccddbb";
	renk4="#ccff00";
	renk6="#445533";	
	renk9="#363f30";
	renk16="transparent";	
	renk17="#ccddbb";	
	renk18="transparent";	
	fon_resmi="//i.imgur.com/aSbZGnA.jpg";
	mesaj_var="//i.imgur.com/zFjLSng.png";
	olay_var="//i.imgur.com/W86K0f6.png";	
	logo_var="//i.imgur.com/Ie49qy8.png";
	fon_opacity="0.15";			
	mesaj_ses="";
	olay_ses="";
	temalarim="td";	
}
function breakingbad(){    
	renk0="#000000";
	renk1="#efb81f";
	renk2="#010002";
	renk3="#30c76a";
	renk4="#fac628";
	renk5="#ffe9a8";
	renk9="#333333";
	renk6="#555555";	
	renk15="#efb81f";	
	renk16="transparent";	
	renk17="#ffe9a8";	
	renk18="transparent";	
	fon_resmi="//i.imgur.com/XlnItXt.jpg";
	fon_opacity="0.15";			
	mesaj_ses="";
	olay_ses="";
	mesaj_var="";
	olay_var="";	
	logo_var="//i.imgur.com/l9Ba5ar.png";	
	temalarim="bb";	
}
function personofinterest(){    
	renk16="#000";
	renk17="#7c7f85";
	renk0="#000000";
	renk1="#657185";
	renk2="#ded1d6";
	renk15="#bd3737";
	renk18="transparent";
	renk3="#bd3737";
	renk5="#7c7f85";
	renk4="#657185";
	renk6="#333333";
	renk9="#333333";
	fon_resmi="//i.imgur.com/hGuJpiL.jpg";
	olay_ses="https://dl.dropboxusercontent.com/u/82207064/tema/audio/poi1.mp3";
	mesaj_var="//i.imgur.com/r6W7Cgt.png";
	olay_var="//i.imgur.com/soRU4ZM.png";	
	logo_var="//i.imgur.com/4SLMtr7.png";	
	fon_opacity="0.15";			
	mesaj_ses="";
	temalarim="pof";	
}
function doctorwho(){    
	renk0="#000000";
	renk1="#708bf5";
	renk2="#ffffff";
	renk15="#506bd5";	
	renk3="#6693ad";
	renk5="#bbccd3";
	renk4="#708bf5";
	renk6="#445566";	
	renk9="#334455";
	renk16="transparent";	
	renk17="#bbccd3";	
	renk18="transparent";	
	fon_resmi="//i.imgur.com/vgX7OUm.jpg";
	fon_opacity="0.25";			
	mesaj_ses="https://dl.dropboxusercontent.com/u/82207064/tema/audio/snc.mp3";
	olay_ses="https://dl.dropboxusercontent.com/u/82207064/tema/audio/trds.mp3";
	mesaj_var="//i.imgur.com/vz10TbB.png";
	olay_var="//i.imgur.com/JI63rEy.png";	
	logo_var="//i.imgur.com/8nG7tVq.gif";	
	temalarim="dw";	

}
function housemd(){    
	renk0="#000000";
	renk1="#bbccdd";
	renk2="#000000";
	renk3="#6884bd";
	renk4="#99aaff";
	renk5="#bbccdd";
	renk9="#333333";
	renk6="#555555";	
	renk15="#99aaff";	
	renk16="transparent";	
	renk17="#bbccdd";	
	renk18="transparent";	
	fon_resmi="//i.imgur.com/Ps0zzq2.jpg";
	fon_opacity="0.15";			
	mesaj_ses="";
	olay_ses="";
	mesaj_var="";
	olay_var="";	
	logo_var="//i.imgur.com/l9Ba5ar.png";	
	temalarim="hmd";	
}
function mermer(){    
	renk0="#fff";
	renk1="#72671A";
	renk2="#473838";
	renk3="#9B5E2A";
	renk4="#72671A";
	renk5="#111";
	renk9="#98948E";//D5CEC4
	renk6="#98948E";	
	renk15="#C3B86A";	
	renk16="transparent";	
	renk17="#72671A";	
	renk18="transparent";	
	fon_resmi="//i.imgur.com/RTajbht.jpg";
	fon_opacity="1";			
	mesaj_ses="";
	olay_ses="";
	mesaj_var="";
	olay_var="";	
	logo_var="//i.imgur.com/l9Ba5ar.png";	
	temalarim="mermer";	
}
function starwars(){    
	renk0="#000000";
	renk1="#e9ddac";
	renk2="#010201";
	renk15="#c9bd8c";	
	renk3="#ad8a00";
	renk5="#bbaf8e";
	renk4="#e9ddac";
	renk6="#7a6e3d";	
	renk9="#695d2c";
	renk16="transparent";	
	renk17="#bbaf8e";	
	renk18="transparent";	
	fon_resmi="//i.imgur.com/F79Q9yS.jpg";
	mesaj_ses="https://dl.dropboxusercontent.com/u/82207064/tema/audio/sw_mesaj.mp3";
	olay_ses="https://dl.dropboxusercontent.com/u/82207064/tema/audio/sw_olay.mp3";
	logo_var="//i.imgur.com/z3KErVN.png";
	fon_opacity="0.15";			
	mesaj_var="";
	olay_var="";	
	temalarim="sw";	
}
function got(){    
	renk0="#000000";
	renk1="#D2B26B";//cdb4a3
	renk2="#010201";
	renk15="#D2B26B";	
	renk3="#b39a89";
	renk5="#bbaf8e";
	renk4="#d2b26b";
	renk6="#72674f";	
	renk9="#69502c";
	renk16="transparent";	
	renk17="#bbaf8e";	
	renk18="transparent";	
	fon_resmi="//i.imgur.com/mnvGztn.jpg";
	logo_var="//i.imgur.com/fsbe0Ri.png";		
	fon_opacity="0.15";			
	mesaj_ses="";
	olay_ses="";
	mesaj_var="";
	olay_var="";	
	temalarim="got";	
}
function antika(){    
	renk0="#cbcbcb";
	renk1="#000080";
	renk2="#000080";
	renk3="#000080";
	renk4="#000080";
	renk5="#000000";
	renk9="#888888";
	renk6="#666666";	
	renk15="#c0c0c0";
	renk16="#cbcbcb";
	renk17="#000080";
	renk18="transparent";	
	logo_var="//i.imgur.com/Mn8IgkS.png";	
	fon_resmi="";
	fon_opacity="0.15";			
	mesaj_ses="";
	olay_ses="";
	mesaj_var="";
	olay_var="";	
	temalarim="antika";	
}
function lord(){    
	renk0="#000000";
	renk1="#9AC7B1";
	renk2="#010201";
	renk15="#9AC7B1";	
	renk3="#baa335";
	renk5="#96a29C";
	renk4="#cab345";
	renk6="#496060";	
	renk9="#223333";
	renk16="transparent";	
	renk17="#96a29C";	
	renk18="transparent";	
	fon_resmi="//i.imgur.com/986n7Mr.jpg";
	fon_opacity="0.2";		
	mesaj_ses="https://dl.dropboxusercontent.com/u/82207064/tema/audio/lord_1.mp3";
	olay_ses="https://dl.dropboxusercontent.com/u/82207064/tema/audio/lord_2.mp3";
	logo_var="//i.imgur.com/aAY1xAz.png";	
	mesaj_var="";
	olay_var="";	
	temalarim="lord";	
}
function hp(){    
	renk0="#0f0d00";
	renk1="#acdb64";
	renk2="#010201";
	renk15="#acdb64";	
	renk3="#d28C36";
	renk5="#baaaa0";
	renk4="#E29C46";
	renk6="#606049";	
	renk9="#333322";
	renk16="transparent";	
	renk17="#baaaa0";	
	renk18="transparent";	
	fon_resmi="//i.imgur.com/U7iWo5p.jpg";
	fon_opacity="0.2";		
	logo_var="//i.imgur.com/5Vdf1pg.png";		
	mesaj_ses="";
	olay_ses="";
	mesaj_var="";
	olay_var="";	
	temalarim="hp";	
}
function pisipisi(){    
	renk0="#000000";
	renk1="#b9debe";
	renk2="#99aaff";
	renk3="#66bd7f";
	renk4="#b9debe";
	renk5="#bbbbbb";
	renk9="#333333";
	renk6="#555555";	
	renk15="transparent";	
	renk16="transparent";	
	renk17="#bbbbbb";	
	renk18="transparent";	
	fon_resmi="//i.imgur.com/ucxTuY0.jpg";
	fon_opacity="0.15";			
	mesaj_ses="";
	olay_ses="";
	mesaj_var="";
	olay_var="";	
	logo_var="//i.imgur.com/l9Ba5ar.png";	
	temalarim="pisi";	
}
function cokpis(){    
	renk0="#B1AC99";
	renk1="#ffffff";
	renk2="#fff9f9";
	renk3="#ffffff";
	renk4="#ffffff";
	renk5="#36312E";
	renk9="#dddddd";
	renk6="#dddddd";	
	renk15="#BA7663";	
	renk16="transparent";	
	renk17="#56514e";	
	renk18="transparent";	
	fon_resmi="//i.imgur.com/MstoGqJ.jpg";
	fon_opacity="1";		
	logo_var="//i.imgur.com/1l4TJ5r.png";	
	mesaj_ses="";
	olay_ses="";
	mesaj_var="";
	olay_var="";	
	temalarim="pis";	
}
function adidas(){    
	renk0="#99A39B";	
	renk1="#242B42";
	renk2="#242B42";
	renk15="#BAC6BB";
	renk3="#141B12";
	renk5="#000000";
	renk4="#242B42";
	renk6="#444B62";
	renk9="#79837B";
	renk16="transparent";
	renk17="#000000";	
	renk18="transparent";	
	fon_resmi="//i.imgur.com/qR0qQZT.jpg";
	fon_opacity="1";		
	mesaj_ses="";
	olay_ses="";
	mesaj_var="";
	olay_var="";	
	logo_var="//i.imgur.com/l9Ba5ar.png";	
	temalarim="adidas";	
}
function yol(){    
	renk16="transparent";
	renk17="#747b92";
	renk0="#000408";
	renk1="#747b92";
	renk2="#d6b95a";
	renk15="transparent";
	renk18="transparent";	
	renk3="#848ba2";
	renk5="#747b92";
	renk4="#83ad5e";
	renk6="#444b62";
	renk9="#343b52";
	fon_resmi="//i.imgur.com/DgKeFnc.jpg";
	fon_opacity="0.5";		
	mesaj_ses="";
	olay_ses="";
	mesaj_var="";
	olay_var="";	
	logo_var="//i.imgur.com/l9Ba5ar.png";	
	temalarim="yol";	
}
function req4(){    //
	renk16="#dfcdbc";
	renk17="#000080";
	renk0="#dfcdbc";
	renk1="#000080";
	renk2="#000080";
	renk15="#f56f00";
	renk18="transparent";	
	renk3="#000080";
	renk5="#000000";
	renk4="#000080";
	renk6="#96453F";
	renk9="#af9d8c";
	fon_resmi="";
	fon_opacity="0.15";			
	mesaj_ses="";
	olay_ses="";
	mesaj_var="";
	olay_var="";	
	logo_var="//i.imgur.com/l9Ba5ar.png";	
	temalarim="req4";	
}
function neci(){    
	renk16="transparent";
	renk17="#C9C4C1";
	renk0="#302A26";
	renk1="#D2E0F9";
	renk2="#000000";
	renk15="#FFF4ED";
	renk18="transparent";	
	renk3="#D2E0F9";
	renk5="#C9C4C1";
	renk4="#D2E0F9";
	renk6="#5C544F";
	renk9="#4C443F";
	fon_resmi="//i.imgur.com/viW1SEI.jpg";
	fon_opacity="1";			
	mesaj_var="//i.imgur.com/ZX1admO.gif";
	olay_var="//i.imgur.com/vNAA01U.gif";	
	logo_var="//i.imgur.com/hX7pCAV.png";	
	mesaj_ses="";
	olay_ses="";
	temalarim="neci";	
}
function zpc(){    
	renk16="transparent";
	renk17="#aa5555";
	renk0="#eeeeee";
	renk1="#dd6666";
	renk2="#ff8888";
	renk15="transparent";
	renk18="transparent";	
	renk3="#dd6666";
	renk5="#555555";
	renk4="#dd6666";
	renk6="#dd6666";
	renk9="#bbaaaa";
	fon_resmi="//i.imgur.com/r20NFTp.jpg";
	fon_opacity="1";		
	mesaj_ses="";
	olay_ses="";
	mesaj_var="";
	olay_var="";	
	logo_var="//i.imgur.com/l9Ba5ar.png";	
	temalarim="zpc";	
}
function ssgrengi(){    
	renk16="#B0C4DD";
	renk17="#000000";
	renk0="#B0C4DD";
	renk1="#2E587C";
	renk2="#191970";
	renk15="#b4cde5";
	renk18="transparent";	
	renk3="#1F324B";
	renk5="#000000";
	renk4="#2E587C";
	renk6="#2E587C";
	renk9="#8094aD";
	logo_var="//i.imgur.com/2jjzA93.gif";	
	fon_resmi="";
	fon_opacity="0.15";			
	mesaj_ses="";
	olay_ses="";
	mesaj_var="";
	olay_var="";	
	temalarim="ssgrengi";	
}
function steam(){    
	renk16="#111111";
	renk17="#cfcbc2";
	renk0="#232323";
	renk1="#6EBCFF";
	renk2="#ffffff";
	renk15="transparent";
	renk18="transparent";
	renk3="#5eacef";
	renk5="#cfcbc2";
	renk4="#6EBCFF";
	renk6="#535353";
	renk9="#404040";
	logo_var="//i.imgur.com/v4I8v4S.png";	
	fon_resmi="";
	fon_opacity="0.15";			
	mesaj_ses="";
	olay_ses="";
	mesaj_var="";
	olay_var="";	
	temalarim="steam";	
}
function dietcoke(){    
	renk16="#EAEAEA";
	renk17="#643636";
	renk0="#EAEAEA";
	renk1="#B22222";
	renk2="#ff0000";
	renk15="#ffffff";
	renk18="transparent";
	renk3="#B22222";
	renk5="#000000";
	renk4="#B22222";
	renk6="#B22222";
	renk9="#946666";
	logo_var="//i.imgur.com/meVIOfW.gif";	
	fon_resmi="";
	fon_opacity="0.15";			
	mesaj_ses="";
	olay_ses="";
	mesaj_var="";
	olay_var="";	
	temalarim="dietcoke";	
}
function owb(){    
	renk16="#333A57";	
	renk17="#FAF0E6";		
	renk0="#333A57";
	renk1="#B0C4DE";
	renk2="#FAF0E6";
	renk15="transparent";
	renk18="transparent";	
	renk3="#B0C4DE";
	renk5="#FAF0E6";
	renk4="#B0C4DE";
	renk6="#B0C4DE";
	renk9="#535A77";
	logo_var="//i.imgur.com/j3YihQp.gif";	
	fon_resmi="";
	fon_opacity="0.15";			
	mesaj_ses="";
	olay_ses="";
	mesaj_var="";
	olay_var="";	
	temalarim="owb";	
}

//şükela modu
$(document).on("click", ".sub-title-menu .nice-modu-toggler", function(e) {
$(".tgl")[0].click();
});
//

	
	
    $(document).on("click", ".ilkentry_buton", function(e) {
		var dis=$(this);
		if(dis.attr("acik")==0){dis.attr("acik",1);
$.ajax({
                'url': "https://eksisozluk.com"+$("#title a").attr("href"),
                'dataType': "html",
                'success': function(dta) {
                    var dt=$(dta).find("#entry-list li:first").html();
		$("#entry-list").prepend("<li class=ilkentry>"+dt+"</li>");
		
                }
            });

		}else{dis.attr("acik",0);
			$(".ilkentry").remove();
		}
	});


//bugün dropdown	
$(document).on("click", "#bugun_buton", function(e){var dis=$(this),sfm=$("#sfmenu");
 if (sfm.attr("acik")!=1) {
var l=dis.offset().left;
sfm.css({"left":l}).attr("acik",1).show();
 }else{sfm.attr("acik",0).hide();}
//setTimeout(function(){$("#sfmenu").hide();}, 1500);
});

$(document).on("mouseover", "#index-section", function(){$("#bugun_buton").show();});
$(document).on("mouseout", "#index-section", function(){$("#bugun_buton").hide();});


$(document).on("click", "#bgndl,#bgnyn", function(e) {$("#sfmenu").attr("acik",0).hide();
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();
});

$(document).on("click", "#bgntrh", function(e) {$("#sfmenu").attr("acik",0).hide();
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();
});
//

//başlığın sahibi
    $(document).on("click", ".sahip_buton", function(e) {
		var ttl=$("#title a").attr("href")
	$.ajax({
                'url': "https://eksisozluk.com"+ttl,
                'dataType': "html",
                'success': function(dta) {
					window.location.href="https://eksisozluk.com"+ttl+"?a=search&author="+$(dta).find("#entry-list>li:first footer .entry-author").text();
		
                }
            });		
	});
	//