eval(function(p,a,c,k,e,r){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--)r[e(c)]=k[c]||e(c);k=[function(e){return r[e]}];e=function(){return'\\w+'};c=1};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p}('5 1C=9(){5 w="2h",T="1T",1U="2P 2i",1D="2j.2j",1q="2Q/x-2R-2S",1V="2T",A=2k,C=2U,Z=2V,1r=[],V=[],1s=[],19=[],1a,1t=G,1b=G,1u=G,1v=N,1c=N;5 x=9(){5 b=D C.J!=w&&D C.1g!=w&&D C.P!=w,15=[0,0,0],d=G;3(D Z.1W!=w&&D Z.1W[1U]==T){d=Z.1W[1U].2W;3(d&&!(D Z.1X!=w&&Z.1X[1q]&&!Z.1X[1q].2X)){d=d.1w(/^.*\\s+(\\S+\\s+\\S+$)/,"$1");15[0]=U(d.1w(/^(.*)\\..*$/,"$1"),10);15[1]=U(d.1w(/^.*\\.(.*)\\s.*$/,"$1"),10);15[2]=/r/.11(d)?U(d.1w(/^.*r(.*)$/,"$1"),10):0}}B 3(D A.1E!=w){5 a=G,1F=N;1d{a=1Y 1E(1D+".7")}1e(e){1d{a=1Y 1E(1D+".6");15=[6,0,21];a.2Y="2Z"}1e(e){3(15[0]==6){1F=K}}3(!1F){1d{a=1Y 1E(1D)}1e(e){}}}3(!1F&&a){1d{d=a.30("$31");3(d){d=d.1G(" ")[1].1G(",");15=[U(d[0],10),U(d[1],10),U(d[2],10)]}}1e(e){}}}5 u=Z.32.Q(),p=Z.33.Q(),W=/W/.11(u)?34(u.1w(/^.*W\\/(\\d+(\\.\\d+)?).*$/,"$1")):N,H=N,1Z=p?/A/.11(p):/A/.11(u),12=p?/12/.11(p):/12/.11(u);/*@35 H=K;@3(@36)1Z=K;@37(@38)12=K;@39@*/E{16:b,1h:15,W:W,H:H,A:1Z,12:12}}();5 y=9(){3(!x.16){E}1i(2l);3(x.H&&x.A){1d{C.3a("<2m"+"2n O=2o 3b=K 20=//:></2m"+"2n>");1a=J("2o");3(1a){1x(1a,"3c",2p)}}1e(e){}}3(x.W&&D C.1j!=w){1t=3d(9(){3(/3e|2q/.11(C.1j)){1y()}},10)}3(D C.1k!=w){C.1k("3f",1y,G)}1H(1y)}();9 2p(){3(1a.1j=="2q"){1a.L.1l(1a);1y()}}9 1y(){3(1v){E}3(x.H&&x.A){5 s=P("3g");1d{5 t=C.1g("3h")[0].1z(s);t.L.1l(t)}1e(e){E}}1v=K;3(1t){3i(1t);1t=G}5 a=1r.M;F(5 i=0;i<a;i++){1r[i]()}}9 1i(a){3(1v){a()}B{1r[1r.M]=a}}9 1H(a){3(D A.1k!=w){A.1k("2r",a,N)}B 3(D C.1k!=w){C.1k("2r",a,N)}B 3(D A.1I!=w){1x(A,"17",a)}B 3(D A.17=="9"){5 b=A.17;A.17=9(){b();a()}}B{A.17=a}}9 2l(){5 a=V.M;F(5 i=0;i<a;i++){5 b=V[i].O;3(x.1h[0]>0){5 c=J(b);3(c){V[i].X=c.1m("X")?c.1m("X"):"0";V[i].Y=c.1m("Y")?c.1m("Y"):"0";3(1n(V[i].2s)){3(x.W&&x.W<2t){2u(c)}18(b,K)}B 3(V[i].1J&&!1c&&1n("6.0.2v")&&(x.A||x.12)){22(V[i])}B{2w(c)}}}B{18(b,K)}}}9 2u(b){5 d=b.1g(T)[0];3(d){5 e=P("2x"),a=d.3j;3(a){5 f=a.M;F(5 i=0;i<f;i++){3(a[i].1o=="3k"){e.I("20",a[i].2y)}B{e.I(a[i].1o,a[i].2y)}}}5 c=d.2z;3(c){5 g=c.M;F(5 j=0;j<g;j++){3(c[j].23==1&&c[j].1o=="2A"){e.I(c[j].1m("24"),c[j].1m("25"))}}}b.L.1p(e,b)}}9 22(a){1c=K;5 b=J(a.O);3(b){3(a.1K){5 c=J(a.1K);3(c){1b=c;1u=a.1K}}B{1b=1L(b)}3(!(/%$/.11(a.X))&&U(a.X,10)<2B){a.X="2B"}3(!(/%$/.11(a.Y))&&U(a.Y,10)<2C){a.Y="2C"}C.26=C.26.3l(0,3m)+" - 2i 3n 3o";5 d=x.H&&x.A?"3p":"3q",2D=C.26,2E="3r="+A.27+"&3s="+d+"&3t="+2D,1M=a.O;3(x.H&&x.A&&b.1j!=4){5 e=P("28");1M+="3u";e.I("O",1M);b.L.2F(e,b);b.1A.29="2G";5 f=9(){b.L.1l(b)};1x(A,"17",f)}1B({1N:a.1J,O:1V,X:a.X,Y:a.Y},{1O:2E},1M)}}9 2w(a){3(x.H&&x.A&&a.1j!=4){5 b=P("28");a.L.2F(b,a);b.L.1p(1L(a),b);a.1A.29="2G";5 c=9(){a.L.1l(a)};1x(A,"17",c)}B{a.L.1p(1L(a),a)}}9 1L(a){5 b=P("28");3(x.A&&x.H){b.2H=a.2H}B{5 d=a.1g(T)[0];3(d){5 c=d.2z;3(c){5 e=c.M;F(5 i=0;i<e;i++){3(!(c[i].23==1&&c[i].1o=="2A")&&!(c[i].23==8)){b.1z(c[i].3v(K))}}}}}E b}9 1B(a,b,c){5 r,1f=J(c);3(1f){3(D a.O==w){a.O=c}3(x.H&&x.A){5 d="";F(5 i R a){3(a[i]!=13.14[i]){3(i.Q()=="1N"){b.2a=a[i]}B 3(i.Q()=="2b"){d+=\' 2c="\'+a[i]+\'"\'}B 3(i.Q()!="1P"){d+=\' \'+i+\'="\'+a[i]+\'"\'}}}5 f="";F(5 j R b){3(b[j]!=13.14[j]){f+=\'<2I 24="\'+j+\'" 25="\'+b[j]+\'" />\'}}1f.3w=\'<1T 1P="3x:3y-3z-3A-3B-3C"\'+d+\'>\'+f+\'</1T>\';1s[1s.M]=a.O;r=J(a.O)}B 3(x.W&&x.W<2t){5 e=P("2x");e.I("2d",1q);F(5 k R a){3(a[k]!=13.14[k]){3(k.Q()=="1N"){e.I("20",a[k])}B 3(k.Q()=="2b"){e.I("2c",a[k])}B 3(k.Q()!="1P"){e.I(k,a[k])}}}F(5 l R b){3(b[l]!=13.14[l]){3(l.Q()!="2a"){e.I(l,b[l])}}}1f.L.1p(e,1f);r=e}B{5 o=P(T);o.I("2d",1q);F(5 m R a){3(a[m]!=13.14[m]){3(m.Q()=="2b"){o.I("2c",a[m])}B 3(m.Q()!="1P"){o.I(m,a[m])}}}F(5 n R b){3(b[n]!=13.14[n]&&n.Q()!="2a"){2J(o,n,b[n])}}1f.L.1p(o,1f);r=o}}E r}9 2J(a,b,c){5 p=P("2I");p.I("24",b);p.I("25",c);a.1z(p)}9 1Q(a){5 b=J(a);3(b&&(b.1o=="T"||b.1o=="3D")){3(x.H&&x.A){3(b.1j==4){2e(a)}B{A.1I("17",9(){2e(a)})}}B{b.L.1l(b)}}}9 2e(a){5 b=J(a);3(b){F(5 i R b){3(D b[i]=="9"){b[i]=G}}b.L.1l(b)}}9 J(a){5 b=G;1d{b=C.J(a)}1e(e){}E b}9 P(a){E C.P(a)}9 1x(a,b,c){a.1I(b,c);19[19.M]=[a,b,c]}9 1n(a){5 b=x.1h,v=a.1G(".");v[0]=U(v[0],10);v[1]=U(v[1],10)||0;v[2]=U(v[2],10)||0;E(b[0]>v[0]||(b[0]==v[0]&&b[1]>v[1])||(b[0]==v[0]&&b[1]==v[1]&&b[2]>=v[2]))?K:N}9 1R(a,b){3(x.H&&x.12){E}5 h=C.1g("3E")[0],s=P("1A");s.I("2d","3F/3G");s.I("3H","3I");3(!(x.H&&x.A)&&D C.2K!=w){s.1z(C.2K(a+" {"+b+"}"))}h.1z(s);3(x.H&&x.A&&D C.1S!=w&&C.1S.M>0){5 c=C.1S[C.1S.M-1];3(D c.2L==T){c.2L(a,b)}}}9 18(a,b){5 v=b?"3J":"3K";3(1v&&J(a)){J(a).1A.2M=v}B{1R("#"+a,"2M:"+v)}}9 2f(s){5 a=/[\\\\\\"<>\\.;]/;5 b=a.3L(s)!=G;E b?3M(s):s}5 z=9(){3(x.H&&x.A){2k.1I("3N",9(){5 a=19.M;F(5 i=0;i<a;i++){19[i][0].3O(19[i][1],19[i][2])}5 b=1s.M;F(5 j=0;j<b;j++){1Q(1s[j])}F(5 k R x){x[k]=G}x=G;F(5 l R 1C){1C[l]=G}1C=G})}}();E{3P:9(a,b,c){3(!x.16||!a||!b){E}5 d={};d.O=a;d.2s=b;d.1J=c?c:N;V[V.M]=d;18(a,N)},3Q:9(a){5 r=G;3(x.16){5 o=J(a);3(o){5 n=o.1g(T)[0];3(!n||(n&&D o.2N!=w)){r=o}B 3(D n.2N!=w){r=n}}}E r},3R:9(b,c,d,e,f,g,h,l,m){3(!x.16||!b||!c||!d||!e||!f){E}d+="";e+="";3(1n(f)){18(c,N);5 n={};3(m&&D m===T){F(5 i R m){3(m[i]!=13.14[i]){n[i]=m[i]}}}n.1N=b;n.X=d;n.Y=e;5 o={};3(l&&D l===T){F(5 j R l){3(l[j]!=13.14[j]){o[j]=l[j]}}}3(h&&D h===T){F(5 k R h){3(h[k]!=13.14[k]){3(D o.1O!=w){o.1O+="&"+k+"="+h[k]}B{o.1O=k+"="+h[k]}}}}1i(9(){1B(n,o,c);3(n.O==c){18(c,K)}})}B 3(g&&!1c&&1n("6.0.2v")&&(x.A||x.12)){1c=K;18(c,N);1i(9(){5 a={};a.O=a.1K=c;a.X=d;a.Y=e;a.1J=g;22(a)})}},3S:9(){E{3T:x.1h[0],3U:x.1h[1],3V:x.1h[2]}},3W:1n,1B:9(a,b,c){3(x.16){E 1B(a,b,c)}B{E 2h}},1Q:9(a){3(x.16){1Q(a)}},1R:9(a,b){3(x.16){1R(a,b)}},1i:1i,1H:1H,3X:9(a){5 q=C.27.3Y||C.27.3Z;3(a==G){E 2f(q)}3(q){5 b=q.2g(1).1G("&");F(5 i=0;i<b.M;i++){3(b[i].2g(0,b[i].2O("="))==a){E 2f(b[i].2g((b[i].2O("=")+1)))}}}E""},40:9(){3(1c&&1b){5 a=J(1V);3(a){a.L.1p(1b,a);3(1u){18(1u,K);3(x.H&&x.A){1b.1A.29="41"}}1b=G;1u=G;1c=N}}}}}();',62,250,'|||if||var||||function|||||||||||||||||||||||||||win|else|doc|typeof|return|for|null|ie|setAttribute|getElementById|true|parentNode|length|false|id|createElement|toLowerCase|in||OBJECT|parseInt|regObjArr|webkit|width|height|nav||test|mac|Object|prototype|playerVersion|w3cdom|onload|setVisibility|listenersArr|script|storedAltContent|isExpressInstallActive|try|catch|el|getElementsByTagName|pv|addDomLoadEvent|readyState|addEventListener|removeChild|getAttribute|hasPlayerVersion|nodeName|replaceChild|FLASH_MIME_TYPE|domLoadFnArr|objIdArr|timer|storedAltContentId|isDomLoaded|replace|addListener|callDomLoadFunctions|appendChild|style|createSWF|swfobject|SHOCKWAVE_FLASH_AX|ActiveXObject|fp6Crash|split|addLoadEvent|attachEvent|expressInstall|altContentId|abstractAltContent|replaceId|data|flashvars|classid|removeSWF|createCSS|styleSheets|object|SHOCKWAVE_FLASH|EXPRESS_INSTALL_ID|plugins|mimeTypes|new|windows|src||showExpressInstall|nodeType|name|value|title|location|div|display|movie|styleclass|class|type|removeObjectInIE|urlEncodeIfNecessary|substring|undefined|Flash|ShockwaveFlash|window|main|scr|ipt|__ie_ondomload|checkReadyState|complete|load|swfVersion|312|fixParams|65|displayAltContent|embed|nodeValue|childNodes|PARAM|310|137|dt|fv|insertBefore|none|innerHTML|param|createObjParam|createTextNode|addRule|visibility|SetVariable|indexOf|Shockwave|application|shockwave|flash|SWFObjectExprInst|document|navigator|description|enabledPlugin|AllowScriptAccess|always|GetVariable|version|userAgent|platform|parseFloat|cc_on|_win32|elif|_mac|end|write|defer|onreadystatechange|setInterval|loaded|DOMContentLoaded|span|body|clearInterval|attributes|DATA|slice|47|Player|Installation|ActiveX|PlugIn|MMredirectURL|MMplayerType|MMdoctitle|SWFObjectNew|cloneNode|outerHTML|clsid|D27CDB6E|AE6D|11cf|96B8|444553540000|EMBED|head|text|css|media|screen|visible|hidden|exec|encodeURIComponent|onunload|detachEvent|registerObject|getObjectById|embedSWF|getFlashPlayerVersion|major|minor|release|hasFlashPlayerVersion|getQueryParamValue|search|hash|expressInstallCallback|block'.split('|'),0,{}))

