... getClassNum(".test", "etc") -> "vs"
*/
function getClassVal(el, str) {
var re = new RegExp((str || "[^\\s]+") + "_([^\\s]+)");
var ret = null;
if ($(el).size() > 0 && $(el).attr("class")) {
var ret = re.exec($(el).attr("class"));
if (ret && ret.length == 2) {
ret = ret[1];
}
}
return ret;
}
/**
* Numerical version
*/
function getClassNum(el, str) {
return parseFloat(getClassVal(el, str));
}
function getIdStr(i, sDelim) {
if (typeof i != "string") {
var i = $(i).attr("id");
}
var arr = i.split(sDelim || /_|-/);
if (arr.length > 1) {
return arr[arr.length-1];
} else {
return "";
}
}
/**
* @param int|string i id string or the element itself (eg .. id="test_7" .. -> 7).
*/
function getIdNo(i, sDelim) {
return parseInt(getIdStr(i, sDelim), 10);
}
/**
* ?asd=1&qwe=rty -> {asd:1, qwe:"rty"}
*/
function getUrlParams(url){
var search;
if (url) {
var start = url.indexOf("?");
if (start == -1) {
start = 0;
}
end = url.lastIndexOf("#");
if (end == -1) {
end = url.length;
}
search = url.substring(start, end);
} else {
search = location.search;
}
var
settingsObject = {},
hash,
hashes = search.substring(1).split(/&|&/);
for(var i = 0; i < hashes.length; i++)
{
hash = hashes[i].split('=');
settingsObject[hash[0]] = hash[1];
}
return settingsObject;
}
// http://phpjs.org/functions/trim:566
function trim (str, charlist) {
var whitespace, l = 0,
i = 0;
str += '';
if (!charlist) {
// default list
whitespace = " \n\r\t\f\x0b\xa0\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u200b\u2028\u2029\u3000";
} else {
// preg_quote custom list
charlist += '';
whitespace = charlist.replace(/([\[\]\(\)\.\?\/\*\{\}\+\$\^\:])/g, '$1');
}
l = str.length;
for (i = 0; i < l; i++) {
if (whitespace.indexOf(str.charAt(i)) === -1) {
str = str.substring(i);
break;
}
}
l = str.length;
for (i = l - 1; i >= 0; i--) {
if (whitespace.indexOf(str.charAt(i)) === -1) {
str = str.substring(0, i + 1);
break;
}
}
return whitespace.indexOf(str.charAt(0)) === -1 ? str : '';
}
// http://phpjs.org/functions/number_format
function number_format (number, decimals, dec_point, thousands_sep) {
number = (number + '').replace(/[^0-9+\-Ee.]/g, '');
var n = !isFinite(+number) ? 0 : +number,
prec = !isFinite(+decimals) ? 0 : Math.abs(decimals),
sep = (typeof thousands_sep === 'undefined') ? ',' : thousands_sep,
dec = (typeof dec_point === 'undefined') ? '.' : dec_point,
s = '',
toFixedFix = function (n, prec) {
var k = Math.pow(10, prec);
return '' + Math.round(n * k) / k;
};
// Fix for IE parseFloat(0.55).toFixed(0) = 0;
s = (prec ? toFixedFix(n, prec) : '' + Math.round(n)).split('.');
if (s[0].length > 3) {
s[0] = s[0].replace(/\B(?=(?:\d{3})+(?!\d))/g, sep);
}
if ((s[1] || '').length < prec) {
s[1] = s[1] || '';
s[1] += new Array(prec - s[1].length + 1).join('0');
}
return s.join(dec);
}
/**
* Formatlı ve birimli para göster.
*
* @param float para
* @param bool birimGoster
* @param string birim Ör. TRY
* @param bool sifirSil Sondaki sıfırları sil.
*/
function paraGoster(para, birimGoster, birim, sifirSil){
var birimGoster = (typeof birimGoster === 'undefined') ? true : birimGoster
,birim = (typeof birim === 'undefined') ? 'TRY' : birim
,sifirSil = (typeof sifirSil === 'undefined') ? false : sifirSil;
var ret = '';
switch (birim) {
case 'TRY':
ret = number_format(para, 2, ',', '.');
if (sifirSil) {
ret = trim(ret, '0');
ret = trim(ret, ',.');
}
if (birimGoster) {
ret += ' TL';
}
break;
default:
break;
}
return ret;
}
/*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
g;a.beforeStart&&a.beforeStart.call(this,v(),b);if(a.circular)if(d<=m-f-1){l.css(s,-((j-f*2)*o)+"px");g=d==m-f-1?j-f*2-1:j-f*2-a.scroll}else if(d>=j-f+1){l.css(s,-(f*o)+"px");g=d==j-f+1?f+1:f+a.scroll}else g=d;else{a.$btnPrev.toggleClass(a.btnDisabledClass,
a.btnPrev&&d<=0);a.$btnNext.toggleClass(a.btnDisabledClass,a.btnNext&&d>j-f);g=d<0?0:d>j-f?j-f:d}e.jCarouselLite.curr=g;w=true;y[s]=-(g*o);l.animate(y,a.speed,a.easing,function(){a.afterEnd&&a.afterEnd.call(this,v(),b);w=false});return false}var p={},w=false,s=a.vertical?"top":"left",y={},z=a.vertical?"height":"width",h=this,c=e(this),l=c.find("ul").eq(0),q=l.children("li"),x=q.length,f=a.visible,m=Math.min(a.start,x-1);direction=1;c.data("dirjc",direction);if(a.circular){l.prepend(q.slice(x-f-1+
1).clone(true)).append(q.slice(0,f).clone(true));m+=f}var i=l.children("li"),j=i.length,g=m;e.jCarouselLite.curr=g;c.css("visibility","visible");if(a.autoCSS){i.css({overflow:a.vertical?"hidden":"visible","float":a.vertical?"none":"left"});l.css({margin:"0",padding:"0",position:"relative",listStyleType:"none",zIndex:1});c.css({visibility:"visible",overflow:"hidden",position:"relative",zIndex:2,left:"0px"})}var o=a.vertical?i[0].offsetHeight+r(i,"marginTop")+r(i,"marginBottom"):i[0].offsetWidth+r(i,
"marginLeft")+r(i,"marginRight");q=o*j;var C=o*f;if(a.autoCSS){p[z]=C+"px";c.css(p);i.css({width:i.width(),height:i.height()})}p[z]=q+"px";p[s]=-(g*o);l.css(p);var A=0,B=a.autoStop&&(a.circular?a.autoStop:Math.min(x,a.autoStop)),D=typeof a.auto=="number"?a.auto:a.scroll,t=function(){h.setAutoAdvance=setTimeout(function(){if(!B||B>A){direction=c.data("dirjc");n(g+direction*D);A++;t()}},a.timeout+a.speed)};e.each(["btnPrev","btnNext"],function(d,b){if(a[b]){a["$"+b]=e.isFunction(a[b])?a[b].call(c[0]):
e(a[b]);a["$"+b].bind("click.jc",function(){var k=d===0?g-a.scroll:g+a.scroll;if(a.directional)c.data("dirjc",d?1:-1);return n(k)})}});if(!a.circular){a.btnPrev&&m===0&&a.$btnPrev.addClass(a.btnDisabledClass);a.btnNext&&m+a.visible>=j&&a.$btnNext.addClass(a.btnDisabledClass)}a.btnGo&&e.each(a.btnGo,function(d,b){e(b).bind("click.jc",function(){return n(a.circular?a.visible+d:d)})});a.mouseWheel&&c.mousewheel&&c.bind("mousewheel.jc",function(d,b){return b>0?n(g-a.scroll):n(g+a.scroll)});a.pause&&a.auto&&
c.bind("mouseenter.jc",function(){c.trigger("pauseCarousel.jc")}).bind("mouseleave.jc",function(){c.trigger("resumeCarousel.jc")});a.auto&&t();e.jCarouselLite.vis=v;c.bind("go.jc",function(d,b){if(typeof b=="undefined")b="+=1";var k=typeof b=="string"&&/(\+=|-=)(\d+)/.exec(b);if(k)b=k[1]=="-="?g-k[2]*1:g+k[2]*1;else b+=m;n(b)}).bind("startCarousel.jc",function(){clearTimeout(h.setAutoAdvance);h.setAutoAdvance=undefined;c.trigger("go","+="+a.scroll);t();c.removeData("pausedjc").removeData("stoppedjc")}).bind("resumeCarousel.jc",
function(d,b){if(!h.setAutoAdvance){clearTimeout(h.setAutoAdvance);h.setAutoAdvance=undefined;var k=c.data("stoppedjc");if(b||!k){t();c.removeData("pausedjc");k&&c.removeData("stoppedjc")}}}).bind("pauseCarousel.jc",function(){clearTimeout(h.setAutoAdvance);h.setAutoAdvance=undefined;c.data("pausedjc",true)}).bind("stopCarousel.jc",function(){clearTimeout(h.setAutoAdvance);h.setAutoAdvance=undefined;c.data("stoppedjc",true)}).bind("endCarousel.jc",function(){if(h.setAutoAdvance){clearTimeout(h.setAutoAdvance);
h.setAutoAdvance=undefined}a.btnPrev&&a[$btnPrev].addClass(a.btnDisabledClass).unbind(".jc");a.btnNext&&a[$btnNext].addClass(a.btnDisabledClass).unbind(".jc");a.btnGo&&e.each(a.btnGo,function(d,b){e(b).unbind(".jc")});e.each(["pausedjc","stoppedjc","dirjc"],function(d,b){c.removeData(b)});c.unbind(".jc")})});return this};e.fn.jCarouselLite.defaults={autoCSS:true,btnPrev:null,btnNext:null,btnDisabledClass:"disabled",btnGo:null,mouseWheel:false,speed:200,easing:null,timeout:4E3,auto:false,directional:false,
autoStop:false,pause:true,vertical:false,circular:true,visible:3,start:0,scroll:1,beforeStart:null,afterEnd:null}})(jQuery);
// http://remysharp.com/2008/09/10/the-silky-smooth-marquee/ - modified: setTimeout ... 25->15
(function(k){k.fn.marquee=function(l){function h(f,b,c){var a=c.behavior,d=c.width,e=c.dir,g=0;return g="alternate"==a?1==f?b[c.widthAxis]-2*d:d:"slide"==a?-1==f?-1==e?b[c.widthAxis]:d:-1==e?b[c.widthAxis]-2*d:0:-1==f?b[c.widthAxis]:0}function m(){for(var f=i.length,b=null,c=null,a={},d=[],e=!1;f--;)b=i[f],c=k(b),a=c.data("marqueeState"),!0!==c.data("paused")?(b[a.axis]+=a.scrollamount*a.dir,e=-1==a.dir?b[a.axis]<=h(-1*a.dir,b,a):b[a.axis]>=h(-1*a.dir,b,a),"scroll"==a.behavior&&a.last==b[a.axis]||
"alternate"==a.behavior&&e&&-1!=a.last||"slide"==a.behavior&&e&&-1!=a.last?("alternate"==a.behavior&&(a.dir*=-1),a.last=-1,c.trigger("stop"),a.loops--,0===a.loops?(b[a.axis]="slide"!=a.behavior?h(a.dir,b,a):h(-1*a.dir,b,a),c.trigger("end")):(d.push(b),c.trigger("start"),b[a.axis]=h(a.dir,b,a))):d.push(b),a.last=b[a.axis],c.data("marqueeState",a)):d.push(b);i=d;i.length&&setTimeout(m,15)}var i=[],n=this.length;this.each(function(f){var b=k(this),c=b.attr("width")||b.width(),a=b.attr("height")||b.height(),
d=b.after("").next(),e=d.get(0),g=(b.attr("direction")||"left").toLowerCase(),j={dir:/down|right/.test(g)?-1:1,axis:/left|right/.test(g)?"scrollLeft":"scrollTop",widthAxis:/left|right/.test(g)?"scrollWidth":"scrollHeight",last:-1,loops:b.attr("loop")||-1,scrollamount:b.attr("scrollamount")||this.scrollAmount||2,behavior:(b.attr("behavior")||
"scroll").toLowerCase(),width:/left|right/.test(g)?c:a};if(-1==b.attr("loop")&&"slide"==j.behavior)j.loops=1;b.remove();/left|right/.test(g)?d.find("> div").css("padding","0 "+c+"px"):d.find("> div").css("padding",a+"px 0");d.bind("stop",function(){d.data("paused",!0)}).bind("pause",function(){d.data("paused",!0)}).bind("start",function(){d.data("paused",!1)}).bind("unpause",function(){d.data("paused",!1)}).data("marqueeState",j);i.push(e);e[j.axis]=h(j.dir,e,j);d.trigger("start");f+1==n&&m()});return k(i)}})(jQuery);
/* Copyright (c) 2010 Brandon Aaron (http://brandonaaron.net)
* Licensed under the MIT License (LICENSE.txt).
*
* Version 1.0
*
* Based on Making Compact Forms More Accessible by Mike Brittain (http://alistapart.com/articles/makingcompactformsmoreaccessible)
*/
(function(a){a.fn.overlabel=function(){this.each(function(){var b=a(this),c=a("#"+b.attr("for"));b.addClass("overlabel").bind("click",function(d){c.focus()});c.bind("focus blur",function(d){b.css("display",(d.type=="blur"&&!c.val()?"":"none"))}).trigger("blur")})}})(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(c35?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('');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,'
new')}else{html=html.replace(/\n/g,'
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()',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.17 - a full featured, light-weight, customizable lightbox based on jQuery 1.3+
// Copyright (c) 2011 Jack Moore - jack@colorpowered.com
// Licensed under the MIT license: http://www.opensource.org/licenses/mit-license.php
(function(a,b,c){function bc(b){if(!T){O=b,_(a.extend(J,a.data(O,e))),x=a(O),P=0,J.rel!=="nofollow"&&(x=a("."+X).filter(function(){var b=a.data(this,e).rel||this.rel;return b===J.rel}),P=x.index(O),P===-1&&(x=x.add(O),P=x.length-1));if(!R){R=S=!0,q.show();if(J.returnFocus)try{O.blur(),a(O).one(k,function(){try{this.focus()}catch(a){}})}catch(c){}p.css({opacity:+J.opacity,cursor:J.overlayClose?"pointer":"auto"}).show(),J.w=Z(J.initialWidth,"x"),J.h=Z(J.initialHeight,"y"),W.position(0),n&&y.bind("resize."+o+" scroll."+o,function(){p.css({width:y.width(),height:y.height(),top:y.scrollTop(),left:y.scrollLeft()})}).trigger("resize."+o),ba(g,J.onOpen),I.add(C).hide(),H.html(J.close).show()}W.load(!0)}}function bb(){var a,b=f+"Slideshow_",c="click."+f,d,e,g;J.slideshow&&x[1]?(d=function(){E.text(J.slideshowStop).unbind(c).bind(i,function(){if(P"),b.open=!0;f.each(function(){a.data(this,e,a.extend({},a.data(this,e)||d,b)),a(this).addClass(X)}),g=b.open,a.isFunction(g)&&(g=g.call(f)),g&&bc(f[0]);return f},W.init=function(){y=a(c),q=Y().attr({id:e,"class":m?f+(n?"IE6":"IE"):""}),p=Y("Overlay",n?"position:absolute":"").hide(),r=Y("Wrapper"),s=Y("Content").append(z=Y("LoadedContent","width:0; height:0; overflow:hidden"),B=Y("LoadingOverlay").add(Y("LoadingGraphic")),C=Y("Title"),D=Y("Current"),F=Y("Next"),G=Y("Previous"),E=Y("Slideshow").bind(g,bb),H=Y("Close")),r.append(Y().append(Y("TopLeft"),t=Y("TopCenter"),Y("TopRight")),Y(!1,"clear:left").append(u=Y("MiddleLeft"),s,v=Y("MiddleRight")),Y(!1,"clear:left").append(Y("BottomLeft"),w=Y("BottomCenter"),Y("BottomRight"))).children().children().css({"float":"left"}),A=Y(!1,"position:absolute; width:9999px; visibility:hidden; display:none"),a("body").prepend(p,q.append(r,A)),s.children().hover(function(){a(this).addClass("hover")},function(){a(this).removeClass("hover")}).addClass("hover"),K=t.height()+w.height()+s.outerHeight(!0)-s.height(),L=u.width()+v.width()+s.outerWidth(!0)-s.width(),M=z.outerHeight(!0),N=z.outerWidth(!0),q.css({"padding-bottom":K,"padding-right":L}).hide(),F.click(function(){W.next()}),G.click(function(){W.prev()}),H.click(function(){W.close()}),I=F.add(G).add(D).add(E),s.children().removeClass("hover"),p.click(function(){J.overlayClose&&W.close()}),a(b).bind("keydown."+f,function(a){var b=a.keyCode;R&&J.escKey&&b===27&&(a.preventDefault(),W.close()),R&&J.arrowKey&&x[1]&&(b===37?(a.preventDefault(),G.click()):b===39&&(a.preventDefault(),F.click()))})},W.remove=function(){q.add(p).remove(),a("."+X).removeData(e).removeClass(X)},W.position=function(a,c){function g(a){t[0].style.width=w[0].style.width=s[0].style.width=a.style.width,B[0].style.height=B[1].style.height=s[0].style.height=u[0].style.height=v[0].style.height=a.style.height}var d,e=0,f=0;q.hide(),J.fixed&&!n?q.css({position:"fixed"}):(e=y.scrollTop(),f=y.scrollLeft(),q.css({position:"absolute"})),J.right!==!1?f+=Math.max(y.width()-J.w-N-L-Z(J.right,"x"),0):J.left!==!1?f+=Z(J.right,"x")/2:f+=Math.max(y.width()-J.w-N-L,0)/2,J.bottom!==!1?e+=Math.max(b.documentElement.clientHeight-J.h-M-K-Z(J.bottom,"y"),0):J.top!==!1?e+=Z(J.top,"y")/2:e+=Math.max(b.documentElement.clientHeight-J.h-M-K,0)/2,q.show(),d=q.width()===J.w+N&&q.height()===J.h+M?0:a,r[0].style.width=r[0].style.height="9999px",q.dequeue().animate({width:J.w+N,height:J.h+M,top:e,left:f},{duration:d,complete:function(){g(this),S=!1,r[0].style.width=J.w+N+L+"px",r[0].style.height=J.h+M+K+"px",c&&c()},step:function(){g(this)}})},W.resize=function(a){if(R){a=a||{},a.width&&(J.w=Z(a.width,"x")-N-L),a.innerWidth&&(J.w=Z(a.innerWidth,"x")),z.css({width:J.w}),a.height&&(J.h=Z(a.height,"y")-M-K),a.innerHeight&&(J.h=Z(a.innerHeight,"y"));if(!a.innerHeight&&!a.height){var b=z.wrapInner("").children();J.h=b.height(),b.replaceWith(b.children())}z.css({height:J.h}),W.position(J.transition==="none"?0:J.speed)}},W.prep=function(b){function h(b){W.position(b,function(){function o(){m&&q[0].style.removeAttribute("filter")}var b,d,g,h,j=x.length,k,n;!R||(n=function(){clearTimeout(V),B.hide(),ba(i,J.onComplete)},m&&Q&&z.fadeIn(100),C.html(J.title).add(z).show(),j>1?(typeof J.current=="string"&&D.html(J.current.replace(/\{current\}/,P+1).replace(/\{total\}/,j)).show(),F[J.loop||P")[0].src=h),$(d)&&(a("")[0].src=d))):I.hide(),J.iframe?(k=a("").addClass(f+"Iframe")[0],J.fastIframe?n():a(k).one("load",n),k.name=f+ +(new Date),k.src=J.href,J.scrolling||(k.scrolling="no"),m&&(k.frameBorder=0,k.allowTransparency="true"),a(k).appendTo(z).one(l,function(){k.src="//about:blank"})):n(),J.transition==="fade"?q.fadeTo(c,1,o):o(),y.bind("resize."+f,function(){W.position(0)}))})}function g(){J.h=J.h||z.height(),J.h=J.mh&&J.mhJ.mw&&(a=(Q.width-J.mw)/Q.width,d()),J.mh&&Q.height>J.mh&&(a=(Q.height-J.mh)/Q.height,d())),J.h&&(Q.style.marginTop=Math.max(J.h-Q.height,0)/2+"px"),x[1]&&(P'+html+' ');
}
function cBoxErr(html){
return cBoxMsg(html, "msg-err");
}
function cBoxOk(html){
return cBoxMsg(html, "msg-ok");
}
function cBoxInfo(html){
return cBoxMsg(html, "msg-info");
}
function cBoxConfirm(baslik, msg, url){
cBoxAlert('