﻿/*JQUERY PLUGIN - MOUSE WHEEL */(function($){$.fn.extend({mousewheel:function(f){if(!f.guid)f.guid=$.event.guid++;if(!$.event._mwCache)$.event._mwCache=[];return this.each(function(){if(this._mwHandlers)return this._mwHandlers.push(f);else this._mwHandlers=[];this._mwHandlers.push(f);var s=this;this._mwHandler=function(e){e=$.event.fix(e||window.event);$.extend(e,this._mwCursorPos||{});var delta=0,returnValue=true;if(e.wheelDelta)delta=e.wheelDelta/120;if(e.detail)delta=-e.detail/3;if(window.opera)delta=-e.wheelDelta;for(var i=0;i<s._mwHandlers.length;i++)if(s._mwHandlers[i])if(s._mwHandlers[i].call(s,e,delta)===false){returnValue=false;e.preventDefault();e.stopPropagation();}return returnValue;};if($.browser.mozilla&&!this._mwFixCursorPos){this._mwFixCursorPos=function(e){this._mwCursorPos={pageX:e.pageX,pageY:e.pageY,clientX:e.clientX,clientY:e.clientY};};$(this).bind('mousemove',this._mwFixCursorPos);}if(this.addEventListener)if($.browser.mozilla)this.addEventListener('DOMMouseScroll',this._mwHandler,false);else this.addEventListener('mousewheel',this._mwHandler,false);else this.onmousewheel=this._mwHandler;$.event._mwCache.push($(this));});},unmousewheel:function(f){return this.each(function(){if(f&&this._mwHandlers){for(var i=0;i<this._mwHandlers.length;i++)if(this._mwHandlers[i]&&this._mwHandlers[i].guid==f.guid)delete this._mwHandlers[i];}else{if($.browser.mozilla&&!this._mwFixCursorPos)$(this).unbind('mousemove',this._mwFixCursorPos);if(this.addEventListener)if($.browser.mozilla)this.removeEventListener('DOMMouseScroll',this._mwHandler,false);else this.removeEventListener('mousewheel',this._mwHandler,false);else this.onmousewheel=null;this._mwHandlers=this._mwHandler=this._mwFixCursorPos=this._mwCursorPos=null;}});}});$(window).one('unload',function(){var els=$.event._mwCache||[];for(var i=0;i<els.length;i++)els[i].unmousewheel();});})(jQuery);
/*GANESH PLUGIN - JCAROUSELLITE 1.0.1 */(function($){$.fn.jCarouselLite=function(o){o=$.extend({btnPrev:null,btnNext:null,btnGo:null,mouseWheel:false,auto:null,speed:200,easing:null,vertical:false,circular:true,visible:3,start:0,scroll:1,beforeStart:null,afterEnd:null},o||{});return this.each(function(){var b=false,animCss=o.vertical?"top":"left",sizeCss=o.vertical?"height":"width";var c=$(this),ul=$("ul",c),tLi=$("li",ul),tl=tLi.size(),v=o.visible;if(o.circular){ul.prepend(tLi.slice(tl-v-1+1).clone()).append(tLi.slice(0,v).clone());o.start+=v}var f=$("li",ul),itemLength=f.size(),curr=o.start;c.css("visibility","visible");f.css({overflow:"hidden",float:o.vertical?"none":"left"});ul.css({margin:"0",padding:"0",position:"relative","list-style-type":"none","z-index":"1"});c.css({overflow:"hidden",position:"relative","z-index":"2",left:"0px"});var g=o.vertical?height(f):width(f);var h=g*itemLength;var j=g*v;f.css({width:f.width(),height:f.height()});ul.css(sizeCss,h+"px").css(animCss,-(curr*g));c.css(sizeCss,j+"px");if(o.btnPrev)$(o.btnPrev).click(function(){return go(curr-o.scroll)});if(o.btnNext)$(o.btnNext).click(function(){return go(curr+o.scroll)});if(o.btnGo)$.each(o.btnGo,function(i,a){$(a).click(function(){return go(o.circular?o.visible+i:i)})});if(o.mouseWheel&&c.mousewheel)c.mousewheel(function(e,d){return d>0?go(curr-o.scroll):go(curr+o.scroll)});if(o.auto)setInterval(function(){go(curr+o.scroll)},o.auto+o.speed);function vis(){return f.slice(curr).slice(0,v)};function go(a){if(!b){if(o.beforeStart)o.beforeStart.call(this,vis());if(o.circular){if(a<=o.start-v-1){ul.css(animCss,-((itemLength-(v*2))*g)+"px");curr=a==o.start-v-1?itemLength-(v*2)-1:itemLength-(v*2)-o.scroll}else if(a>=itemLength-v+1){ul.css(animCss,-((v)*g)+"px");curr=a==itemLength-v+1?v+1:v+o.scroll}else curr=a}else{if(a<0||a>itemLength-v)return;else curr=a}b=true;ul.animate(animCss=="left"?{left:-(curr*g)}:{top:-(curr*g)},o.speed,o.easing,function(){if(o.afterEnd)o.afterEnd.call(this,vis());b=false});if(!o.circular){$(o.btnPrev+","+o.btnNext).removeClass("disabled");$((curr-o.scroll<0&&o.btnPrev)||(curr+o.scroll>itemLength-v&&o.btnNext)||[]).addClass("disabled")}}return false}})};function css(a,b){return parseInt($.css(a[0],b))||0};function width(a){return a[0].offsetWidth+css(a,'marginLeft')+css(a,'marginRight')};function height(a){return a[0].offsetHeight+css(a,'marginTop')+css(a,'marginBottom')}})(jQuery);
/*JQUERY TIMER */jQuery.timer = function (interval, callback){var interval = interval || 100;if (!callback){return false;} _timer=function(interval, callback) {this.stop = function () {clearInterval(self.id);};this.internalCallback = function () {callback(self);};this.reset = function (val) {if (self.id){clearInterval(self.id);}var val = val || 100;this.id = setInterval(this.internalCallback, val);};this.interval = interval;this.id = setInterval(this.internalCallback, this.interval);var self = this;};return new _timer(interval, callback); };
/*JQUERY SCROLL TO JOEL */(function($){eval(function(p,a,c,k,e,d){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--){d[e(c)]=k[c]||e(c)}k=[function(e){return d[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}('3.R=6(e){7 l=0;7 t=0;7 w=3.a(3.X(e,\'1e\'));7 h=3.a(3.X(e,\'1f\'));7 m=e.L;7 B=e.F;1a(e.S){l+=e.T+(e.8?3.a(e.8.W):0);t+=e.V+(e.8?3.a(e.8.10):0);e=e.S}l+=e.T+(e.8?3.a(e.8.W):0);t+=e.V+(e.8?3.a(e.8.10):0);c{x:l,y:t,w:w,h:h,m:m,B:B}};3.1d=6(e){b(e){w=e.k;h=e.C}f{w=(d.Y)?d.Y:(1.4&&1.4.k)?1.4.k:1.9.L;h=(d.H)?d.H:(1.4&&1.4.C)?1.4.C:1.9.F}c{w:w,h:h}};3.U=6(e){b(e){t=e.i;l=e.A;w=e.r;h=e.D}f{b(1.4&&1.4.i){t=1.4.i;l=1.4.A;w=1.4.r;h=1.4.D}f b(1.9){t=1.9.i;l=1.9.A;w=1.9.r;h=1.9.D}}c{t:t,l:l,w:w,h:h}};3.a=6(v){v=12(v);c 14(v)?0:v};3.16.E=6(s){o=3.17(s);c u.18(6(){n 3.P.E(u,o)})};3.P.E=6(e,o){7 z=u;z.o=o;z.e=e;z.p=3.R(e);z.s=3.U();z.J=6(){1b(z.j);z.j=1c};z.t=(n N).Z();z.M=6(){7 t=(n N).Z();7 p=(t-z.t)/z.o.I;b(t>=z.o.I+z.t){z.J();11(6(){z.q(z.p.y,z.p.x)},13)}f{G=((-g.O(p*g.Q)/2)+0.5)*(z.p.y-z.s.t)+z.s.t;K=((-g.O(p*g.Q)/2)+0.5)*(z.p.x-z.s.l)+z.s.l;z.q(G,K)}};z.q=6(t,l){d.19(l,t)};z.j=15(6(){z.M()},13)};',62,78,'|document||jQuery|documentElement||function|var|currentStyle|body|intval|if|return|window||else|Math||scrollTop|timer|clientWidth||wb|new|||scroll|scrollWidth|||this||||||scrollLeft|hb|clientHeight|scrollHeight|ScrollTo|offsetHeight|st|innerHeight|duration|clear|sl|offsetWidth|step|Date|cos|fx|PI|getPos|offsetParent|offsetLeft|getScroll|offsetTop|borderLeftWidth|css|innerWidth|getTime|borderTopWidth|setTimeout|parseInt||isNaN|setInterval|fn|speed|each|scrollTo|while|clearInterval|null|getClient|width|height'.split('|'),0,{}));})(jQuery);
/* Auto Expanding Text Area (1.2.2) */ /* $('#yorumkutusu').autogrow({lineHeight:14,minHeight:80}); */  (function(jQuery){var self=null;jQuery.fn.autogrow=function(o){return this.each(function(){new jQuery.autogrow(this,o)})};jQuery.autogrow=function(e,o){this.options=o||{};this.dummy=null;this.interval=null;this.line_height=this.options.lineHeight||parseInt(jQuery(e).css('line-height'));this.min_height=this.options.minHeight||parseInt(jQuery(e).css('min-height'));this.max_height=this.options.maxHeight||parseInt(jQuery(e).css('max-height'));this.textarea=jQuery(e);if(this.line_height==NaN)this.line_height=0;this.init()};jQuery.autogrow.fn=jQuery.autogrow.prototype={autogrow:'1.2.2'};jQuery.autogrow.fn.extend=jQuery.autogrow.extend=jQuery.extend;jQuery.autogrow.fn.extend({init:function(){var self=this;this.textarea.css({overflow:'hidden',display:'block'});this.textarea.bind('focus',function(){self.startExpand()}).bind('blur',function(){self.stopExpand()});this.checkExpand()},startExpand:function(){var self=this;this.interval=window.setInterval(function(){self.checkExpand()},400)},stopExpand:function(){clearInterval(this.interval)},checkExpand:function(){if(this.dummy==null){this.dummy=jQuery('<div></div>');this.dummy.css({'font-size':this.textarea.css('font-size'),'font-family':this.textarea.css('font-family'),'width':this.textarea.css('width'),'padding':this.textarea.css('padding'),'line-height':this.line_height+'px','overflow-x':'hidden','position':'absolute','top':0,'left':-9999}).appendTo('body')}var html=this.textarea.val().replace(/(<|>)/g,'');if($.browser.msie){html=html.replace(/\n/g,'<BR>new')}else{html=html.replace(/\n/g,'<br>new')}if(this.dummy.html()!=html){this.dummy.html(html);if(this.max_height>0&&(this.dummy.height()+this.line_height>this.max_height)){this.textarea.css('overflow-y','auto')}else{this.textarea.css('overflow-y','hidden');if(this.textarea.height()<this.dummy.height()+this.line_height||(this.dummy.height()<this.textarea.height())){this.textarea.animate({height:(this.dummy.height()+this.line_height)+'px'},100)}}}}})})(jQuery);
/* Textarea character counter http://www.tomdeater.com */ (function($){$.fn.charCounter=function(max,settings){max=max||100;settings=$.extend({container:'<span class="charcounter"></span>',classname:"charcounter",format:"%1",pulse:true,delay:0},settings);var p,timeout;function count(el,container){el=$(el);if(el.val().length>max){el.val(el.val().substring(0,max));if(settings.pulse&&!p){pulse(container,true);};};if(settings.delay>0){if(timeout){window.clearTimeout(timeout);} timeout=window.setTimeout(function(){container.html(settings.format.replace(/%1/,(max-el.val().length)));},settings.delay);}else{container.html(settings.format.replace(/%1/,(max-el.val().length)));}};function pulse(el,again){if(p){window.clearTimeout(p);p=null;};el.animate({opacity:0.1},100,function(){$(this).animate({opacity:1.0},100);});if(again){p=window.setTimeout(function(){pulse(el)},200);};};return this.each(function(){var container=(!settings.container.match(/^<.+>$/))?$(settings.container):$(settings.container).insertAfter(this).addClass(settings.classname);$(this).bind("keydown",function(){count(this,container);}).bind("keypress",function(){count(this,container);}).bind("keyup",function(){count(this,container);}).bind("focus",function(){count(this,container);}).bind("mouseover",function(){count(this,container);}).bind("mouseout",function(){count(this,container);}).bind("paste",function(){var me=this;setTimeout(function(){count(me,container);},10);});if(this.addEventListener){this.addEventListener('input',function(){count(this,container);},false);};count(this,container);});};})(jQuery);
/* ColorBox v1.3.9 - a full featured, light-weight, customizable lightbox based on jQuery 1.3 - 2009 Jack Moore - www.colorpowered.com - jack@colorpowered.com */
(function(b,gb){var v="none",t="click",N="LoadedContent",d=false,x="resize.",o="y",u="auto",f=true,M="nofollow",q="on",n="x";function e(a,c){a=a?' id="'+k+a+'"':"";c=c?' style="'+c+'"':"";return b("<div"+a+c+"/>")}function p(a,b){b=b===n?m.width():m.height();return typeof a==="string"?Math.round(a.match(/%/)?b/100*parseInt(a,10):parseInt(a,10)):a}function Q(c){c=b.isFunction(c)?c.call(h):c;return a.photo||c.match(/\.(gif|png|jpg|jpeg|bmp)(?:\?([^#]*))?(?:#(\.*))?$/i)}function cb(){for(var c in a)if(b.isFunction(a[c])&&c.substring(0,2)!==q)a[c]=a[c].call(h);a.rel=a.rel||h.rel||M;a.href=a.href||b(h).attr("href");a.title=a.title||h.title}function db(d){h=d;a=b.extend({},b(h).data(r));cb();if(a.rel!==M){i=b("."+H).filter(function(){return (b(this).data(r).rel||this.rel)===a.rel});g=i.index(h);if(g===-1){i=i.add(h);g=i.length-1}}else{i=b(h);g=0}if(!w){w=F=f;R=h;try{R.blur()}catch(e){}b.event.trigger(hb);a.onOpen&&a.onOpen.call(h);y.css({opacity:+a.opacity,cursor:a.overlayClose?"pointer":u}).show();a.w=p(a.initialWidth,n);a.h=p(a.initialHeight,o);c.position(0);S&&m.bind(x+O+" scroll."+O,function(){y.css({width:m.width(),height:m.height(),top:m.scrollTop(),left:m.scrollLeft()})}).trigger("scroll."+O)}T.add(I).add(J).add(z).add(U).hide();V.html(a.close).show();c.slideshow();c.load()}var eb={transition:"elastic",speed:300,width:d,initialWidth:"600",innerWidth:d,maxWidth:d,height:d,initialHeight:"450",innerHeight:d,maxHeight:d,scalePhotos:f,scrolling:f,inline:d,html:d,iframe:d,photo:d,href:d,title:d,rel:d,opacity:.9,preloading:f,current:"image {current} of {total}",previous:"previous",next:"next",close:"close",open:d,loop:f,slideshow:d,slideshowAuto:f,slideshowSpeed:2500,slideshowStart:"start slideshow",slideshowStop:"stop slideshow",onOpen:d,onLoad:d,onComplete:d,onCleanup:d,onClosed:d,overlayClose:f,escKey:f,arrowKey:f},r="colorbox",k="cbox",hb=k+"_open",P=k+"_load",W=k+"_complete",X=k+"_cleanup",fb=k+"_closed",G=b.browser.msie&&!b.support.opacity,S=G&&b.browser.version<7,O=k+"_IE6",y,j,E,s,Y,Z,ab,bb,i,m,l,K,L,U,T,z,J,I,V,C,D,A,B,h,R,g,a,w,F,c,H=k+"Element";c=b.fn[r]=b[r]=function(c,d){var a=this;if(!a[0]&&a.selector)return a;c=c||{};if(d)c.onComplete=d;if(!a[0]||a.selector===undefined){a=b("<a/>");c.open=f}a.each(function(){b(this).data(r,b.extend({},b(this).data(r)||eb,c)).addClass(H)});c.open&&db(a[0]);return a};c.init=function(){var h="hover";m=b(gb);j=e().attr({id:r,"class":G?k+"IE":""});y=e("Overlay",S?"position:absolute":"").hide();E=e("Wrapper");s=e("Content").append(l=e(N,"width:0; height:0"),L=e("LoadingOverlay").add(e("LoadingGraphic")),U=e("Title"),T=e("Current"),J=e("Next"),I=e("Previous"),z=e("Slideshow"),V=e("Close"));E.append(e().append(e("TopLeft"),Y=e("TopCenter"),e("TopRight")),e().append(Z=e("MiddleLeft"),s,ab=e("MiddleRight")),e().append(e("BottomLeft"),bb=e("BottomCenter"),e("BottomRight"))).children().children().css({"float":"left"});K=e(d,"position:absolute; width:9999px; visibility:hidden; display:none");b("body").prepend(y,j.append(E,K));s.children().hover(function(){b(this).addClass(h)},function(){b(this).removeClass(h)}).addClass(h);C=Y.height()+bb.height()+s.outerHeight(f)-s.height();D=Z.width()+ab.width()+s.outerWidth(f)-s.width();A=l.outerHeight(f);B=l.outerWidth(f);j.css({"padding-bottom":C,"padding-right":D}).hide();J.click(c.next);I.click(c.prev);V.click(c.close);s.children().removeClass(h);b("."+H).live(t,function(a){if(a.button!==0&&typeof a.button!=="undefined"||a.ctrlKey||a.shiftKey||a.altKey)return f;else{db(this);return d}});y.click(function(){a.overlayClose&&c.close()});b(document).bind("keydown",function(b){if(w&&a.escKey&&b.keyCode===27){b.preventDefault();c.close()}if(w&&a.arrowKey&&!F&&i[1])if(b.keyCode===37&&(g||a.loop)){b.preventDefault();I.click()}else if(b.keyCode===39&&(g<i.length-1||a.loop)){b.preventDefault();J.click()}})};c.remove=function(){j.add(y).remove();b("."+H).die(t).removeData(r).removeClass(H)};c.position=function(f,b){function c(a){Y[0].style.width=bb[0].style.width=s[0].style.width=a.style.width;L[0].style.height=L[1].style.height=s[0].style.height=Z[0].style.height=ab[0].style.height=a.style.height}var e,h=Math.max(m.height()-a.h-A-C,0)/2+m.scrollTop(),g=Math.max(m.width()-a.w-B-D,0)/2+m.scrollLeft();e=j.width()===a.w+B&&j.height()===a.h+A?0:f;E[0].style.width=E[0].style.height="9999px";j.dequeue().animate({width:a.w+B,height:a.h+A,top:h,left:g},{duration:e,complete:function(){c(this);F=d;E[0].style.width=a.w+B+D+"px";E[0].style.height=a.h+A+C+"px";b&&b()},step:function(){c(this)}})};c.resize=function(b){if(w){b=b||{};if(b.width)a.w=p(b.width,n)-B-D;if(b.innerWidth)a.w=p(b.innerWidth,n);l.css({width:a.w});if(b.height)a.h=p(b.height,o)-A-C;if(b.innerHeight)a.h=p(b.innerHeight,o);if(!b.innerHeight&&!b.height){b=l.wrapInner("<div style='overflow:auto'></div>").children();a.h=b.height();b.replaceWith(b.children())}l.css({height:a.h});c.position(a.transition===v?0:a.speed)}};c.prep=function(o){var d="hidden";function n(t){var o,q,s,n,d=i.length,e=a.loop;c.position(t,function(){function t(){G&&j[0].style.removeAttribute("filter")}if(w){G&&p&&l.fadeIn(100);a.iframe&&b("<iframe frameborder=0"+(a.scrolling?"":" scrolling='no'")+(G?" allowtransparency='true'":"")+"/>").attr({src:a.href,name:(new Date).getTime()}).appendTo(l);l.show();U.show().html(a.title);if(d>1){T.html(a.current.replace(/\{current\}/,g+1).replace(/\{total\}/,d)).show();J[e||g<d-1?"show":"hide"]().html(a.next);I[e||g?"show":"hide"]().html(a.previous);o=g?i[g-1]:i[d-1];s=g<d-1?i[g+1]:i[0];if(a.slideshow){z.show();g===d-1&&!e&&j.is("."+k+"Slideshow_on")&&z.click()}if(a.preloading){n=b(s).data(r).href||s.href;q=b(o).data(r).href||o.href;if(Q(n))b("<img/>")[0].src=n;if(Q(q))b("<img/>")[0].src=q}}L.hide();a.transition==="fade"?j.fadeTo(f,1,function(){t()}):t();m.bind(x+k,function(){c.position(0)});b.event.trigger(W);a.onComplete&&a.onComplete.call(h)}})}if(w){var p,f=a.transition===v?0:a.speed;m.unbind(x+k);l.remove();l=e(N).html(o);l.hide().appendTo(K.show()).css({width:function(){a.w=a.w||l.width();a.w=a.mw&&a.mw<a.w?a.mw:a.w;return a.w}(),overflow:a.scrolling?u:d}).css({height:function(){a.h=a.h||l.height();a.h=a.mh&&a.mh<a.h?a.mh:a.h;return a.h}()}).prependTo(s);K.hide();b("#"+k+"Photo").css({cssFloat:v});S&&b("select").not(j.find("select")).filter(function(){return this.style.visibility!==d}).css({visibility:d}).one(X,function(){this.style.visibility="inherit"});a.transition==="fade"?j.fadeTo(f,0,function(){n(0)}):n(f)}};c.load=function(){var j,d,q,m=c.prep;F=f;h=i[g];a=b.extend({},b(h).data(r));cb();b.event.trigger(P);a.onLoad&&a.onLoad.call(h);a.h=a.height?p(a.height,o)-A-C:a.innerHeight&&p(a.innerHeight,o);a.w=a.width?p(a.width,n)-B-D:a.innerWidth&&p(a.innerWidth,n);a.mw=a.w;a.mh=a.h;if(a.maxWidth){a.mw=p(a.maxWidth,n)-B-D;a.mw=a.w&&a.w<a.mw?a.w:a.mw}if(a.maxHeight){a.mh=p(a.maxHeight,o)-A-C;a.mh=a.h&&a.h<a.mh?a.h:a.mh}j=a.href;L.show();if(a.inline){e("InlineTemp").hide().insertBefore(b(j)[0]).bind(P+" "+X,function(){b(this).replaceWith(l.children())});m(b(j))}else if(a.iframe)m(" ");else if(a.html)m(a.html);else if(Q(j)){d=new Image;d.onload=function(){var e;d.onload=null;d.id=k+"Photo";b(d).css({margin:u,border:v,display:"block",cssFloat:"left"});if(a.scalePhotos){q=function(){d.height-=d.height*e;d.width-=d.width*e};if(a.mw&&d.width>a.mw){e=(d.width-a.mw)/d.width;q()}if(a.mh&&d.height>a.mh){e=(d.height-a.mh)/d.height;q()}}if(a.h)d.style.marginTop=Math.max(a.h-d.height,0)/2+"px";setTimeout(function(){m(d)},1);i[1]&&(g<i.length-1||a.loop)&&b(d).css({cursor:"pointer"}).click(c.next);if(G)d.style.msInterpolationMode="bicubic"};d.src=j}else e().appendTo(K).load(j,function(c,a,b){m(a==="error"?"Request unsuccessful: "+b.statusText:this)})};c.next=function(){if(!F){g=g<i.length-1?g+1:0;c.load()}};c.prev=function(){if(!F){g=g?g-1:i.length-1;c.load()}};c.slideshow=function(){function f(){z.text(a.slideshowStop).bind(W,function(){d=setTimeout(c.next,a.slideshowSpeed)}).bind(P,function(){clearTimeout(d)}).one(t,function(){e()});j.removeClass(b+"off").addClass(b+q)}var e,d,b=k+"Slideshow_";z.bind(fb,function(){z.unbind();clearTimeout(d);j.removeClass(b+"off "+b+q)});e=function(){clearTimeout(d);z.text(a.slideshowStart).unbind(W+" "+P).one(t,function(){f();d=setTimeout(c.next,a.slideshowSpeed)});j.removeClass(b+q).addClass(b+"off")};if(a.slideshow&&i[1])a.slideshowAuto?f():e()};c.close=function(){if(w){w=d;b.event.trigger(X);a.onCleanup&&a.onCleanup.call(h);m.unbind("."+k+" ."+O);y.fadeTo("fast",0);j.stop().fadeTo("fast",0,function(){j.find("iframe").attr("src","about:blank");l.remove();j.add(y).css({opacity:1,cursor:u}).hide();try{R.focus()}catch(c){}setTimeout(function(){b.event.trigger(fb);a.onClosed&&a.onClosed.call(h)},1)})}};c.element=function(){return b(h)};c.settings=eb;b(c.init)})(jQuery,this)

// Takes an ISO time and returns a string representing how
// long ago the date represents.
function prettyDate(time){
	var date = new Date((time || "").replace(/-/g,"/").replace(/[TZ]/g," ")),diff = (((new Date()).getTime() - date.getTime()) / 1000),day_diff = Math.floor(diff / 86400);
	if ( isNaN(day_diff) || day_diff < 0 || day_diff >= 31 ){return;}
    
	return day_diff == 0 &&
    (
			diff < 10 && "Şimdi" ||
            diff < 60 && Math.floor(diff) + " sn. önce" ||
			diff < 120 && "1 dk. önce" ||
			diff < 3600 && Math.floor( diff / 60 ) + " dk. önce" ||
            diff < 3660 && " 1 saat önce" ||
			diff < 86400 && Math.floor( diff / 3600 ) + " saat "+ Math.floor((diff%3600)/60) + " dk. önce"
    ) || day_diff == 1 && "Dün "+ date.getHours()+':'+date.getMinutes();
}
// If jQuery is included in the page, adds a jQuery plugin to handle it as well
if ( typeof jQuery != "undefined" ) {
	jQuery.fn.prettyDate = function(){
		return this.each(function(){
			var date = prettyDate(this.title);
			if ( date )
				jQuery(this).text( date );
		});
	};
}

/* COOKIES */
function setCookie(c_name,value,expiredays){var exdate=new Date();exdate.setDate(exdate.getDate()+expiredays);document.cookie=c_name+ "=" +escape(value)+((expiredays==null) ? "" : ";expires="+exdate.toGMTString()+';')+'path=/;';}
function setCookieTime(c_name,value,minutes){var exdate=new Date();exdate.setTime( exdate.getTime() );var exdate = new Date( exdate.getTime() + (minutes * 1000 * 60) );document.cookie=c_name+ "=" +escape(value)+((minutes==null) ? "" : ";expires="+exdate.toGMTString());}
function getCookie(c_name){if(document.cookie.length>0){c_start=document.cookie.indexOf(c_name + "=");if (c_start!=-1){c_start=c_start + c_name.length+1;c_end=document.cookie.indexOf(";",c_start);if (c_end==-1) c_end=document.cookie.length;return unescape(document.cookie.substring(c_start,c_end));}}return "";}

/* JSON */ /* $.JSON.encode(JSONDATA); $.JSON.decode(STRING); */
jQuery.JSON={useHasOwn:({}.hasOwnProperty?true:false),pad:function(n){return n<10?"0"+n:n;},m:{"\b":'\\b',"\t":'\\t',"\n":'\\n',"\f":'\\f',"\r":'\\r','"':'\\"',"\\":'\\\\'},encodeString : function(s){if(/["\\\x00-\x1f]/.test(s)){return '"'+s.replace(/([\x00-\x1f\\"])/g,function(a,b){var c=m[b];if(c){return c;}c=b.charCodeAt();return "\\u00"+Math.floor(c/16).toString(16)+(c%16).toString(16);})+'"';}return '"'+s+'"';},encodeArray : function(o){var a = ["["],b,i,l=o.length,v;for (i=0;i<l;i+=1){v=o[i];switch(typeof v){case "undefined":case "function":case "unknown":break;default:if(b){a.push(',');}a.push(v===null?"null":this.encode(v));b=true;}}a.push("]");return a.join("");},encodeDate:function(o){return '"'+o.getFullYear()+"-"+pad(o.getMonth()+1)+"-"+pad(o.getDate())+"T"+pad(o.getHours())+":"+pad(o.getMinutes())+":"+pad(o.getSeconds())+'"';},encode:function(o){if(typeof o=="undefined"||o===null){return "null";}else if(o instanceof Array){return this.encodeArray(o);}else if(o instanceof Date){return this.encodeDate(o);}else if(typeof o=="string"){return this.encodeString(o);}else if(typeof o=="number"){return isFinite(o)?String(o):"null";}else if(typeof o=="boolean"){return String(o);}else{var self=this;var a=["{"],b,i,v;for(i in o){if(!this.useHasOwn||o.hasOwnProperty(i)){v=o[i];switch (typeof v) {case "undefined":case "function":case "unknown":break;default:if(b){a.push(',');}a.push(self.encode(i),":",v===null?"null":self.encode(v));b=true;}}}a.push("}");return a.join("");}},decode:function(json){return eval("("+json+')');}};

function randomString(length){var chars = '0123456789ABCDEFGHIJKLMNOPQRSTUVWXTZabcdefghiklmnopqrstuvwxyz'.split('');if (! length) {length = Math.floor(Math.random() * chars.length);}
    var str = '';for (var i = 0; i < length; i++) {str += chars[Math.floor(Math.random() * chars.length)];}return str;
}

/* Array Works */
function reorganize(formObj, stepUp) {
  stepUp = (Math.abs(parseInt(stepUp)) > 0 ? Math.abs(parseInt(stepUp)) : 1);
  var nextRound = 1;
  var idx = 0;
  var tempArray = new Array();

  for (var i = 0; i < formObj.length; i++) {
    tempArray[i] = formObj[idx];
    if (idx + stepUp >= formObj.length) {
      idx = nextRound;
      nextRound++;
      }
    else {
      idx += stepUp;
      }
    }
  return tempArray;
  }

/* JQUERY CALENDAR */ jMonthCalendar={navLinks:{enableToday:true,enableNextYear:true,enablePrevYear:true,p:"<strong>&lsaquo; Önce</strong>",n:"<strong>Sonra &rsaquo;</strong>",t:"Bugün"},locale:{days:["Pazar","Pazartesi","Salı","Çarşamba","Perşembe","Cuma","Cumartesi","Pazar"],daysShort:["Pzr","Pts","Sal","Çrş","Prş","Cum","Cts","Pzr"],daysMin:["Pz","Pt","Sa","Çr","Pr","Cu","Ct","Pz"],months:["Ocak","Şubat","Mart","Nisan","Mayıs","Haziran","Temmuz","Ağustos","Eylül","Ekim","Kasım","Aralık"],monthsShort:["Oca", "Şub","Mar","Nis","May","Haz","Tem","Ağu","Eyl","Eki","Kas","Ara"],weekMin:"wk"}}; (function(a){var b={container:"#jMonthCalendar",head:"#CalendarHead",body:"#CalendarBody"},d,i,k,f={height:670,width:660,navHeight:25,labelHeight:25,firstDayOfWeek:1,calendarStartDate:new Date,dragableEvents:false,activeDroppableClass:false,hoverDroppableClass:false,navLinks:{enableToday:true,enableNextYear:true,enablePrevYear:true,p:"&lsaquo; <strong>\u00d6nceki</strong>",n:"<strong>Sonraki</strong> &rsaquo;",t:"Bug\u00fcn"},onMonthChanging:function(){return true},onMonthChanged:function(){return true}, onEventLinkClick:function(){return true},onEventBlockClick:function(){return true},onEventBlockOver:function(){return true},onEventBlockOut:function(){return true},onDayLinkClick:function(){return true},onDayCellClick:function(){return true},onDayCellDblClick:function(){return true},onEventDropped:function(){return true},locale:{days:["Pazar","Pazartesi","Sal\u0131","\u00c7ar\u015famba","Per\u015fembe","Cuma","Cumartesi","Pazar"],daysShort:["Paz","Ptesi","Sa","\u00c7a","Pe","Cu","Ctesi","Paz"],daysMin:["P", "Pt","S","\u00c7","P","C","Ct","p"],months:["Ocak","\u015eubat","Mart","Nisan","May\u0131s","Haziran","Temmuz","A\u011fustos","Eyl\u00fcl","Ekim","Kas\u0131m","Aral\u0131k"],monthsShort:["Oc","\u015eu","Mar","Nis","May","Haz","Tem","A\u011f","Eyl","Ek","Kas","Ar"],weekMin:"wk"}},h=function(e){var j=e.getMonth()+1<10?"0"+(e.getMonth()+1):e.getMonth()+1,l=e.getDate()<10?"0"+e.getDate():e.getDate();return"c_"+j+l+e.getFullYear()},c=function(e){var j;if(typeof e=="string"){var l=/^([0-9]{4})-([0-9]{2})-([0-9]{2})T([0-9]{2}):([0-9]{2}):([0-9]{2})$/, m=/^([0-9]{4})-([0-9]{2})-([0-9]{2})$/;if(j=e.match(/^([0-9]{4})-([0-9]{2})-([0-9]{2})T([0-9]{2}):([0-9]{2}):([0-9]{2}).([0-9]{7})$/))return new Date(j[1],j[2]-1,j[3]);else if(j=e.match(l))return new Date(j[1],j[2]-1,j[3]);else if(j=e.match(m))return new Date(j[1],j[2]-1,j[3]);if(j=e.match(/^\\\/Date\(([0-9]{13})-([0-9]{4})\)\\\/$/))return new Date(j[1]);if(e.match(/^new/))return eval("("+e+")");return tdt}};jQuery.jMonthCalendar=jQuery.J=function(){};jQuery.J.DrawCalendar=function(e){var j=f.calendarStartDate; if(e==undefined)e=new Date(j.getFullYear(),j.getMonth(),1);else{e=e;e.setDate(1)}var l=e.getMonth()==0?new Date(e.getFullYear()-1,11,1):new Date(e.getFullYear(),e.getMonth()-1,1),m=jQuery('<div class="MonthNavPrev"><a href="" class="link-prev">'+f.navLinks.p+"</a></div>").click(function(){jQuery.J.ChangeMonth(l);return false}),o=e.getMonth()==11?new Date(e.getFullYear()+1,0,1):new Date(e.getFullYear(),e.getMonth()+1,1),n=jQuery('<div class="MonthNavNext"><a href="" class="link-next">'+f.navLinks.n+ "</a></div>").click(function(){jQuery.J.ChangeMonth(o);return false}),x=new Date(e.getFullYear()-1,e.getMonth(),e.getDate()),s;if(f.navLinks.enablePrevYear)s=jQuery('<div class="YearNavPrev"><a href="">'+x.getFullYear()+"</a></div>").click(function(){jQuery.J.ChangeMonth(x);return false});var y=new Date(e.getFullYear()+1,e.getMonth(),e.getDate()),p;if(f.navLinks.enableNextYear)p=jQuery('<div class="YearNavNext"><a href="">'+y.getFullYear()+"</a></div>").click(function(){jQuery.J.ChangeMonth(y);return false}); var u;if(f.navLinks.enableToday)u=jQuery('<div class="TodayLink"><a href="" class="link-today">'+f.navLinks.t+"</a></div>").click(function(){jQuery.J.ChangeMonth(new Date);return false});var w=jQuery('<tr><td colspan="7"><div class="FormHeader MonthNavigation"></div></td></tr>').css({height:f.navHeight}),t=jQuery(".MonthNavigation",w);t.append(m,n);f.navLinks.enableToday&&t.append(u);t.append(jQuery('<div class="MonthName"></div>').append(f.locale.months[e.getMonth()]+" "+e.getFullYear()));f.navLinks.enableNextYear&& t.append(p);f.navLinks.enablePrevYear&&t.append(s);s=jQuery("<tr></tr>").css({height:f.labelHeight});for(p=f.firstDayOfWeek;p<f.firstDayOfWeek+7;p++){var q=p%7;u=f.locale.days[q];s.append('<th title="'+u+'" class="DateHeader'+(q==0||q==6?" Weekend":"")+'"><span>'+u+"</span></th>")}s=jQuery('<thead id="CalendarHead"></thead>').append(s);s=s.prepend(w);w=jQuery('<tbody id="CalendarBody"></tbody>');u=e.getMonth()==j.getMonth()&&e.getFullYear()==j.getFullYear();m=Date.getDaysInMonth(e.getFullYear(),e.getMonth()); n=f.firstDayOfWeek-e.getDay();if(n>0)n-=7;p=m+Math.abs(n);d=new Date(e.getFullYear(),e.getMonth(),n+1);i=new Date(e.getFullYear(),e.getMonth()+1,7-(p%=7)==7?0:7-(p%=7));t=new Date(d.getFullYear(),d.getMonth(),d.getDate());var C=0,D=(f.height-f.labelHeight-f.navHeight)/Math.ceil((m+Math.abs(n))/7);do{var z=jQuery("<tr></tr>");z.css({height:D+"px"});for(p=0;p<7;p++){q=(f.firstDayOfWeek+p)%7;q={"class":"DateBox"+(q==0||q==6?" Weekend ":""),date:t.toString("M/d/yyyy"),id:h(t)};if(n<0||n>=m)q["class"]+= " Inactive";else e.setDate(n+1);if(u&&n+1==j.getDate()){dayStr=n+1;q["class"]+=" Today"}var E=jQuery('<div class="DateLabel"><a href="javascript:;">'+t.getDate()+"</a></div>").click(function(v){f.onDayLinkClick(new Date(a(this).parent().attr("date")));v.stopPropagation()});q=jQuery("<td></td>").attr(q).append(E).dblclick(function(v){f.onDayCellDblClick(new Date(a(this).attr("date")));v.stopPropagation()}).click(function(v){f.onDayCellClick(new Date(a(this).attr("date")));v.stopPropagation()});f.dragableEvents&& q.droppable({hoverClass:f.hoverDroppableClass,activeClass:f.activeDroppableClass,drop:function(v,A){A.draggable.attr("style","position: relative; display: block;");a(this).append(A.draggable);var B;a.each(k,function(){if(this.EventID==A.draggable.attr("id"))B=this});f.onEventDropped(B,a(this).attr("date"));return false}});z.append(q);n++;t.addDays(1)}C++;w.append(z)}while(n<m);j=jQuery(b.container).css({width:f.width+"px",height:f.height+"px"});e=jQuery('<table class="MonthlyCalendar" cellpadding="0" tablespacing="0"></table>').append(s, w);j.hide();j.html(e);j.fadeIn("normal");g()};var g=function(){if(k&&k.length>0){jQuery(".DateLabel:first",b.container).outerHeight();jQuery.each(k,function(){var e=this,j;if(e.StartDateTime){if(typeof e.StartDateTime=="object"&&e.StartDateTime.getDate)j=e.StartDateTime;if(typeof e.StartDateTime=="string"&&e.StartDateTime.split)j=c(e.StartDateTime)}else if(e.Date){if(typeof e.Date=="object"&&e.Date.getDate)j=e.Date;if(typeof e.Date=="string"&&e.Date.split)j=c(e.Date)}else return;e.EndDateTime&&typeof e.EndDateTime== "string"&&e.EndDateTime.split&&c(e.EndDateTime);if(j)if(j>=d&&j<=i){j=jQuery("#"+h(j),jQuery(b.container));jQuery(".DateLabel",j);var l=jQuery('<a href="'+e.URL+'">'+e.Title+"</a>");l.click(function(m){f.onEventLinkClick(e);m.stopPropagation()});l=jQuery('<div class="Event" id="Event_'+e.EventID+'"></div>').append(l);e.CssClass&&l.addClass(e.CssClass);l.click(function(m){f.onEventBlockClick(e);m.stopPropagation()});l.hover(function(){f.onEventBlockOver(e)},function(){f.onEventBlockOut(e)});f.dragableEvents&& l.draggable({containment:"#CalendarBody"});l.hide();j.append(l);l.fadeIn("normal")}})}};jQuery.J.AddEvents=function(e){if(e){e.length>1?jQuery.each(e,function(){k.push(this)}):k.push(e);jQuery(".Event",jQuery(b.container)).remove();g()}};jQuery.J.ReplaceEventCollection=function(e){if(e)k=e};jQuery.J.ChangeMonth=function(e){f.onMonthChanging(e);jQuery.J.DrawCalendar(e);f.onMonthChanged(e)};jQuery.J.Initialize=function(e,j){jQuery.extend(f,e);jQuery.J.DrawCalendar();if(j){k=j;g()}}})(jQuery); Date.CultureInfo={name:"en-US",englishName:"English (United States)",nativeName:"English (United States)",dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],abbreviatedDayNames:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],shortestDayNames:["Su","Mo","Tu","We","Th","Fr","Sa"],firstLetterDayNames:["S","M","T","W","T","F","S"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],abbreviatedMonthNames:["Jan", "Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],amDesignator:"AM",pmDesignator:"PM",firstDayOfWeek:0,twoDigitYearMax:2029,dateElementOrder:"mdy",formatPatterns:{shortDate:"M/d/yyyy",longDate:"dddd, MMMM dd, yyyy",shortTime:"h:mm tt",longTime:"h:mm:ss tt",fullDateTime:"dddd, MMMM dd, yyyy h:mm:ss tt",sortableDateTime:"yyyy-MM-ddTHH:mm:ss",universalSortableDateTime:"yyyy-MM-dd HH:mm:ssZ",rfc1123:"ddd, dd MMM yyyy HH:mm:ss GMT",monthDay:"MMMM dd",yearMonth:"MMMM, yyyy"},regexPatterns:{jan:/^jan(uary)?/i, feb:/^feb(ruary)?/i,mar:/^mar(ch)?/i,apr:/^apr(il)?/i,may:/^may/i,jun:/^jun(e)?/i,jul:/^jul(y)?/i,aug:/^aug(ust)?/i,sep:/^sep(t(ember)?)?/i,oct:/^oct(ober)?/i,nov:/^nov(ember)?/i,dec:/^dec(ember)?/i,sun:/^su(n(day)?)?/i,mon:/^mo(n(day)?)?/i,tue:/^tu(e(s(day)?)?)?/i,wed:/^we(d(nesday)?)?/i,thu:/^th(u(r(s(day)?)?)?)?/i,fri:/^fr(i(day)?)?/i,sat:/^sa(t(urday)?)?/i,future:/^next/i,past:/^last|past|prev(ious)?/i,add:/^(\+|after|from)/i,subtract:/^(\-|before|ago)/i,yesterday:/^yesterday/i,today:/^t(oday)?/i, tomorrow:/^tomorrow/i,now:/^n(ow)?/i,millisecond:/^ms|milli(second)?s?/i,second:/^sec(ond)?s?/i,minute:/^min(ute)?s?/i,hour:/^h(ou)?rs?/i,week:/^w(ee)?k/i,month:/^m(o(nth)?s?)?/i,day:/^d(ays?)?/i,year:/^y((ea)?rs?)?/i,shortMeridian:/^(a|p)/i,longMeridian:/^(a\.?m?\.?|p\.?m?\.?)/i,timezone:/^((e(s|d)t|c(s|d)t|m(s|d)t|p(s|d)t)|((gmt)?\s*(\+|\-)\s*\d\d\d\d?)|gmt)/i,ordinalSuffix:/^\s*(st|nd|rd|th)/i,timeContext:/^\s*(\:|a|p)/i},abbreviatedTimeZoneStandard:{GMT:"-000",EST:"-0400",CST:"-0500",MST:"-0600", PST:"-0700"},abbreviatedTimeZoneDST:{GMT:"-000",EDT:"-0500",CDT:"-0600",MDT:"-0700",PDT:"-0800"}};Date.getMonthNumberFromName=function(a){var b=Date.CultureInfo.monthNames,d=Date.CultureInfo.abbreviatedMonthNames;a=a.toLowerCase();for(var i=0;i<b.length;i++)if(b[i].toLowerCase()==a||d[i].toLowerCase()==a)return i;return-1}; Date.getDayNumberFromName=function(a){var b=Date.CultureInfo.dayNames,d=Date.CultureInfo.abbreviatedDayNames;a=a.toLowerCase();for(var i=0;i<b.length;i++)if(b[i].toLowerCase()==a||d[i].toLowerCase()==a)return i;return-1};Date.isLeapYear=function(a){return a%4===0&&a%100!==0||a%400===0};Date.getDaysInMonth=function(a,b){return[31,Date.isLeapYear(a)?29:28,31,30,31,30,31,31,30,31,30,31][b]};Date.getTimezoneOffset=function(a,b){return b?Date.CultureInfo.abbreviatedTimeZoneDST[a.toUpperCase()]:Date.CultureInfo.abbreviatedTimeZoneStandard[a.toUpperCase()]}; Date.getTimezoneAbbreviation=function(a,b){var d=b?Date.CultureInfo.abbreviatedTimeZoneDST:Date.CultureInfo.abbreviatedTimeZoneStandard,i;for(i in d)if(d[i]===a)return i;return null};Date.prototype.clone=function(){return new Date(this.getTime())};Date.prototype.compareTo=function(a){if(isNaN(this))throw Error(this);if(a instanceof Date&&!isNaN(a))return this>a?1:this<a?-1:0;else throw new TypeError(a);};Date.prototype.equals=function(a){return this.compareTo(a)===0}; Date.prototype.between=function(a,b){var d=this.getTime();return d>=a.getTime()&&d<=b.getTime()};Date.prototype.addMilliseconds=function(a){this.setMilliseconds(this.getMilliseconds()+a);return this};Date.prototype.addSeconds=function(a){return this.addMilliseconds(a*1E3)};Date.prototype.addMinutes=function(a){return this.addMilliseconds(a*6E4)};Date.prototype.addHours=function(a){return this.addMilliseconds(a*36E5)};Date.prototype.addDays=function(a){return this.addMilliseconds(a*864E5)}; Date.prototype.addWeeks=function(a){return this.addMilliseconds(a*6048E5)};Date.prototype.addMonths=function(a){var b=this.getDate();this.setDate(1);this.setMonth(this.getMonth()+a);this.setDate(Math.min(b,this.getDaysInMonth()));return this};Date.prototype.addYears=function(a){return this.addMonths(a*12)}; Date.prototype.add=function(a){if(typeof a=="number"){this._orient=a;return this}if(a.millisecond||a.milliseconds)this.addMilliseconds(a.millisecond||a.milliseconds);if(a.second||a.seconds)this.addSeconds(a.second||a.seconds);if(a.minute||a.minutes)this.addMinutes(a.minute||a.minutes);if(a.hour||a.hours)this.addHours(a.hour||a.hours);if(a.month||a.months)this.addMonths(a.month||a.months);if(a.year||a.years)this.addYears(a.year||a.years);if(a.day||a.days)this.addDays(a.day||a.days);return this}; Date._validate=function(a,b,d,i){if(typeof a!="number")throw new TypeError(a+" is not a Number.");else if(a<b||a>d)throw new RangeError(a+" is not a valid value for "+i+".");return true};Date.validateMillisecond=function(a){return Date._validate(a,0,999,"milliseconds")};Date.validateSecond=function(a){return Date._validate(a,0,59,"seconds")};Date.validateMinute=function(a){return Date._validate(a,0,59,"minutes")};Date.validateHour=function(a){return Date._validate(a,0,23,"hours")}; Date.validateDay=function(a,b,d){return Date._validate(a,1,Date.getDaysInMonth(b,d),"days")};Date.validateMonth=function(a){return Date._validate(a,0,11,"months")};Date.validateYear=function(a){return Date._validate(a,1,9999,"seconds")}; Date.prototype.set=function(a){if(!a.millisecond&&a.millisecond!==0)a.millisecond=-1;if(!a.second&&a.second!==0)a.second=-1;if(!a.minute&&a.minute!==0)a.minute=-1;if(!a.hour&&a.hour!==0)a.hour=-1;if(!a.day&&a.day!==0)a.day=-1;if(!a.month&&a.month!==0)a.month=-1;if(!a.year&&a.year!==0)a.year=-1;a.millisecond!=-1&&Date.validateMillisecond(a.millisecond)&&this.addMilliseconds(a.millisecond-this.getMilliseconds());a.second!=-1&&Date.validateSecond(a.second)&&this.addSeconds(a.second-this.getSeconds()); a.minute!=-1&&Date.validateMinute(a.minute)&&this.addMinutes(a.minute-this.getMinutes());a.hour!=-1&&Date.validateHour(a.hour)&&this.addHours(a.hour-this.getHours());a.month!==-1&&Date.validateMonth(a.month)&&this.addMonths(a.month-this.getMonth());a.year!=-1&&Date.validateYear(a.year)&&this.addYears(a.year-this.getFullYear());a.day!=-1&&Date.validateDay(a.day,this.getFullYear(),this.getMonth())&&this.addDays(a.day-this.getDate());a.timezone&&this.setTimezone(a.timezone);a.timezoneOffset&&this.setTimezoneOffset(a.timezoneOffset); return this};Date.prototype.clearTime=function(){this.setHours(0);this.setMinutes(0);this.setSeconds(0);this.setMilliseconds(0);return this};Date.prototype.isLeapYear=function(){var a=this.getFullYear();return a%4===0&&a%100!==0||a%400===0};Date.prototype.isWeekday=function(){return!(this.is().sat()||this.is().sun())};Date.prototype.getDaysInMonth=function(){return Date.getDaysInMonth(this.getFullYear(),this.getMonth())};Date.prototype.moveToFirstDayOfMonth=function(){return this.set({day:1})}; Date.prototype.moveToLastDayOfMonth=function(){return this.set({day:this.getDaysInMonth()})};Date.prototype.moveToDayOfWeek=function(a,b){var d=(a-this.getDay()+7*(b||+1))%7;return this.addDays(d===0?d+=7*(b||+1):d)};Date.prototype.moveToMonth=function(a,b){var d=(a-this.getMonth()+12*(b||+1))%12;return this.addMonths(d===0?d+=12*(b||+1):d)};Date.prototype.getDayOfYear=function(){return Math.floor((this-new Date(this.getFullYear(),0,1))/864E5)}; Date.prototype.getWeekOfYear=function(a){var b=this.getFullYear(),d=this.getMonth(),i=this.getDate();a=a||Date.CultureInfo.firstDayOfWeek;var k=8-(new Date(b,0,1)).getDay();if(k==8)k=1;d=(Date.UTC(b,d,i,0,0,0)-Date.UTC(b,0,1,0,0,0))/864E5+1;d=Math.floor((d-k+7)/7);if(d===a){b--;b=8-(new Date(b,0,1)).getDay();d=b==2||b==8?53:52}return d};Date.prototype.isDST=function(){console.log("isDST");return this.toString().match(/(E|C|M|P)(S|D)T/)[2]=="D"}; Date.prototype.getTimezone=function(){return Date.getTimezoneAbbreviation(this.getUTCOffset,this.isDST())};Date.prototype.setTimezoneOffset=function(a){var b=this.getTimezoneOffset();this.addMinutes(Number(a)*-6/10-b);return this};Date.prototype.setTimezone=function(a){return this.setTimezoneOffset(Date.getTimezoneOffset(a))};Date.prototype.getUTCOffset=function(){var a=this.getTimezoneOffset()*-10/6;if(a<0){a=(a-1E4).toString();return a[0]+a.substr(2)}else{a=(a+1E4).toString();return"+"+a.substr(1)}}; Date.prototype.getDayName=function(a){return a?Date.CultureInfo.abbreviatedDayNames[this.getDay()]:Date.CultureInfo.dayNames[this.getDay()]};Date.prototype.getMonthName=function(a){return a?Date.CultureInfo.abbreviatedMonthNames[this.getMonth()]:Date.CultureInfo.monthNames[this.getMonth()]};Date.prototype._toString=Date.prototype.toString; Date.prototype.toString=function(a){var b=this,d=function(i){return i.toString().length==1?"0"+i:i};return a?a.replace(/dd?d?d?|MM?M?M?|yy?y?y?|hh?|HH?|mm?|ss?|tt?|zz?z?/g,function(i){switch(i){case "hh":return d(b.getHours()<13?b.getHours():b.getHours()-12);case "h":return b.getHours()<13?b.getHours():b.getHours()-12;case "HH":return d(b.getHours());case "H":return b.getHours();case "mm":return d(b.getMinutes());case "m":return b.getMinutes();case "ss":return d(b.getSeconds());case "s":return b.getSeconds(); case "yyyy":return b.getFullYear();case "yy":return b.getFullYear().toString().substring(2,4);case "dddd":return b.getDayName();case "ddd":return b.getDayName(true);case "dd":return d(b.getDate());case "d":return b.getDate().toString();case "MMMM":return b.getMonthName();case "MMM":return b.getMonthName(true);case "MM":return d(b.getMonth()+1);case "M":return b.getMonth()+1;case "t":return b.getHours()<12?Date.CultureInfo.amDesignator.substring(0,1):Date.CultureInfo.pmDesignator.substring(0,1);case "tt":return b.getHours()< 12?Date.CultureInfo.amDesignator:Date.CultureInfo.pmDesignator;case "zzz":case "zz":case "z":return""}}):this._toString()};Date.now=function(){return new Date};Date.today=function(){return Date.now().clearTime()};Date.prototype._orient=+1;Date.prototype.next=function(){this._orient=+1;return this};Date.prototype.last=Date.prototype.prev=Date.prototype.previous=function(){this._orient=-1;return this};Date.prototype._is=false;Date.prototype.is=function(){this._is=true;return this}; Number.prototype._dateElement="day";Number.prototype.fromNow=function(){var a={};a[this._dateElement]=this;return Date.now().add(a)};Number.prototype.ago=function(){var a={};a[this._dateElement]=this*-1;return Date.now().add(a)}; (function(){for(var a=Date.prototype,b=Number.prototype,d="sunday monday tuesday wednesday thursday friday saturday".split(/\s/),i="january february march april may june july august september october november december".split(/\s/),k="Millisecond Second Minute Hour Day Week Month Year".split(/\s/),f=function(c){return function(){if(this._is){this._is=false;return this.getDay()==c}return this.moveToDayOfWeek(c,this._orient)}},h=0;h<d.length;h++)a[d[h]]=a[d[h].substring(0,3)]=f(h);d=function(c){return function(){if(this._is){this._is= false;return this.getMonth()===c}return this.moveToMonth(c,this._orient)}};for(f=0;f<i.length;f++)a[i[f]]=a[i[f].substring(0,3)]=d(f);d=function(c){return function(){if(c.substring(c.length-1)!="s")c+="s";return this["add"+c](this._orient)}};f=function(c){return function(){this._dateElement=c;return this}};for(h=0;h<k.length;h++){i=k[h].toLowerCase();a[i]=a[i+"s"]=d(k[h]);b[i]=b[i+"s"]=f(i)}})();Date.prototype.toJSONString=function(){return this.toString("yyyy-MM-ddThh:mm:ssZ")}; Date.prototype.toShortDateString=function(){return this.toString(Date.CultureInfo.formatPatterns.shortDatePattern)};Date.prototype.toLongDateString=function(){return this.toString(Date.CultureInfo.formatPatterns.longDatePattern)};Date.prototype.toShortTimeString=function(){return this.toString(Date.CultureInfo.formatPatterns.shortTimePattern)};Date.prototype.toLongTimeString=function(){return this.toString(Date.CultureInfo.formatPatterns.longTimePattern)}; Date.prototype.getOrdinal=function(){switch(this.getDate()){case 1:case 21:case 31:return"st";case 2:case 22:return"nd";case 3:case 23:return"rd";default:return"th"}}; (function(){Date.Parsing={Exception:function(f){this.message="Parse error at '"+f.substring(0,10)+" ...'"}};for(var a=Date.Parsing,b=a.Operators={rtoken:function(f){return function(h){var c=h.match(f);if(c)return[c[0],h.substring(c[0].length)];else throw new a.Exception(h);}},token:function(){return function(f){return b.rtoken(RegExp("^s*"+f+"s*"))(f)}},stoken:function(f){return b.rtoken(RegExp("^"+f))},until:function(f){return function(h){for(var c=[],g=null;h.length;){try{g=f.call(this,h)}catch(e){c.push(g[0]); h=g[1];continue}break}return[c,h]}},many:function(f){return function(h){for(var c=[],g=null;h.length;){try{g=f.call(this,h)}catch(e){break}c.push(g[0]);h=g[1]}return[c,h]}},optional:function(f){return function(h){var c=null;try{c=f.call(this,h)}catch(g){return[null,h]}return[c[0],c[1]]}},not:function(f){return function(h){try{f.call(this,h)}catch(c){return[null,h]}throw new a.Exception(h);}},ignore:function(f){return f?function(h){var c=null;c=f.call(this,h);return[null,c[1]]}:null},product:function(){for(var f= arguments[0],h=Array.prototype.slice.call(arguments,1),c=[],g=0;g<f.length;g++)c.push(b.each(f[g],h));return c},cache:function(f){var h={},c=null;return function(g){try{c=h[g]=h[g]||f.call(this,g)}catch(e){c=h[g]=e}if(c instanceof a.Exception)throw c;else return c}},any:function(){var f=arguments;return function(h){for(var c=null,g=0;g<f.length;g++)if(f[g]!=null){try{c=f[g].call(this,h)}catch(e){c=null}if(c)return c}throw new a.Exception(h);}},each:function(){var f=arguments;return function(h){for(var c= [],g=null,e=0;e<f.length;e++)if(f[e]!=null){try{g=f[e].call(this,h)}catch(j){throw new a.Exception(h);}c.push(g[0]);h=g[1]}return[c,h]}},all:function(){var f=f;return f.each(f.optional(arguments))},sequence:function(f,h,c){h=h||b.rtoken(/^\s*/);c=c||null;if(f.length==1)return f[0];return function(g){for(var e=null,j=null,l=[],m=0;m<f.length;m++){try{e=f[m].call(this,g)}catch(o){break}l.push(e[0]);try{j=h.call(this,e[1])}catch(n){j=null;break}g=j[1]}if(!e)throw new a.Exception(g);if(j)throw new a.Exception(j[1]); if(c)try{e=c.call(this,e[1])}catch(x){throw new a.Exception(e[1]);}return[l,e?e[1]:g]}},between:function(f,h,c){c=c||f;var g=b.each(b.ignore(f),h,b.ignore(c));return function(e){e=g.call(this,e);return[[e[0][0],r[0][2]],e[1]]}},list:function(f,h,c){h=h||b.rtoken(/^\s*/);c=c||null;return f instanceof Array?b.each(b.product(f.slice(0,-1),b.ignore(h)),f.slice(-1),b.ignore(c)):b.each(b.many(b.each(f,b.ignore(h))),px,b.ignore(c))},set:function(f,h,c){h=h||b.rtoken(/^\s*/);c=c||null;return function(g){var e= null;for(var j=e=null,l=null,m=[[],g],o=false,n=0;n<f.length;n++){e=j=null;o=f.length==1;try{e=f[n].call(this,g)}catch(x){continue}l=[[e[0]],e[1]];if(e[1].length>0&&!o)try{j=h.call(this,e[1])}catch(s){o=true}else o=true;if(!o&&j[1].length===0)o=true;if(!o){e=[];for(o=0;o<f.length;o++)n!=o&&e.push(f[o]);e=b.set(e,h).call(this,j[1]);if(e[0].length>0){l[0]=l[0].concat(e[0]);l[1]=e[1]}}if(l[1].length<m[1].length)m=l;if(m[1].length===0)break}if(m[0].length===0)return m;if(c){try{j=c.call(this,m[1])}catch(y){throw new a.Exception(m[1]); }m[1]=j[1]}return m}},forward:function(f,h){return function(c){return f[h].call(this,c)}},replace:function(f,h){return function(c){c=f.call(this,c);return[h,c[1]]}},process:function(f,h){return function(c){c=f.call(this,c);return[h.call(this,c[0]),c[1]]}},min:function(f,h){return function(c){var g=h.call(this,c);if(g[0].length<f)throw new a.Exception(c);return g}}},d=function(f){return function(){var h=null,c=[];if(arguments.length>1)h=Array.prototype.slice.call(arguments);else if(arguments[0]instanceof Array)h=arguments[0];if(h)for(var g=h.shift();0<g.length;){h.unshift(g[0]);c.push(f.apply(null,h));h.shift();return c}else return f.apply(null,arguments)}},i="optional not ignore cache".split(/\s/),k=0;k<i.length;k++)b[i[k]]=d(b[i[k]]);d=function(f){return function(){return arguments[0]instanceof Array?f.apply(null,arguments[0]):f.apply(null,arguments)}};i="each any all".split(/\s/);for(k=0;k<i.length;k++)b[i[k]]=d(b[i[k]])})(); (function(){var a=function(c){for(var g=[],e=0;e<c.length;e++)if(c[e]instanceof Array)g=g.concat(a(c[e]));else c[e]&&g.push(c[e]);return g};Date.Grammar={};Date.Translator={hour:function(c){return function(){this.hour=Number(c)}},minute:function(c){return function(){this.minute=Number(c)}},second:function(c){return function(){this.second=Number(c)}},meridian:function(c){return function(){this.meridian=c.slice(0,1).toLowerCase()}},timezone:function(c){return function(){var g=c.replace(/[^\d\+\-]/g, "");if(g.length)this.timezoneOffset=Number(g);else this.timezone=c.toLowerCase()}},day:function(c){var g=c[0];return function(){this.day=Number(g.match(/\d+/)[0])}},month:function(c){return function(){this.month=c.length==3?Date.getMonthNumberFromName(c):Number(c)-1}},year:function(c){return function(){var g=Number(c);this.year=c.length>2?g:g+(g+2E3<Date.CultureInfo.twoDigitYearMax?2E3:1900)}},rday:function(c){return function(){switch(c){case "yesterday":this.days=-1;break;case "tomorrow":this.days= 1;break;case "today":this.days=0;break;case "now":this.days=0;this.now=true}}},finishExact:function(c){c=c instanceof Array?c:[c];var g=new Date;this.year=g.getFullYear();this.month=g.getMonth();this.day=1;for(g=this.second=this.minute=this.hour=0;g<c.length;g++)c[g]&&c[g].call(this);this.hour=this.meridian=="p"&&this.hour<13?this.hour+12:this.hour;if(this.day>Date.getDaysInMonth(this.year,this.month))throw new RangeError(this.day+" is not a valid value for days.");c=new Date(this.year,this.month, this.day,this.hour,this.minute,this.second);if(this.timezone)c.set({timezone:this.timezone});else this.timezoneOffset&&c.set({timezoneOffset:this.timezoneOffset});return c},finish:function(c){c=c instanceof Array?a(c):[c];if(c.length===0)return null;for(var g=0;g<c.length;g++)typeof c[g]=="function"&&c[g].call(this);if(this.now)return new Date;c=Date.today();if(this.days!=null||this.orient||this.operator){var e,j;j=this.orient=="past"||this.operator=="subtract"?-1:1;if(this.weekday){this.unit="day"; g=Date.getDayNumberFromName(this.weekday)-c.getDay();e=7;this.days=g?(g+j*e)%e:j*e}if(this.month){this.unit="month";g=this.month-c.getMonth();e=12;this.months=g?(g+j*e)%e:j*e;this.month=null}if(!this.unit)this.unit="day";if(this[this.unit+"s"]==null||this.operator!=null){if(!this.value)this.value=1;if(this.unit=="week"){this.unit="day";this.value*=7}this[this.unit+"s"]=this.value*j}return c.add(this)}else{if(this.meridian&&this.hour)this.hour=this.hour<13&&this.meridian=="p"?this.hour+12:this.hour; if(this.weekday&&!this.day)this.day=c.addDays(Date.getDayNumberFromName(this.weekday)-c.getDay()).getDate();if(this.month&&!this.day)this.day=1;return c.set(this)}}};var b=Date.Parsing.Operators,d=Date.Grammar,i=Date.Translator,k;d.datePartDelimiter=b.rtoken(/^([\s\-\.\,\/\x27]+)/);d.timePartDelimiter=b.stoken(":");d.whiteSpace=b.rtoken(/^\s*/);d.generalDelimiter=b.rtoken(/^(([\s\,]|at|on)+)/);var f={};d.ctoken=function(c){var g=f[c];if(!g){g=Date.CultureInfo.regexPatterns;for(var e=c.split(/\s+/), j=[],l=0;l<e.length;l++)j.push(b.replace(b.rtoken(g[e[l]]),e[l]));g=f[c]=b.any.apply(null,j)}return g};d.ctoken2=function(c){return b.rtoken(Date.CultureInfo.regexPatterns[c])};d.h=b.cache(b.process(b.rtoken(/^(0[0-9]|1[0-2]|[1-9])/),i.hour));d.hh=b.cache(b.process(b.rtoken(/^(0[0-9]|1[0-2])/),i.hour));d.H=b.cache(b.process(b.rtoken(/^([0-1][0-9]|2[0-3]|[0-9])/),i.hour));d.HH=b.cache(b.process(b.rtoken(/^([0-1][0-9]|2[0-3])/),i.hour));d.m=b.cache(b.process(b.rtoken(/^([0-5][0-9]|[0-9])/),i.minute)); d.mm=b.cache(b.process(b.rtoken(/^[0-5][0-9]/),i.minute));d.s=b.cache(b.process(b.rtoken(/^([0-5][0-9]|[0-9])/),i.second));d.ss=b.cache(b.process(b.rtoken(/^[0-5][0-9]/),i.second));d.hms=b.cache(b.sequence([d.H,d.mm,d.ss],d.timePartDelimiter));d.t=b.cache(b.process(d.ctoken2("shortMeridian"),i.meridian));d.tt=b.cache(b.process(d.ctoken2("longMeridian"),i.meridian));d.z=b.cache(b.process(b.rtoken(/^(\+|\-)?\s*\d\d\d\d?/),i.timezone));d.zz=b.cache(b.process(b.rtoken(/^(\+|\-)\s*\d\d\d\d/),i.timezone)); d.zzz=b.cache(b.process(d.ctoken2("timezone"),i.timezone));d.timeSuffix=b.each(b.ignore(d.whiteSpace),b.set([d.tt,d.zzz]));d.time=b.each(b.optional(b.ignore(b.stoken("T"))),d.hms,d.timeSuffix);d.d=b.cache(b.process(b.each(b.rtoken(/^([0-2]\d|3[0-1]|\d)/),b.optional(d.ctoken2("ordinalSuffix"))),i.day));d.dd=b.cache(b.process(b.each(b.rtoken(/^([0-2]\d|3[0-1])/),b.optional(d.ctoken2("ordinalSuffix"))),i.day));d.ddd=d.dddd=b.cache(b.process(d.ctoken("sun mon tue wed thu fri sat"),function(c){return function(){this.weekday= c}}));d.M=b.cache(b.process(b.rtoken(/^(1[0-2]|0\d|\d)/),i.month));d.MM=b.cache(b.process(b.rtoken(/^(1[0-2]|0\d)/),i.month));d.MMM=d.MMMM=b.cache(b.process(d.ctoken("jan feb mar apr may jun jul aug sep oct nov dec"),i.month));d.y=b.cache(b.process(b.rtoken(/^(\d\d?)/),i.year));d.yy=b.cache(b.process(b.rtoken(/^(\d\d)/),i.year));d.yyy=b.cache(b.process(b.rtoken(/^(\d\d?\d?\d?)/),i.year));d.yyyy=b.cache(b.process(b.rtoken(/^(\d\d\d\d)/),i.year));k=function(){return b.each(b.any.apply(null,arguments), b.not(d.ctoken2("timeContext")))};d.day=k(d.d,d.dd);d.month=k(d.M,d.MMM);d.year=k(d.yyyy,d.yy);d.orientation=b.process(d.ctoken("past future"),function(c){return function(){this.orient=c}});d.operator=b.process(d.ctoken("add subtract"),function(c){return function(){this.operator=c}});d.rday=b.process(d.ctoken("yesterday tomorrow today now"),i.rday);d.unit=b.process(d.ctoken("minute hour day week month year"),function(c){return function(){this.unit=c}});d.value=b.process(b.rtoken(/^\d\d?(st|nd|rd|th)?/), function(c){return function(){this.value=c.replace(/\D/g,"")}});d.expression=b.set([d.rday,d.operator,d.value,d.unit,d.orientation,d.ddd,d.MMM]);k=function(){return b.set(arguments,d.datePartDelimiter)};d.mdy=k(d.ddd,d.month,d.day,d.year);d.ymd=k(d.ddd,d.year,d.month,d.day);d.dmy=k(d.ddd,d.day,d.month,d.year);d.date=function(c){return(d[Date.CultureInfo.dateElementOrder]||d.mdy).call(this,c)};d.format=b.process(b.many(b.any(b.process(b.rtoken(/^(dd?d?d?|MM?M?M?|yy?y?y?|hh?|HH?|mm?|ss?|tt?|zz?z?)/), function(c){if(d[c])return d[c];else throw Date.Parsing.Exception(c);}),b.process(b.rtoken(/^[^dMyhHmstz]+/),function(c){return b.ignore(b.stoken(c))}))),function(c){return b.process(b.each.apply(null,c),i.finishExact)});var h={};d.formats=function(c){if(c instanceof Array){for(var g=[],e=0;e<c.length;e++)g.push(h[c[e]]=h[c[e]]||d.format(c[e])[0]);return b.any.apply(null,g)}else return h[c]=h[c]||d.format(c)[0]};d._formats=d.formats(["yyyy-MM-ddTHH:mm:ss","ddd, MMM dd, yyyy H:mm:ss tt","ddd MMM d yyyy HH:mm:ss zzz", "d"]);d._start=b.process(b.set([d.date,d.time,d.expression],d.generalDelimiter,d.whiteSpace),i.finish);d.start=function(c){try{var g=d._formats.call({},c);if(g[1].length===0)return g}catch(e){}return d._start.call({},c)}})();Date._parse=Date.parse;Date.parse=function(a){var b=null;if(!a)return null;try{b=Date.Grammar.start.call({},a)}catch(d){return null}return b[1].length===0?b[0]:null}; Date.getParseFunction=function(a){var b=Date.Grammar.formats(a);return function(d){var i=null;try{i=b.call({},d)}catch(k){return null}return i[1].length===0?i[0]:null}};Date.parseExact=function(a,b){return Date.getParseFunction(b)(a)};

/* JQBOOKMARK */
$(document).ready(function(){
	// add a "rel" attrib if Opera 7+
	if(window.opera) {
		if ($("a.jqbookmark").attr("rel") != ""){ // don't overwrite the rel attrib if already set
			$("a.jqbookmark").attr("rel","sidebar");
		}
	}
	$("a.jqbookmark").click(function(event){
		event.preventDefault(); // prevent the anchor tag from sending the user off to the link
		var url = this.href;
		var title = this.title;

		if (window.sidebar && !window.chrome) { // Mozilla Firefox Bookmark
			window.sidebar.addPanel(title, url,"");
		} else if( window.external  && !window.chrome ) { // IE Favorite
			window.external.AddFavorite( url, title);
		} else if(window.opera) { // Opera 7+
			return false; // do nothing - the rel="sidebar" should do the trick
		} else { // for Safari, Konq etc - browsers who do not support bookmarking scripts (that i could find anyway)
            alert('Tarayıcınız otomatik eklemeyi desteklemiyor. Manuel ekleyebilirsiniz.\nSitemizi eklemek için\nctrl+D\ntuşlayınız.')
		}
	});
});