function YeniPencere(Url,Wd,Hg){ window.open(Url,"Paylas","height="+ Hg +",width="+ Wd +",scrollbars=no"); }
function createObject() {
var request_type;
var browser = navigator.appName;
if(browser == "Microsoft Internet Explorer"){
request_type = new ActiveXObject("Microsoft.XMLHTTP");
}else{ request_type = new XMLHttpRequest(); }
return request_type;}
var http = createObject();
function iso88599Escape(strText){strText=escape(strText);strText=strText.replace(/ı/g,"%C4%B1");strText=strText.replace(/Ü/g,"%C3%9C");strText=strText.replace(/ü/g,"%C3%BC");strText=strText.replace(/ğ/g,"%C4%9F");strText=strText.replace(/Ğ/g,"%C49E%");strText=strText.replace(/ü/g,"%C3%BC");strText=strText.replace(/Ü/g,"%C3%9C");strText=strText.replace(/İ/g,"%C4%B0");strText=strText.replace(/ş/g,"%C5%9F");strText=strText.replace(/Ş/g,"%C5%9E");strText=strText.replace(/ç/g,"%C3%A7");strText=strText.replace(/Ç/g,"%C3%87");strText=strText.replace(/ö/g,"%C3%B6");strText=strText.replace(/Ö/g,"%C3%96");return strText;}

function VideoLights() {
	var htmlheight = document.body.scrollHeight;
	el = document.getElementById("JWPlayerPerdesi");
	el.style.visibility = (el.style.visibility == "visible") ? "hidden" : "visible";
	document.getElementById("JWPlayerPerdesi").style.height = htmlheight + "px";
}

function imageError(imaj) {
imaj.src="/images/hata.gif"
}

var nocache = 0;
function GetFriendFeed() {
document.getElementById('Loader').innerHTML = "<img src=images/fbloader.gif >"
nocache = Math.random();
http.open('get', 'libraries/FriendFeedAPI.asp?nocache = '+nocache);
http.onreadystatechange = GetFriendFeedReply;
http.send(null);
}
function GetFriendFeedReply() {
if(http.readyState == 4){ 
var response = http.responseText;
if(response == 0){
document.getElementById('FriendFeed').innerHTML = '<strong>Feed Güncellenemedi!</strong>';
document.getElementById('Loader').innerHTML = "";
} else {
document.getElementById('FriendFeed').innerHTML = response ;
document.getElementById('Loader').innerHTML = "";}}}
/* Countdown*/
var refreshinterval=60
var displaycountdown="yes"
var starttime
var nowtime
var reloadseconds=0
var secondssinceloaded=0

function Zamanla() {
	starttime=new Date()
	starttime=starttime.getTime()
    countdown()
}

function countdown() {
	nowtime= new Date()
	nowtime=nowtime.getTime()
	secondssinceloaded=(nowtime-starttime)/1000
	reloadseconds=Math.round(refreshinterval-secondssinceloaded)
	if (refreshinterval>=secondssinceloaded) {
        var timer=setTimeout("countdown()",1000)
		if (displaycountdown=="yes") {
			window.status="Feed "+reloadseconds+ " Saniye Sonra Güncellenecek."
		}
    }
    else {
        clearTimeout(timer)
		GetFriendFeed()
		Zamanla()
    } 
}


/* Ajax Search Yapapalim*/
function lookup(inputString) {
    if(inputString.length == 0) {
        $('#suggestions').hide();
    } else {
        $.post("libraries/rpc.asp", {queryString: ""+inputString+""}, function(data){
            if(data.length >0) {
                $('#suggestions').show();
                $('#autoSuggestionsList').html(data);
            }
        });
    }
}
function fill(thisValue) {
    $('#inputString').val(thisValue);
   $('#suggestions').hide();
}
/* Ajax Search Yapapalim End*/
/* TextBox Limit*/
function textCounter(field, countfield, maxlimit) {
    if (field.value.length > maxlimit)
        field.value = field.value.substring(0, maxlimit);
    else
        countfield.value = maxlimit - field.value.length;
}
/* TextBox Limit End*/
/* Comment Save */
var nocache = 0;
function CommentSave() {

document.getElementById('CommentLoader').innerHTML = "<img src=images/fbloader.gif > <small>Lütfen Bekleyin...</small>"

var adsoyad = iso88599Escape(document.getElementById('adsoyad').value);
var eposta 	= iso88599Escape(document.getElementById('eposta').value);
var url 	= iso88599Escape(document.getElementById('url').value);
var yorum 	= iso88599Escape(document.getElementById('yorum').value);
var blogid 	= encodeURI(document.getElementById('blogid').value);
nocache 	= Math.random();

http.open('get', 'libraries/rpcinit.asp?Cmd=CommentSave&adsoyad='+ adsoyad +'&blogid='+ blogid +'&eposta='+ eposta +'&url='+ url +'&yorum='+ yorum +'&nocache = '+nocache);
http.onreadystatechange = CommentSaveReply;
http.send(null);
}
function CommentSaveReply() {
if(http.readyState == 4){ 
var response = http.responseText;
if(response == 0){
	document.getElementById('CommentMessage').style.display = 'Block';
	document.getElementById('CommentMessage').innerHTML = 'Lütfen geçerli bir adres yaz ki, sövdüğün zaman geri dönebileyim.';
	document.getElementById('CommentLoader').innerHTML = '';
} else if(response == 1){
	document.getElementById('CommentMessage').style.display = 'Block';
	document.getElementById('CommentMessage').innerHTML = 'Adınızı yazmazsanız sizi nasıl teşhis edeceğim ?.';
	document.getElementById('CommentLoader').innerHTML = '';
} else if(response == 2){
	document.getElementById('CommentMessage').style.display = 'Block';
	document.getElementById('CommentMessage').innerHTML = 'Bu kadar da kısa yorum olmaz ama...';
	document.getElementById('CommentLoader').innerHTML = '';
} else if(response == 3){
	document.getElementById('CommentMessage').style.display = 'Block';
	document.getElementById('CommentMessage').innerHTML = 'Abovvv, enteresan bir hata oldu. Hatayı not alıyorum ama mesajını kayıt edemiyeceğim.. İstersen sayfayı yenileyerek tekrar dene.';
	document.getElementById('CommentLoader').innerHTML = '';
} else if(response == 4){
	document.getElementById('CommentMessage').style.display = 'Block';
	document.getElementById('CommentMessage').innerHTML = 'Gerçekte var olmayan bir girdiye nasıl yorum yapmayı düşünüyorsun ? Ana sayfaya dönüp bu yazıyı tekrar bulmayı dene, bulursan yorumunu ekle...';
	document.getElementById('CommentLoader').innerHTML = '';
} else {
	document.getElementById('YorumlarListesi').innerHTML = document.getElementById('YorumlarListesi').innerHTML + response
	document.getElementById('CommentLoader').innerHTML = '';
	document.getElementById('CommentMessage').style.display = 'none';
	document.getElementById('yorum').value = '';
	}
}
}

var nocache = 0;
function StartFileManager()
{
	document.getElementById('DownloadList').innerHTML = "<p align=\"center\"><br /><img src=\"images/ajax-loader2.gif\" width=\"54\" height=\"55\" /><br />Yükleniyor...</p>"
	nocache 	= Math.random();
	http.open('get', 'libraries/FileManager.asp?nocache = '+nocache);
	http.onreadystatechange = StartFileManagerReply;
	http.send(null);
}
function StartFileManagerReply() {
if(http.readyState == 4){ 
var response = http.responseText;
if(response == 0)
	{
			document.getElementById('DownloadList').innerHTML = "<p align=\"center\"><br /><br />Bir Hata Oluştu Yüklenemedi...</p>";
		} else {
			document.getElementById('DownloadList').innerHTML = response;
		}
	}
}

function FileOpen(ADI,TANIM,RESIM,YOL,TARIH,HIT)
	{
	document.getElementById('File_NameArea').innerHTML 		= ADI;
	document.getElementById('File_DateArea').innerHTML 		= TARIH;
	document.getElementById('File_HitArea').innerHTML 		= HIT;
	document.getElementById('File_PictureArea').innerHTML 	= "<img src=\""+ RESIM +"\" width=\"300\" height=\"150\" border=\"0\" />";
	document.getElementById('File_PropertiesArea').innerHTML = ""+ TANIM +"";
	document.getElementById('File_LinkArea').innerHTML 		= "<center><a href=\""+ YOL +"\" target=\"_Blank\"><strong>Bu dosyayı indir</strong></a></center>";
	}

function TDStlye(itemo,durum){
if(durum!="off"){itemo.style.backgroundColor="#FFFFCC";} else {itemo.style.backgroundColor="";}}





/*
 * JTip
 * By Cody Lindley (http://www.codylindley.com)
 * Under an Attribution, Share Alike License
 * JTip is built on top of the very light weight jquery library.
 */

//on page load (as soon as its ready) call JT_init
$(document).ready(JT_init);

function JT_init(){
	       $("a.personPopupTrigger")
		   .hover(function(){JT_show(this.rel,this.id,this.name)},function(){$('#JT').remove()})
           .click(function(){return false});	   
}

function JT_show(url,linkId,title){
	if(title == false)title="&nbsp;";
	var de = document.documentElement;
	var w = self.innerWidth || (de&&de.clientWidth) || document.body.clientWidth;
	var hasArea = w - getAbsoluteLeft(linkId);
	var clickElementy = getAbsoluteTop(linkId) - 3; //set y position
	
	var queryString = url.replace(/^[^\?]+\??/,'');
	var params = parseQuery( queryString );
	if(params['width'] === undefined){params['width'] = 250};
	if(params['link'] !== undefined){
	$('#' + linkId).bind('click',function(){window.location = params['link']});
	$('#' + linkId).css('cursor','pointer');
	}
	
	if(hasArea>((params['width']*1)+75)){
		$("body").append("<div id='JT' style='width:"+params['width']*1+"px'><div id='JT_arrow_left'></div><div id='JT_close_left'>"+title+"</div><div id='JT_copy'><div class='JT_loader'><div></div></div>");//right side
		var arrowOffset = getElementWidth(linkId) + 11;
		var clickElementx = getAbsoluteLeft(linkId) + arrowOffset; //set x position
	}else{
		$("body").append("<div id='JT' style='width:"+params['width']*1+"px'><div id='JT_arrow_right' style='left:"+((params['width']*1)+1)+"px'></div><div id='JT_close_right'>"+title+"</div><div id='JT_copy'><div class='JT_loader'><div></div></div>");//left side
		var clickElementx = getAbsoluteLeft(linkId) - ((params['width']*1) + 15); //set x position
	}
	
	$('#JT').css({left: clickElementx+"px", top: clickElementy+"px"});
	$('#JT').show();
	$('#JT_copy').load(url);

}

function getElementWidth(objectId) {
	x = document.getElementById(objectId);
	return x.offsetWidth;
}

function getAbsoluteLeft(objectId) {
	// Get an object left position from the upper left viewport corner
	var o = document.getElementById(objectId)
	oLeft = o.offsetLeft            // Get left position from the parent object
	while(o.offsetParent!=null) {   // Parse the parent hierarchy up to the document element
		oParent = o.offsetParent    // Get parent object reference
		oLeft += oParent.offsetLeft // Add parent left position
		o = oParent
	}
	return oLeft
}

function getAbsoluteTop(objectId) {
	// Get an object top position from the upper left viewport corner
	o = document.getElementById(objectId)
	oTop = o.offsetTop            // Get top position from the parent object
	while(o.offsetParent!=null) { // Parse the parent hierarchy up to the document element
		oParent = o.offsetParent  // Get parent object reference
		oTop += oParent.offsetTop // Add parent top position
		o = oParent
	}
	return oTop
}

function parseQuery ( query ) {
   var Params = new Object ();
   if ( ! query ) return Params; // return empty object
   var Pairs = query.split(/[;&]/);
   for ( var i = 0; i < Pairs.length; i++ ) {
      var KeyVal = Pairs[i].split('=');
      if ( ! KeyVal || KeyVal.length != 2 ) continue;
      var key = unescape( KeyVal[0] );
      var val = unescape( KeyVal[1] );
      val = val.replace(/\+/g, ' ');
      Params[key] = val;
   }
   return Params;
}

function blockEvents(evt) {
              if(evt.target){
              evt.preventDefault();
              }else{
              evt.returnValue = false;
              }
}


	$(document).ready(function() {
		$("a#single").fancybox({
			'overlayShow'			: false,
			'zoomSpeedIn'			: 600,
			'zoomSpeedOut'			: 500,
			'easingIn'				: 'easeOutBack',
			'easingOut'				: 'easeInBack',
			'titlePosition'  		: 'inside'
		});
		$("a.group").fancybox({
			'hideOnContentClick': false,
			'zoomSpeedIn'			: 600,
			'zoomSpeedOut'			: 500,
			'easingIn'				: 'easeOutBack',
			'easingOut'				: 'easeInBack',
			'titlePosition'  		: 'inside'
		});
	});
	$(document).ready(function(){
		$("#featured > ul").tabs({fx:{opacity: "toggle"}}).tabs("rotate", 5000, true);
	});

<!-- 
/*
 Pleas leave this notice.
 DHTML tip message version 1.2 copyright Essam Gamal 2003 (http://migoicons.tripod.com, migoicons@hotmail.com)
 All modifications are done in the style.js you should not modify this file.  Created on : 06/03/2003
 Script featured on and can be found at Dynamic Drive (http://www.dynamicdrive.com)
*/ 

var ua = navigator.userAgent
var ps = navigator.productSub 
var dom = (document.getElementById)? 1:0
var ie4 = (document.all&&!dom)? 1:0
var ie5 = (document.all&&dom)? 1:0
var nn4 =(navigator.appName.toLowerCase() == "netscape" && parseInt(navigator.appVersion) == 4)
var nn6 = (dom&&!ie5)? 1:0
var sNav = (nn4||nn6||ie4||ie5)? 1:0
var cssFilters = ((ua.indexOf("MSIE 5.5")>=0||ua.indexOf("MSIE 6")>=0)&&ua.indexOf("Opera")<0)? 1:0
var Style=[],Text=[],Count=0,sbw=0,move=0,hs="",mx,my,scl,sct,ww,wh,obj,sl,st,ih,iw,vl,hl,sv,evlh,evlw,tbody
var HideTip = "eval(obj+sv+hl+';'+obj+sl+'=0;'+obj+st+'=-800')"
var doc_root = ((ie5&&ua.indexOf("Opera")<0||ie4)&&document.compatMode=="CSS1Compat")? "document.documentElement":"document.body"
var PX = (nn6)? "px" :"" 

if(sNav) {
	window.onresize = ReloadTip
	document.onmousemove = MoveTip
	if(nn4) document.captureEvents(Event.MOUSEMOVE) 
}	
if(nn4||nn6) {
	mx = "e.pageX"
	my = "e.pageY"
	scl = "window.pageXOffset"
	sct = "window.pageYOffset"	
	if(nn4) {
		obj = "document.TipLayer."
		sl = "left"
		st = "top"
		ih = "clip.height"
		iw = "clip.width"
		vl = "'show'"
		hl = "'hide'"
		sv = "visibility="
	}
	else obj = "document.getElementById('TipLayer')."
} 
if(ie4||ie5) {
	obj = "TipLayer."
	mx = "event.x"
	my = "event.y"
	scl = "eval(doc_root).scrollLeft"
	sct = "eval(doc_root).scrollTop"
	if(ie5) {
		mx = mx+"+"+scl 
		my = my+"+"+sct
	}
}
if(ie4||dom){
	sl = "style.left"
	st = "style.top"
	ih = "offsetHeight"
	iw = "offsetWidth"
	vl = "'visible'"
	hl = "'hidden'"
	sv = "style.visibility="
}
if(ie4||ie5||ps>=20020823) {
	ww = "eval(doc_root).clientWidth"
	wh = "eval(doc_root).clientHeight"
}	 
else { 
	ww = "window.innerWidth"
	wh = "window.innerHeight"
	evlh = eval(wh)
	evlw = eval(ww)
	sbw=15
}	

function applyCssFilter(){
	if(cssFilters&&FiltersEnabled) { 
		var dx = " progid:DXImageTransform.Microsoft."
		TipLayer.style.filter = "revealTrans()"+dx+"Fade(Overlap=1.00 enabled=0)"+dx+"Inset(enabled=0)"+dx+"Iris(irisstyle=PLUS,motion=in enabled=0)"+dx+"Iris(irisstyle=PLUS,motion=out enabled=0)"+dx+"Iris(irisstyle=DIAMOND,motion=in enabled=0)"+dx+"Iris(irisstyle=DIAMOND,motion=out enabled=0)"+dx+"Iris(irisstyle=CROSS,motion=in enabled=0)"+dx+"Iris(irisstyle=CROSS,motion=out enabled=0)"+dx+"Iris(irisstyle=STAR,motion=in enabled=0)"+dx+"Iris(irisstyle=STAR,motion=out enabled=0)"+dx+"RadialWipe(wipestyle=CLOCK enabled=0)"+dx+"RadialWipe(wipestyle=WEDGE enabled=0)"+dx+"RadialWipe(wipestyle=RADIAL enabled=0)"+dx+"Pixelate(MaxSquare=35,enabled=0)"+dx+"Slide(slidestyle=HIDE,Bands=25 enabled=0)"+dx+"Slide(slidestyle=PUSH,Bands=25 enabled=0)"+dx+"Slide(slidestyle=SWAP,Bands=25 enabled=0)"+dx+"Spiral(GridSizeX=16,GridSizeY=16 enabled=0)"+dx+"Stretch(stretchstyle=HIDE enabled=0)"+dx+"Stretch(stretchstyle=PUSH enabled=0)"+dx+"Stretch(stretchstyle=SPIN enabled=0)"+dx+"Wheel(spokes=16 enabled=0)"+dx+"GradientWipe(GradientSize=1.00,wipestyle=0,motion=forward enabled=0)"+dx+"GradientWipe(GradientSize=1.00,wipestyle=0,motion=reverse enabled=0)"+dx+"GradientWipe(GradientSize=1.00,wipestyle=1,motion=forward enabled=0)"+dx+"GradientWipe(GradientSize=1.00,wipestyle=1,motion=reverse enabled=0)"+dx+"Zigzag(GridSizeX=8,GridSizeY=8 enabled=0)"+dx+"Alpha(enabled=0)"+dx+"Dropshadow(OffX=3,OffY=3,Positive=true,enabled=0)"+dx+"Shadow(strength=3,direction=135,enabled=0)"
	}
}

function stm(t,s) {
  if(sNav) {
  	if(t.length<2||s.length<25) {
		var ErrorNotice = "DHTML TIP MESSAGE VERSION 1.2 ERROR NOTICE.\n"
		if(t.length<2&&s.length<25) alert(ErrorNotice+"It looks like you removed an entry or more from the Style Array and Text Array of this tip.\nTheir should be 25 entries in every Style Array even though empty and 2 in every Text Array. You defined only "+s.length+" entries in the Style Array and "+t.length+" entry in the Text Array. This tip won't be viewed to avoid errors")
		else if(t.length<2) alert(ErrorNotice+"It looks like you removed an entry or more from the Text Array of this tip.\nTheir should be 2 entries in every Text Array. You defined only "+t.length+" entry. This tip won't be viewed to avoid errors.")
		else if(s.length<25) alert(ErrorNotice+"It looks like you removed an entry or more from the Style Array of this tip.\nTheir should be 25 entries in every Style Array even though empty. You defined only "+s.length+" entries. This tip won't be viewed to avoid errors.")
 	}
  	else {
		var ab = "" ;var ap = ""
		var titCol = (s[0])? "COLOR='"+s[0]+"'" : ""
		var txtCol = (s[1])? "COLOR='"+s[1]+"'" : ""
		var titBgCol = (s[2])? "BGCOLOR='"+s[2]+"'" : ""
		var txtBgCol = (s[3])? "BGCOLOR='"+s[3]+"'" : ""
		var titBgImg = (s[4])? "BACKGROUND='"+s[4]+"'" : ""	
		var txtBgImg = (s[5])? "BACKGROUND='"+s[5]+"'" : ""
		var titTxtAli = (s[6] && s[6].toLowerCase()!="left")? "ALIGN='"+s[6]+"'" : ""
		var txtTxtAli = (s[7] && s[7].toLowerCase()!="left")? "ALIGN='"+s[7]+"'" : ""   
		var add_height = (s[15])? "HEIGHT='"+s[15]+"'" : ""
		if(!s[8])  s[8] = "Verdana,Arial,Helvetica"
		if(!s[9])  s[9] = "Verdana,Arial,Helvetica"					
		if(!s[12]) s[12] = 1
		if(!s[13]) s[13] = 1
		if(!s[14]) s[14] = 200
		if(!s[16]) s[16] = 0
		if(!s[17]) s[17] = 0
		if(!s[18]) s[18] = 10
		if(!s[19]) s[19] = 10
		hs = s[11].toLowerCase() 
		if(ps==20001108){
		if(s[2]) ab="STYLE='border:"+s[16]+"px solid"+" "+s[2]+"'"
		ap="STYLE='padding:"+s[17]+"px "+s[17]+"px "+s[17]+"px "+s[17]+"px'"}
		var closeLink=(hs=="sticky")? "<TD ALIGN='right'><FONT SIZE='"+s[12]+"' FACE='"+s[8]+"'><A HREF='javascript:void(0)' ONCLICK='stickyhide()' STYLE='text-decoration:none;color:"+s[0]+"'><B>Kapat</B></A></FONT></TD>":""
		var title=(t[0]||hs=="sticky")? "<TABLE WIDTH='100%' BORDER='0' CELLPADDING='0' CELLSPACING='0'><TR><TD "+titTxtAli+"><FONT SIZE='"+s[12]+"' FACE='"+s[8]+"' "+titCol+"><B>"+t[0]+"</B></FONT></TD>"+closeLink+"</TR></TABLE>" : ""
		var txt="<TABLE "+titBgImg+" "+ab+" WIDTH='"+s[14]+"' BORDER='0' CELLPADDING='"+s[16]+"' CELLSPACING='0' "+titBgCol+" ><TR><TD>"+title+"<TABLE WIDTH='100%' "+add_height+" BORDER='0' CELLPADDING='"+s[17]+"' CELLSPACING='0' "+txtBgCol+" "+txtBgImg+"><TR><TD "+txtTxtAli+" "+ap+" VALIGN='top'><FONT SIZE='"+s[13]+"' FACE='"+s[9]+"' "+txtCol +">"+t[1]+"</FONT></TD></TR></TABLE></TD></TR></TABLE>"
		if(nn4) {
			with(eval(obj+"document")) {
				open()
				write(txt)
				close()
			}
		}
		else eval(obj+"innerHTML=txt")
		tbody = {
			Pos:s[10].toLowerCase(), 
			Xpos:s[18],
			Ypos:s[19], 
			Transition:s[20],
			Duration:s[21], 
			Alpha:s[22],
			ShadowType:s[23].toLowerCase(),
			ShadowColor:s[24],
			Width:parseInt(eval(obj+iw)+3+sbw)
		}
		if(ie4) { 
			TipLayer.style.width = s[14]
	 		tbody.Width = s[14]
		}
		Count=0	
		move=1
 	 }
  }
}

function MoveTip(e) {
	if(move) {
		var X,Y,MouseX = eval(mx),MouseY = eval(my); tbody.Height = parseInt(eval(obj+ih)+3)
		tbody.wiw = parseInt(eval(ww+"+"+scl)); tbody.wih = parseInt(eval(wh+"+"+sct))
		switch(tbody.Pos) {
			case "left" : X=MouseX-tbody.Width-tbody.Xpos; Y=MouseY+tbody.Ypos; break
			case "center": X=MouseX-(tbody.Width/2); Y=MouseY+tbody.Ypos; break
			case "float": X=tbody.Xpos+eval(scl); Y=tbody.Ypos+eval(sct); break	
			case "fixed": X=tbody.Xpos; Y=tbody.Ypos; break		
			default: X=MouseX+tbody.Xpos; Y=MouseY+tbody.Ypos
		}

		if(tbody.wiw<tbody.Width+X) X = tbody.wiw-tbody.Width
		if(tbody.wih<tbody.Height+Y+sbw) {
			if(tbody.Pos=="float"||tbody.Pos=="fixed") Y = tbody.wih-tbody.Height-sbw
			else Y = MouseY-tbody.Height
		}
		if(X<0) X=0 
		eval(obj+sl+"=X+PX;"+obj+st+"=Y+PX")
		ViewTip()
	}
}

function ViewTip() {
  	Count++
	if(Count == 1) {
		if(cssFilters&&FiltersEnabled) {	
			for(Index=28; Index<31; Index++) { TipLayer.filters[Index].enabled = 0 }
			for(s=0; s<28; s++) { if(TipLayer.filters[s].status == 2) TipLayer.filters[s].stop() }
			if(tbody.Transition == 51) tbody.Transition = parseInt(Math.random()*50)
			var applyTrans = (tbody.Transition>-1&&tbody.Transition<24&&tbody.Duration>0)? 1:0
			var advFilters = (tbody.Transition>23&&tbody.Transition<51&&tbody.Duration>0)? 1:0
			var which = (applyTrans)?0:(advFilters)? tbody.Transition-23:0 
			if(tbody.Alpha>0&&tbody.Alpha<100) {
	  			TipLayer.filters[28].enabled = 1
	  			TipLayer.filters[28].opacity = tbody.Alpha
			}
			if(tbody.ShadowColor&&tbody.ShadowType == "simple") {
	  			TipLayer.filters[29].enabled = 1
	  			TipLayer.filters[29].color = tbody.ShadowColor
			}
			else if(tbody.ShadowColor&&tbody.ShadowType == "complex") {
	  			TipLayer.filters[30].enabled = 1
	  			TipLayer.filters[30].color = tbody.ShadowColor
			}
			if(applyTrans||advFilters) {
				eval(obj+sv+hl)
	  			if(applyTrans) TipLayer.filters[0].transition = tbody.Transition
	  			TipLayer.filters[which].duration = tbody.Duration 
	  			TipLayer.filters[which].apply()
			}
		}
 		eval(obj+sv+vl)
		if(cssFilters&&FiltersEnabled&&(applyTrans||advFilters)) TipLayer.filters[which].play()
		if(hs == "sticky") move=0
  	}
}

function stickyhide() {
	eval(HideTip)
}

function ReloadTip() {
	 if(nn4&&(evlw!=eval(ww)||evlh!=eval(wh))) location.reload()
	 else if(hs == "sticky") eval(HideTip)
}

function htm() {
	if(sNav) {
		if(hs!="keep") {
			move=0; 
			if(hs!="sticky") eval(HideTip)
		}	
	} 
}

function SmileyAktar(GelenData) {
	document.CommentForm.yorum.value = document.CommentForm.yorum.value + '<smly>'+ GelenData +'</smly>';
	stickyhide();
	}
//-->

$(document).ready(function(){

	//Adjust panel height
	$.fn.adjustPanel = function(){ 
		$(this).find("ul, .subpanel").css({ 'height' : 'auto'}); //Reset subpanel and ul height
		
		var windowHeight = $(window).height(); //Get the height of the browser viewport
		var panelsub = $(this).find(".subpanel").height(); //Get the height of subpanel	
		var panelAdjust = windowHeight - 100; //Viewport height - 100px (Sets max height of subpanel)
		var ulAdjust =  panelAdjust - 25; //Calculate ul size after adjusting sub-panel (27px is the height of the base panel)
		
		if ( panelsub >= panelAdjust ) {	 //If subpanel is taller than max height...
			$(this).find(".subpanel").css({ 'height' : panelAdjust }); //Adjust subpanel to max height
			$(this).find("ul").css({ 'height' : ulAdjust}); //Adjust subpanel ul to new size
		}
		else if ( panelsub < panelAdjust ) { //If subpanel is smaller than max height...
			$(this).find("ul").css({ 'height' : 'auto'}); //Set subpanel ul to auto (default size)
		}
	};
	
	//Execute function on load
	$("#alertpanel").adjustPanel(); //Run the adjustPanel function on #alertpanel
	
	//Each time the viewport is adjusted/resized, execute the function
	$(window).resize(function () { 
		$("#alertpanel").adjustPanel();
	});
	
	//Click event on Chat Panel + Alert Panel	
	$("#chatpanel a:first, #alertpanel a:first").click(function() { //If clicked on the first link of #chatpanel and #alertpanel...
		if($(this).next(".subpanel").is(':visible')){ //If subpanel is already active...
			$(this).next(".subpanel").hide(); //Hide active subpanel
			$("#footpanel li a").removeClass('active'); //Remove active class on the subpanel trigger
		}
		else { //if subpanel is not active...
			$(".subpanel").hide(); //Hide all subpanels
			$(this).next(".subpanel").toggle(); //Toggle the subpanel to make active
			$("#footpanel li a").removeClass('active'); //Remove active class on all subpanel trigger
			$(this).toggleClass('active'); //Toggle the active class on the subpanel trigger
		}
		return false; //Prevent browser jump to link anchor
	});
	
	//Click event outside of subpanel
	$(document).click(function() { //Click anywhere and...
		$(".subpanel").hide(); //hide subpanel
		$("#footpanel li a").removeClass('active'); //remove active class on subpanel trigger
	});
	$('.subpanel ul').click(function(e) { 
		e.stopPropagation(); //Prevents the subpanel ul from closing on click
	});
	
	//Delete icons on Alert Panel
	$("#alertpanel li").hover(function() {
		$(this).find("a.delete").css({'visibility': 'visible'}); //Show delete icon on hover
	},function() {
		$(this).find("a.delete").css({'visibility': 'hidden'}); //Hide delete icon on hover out
	});
	
});
