function disableSelect(el){ if(el.addEventListener){ el.addEventListener("mousedown",disabler,"false");} else { el.attachEvent("onselectstart",disabler);} } function enableSelect(el){ if(el.addEventListener){ el.removeEventListener("mousedown",disabler,"false");} else { el.detachEvent("onselectstart",disabler);} } function disabler(e){ if(e.preventDefault){ e.preventDefault();} return false;} var JScrooll = new $Class({ include: [$Implement, $Events, $Options], opt: {axis:'y',wheel:40, scroll:true, axisXY:true, Global:false, scrollfix:0, resize:true, lockscroll:true ,size:'auto' ,sizefix:0, sizethumb:'auto', invertscroll:false, Pages:0, Fevent:'onEnd', JWrapper:true, WrapperClass:'SCWrapper', WrapperClass:'scrollcontent', BarClass:true, JSwhell:true, Dragend : 0, xonEnd : function(e){ alert(22);} }, Dend : function(e){ var t = this;var Time;if(!t.Jwin)return;alert(4);J.isWin.Jprogress.show();J.isWin.scrollwrap.append(J('
'+e+'

' ).attr('onclick','JWindow.close()') );e = Math.floor(e);JWindow.refresh();is = J.isWin;t.eStop = 1;setTimeout(function(){ J.isWin.Jprogress.hide();t.eStop = 0 },250);}, init : function(root,arg) { var t = this;t.root = root;t.$options(arg);t.$opt_this(t.opt,['width','height','xwheel']);t.cnf = t.opt;t.Wrapper = root;t.sAxis = t.axis === 'x';t.sDirection = t.sAxis ? 'left' : 'top';t.sSize = t.sAxis ? 'Width' : 'Height';t.sType = t.sAxis ? 'h' : 'v';if(t.sType=='h')t.eAxis = 'Y';else t.eAxis = 'X';t.SupportScroll();root.data(t.sType+'JScrooll',true);t.hJScrooll = root.data('hJScrooll');t.vJScrooll = root.data('vJScrooll');t.Content = J('.scrollcontent', root);t.Scrollbar = J('.'+t.sType+'scroller', root );t.Track = J('.scrollarea', t.Scrollbar);t.Thumb = J('.scrollblock', t.Scrollbar);t.iScroll = 0;t.iPosition = { start: 0, now: 0 };t.iMouse = {};t.touchEvents = 'ontouchstart' in document.documentElement;t.update();t.setEvents();t.body = J('body');}, update : function(sScroll) { var t = this;t.acTop = (t.Content.$css('top')*-1);t.cTop = (t.Thumb.$css('top') );t.cHeight = (t.Thumb.$css('height') );t.TrackH = t.Track.$css('height');t.WrapperXY = t.Wrapper[0]['offset'+t.sSize];t.ContentXY = t.Content[0]['scroll'+t.sSize]+t.scrollfix;t.ContentRatio = (t.WrapperXY) / (t.ContentXY);t.disable = (t.ContentRatio >= 1);if(t.axis=='y')t.Wrapper.data('disableY',t.disable );t.disableY = t.Wrapper.data('disableY');t.Scrollbar.toggleClass( 'disable', t.disable );if(t.disable)return t;t.TrackXY = t.size === 'auto' ? t.WrapperXY - t.sizefix : t.size - t.sizefix;t.ThumbXY = Math.min( t.TrackXY, Math.max( 0, (t.sizethumb === 'auto' ? (t.TrackXY * t.ContentRatio) : t.sizethumb) ) );t.ScrollbarRatio = t.sizethumb === 'auto' ? (t.ContentXY / t.TrackXY) : (t.ContentXY - t.WrapperXY) / (t.TrackXY - t.ThumbXY);t.iScroll = (sScroll === 'relative' && t.ContentRatio <= 1) ? Math.min( (t.ContentXY - t.WrapperXY), Math.max(0, t.iScroll)) : 0;t.iScroll = (sScroll === 'bottom' && t.ContentRatio <= 1) ? (t.ContentXY - t.WrapperXY) : isNaN( parseInt(sScroll, 10) ) ? t.iScroll : parseInt(sScroll, 10);t.setSize();}, setSize : function() { var t = this;var sCssSize = t.sSize.toLowerCase();Hh =( (t.cTop+t.cHeight) >= t.TrackH );t.Thumb.css( t.sDirection, t.iScroll / t.ScrollbarRatio );t.Content.css( t.sDirection, -t.iScroll );t.iMouse.start = t.Thumb.offset()[ t.sDirection ];t.Scrollbar.css( sCssSize, t.TrackXY );t.Track.css( sCssSize, t.TrackXY );t.Thumb.css( sCssSize, t.ThumbXY );if(sCssSize=='height'&&t.axis=='y'&&t.iScroll&&Hh)t.iScroll = t.iScroll-(15);}, setEvents : function() { var t = this;if( t.resize && window.addEventListener ){ window.addEventListener('resize', t.eWResize.$bind(t), false );} else if( t.resize ){ window.onresize = t.eWResize.$bind(t);} if( ! t.touchEvents ){ t.Thumb.bind( 'mousedown', function(e){t.eStart(e)} );t.Track.bind( 'mouseup', function(e){t.eDrag(e)} );} else{ t.Wrapper[0].ontouchstart = function( event ) { if( 1 === event.touches.length ){ t.eStart(event.touches[0]);event.stopPropagation();} };} t.Wrapper.$wheel(function(event){ t.eWheel(event).$bind(t);return t.Global;});}, eStart : function(event) { var t = this;J( "body" ).addClass( "noSelect" );var oThumbDir = parseInt( t.Thumb.css( t.sDirection ), 10 );t.iMouse.start = t.sAxis ? event.pageX : event.pageY;t.iPosition.start = oThumbDir == 'auto' ? 0 : oThumbDir;if( !t.touchEvents ){ J(document).bind('mousemove', t.eDrag.$bind(t) );J(document).bind('mouseup', t.eEnd.$bind(t) );t.Thumb.bind('mouseup', t.eEnd.$bind(t) );} else{ document.ontouchmove = function( event ){ event.preventDefault();t.eDrag(event.touches[0]);};document.ontouchend = t.eEnd.$bind(t);} }, setPosition:function(b){ var c=this.element;if(b==undefined||b==NaN){b=this.min}if(b>this.max){b=this.max}else{if(b');var $scrollwrap = J('
');$scrollable.wrapInner($scrollwrap).wrapInner($scrollcontent);$scrollcontent = $scrollable.find(".scrollcontent");$scrollwrap = $scrollable.find(".scrollwrap");if(!t.Jwin)return;J.isWin.scrollwrap = $scrollwrap;} var $sb = '
';if(!t.$sb)$scrollable.append($sb);} }); var Dispatcher = new $Class({ scope : null, listeners : null, init : function(s) { this.scope = s || this;this.listeners = [];}, add : function(cb, s) { this.listeners.push({cb : cb, scope : s || this.scope});return cb;}, addToTop : function(cb, s) { this.listeners.unshift({cb : cb, scope : s || this.scope});return cb;}, remove : function(cb) { var l = this.listeners, o = null;Jclass.each(l, function(c, i) { if (cb == c.cb) { o = cb;l.splice(i, 1);return false;} });return o;}, dispatch : function() { var s, a = arguments, i, li = this.listeners, c;for (i = 0;i maxWidth){ ratio = maxWidth / width;height = height * ratio;width = width * ratio;} if(height > maxHeight){ ratio = maxHeight / height;width = width * ratio;height = height * ratio;} w = w+width;h = h+height;t.css('margin-top', h < ph ? Math.floor((ph - h)/2) : 0);if(!$is.maximized){ $is.WIN.height(h-winH);$is.ELcontent.height(h-28);$is.Jbody.height(h);t.css('margin-top', '0px');} t.width(w);if(wr=='resize')return t;$t(window).bind('resize', function(e){ window.resizeEvt;clearTimeout(window.resizeEvt);window.resizeEvt = setTimeout(function(){ t.$natural('resize') }, 0);});return {width:w, height:h, rw:rw, rh:rh } }, _$natural: function(wr,wh) { var t = this;var $t = t.constructor;var fw=0, fh=0;var $is = $t['isWin'];if(!wh){ var i = $t['isWin'].WIN;wh={width:i.width(), height:i.height()} } preview = $t['isWin'].ELcontent;preview = $t['isWin'].WIN;preview = $t['isWin'].Jbody;var radio = $t['isWin'].WIN;rw = radio.width();rh= radio.height();var width = t.width();var height = t.height();var prop = (width/height).toFixed(2);var pw = parseInt(preview.width()+fw), ph = parseInt(preview.height()-fh), w, h;if (prop < (pw/ph).toFixed(2)) { h = ph;w = Math.floor(h * prop);} else { w = pw;h = Math.floor(w/prop);} if($is.maximized){var maxWidth = 0;var maxHeight = 0;} else {var maxWidth = 52;var maxHeight = 52;} var ratio = 0;var width = t.width();if(width > maxWidth){ ratio = maxWidth / width;height = height * ratio;width = width * ratio;} if(height > maxHeight){ ratio = maxHeight / height;width = width * ratio;height = height * ratio;} w = w+width;h = h+height;console.log('------$is.maximized--------> '+$is.maximized );t.css('margin-top', h < ph ? Math.floor((ph - h)/2) : 0);if(!$is.maximized){ $t['isWin'].WIN.height(h-16);$t['isWin'].ELcontent.height(h-28);$t['isWin'].Jbody.height(h);t.css('margin-top', '0px');} t.width(w);if(wr=='resize')return t;$t(window).bind('resize', function(e){ window.resizeEvt;clearTimeout(window.resizeEvt);window.resizeEvt = setTimeout(function(){ t.$natural('resize') }, 0);});console.log('natura :'+ wr + ' '+ (h) );return {width:w, height:h, rw:rw, rh:rh } }, $imgWidth: function() { return this.get(0).naturalWidth;}, $imgHeight: function() { return this.get(0).naturalHeight;}, $centerpage: function() { var t = this;var $t = t.constructor;var fw=200, fh=350;var width = t.width();var scrWidth = screen.width-100;var height = t.height();if(width>scrWidth){var maxWidth = 0;var maxHeight = 0;fh=parseInt( width/6 );} else {var maxWidth = 150;var maxHeight = 150;fw=0;fh=parseInt( width/3 );} var prop = (width/height).toFixed(2);var pw = parseInt( $t.winWidth()+fw ), ph = parseInt($t.winHeight()-fh), w, h;if (prop < (pw/ph).toFixed(2)) { h = ph;w = Math.floor(h * prop);} else { w = pw;h = Math.floor(w/prop);} var ratio = 3;if(width > maxWidth){ ratio = maxWidth / width;height = height * ratio;width = width * ratio;} if(height > maxHeight){ ratio = maxHeight / height;width = width * ratio;height = height * ratio;} w = w+width;h = h+height;return {width:w-fw, height:h} }, };$include_fn( J, $Jfnextend ); $Jwp = new $Class({ include: [$Implement, $Events, $Options, Jbox], opt : { Runmax:false, url:null, content:'', xtitle:'', Taskbar:0, Tbar:-2, $this:'w', Append:'body', theme:'jwin', modal:0, type:'mceWrapper', x:-1, y:-1, width:320, height:240, winType:'iframe', root:null, xfind:0, Pages:0, RCreateHtml:true, Scroll:1, zIndex:100000, Ratio:0, All:false,Click:1, jmin:false, jmax:true, jclos:true, movable:true, jprint:0, img:'', thumbs:'', Index:0, }, init : function(arg) { var t = this;t.$options(arg);t.$opt_this(t.opt,['width','height']);t.find = t.find ? t.find : t.root;if(t.modal){ t.thumbs = t.$this = J(t.find).find('img').data('JWindow',t.find);return t.$open(J);} J(function($) { t.$Ready(J);});return t;}, $Search: function($) { var t = this;J( t.find ).each(function() { if(t.Click)J(this).find( "a" ).click(function( event ) { event.preventDefault();t.find = this;});});}, $Ready: function($) { var t = this;t.$b = 0;t.thumbs = J(t.find).find('img').data('JWindow',t.find);t.thumbs.css({cursor:'pointer'});t.thumbs.click(function(event){ console.log(this);var $t = $(this);$t.data('JWindow',1);t.url = $t.attr('rel');t.tn = $t.attr('src');t.big = $t.attr('big');t.title = $t.attr('title');t.alt = $t.attr('alt');t.isAT = t.alt ? t.alt : t.title;t.isAT = document.title;t.title = $t.data('title');t.title = t.title ? t.title : t.isAT;t.description = $t.data('description');t.Image = t.big ? t.big : t.tn;t.isClick = $t.data('click');t.Index = t.thumbs.index(this);$W = $( window ).width()*0.5;$H = $( window ).height()/1.7;var wh = $( window ).$centerpage();$W = wh.width;$H = wh.height;if(!t.isClick) t.open = JWindow.open( {root:this, title:t.title, is:t, Size:t.Size,chrome:t.chrome, Index:t.Index, thumbs:t.thumbs, zIndex:t.zIndex, winType:'media', Image:t.Image, Taskbar:0, jmin:0, Task:0, width:$W, height:$H} );if(t.open){ t.open.Image = t.Image;t.open.title = t.title;t.open.description = t.description;t.open.Index = t.Index;} $t.data('click',0);return false;});}, $openIndex: function($) { var t = this;t.$this = t.thumbs.eq(t.Index);console.log('$openIndex------> '+t.thumbs.attr('src') + ' index: '+t.Index + ' '+ $ );t.$open(J);}, $open: function($) { var t = this;t.$b = 1;t.thumbs.css({cursor:'pointer'});var $t = t.$this;$t.data('JWindow',1);t.url = $t.attr('rel');t.tn = $t.attr('src');t.big = $t.attr('big');t.title = $t.attr('title');t.alt = $t.attr('alt');t.isAT = t.alt ? t.alt : t.title;t.isAT = document.title;t.title = $t.data('title');t.title = t.title ? t.title : t.isAT;t.description = $t.data('description');t.Image = t.big ? t.big : t.tn;t.isClick = $t.data('click');$W = $( window ).width()*0.5;$H = $( window ).height()/1.7;var wh = $( window ).$centerpage();$W = wh.width;$H = wh.height;t.fix = {xroot:t.$this, title:t.title, is:t, Index:t.Index, thumbs:t.thumbs, zIndex:t.zIndex, winType:'media', Image:t.Image, Taskbar:0, jmin:0, Task:0, chrome:1, width:$W, height:$H};if(t.open){ t.open.Image = t.Image;t.open.title = t.title;t.open.description = t.description;t.open.Index = t.Index;} t.open.features.width=$W;t.open.features.height=$H;t.open.$opt_this(t.fix);t.open.Jwrapper.addClass('chrome');$t.data('click',0);}, $next: function($) { var t = this;if (t.Index < t.thumbs.length-1) { t.Index++;if(!$)t.thumbs.eq(t.Index).data('click',1).click();else t.$openIndex(t.Index);console.log('$next-----------> '+$);t.$img.hide() .attr('src',t.Image);} else {t.Index = (1);t.$prev($);return t;} }, $prev: function($) { var t = this;if (t.Index !== 0) { t.Index--;if(!$)t.thumbs.eq(t.Index).data('click',1).click();else t.$openIndex($);console.log('$prev-----------> '+$);t.$img .hide() .attr('src',t.Image);} else {t.Index = (t.thumbs.length)-2;t.$next($);return t;} }, $click: function() { thumbs.click(function(event) { console.log(this);var url = $(this).attr('rel');var tn = $(this).attr('src');var big = $(this).attr('big');var title = $(this).data('title');var description = $(this).data('description');var md = big ? big : tn;var isClick = $(this).data('click');console.log(md);window.Image = big;window.title = title;window.description = description;var imageIndex = thumbs.index(this);var $Index = thumbs.index(this);window.imageIndex = imageIndex;console.log('imageIndex: '+( imageIndex) );if(!isClick)JWindow.open( {root:this, title:'dene', winType:'media', image:big, imageIndex:$Index, Taskbar:0, jmin:0, Task:0, resizable:true, width:600, height:338,Runmax:false} );$(this).data('click',0);return false;});next.click(function() { if (imageIndex < thumbs.length) { imageIndex++;thumbs.eq(imageIndex).click();} return false;});prev.click(function() { console.log(thumbs);console.log(imageIndex !== 0);if (imageIndex !== 0) { imageIndex--;thumbs.eq(imageIndex).click();} return false;});}, setTitle : function (st) { var t = this;t.open.setTitle(st);}, setStatus : function (st) { var t = this;t.open.setStatus(st);}, keyHandler : function(e) { var t = this;if (typeof e.target.form != 'undefined') return true;var exp = t.open | J['isWin'];var op = null;switch (e.keyCode) { case 70: if (exp) exp.doFullExpand();return true;case 32: case 34: case 39: t.$next(t.$b);break;case 40: op = 1;break;case 8: case 33: case 37: t.$prev(t.$b);break;case 38: op = -1;break;case 27: console.log('esc');break;case 13: JWindow.close();J(document).unbind( 'keyup' );op = 0;} if (op !== null) { if (e.preventDefault) e.preventDefault();else e.returnValue = false;if (exp) { if (op == 0) { exp.close(22);} else { } return false;} } return true;}, getPageSize : function () { var t = this;var d = document, w = window, iebody = d.compatMode && d.compatMode != 'BackCompat' ? d.documentElement : d.body;var width = t.ie ? iebody.clientWidth : (d.documentElement.clientWidth || self.innerWidth), height = t.ie ? iebody.clientHeight : self.innerHeight;return t.page = { width: width, height: height, scrollLeft: t.ie ? iebody.scrollLeft : pageXOffset, scrollTop: t.ie ? iebody.scrollTop : pageYOffset };}, $empty: function() {return false } });var Jbox = new $Class({ include: [$Implement, $Events, $Options], count :0, windows : [], Lng : {yes :'Evet', no:'Hayır', ok:'Tamam'}, zIndex :100, opt : {dialog_type:false, inline:1, Runmax:false, url:null, content:'', xtitle:'', Taskbar:0, Task:1, Tbar:-2, $this:'w', Append:'body', Blocker:0, inBox: 'offsetParent', theme:'jwin', modal:0, type:'mceWrapper', x:-1, y:-1, width:320, height:240, winType:'iframe', root:null, find:0, Pages:0, RCreateHtml:true, Scroll:1, zIndex:10000, xfadeDuration: 500, fitImagesInViewport: true, resizeDuration: 700, positionFromTop: 50, showImageNumberLabel: true, alwaysShowNavOnTouchDevices: false, wrapAround: false, initialized: false, selector: null, on_ready: [], displaying: false, options: null, group: null, index: null, data: null, fast_mode: false, default_preset: { layout: "dashboard", effect: "transform", resizable: 0 }, presets: {} }, init : function(arg) { var t = this;t.$options(arg);t.$opt_this(t.opt,['width','height']);t.by_init();t.addPresets(arg);}, extendjQuery : function() { }, injectCode : function() { var t = this;t.html = '
';J(t.html).appendTo("body");}, bind : function() { var t = this;var coptions = [];if (!t.fast_mode) { coptions.push("[class^=tu_][class*=x]");J.each(["db", "ql", "fl", "image", "html", "dom", "iframe", "ajax", "script"], function(i, coption) { coptions.push("[class^=tu_][class*=_" + coption + "]");});} t.selector = J.merge([".top_up", "[toptions]", coptions.join(",")], J.keys(t.presets) ).join();J(t.selector).on("click", t.topUpClick.$bind(t) );J(document).bind("keyup", t.documentKeyPress.$bind(t) );}, fadeDuration : function(duration) { return duration;}, topUpClick : function(event) { var t = this;try { t.displayTopUp(J(event.target));} catch (e) {alert(e);};return false;}, documentKeyPress : function(event) { var t = this;if (J("#top_up").is(":hidden") || J(event.target).is(":input")) { return;} switch(event.keyCode) { case 27: t.close();break;case 37: t.previous();break;case 39: t.next();break;} }, deriveTopUpOptions : function(topUp, opts) { var toptions = J.extend({}, {topUp: "#" + topUp.element.id(), preset: topUp.selector});var el = topUp.element, attributes = {};J.each(topUp.element.prop('class').split(/\s/), function(i, c) { if (c.match(/^tu_/)) { J.each(c.replace(/^tu_/, "").split("_"), function(j, coption) { switch(coption) { case "db": case "ql": case "fl": toptions["layout"] = {"db": "dashboard", "ql": "quicklook", "fl": "flatlook"}[coption];break;case "image": case "html": case "dom": case "iframe": case "ajax": case "script": toptions["type"] = coption;break;default: if (coption.match(/\dx\d/)) { toptions["width"] = coption.split("x")[0];toptions["height"] = coption.split("x")[1];} } });} });if (topUp.element.is("[toptions]")) { J.each(topUp.element.attr("toptions").split(","), function(i, option) { var key_value = option.split("=");toptions[J.trim(key_value[0])] = J.trim(key_value[1]);});} if (toptions.noGroup && parseInt(toptions.noGroup, 10) == 1) { toptions.group = null;} if (opts) { toptions = J.extend(toptions, opts);} return toptions;}, deriveOptions : function(reference, opts, store) { var t = this;var result = J.extend({}, t.default_preset);if (opts) { if (t.presets[opts.preset]) { result = J.extend(result, t.presets[opts.preset]);} result = J.extend(result, opts);} if (result.ondisplay && !J.isFunction(result.ondisplay)) { var fdisplay = result.ondisplay;result.ondisplay = function() {eval(fdisplay);};} if (result.onclose && !J.isFunction(result.onclose)) { var fclose = result.onclose;result.onclose = function() {eval(fclose);};} if (store) { result.reference = result.reference ? J(result.reference) : reference;if (!result.type) { result.type = t.deriveType(reference);} if (t.movieContentDisplayed(result)) { result.resizable = 0;} t.options = J.extend({}, result);t.DENEME = result.reference;} return result;}, deriveType : function(reference) { if (reference.toLowerCase().match(/\.(gif|jpg|jpeg|png)(\?[0123456789]+)?$/)) { return "image";} if (reference.toLowerCase().match(/\.(swf)(\?[0123456789]+)?$/)) { return "flash";} if (reference.toLowerCase().match(/\.(flv)(\?[0123456789]+)?$/)) { return "flashvideo";} if (reference.toLowerCase().match(/\.(aif|aiff|aac|au|bmp|gsm|mov|mid|midi|mpg|mpeg|m4a|m4v|mp4|psd|qt|qtif|qif|qti|snd|tif|tiff|wav|3g2|3gp|wbmp)(\?[0123456789]+)?$/)) { return "quicktime";} if (reference.toLowerCase().match(/\.(ra|ram|rm|rpm|rv|smi|smil)(\?[0123456789]+)?$/)) { return "realplayer";} if (reference.toLowerCase().match(/\.(asf|avi|wma|wmv)(\?[0123456789]+)?$/)) { return "windowsmedia";} return "ajax";}, movieContentDisplayed : function(opts) { var t = this;return J.inArray((opts || t.options).type, ["flash", "flashvideo", "quicktime", "realplayer", "windowsmedia"]) != -1;}, deriveGroup : function() { var t = this;if (t.options.group) { if (!(t.group && t.group.name == t.options.group)) { t.group = {name: t.options.group, items: J([])};J.each(J(t.selector), function(i, e) { if (!J(e).is("[tu_group]")) { J(e).attr("tu_group", t.deriveOptions(null, t.deriveTopUpOptions( J(e).bubbleDetect(t.selector) ) ).group);} if (J(e).attr("tu_group") == t.group.name) { t.group.items = t.group.items.add(e);} });} var ids = J.map(t.group.items, function(e, i) { return "#" + J(e).id();});t.index = t.options.topUp ? J.inArray(t.options.topUp, ids) : -1;} else { t.group = null;} }, navigateInGroup : function(step) { var t = this;console.log(t.group);if (t.group === null) { return;} t.index = t.index + step;if (t.index < 0) { t.index = t.group.items.length - 1;} if (t.index > t.group.items.length - 1) { t.index = 0;} t.displayTopUp(t.group.items[t.index]);}, prepare : function() { var t = this;J("#top_up .te_title").fadeOut(t.fadeDuration(200));if (!(t.group && t.group.items.length > 1)) { J("#top_up .te_controls").fadeOut(t.fadeDuration(200));} J(".te_wrapper").attr("class", "te_wrapper te_" + t.options.layout);J(".te_frame,.te_content").unlockDimensions();if (parseInt(t.options.shaded, 10) == 1) { J("#tu_overlay").addClass("te_shaded");} else { J("#tu_overlay").removeClass("te_shaded");} if ((parseInt(t.options.modal, 10) == 1) || (parseInt(t.options.shaded, 10) == 1) || (parseInt(t.options.overlayClose, 10) == 1)) { J("#tu_overlay").show();} else {J("#tu_overlay").hide();} var altText = "";if (t.options.topUp && (t.options.topUp != "") && ((parseInt(t.options.readAltText, 10) == 1) || (t.options.title && t.options.title.match("{alt}")))) { var topUp = J(t.options.topUp);if (topUp.length) { var image = topUp.find("img");if (image.length) { altText = image.attr("alt") || "";} if (altText != "" && !(ot.ptions.title && t.options.title.match("{alt}"))) { t.options.title = "{alt}";} } } t.options.title = (t.options.title || "").replace("{alt}", altText).replace("{current}", t.group === null ? "" : (t.index + 1)).replace("{total}", t.group === null ? "" : t.group.items.length);}, loadContent : function() { var t =this;switch(t.options.type) { case "image": t.options.content = new Image();J(t.options.content).load(function() { t.options.content = J(this);t.onContentReady();}).attr("src", t.options.reference);break;case "flash": case "flashvideo": case "quicktime": case "realplayer": case "windowsmedia": loadMovie(t.options.type, t.options.reference, t.options.width, t.options.height);break;case "iframe": t.options.content = J('');break;case "html": case "dom": var reference = J(t.options.reference);if (reference.context) { var marker = J("
").attr({id : reference.markerId(), "class": (reference.is(":hidden") ? "hidden" : ""), style : "display: none"});t.options.content = J("
").append(reference.before(marker).addClass("marked"));reference.show();} else {t.options.content = J("
").append(reference);} break;case "ajax": case "script": t.options.content = null;J.ajax({url: t.options.reference, type: (parseInt(t.options.post, 10) == 1) ? "POST" : "GET", cache: false, async: false, data:t.options.parameters, dataType: (t.options.type == "ajax") ? "html" : "script", success: t.onContentReady});} if (J.inArray(t.options.type, ["html", "dom", "iframe"]) != -1) { t.onContentReady();} }, loadMovie : function(type, src, width, height) { }, createElementTag : function(tagName, attrs) { }, loadFlashContent : function() { }, loadFlashVideoContent : function() { }, loadQuickTimeContent : function() { }, loadRealPlayerContent : function() { }, loadWindowsMediaContent : function() { loadQuickTimeContent();}, onContentReady : function(html) { var t =this;t.hideLoader();if (html) { t.options.content = J(html);} switch(t.options.type) { case "image": case "html": case "dom": case "iframe": t.options.resize = t.options.content;J(".te_content").removeClass("te_scrollable");break;default: t.options.resize = J("#temp_up .te_content");J(".te_content").addClass("te_scrollable");} if (J("#top_up").is(":hidden")) { t.show();} else { t.replace();} }, showLoader : function() { var t =this;var origin = J("#top_up");if (J("#top_up").is(":hidden")) { origin = J(t.options.topUp);if (!origin.length) { origin = J(document);} else if (origin.children().length > 0) { origin = J(origin.children()[0]);} } try { var dimensions = {top: origin.position().top, left: origin.position().left, width: origin.outerWidth(), height: origin.outerHeight()};} catch(e) { alert(e);var dimensions = {top: J(window).scrollTop(), left: J(window).scrollLeft(), width: parseInt(J(window).width() / 2, 10), height: parseInt(J(window).height() / 2, 10)};} J("#tu_loader").html(" ").css(dimensions).show();}, hideLoader : function() { J("#tu_loader").hide();}, show : function() { var t = this;t.setContent();t.setDimensions();t.moveContent("top_up");J("#top_up").center();if (t.options.x) { J("#top_up").css({left: parseInt(t.options.x, 10)});} if (t.options.y) { J("#top_up").css({top : parseInt(t.options.y, 10)});} switch(t.options.effect) { case "appear": case "fade": J("#top_up").fadeIn(t.fadeDuration(300), t.afterDisplay.$bind(t) );break;case "switch": case "clip": J("#top_up").show("clip", {direction: "vertical"}, 500, t.afterDisplay.$bind(t));break;case "transform": var origin = J(t.options.topUp);if (origin.children().length > 0) { origin = J(origin.children()[0]);} var tuContent = J("#top_up").find(".te_content");var dimensions = t.options.topUp ? J.extend({width: origin.outerWidth(), height: origin.outerHeight()}, origin.offset()) : {top: parseInt(J(window).height() / 2, 10) - parseInt(tuContent.height() / 2, 10) + J(window).scrollTop(), left: parseInt(J(window).width() / 2, 10) - parseInt(tuContent.width() / 2, 10) + J(window).scrollLeft(), width: 10, height: 10};tuContent.removeAttr('style');t.transform("from", dimensions, t.afterDisplay.$bind(t));break;default: J("#top_up").show();t.afterDisplay();} }, replace : function(callback) { var t =this;var isScrollable = J("#top_up .te_content").hasClass("te_scrollable");if (isScrollable) { J("#top_up .te_content").removeClass("te_scrollable");} var focusedElement = J("#top_up .te_content :focus");var wrapper = J("#top_up .te_content").lockDimensions().wrapInner("
").children();wrapper.fadeOut(t.fadeDuration(250), function() { if (parseInt(t.options.storeCurrent, 10) == 1) { wrapper.addClass("te_stored_content").hide().find(".te_stored_content").before(wrapper);} else { wrapper.children().appendTo("#temp_up .te_content").end().end().remove();} if (callback) { var arg = J("#temp_up .te_content");if (J.inArray(t.options.type, ["html", "dom"]) != -1) { arg = arg.children().eq(0);} callback.apply(arg);} else { t.clearContent();t.setContent();} if (isScrollable) { J("#top_up .te_content").addClass("te_scrollable");} t.setDimensions();J("#top_up").centerWrap(J("#temp_up"),t.options);var animation = {width: J("#temp_up .te_content").outerWidth(), height: J("#temp_up .te_content").outerHeight()};var newTopUpWidth = J("#temp_up").outerWidth();J("#top_up .te_content").animate(animation, 400, function() { t.moveContent("top_up");J("#top_up").removeCenterWrap(newTopUpWidth);focusedElement.focus();t.afterDisplay();});});}, setContent : function() { var t = this;t.options.content.appendTo("#temp_up .te_content");}, moveContent : function(to) { var from = to == "top_up" ? "temp_up" : "top_up";J("#" + from + " .te_content").children().appendTo("#" + to + " .te_content");if (to == "top_up") { } }, clearContent : function() { J(".te_content .marked").each(function() { var marker = J("#" + J(this).markerId());if (marker.hasClass("hidden")) { J(this).hide();} marker.after(J(this).removeClass("marked")).remove();});J(".te_content").children(":not(.te_stored_content)").remove();}, transform : function(direction, dimensions, callback) { var t = this;var topUp = J("#top_up");var tuContent = topUp.find(".te_content");if (direction == "from") { topUp.addClass("te_transparent").show();} var topUpOffset = topUp.offset();var tuContentOffset = tuContent.offset();var tuContentDiff = {width: topUp.width() - tuContent.width(), height: topUp.height() - tuContent.height()};dimensions.top -= tuContentOffset.top - topUpOffset.top;dimensions.left -= tuContentOffset.left - topUpOffset.left;var origin = {top: topUp.css("top"), left: topUp.css("left"), width: topUp.outerWidth(), height: topUp.outerHeight()};var opts = {to: direction == "from" ? origin : dimensions, duration: 500};if (direction == "from") { opts.to.width -= tuContentDiff.width;opts.to.height -= tuContentDiff.height;} var animation = function() { var cb = function() { callback.apply();t.options.content.removeClass("te_overflow");};var onReady = direction == "to" ? function() { topUp.fadeOut(t.fadeDuration(100), cb);} : cb;topUp.animate({top: opts.to.top, left: opts.to.left}, opts.duration);t.options.content.animate({width: opts.to.width, height: opts.to.height}, opts.duration, onReady);};t.options.content.addClass("te_overflow");if (direction == "from") { topUp.css({top: dimensions.top, left: dimensions.left});t.options.content.css({width: dimensions.width, height: dimensions.height});J(".te_top_up,.te_content").unlockDimensions();topUp.hide().removeClass("te_transparent").fadeIn(t.fadeDuration(150), animation);} else { animation.apply();} }, afterDisplay : function() { var t = this;var duration = t.fadeDuration(500);J("#top_up .te_title").html(t.options.title || "").fadeIn(duration);if (t.group && t.group.items.length > 1 && J("#top_up .te_controls").is(":hidden")) { J("#top_up .te_controls").fadeIn(duration);} if (J("#top_up .te_close_link").is(":hidden")) {J("#top_up .te_close_link").fadeIn(duration);} t.checkPosition();J(".te_top_up,.te_content").unlockDimensions();if (t.movieContentDisplayed()) { t.options.content.find("object").show();} if (t.options.ondisplay) { t.options.ondisplay.apply(t, [J("#top_up .te_content"), t.data]);} t.displaying = false;}, setDimensions : function(dimensions) { var t = this;var func = dimensions ? null : t.checkHeight();if (!dimensions) { t.options.resize.unlockDimensions();if (J.inArray(t.options.type, ["image", "html", "dom", "iframe"]) != -1) { J("#temp_up .te_content").unlockDimensions();} dimensions = {};if (t.options.width) { dimensions.width = parseInt(t.options.width, 10);} if (t.options.height) { dimensions.height = parseInt(t.options.height, 10);} } t.options.resize.css(dimensions);if (func) { func.apply();} }, checkHeight : function() { var t = this;var extraHeight = J("#temp_up").outerHeight() - J("#temp_up .te_content").height(), dimensions = {height: J(window).height() - 4 - extraHeight};if (t.options.type == "image") { dimensions.width = parseInt(t.options.content.width() * (dimensions.height / t.options.content.height()), 10);} t.setDimensions(dimensions);}, checkPosition : function() { var t = this;var offset = J("#top_up").offset();var dimensions = {width: J("#top_up").outerWidth(), height: J("#top_up").outerHeight()};var position = {};if (offset.top - J(window).scrollTop() < 2) { position.top = J(window).scrollTop() + 2;} else if (offset.top + dimensions.height - J(window).scrollTop() > J(window).height() - 2) { position.top = J(window).scrollTop() + J(window).height() - dimensions.height - 2;} if (offset.left - J(window).scrollLeft() < 2) { position.left = J(window).scrollLeft() + 2;} else if (offset.left + dimensions.width - J(window).scrollLeft() > J(window).width() - 2) { position.left = J(window).scrollLeft() + J(window).width() - dimensions.width - 24;} if (J.keys(position).length > 0) { J("#top_up").animate(position, 300);} }, hide : function(callback) { var t = this;J(".te_content .te_stored_content").removeClass("te_stored_content");var duration = t.fadeDuration(250);var onReady = function() { t.animateHide(callback);};J("#top_up .te_title").fadeOut(duration);J("#top_up .te_controls").fadeOut(duration);if (t.movieContentDisplayed()) { t.options.content.find("object").hide();} if (J.ie) { J("#top_up .te_close_link").hide();onReady.apply();} else { J("#top_up .te_close_link").fadeOut(duration, onReady);} }, animateHide : function(callback) { var t = this;var afterHide = function() { if (callback) { callback.apply(this, [J("#top_up .te_content"), data]);} if (t.options.onclose) { t.options.onclose.apply(this, [J("#top_up .te_content"), data]);} t.clearContent();t.moveContent("temp_up");};switch(t.options.effect) { case "appear": case "fade": J("#top_up").fadeOut(t.fadeDuration(300), afterHide);break;case "switch": case "clip": J("#top_up").hide("clip", {direction: "vertical"}, 400, afterHide);break;case "transform": var origin = J(t.options.topUp);if (origin.children().length > 0) { origin = J(origin.children()[0]);} var tuContent = J("#top_up").find(".te_content");var dimensions = t.options.topUp ? J.extend({width: origin.outerWidth(), height: origin.outerHeight()}, origin.offset()) : {top: parseInt(J(window).height() / 2, 10) + J(window).scrollTop(), left: parseInt(J(window).width() / 2, 10) + J(window).scrollLeft(), width: 10, height: 10};t.transform("to", dimensions, afterHide);break;default: J("#top_up").hide();t.afterHide();} J("#tu_overlay").hide();}, version: "2.1.3", jquery: null, host: scriptParams.host || scriptHost, images_path: scriptParams.images_path || "images/top_up/", players_path: scriptParams.players_path || "players/", by_init: function() { var t = this;J(document).ready(function() { t.jquery = J().jquery;t.fast_mode = parseInt(scriptParams.fast_mode, 10) == 1;t.default_preset.resizable = 0;t.extendjQuery();t.injectCode();t.bind();J("#top_up").draggableZ({only: ".te_title,.te_top *,.te_bottom *"});J.each(t.on_ready, function(i, func) { func.apply();});});J(window).unload(function() { J("*").unbind();});}, defaultPreset: function(set) { var t = this;t.default_preset = J.extend(t.default_preset, set);}, addPresets: function(sets) { var t = this;t.presets = J.extend(t.presets, sets);}, ready: function(func) { var t = this;t.on_ready.push(func);}, enableFastMode: function() { var t = this;var args = arguments;if (!J.isReady) { t.ready(function() { t.enableFastMode.apply(null, args);});return false;} if (arguments.length) { var arg = arguments[0];var func = J.isFunction(arg) ? arg : function() { return arg;};t.fast_mode = func.apply();} else { t.fast_mode = true;} t.fast_mode = t.fast_mode == true || parseInt(t.fast_mode, 10) == 1;t.rebind();}, rebind: function() { var t = this;if (t.selector) { J(t.selector).die("click", t.topUpClick.$bind(t) );} t.bind();}, displayTopUp: function(element, opts) { var t = this;if (!J.isReady) { t.ready(function() { t.displayTopUp(element, opts);});return false;} var topUp = J(element).bubbleDetect(t.selector);var toptions = t.deriveTopUpOptions(topUp, J.extend(opts || {}, {trigger: "#" + J(element).id()}));t.display(topUp.element.attr("href"), toptions);}, display: function(reference, opts) { var t = this;if (!J.isReady) { t.ready(function() { t.display(reference, opts);});return false;} if (t.displaying) { return false;} try { t.displaying = true;t.data = {};t.deriveOptions(reference, opts, true);t.showLoader();var continueDisplaying = function() { try { t.deriveGroup();t.prepare();t.loadContent();} catch(e) { t.displaying = false;t.hideLoader();alert("Sorry, but the following error occured:\n\n" + e);} };continueDisplaying();} catch(e) { t.displaying = false;t.hideLoader();alert("Sorry, but the following error occured:\n\n" + e);} }, update: function(func) { if (J("#top_up").is(":hidden")) { return;} t.replace(func || function() {});}, restore: function(storeCurrent, callback) { var t = this;t.options.storeCurrent = storeCurrent ? 1 : 0;t.options.ondisplay = callback;t.update(function() { t.clearContent();var stored_content = this.children(":not(.te_stored_content):first-child").prev();if (!stored_content.length) { stored_content = this.children(".te_stored_content:last-child");} stored_content.children().insertBefore(stored_content).end().end().remove();});}, previous: function() { var t = this;t.navigateInGroup(-1);}, next: function() { var t = this;t.navigateInGroup(1);}, overlayClose: function() { var t = this;if (parseInt(t.options.overlayClose, 10) == 1) { t.close();} }, close: function(callback) { var t = this;if (J("#top_up").is(":visible")) { t.hide(callback);} } });J(function() { }); $Window = new $Class({ include: [$Implement, $Events, $Options, Jbox], opt : {dialog_type:false, inline:1, resizable:1, Runmax:0, url:null, content:'', title:'', Taskbar:0, Task:1, Tbar:-2, Append:'body', Blocker:0, inBox: 'offsetParent', theme:'jwin', modal:0, type:'mceWrapper', x:-1, y:-1, width:620, height:640, winType:'iframe', root:this, find:0, Pages:0, RCreateHtml:true, Scroll:1, zIndex:299999, Ratio:0, jmin:0, jmax:1, jclos:1, movable:1, jprint:0, jpos :0, userSelect:'none', Size:0, plas:0, chr:20, Position :'Fixon' }, Actions : function(){ var t = this;t.mouseDownActions ={};t.clickActions = {Min:t.minimize, Max:t.maximize, Med:t.medimize, Close:t.close, mceOk:t.close, Fixof:t.Fixof,Fixon:t.Fixon,Print:t.print,Plas:t.Plas } }, $empty: function() {return false }, init : function(arg) { var t = this, count = JWindow.count++;t.count = count;id = 'win_'+count;t.id = id;t.Id = Id = '#'+id;t.wTask = JWindow.Task;t.mid ='#min-'+id;t.swf='pswf'+id;t.eid = 'swf'+id;t.Tmtitle = 'Jwin '+count;t.Body = J('body');t.$options(arg);t.$opt_this(t.opt,['width','height']);t.title = t.title ? t.title : 'Jwin '+count;if(t.wTask)t.Tbar = -30;t.features = t.arg = t.opt;t.chrCont(t.chr);t.Actions();t.$fireEvent('onInit',t);return t;}, chrCont : function(max){ var t = this;String.prototype.count = function(char){ return this.split(char).length-1;};var char = /\s+/;whitespace = "[\\x20\\t\\r\\n\\f]";re = new RegExp( whitespace + "+", "g" );var str = t.title;var Str = str.replace(re, ' ');var cont = Str.length + Str.split(char).length-1;t.title = t.TB_title = Str;if (cont > max){t.TB_title = t.title.substring(0, max-3)+'...';} t.titlCont = cont;}, addEventListener : function (el, event, func) { if (el == document && event == 'ready') {hs.push(hs.onReady, func);} try {el.addEventListener(event, func, false);} catch (e) { try {el.detachEvent('on'+ event, func);el.attachEvent('on'+ event, func);} catch (e) {el['on'+ event] = func;} } }, removeEventListener : function (el, event, func) { try {el.removeEventListener(event, func, false);} catch (e) { try {el.detachEvent('on'+ event, func);} catch (e) {el['on'+ event] = null;} } }, focus : function(e) { if(e=='jwin jwinFocus')return this;var t = this, Id = t.Id;t.isWindow();if (!t.focused) { if (t.shim)t.shim.css('z-index', JWindow.zIndex);t.Jwrapper.addClass('mceFocus');t.JId.css('z-index', t.zIndex = JWindow.zIndex++).addClass(t.theme+'Focus');t.Jwrapper.removeClass('mceBlur');if(e=="a-min" || e=="remove" ){ var Telm = J( t.mid ).find('table');var hasel = Telm.hasClass('active-win');if(!hasel){J('.x-btn-wrap').each(function(item,el){ J(el).removeClass('active-win');});Telm.addClass('active-win');} if(e=="a-min")t.ackapa(t.className);} if(e != 'x-btn-over')t.ackapa();if(e == 'min'){ t.ackapa(t.className);} J(JWindow.windows).each(function(){ if (this !== t)this.blur();});t.focused = 1;} t.focusKey = this.key;return this;}, blur : function() { var t = this, Id = t.Id;if (t.focused) { t.Jwrapper.removeClass('mceFocus');t.JId.removeClass(t.theme+'Focus');t.Jwrapper.addClass('mceBlur');t.focused = 0;try { jwplayer(t.swf).play('PLAYING');} catch(e) {} } return t;}, show : function() { var t = this, Id = t.Id, bw, bh;t.JId.removeClass('wRaw').addClass(t.theme);bw = J(Id+'_middle div.mceLeft').outerWidth();bw += J(Id+'_middle div.mceRight').outerWidth();bh = J(Id+'_top').outerHeight();bh += J(Id+'_bottom').outerHeight();t.borders = {w : bw, h : bh - 1};if (t.shim)t.shim.show();return t;}, hide : function() { var t = this;J(t.root).show();if (t.shim)t.shim.hide();t.JId.addClass('wRaw').removeClass(t.theme);return t;}, setTaskbar: function(e) { var t = this;J('.x-btn-wrap').each(function(item,el){ J(el).removeClass('active-win');});$tbutton = '
  •   
  • ';Ulelement = J('#ext-gen27').append($tbutton);Lelement = J('#ext-gen27').find('li#min-'+e);t.Btitle = J('#btitle_'+e);var ThisMin = Lelement;t.ThisMin = ThisMin;var Allmin = J('#ext-gen27').find('table');var Telm = J( t.mid ).find('table');ThisMin.bind('mouseover', function(e){ ThisMin.addClass('x-btn-over');});ThisMin.bind('mouseout', function(e){ ThisMin.removeClass('x-btn-over');});ThisMin.bind('click', function(e){ var hasel = J(this).find('table').hasClass('active-win');t.ackapa('active-win');if(hasel)JWindow.min(t);if(hasel)t.focused = 1;if(!hasel)t.focused = 0;t.$fireEvent('onTaskclick',t);});}, setMinimize: function(e) { var t = this;_Add = J('.ximg-container');_Add = J('.YPfix');Ulelement = J('#ext-gen27').append($tbutton);Lelement = J('#ext-gen27').find('li#min-'+e);_Add.before( Lelement = J( '
    ' ) );var ThisMin = Lelement;var Allmin = J('#ext-gen27').find('table');var Telm = J( t.mid ).find('table');ThisMin.bind('mouseover', function(e){ ThisMin.addClass('x-btn-over');});ThisMin.bind('mouseout', function(e){ThisMin.removeClass('x-btn-over');});ThisMin.bind('click', function(e){ t.min = 1;var hasel = J(this).hasClass('active-win');t.ackapa('active-win');if(hasel)JWindow.min(t);if(hasel)t.focused = 1;if(!hasel)t.focused = 0;});t.framefix.bind('click', function(e){ var hasel = J(this).hasClass('active-win');t.ackapa('active-win');if(hasel) JWindow.min(t);if(hasel)t.focused = 1;if(!hasel)t.focused = 0;});}, ackapa : function(className){ var t = this;t.className = 'active-win';var hasel = J(t.mid).find('table').hasClass(className);var elm = J(t.mid).find('table');var hasel2 = J(t.mid).hasClass(className);var elm2 = J(t.mid);if( hasel || hasel2 ){ elm.removeClass(className);elm2.removeClass(className);t.Thide();} else{ J('.x-btn-wrap').each(function(i,el){ J(el).removeClass('active-win');});J( t.mid ).find('table').addClass('active-win');t.min = 0;t.Tshow();} }, Tshow : function() { var t = this;if(t.minimized)t.show();t.minimized = false;t.SwfPlay();return t;}, Thide : function() { var t = this;t.minimized = true;t.hide();t.SwfPlay('PLAYING');return t;}, setTitle : function(ti) { var t = this;t.title = ti;t.chrCont(t.chr);J(t.Id+'_title').html(t.title);t.Btitle.html(t.TB_title);return this;}, setStatus : function(st) { var t = this;J(t.Id+'_status').html(st);return t;}, setContent : function(h) { var t = this;t.Jbody.html(h);return t;}, Scrollbar : function(e) { var t = this;J.JONLOG = 1;if(t.Scroller & t.Scroll){ return;} if(e && !t.$JScrooll){ t.$JScrooll = 1;switch (t.Pages) { case 0: t.PageY = 0;t.PageX = 0;break;case 1: t.PageY = 1;t.PageX = 0;break;case 2: t.PageY = 1;t.PageX = 1;break;} t.ScrollY = new JScrooll(t.Jbody,{ sizefix:20, resize:false, xsizethumb: 51, xaxis: 'x', Pages:t.PageY, onEnd: e.onEnd });t.ScrollX = new JScrooll(t.Jbody,{ sizefix:20, scrollfix:0, resize:false, xsizethumb: 51, axis: 'x',Pages:t.PageX });} if(t.$JScrooll){ t.ScrollY.update(t.ScrollY.iScroll);t.ScrollX.update(t.ScrollX.iScroll);} return t;}, refresh : function(arg) { var t = this;log(t.find);switch (t.winType) { case 'Player': t.Player(f.url);t.PlayerOpn = 1;break;case 'iframe': t.setURL(f.url);break;case 'Swf': t.Swf(t.opt);break;case 'ajax': t.Ajax(t.opt);break;case 'html': t.Html(t.opt);break;case 'popup': t.Popup(t.opt);break;case 'Inc': t.Inc(t.opt);break;case 'media': t.media(t.opt);break;case 'log': t.Jbody.html('');t.log(t.opt);break;} }, CreateHtml : function(cl, bcl) { if(!cl)cl='Htmlview';if(!bcl)bcl='viewport';var t = this;var con=false;t.J404 ='
    404 - Bileşen bulunamadı
    ';t.Scroller = 1;t.IdName = t.IdName ? t.IdName : 'Ajax'+t.id;t.Jhtml = t.Jbody.$createElm('div',{'id':t.IdName, 'class':'nano-content'}).addClass(cl).data('data-win',t);if(!t.done)t.Jbody.append(t.J404);t.Jhtml.html(t.con);t.Jbody.addClass('nano').addClass(bcl);if(t.Scroll)t.Jbody.nanoScroller({ preventPageScrolling: true, destroy:false, alwaysVisible:true });t.OnCreate = 1;}, log : function(arg) { var t = this;t.con ='';if(t.root == 'log-js'){ } t.getlog = J('getlog');t.loghtml = t.getlog.html();t.getlog.remove();J.logBody = t.Jbody.$createElm('getlog',{'id':'log-body', 'class':'log-body', style:'display:block!important;'}).append(t.loghtml).data('run',true);J(t.find).each( function(i,v){ t.con +=v.innerHTML;J(this).remove();t.done=1;});t.CreateHtml('');t.Jprogress.hide();return t;}, Html : function(arg) { var t = this;var jcont;t.con ='';t.find ? cons = t.find : '.Jwin-content';J(t.find).each( function(i,v){ t.con +=v.innerHTML;J(this).remove();t.done=1;});t.CreateHtml('');t.Jprogress.hide();return t;}, data:{}, Html5 : function(arg) { var t = this;var jcont;t.con ='';t.find ? cons = t.find : '.Jwin-content';t.done = 1;$css = 'direction: ltr; text-align: left; left: 20px; top: 20px; width:100%; height:98%;';t.con = t.Jbody.$createElm('textarea',{'id':t.body.name, 'class':'nano-content', hidefocus:"1", spellcheck:"false" }).addClass('mce-textbox').attr('style',$css).data('data-win',t).data('code',t);t.data.code= t.con.val();t.CreateHtml('');t.Jprogress.hide();return t;}, Ajax : function(arg) { var t = this;Url = t.AjaxUrl || t.url;if(t.Scroll)t.Scrollbar('add');var dt = Url.split("?"), Url = dt[0];var $dpos = 'jajax=1&rndval='+new Date().getTime();var $data = dt[1] ? dt[1]+'&'+$dpos : $dpos;$data = t.Post ? $data+'&'+t.Post : $data;jQuery.ajaxSetup({ url: Url, data: $data, async:false, cache:false, type: "POST" });var request = jQuery.ajax({ success: function(html){ t.Jprogress.hide();Go_Translate(t.Jbody);}, complete: function( res, status ) { t.con = res.responseText;t.done =1;t.CreateHtml('win-Ajax');} });request.fail(function(jqXHR, textStatus) { t.ELcontent.append(t.J404);});return t;}, setURL : function(u) { var t = this, id = t.id, Id = t.Id, b = t.borders;t.Scrollbar = t.$empty;t.Body = J('body');t.Jbody.addClass('viewport');if (!t.$ifr){ var $ifr;t.$ifr = t.Jbody.$createElm('iframe',{id :id+'_ifr', name:id+'_ifr', onload:"J.isWin.Jprogress.hide(); J.isWin.$fireEvent('onLoad');", tabindex:'-1', src:u, frameBorder:0, scrolling:t.scrolling }).css({width :t.width - b.w, height :t.height - b.h});} else t.$ifr.attr('src', u);t.ifr = t.$ifr;t.ELcontent = J(t.Id+'_content, '+t.Id+'_ifr');t.$ifr.load(function(){ J(t.$ifr).contents().find( "nav" ).hide();J(t.$ifr).contents().find( "footer" ).hide();console.log(2);});return t;}, Inc : function(arg) { var t = this;t.done =1;if(t.RCreateHtml)t.CreateHtml();t.Jbody.addClass('viewport');Url = t.AjaxUrl || t.url;t.Jhtml.inc(Url);t.Jprogress.hide();return t;}, Popup : function(arg){ newwindow=window.open(arg.url,'name','height=600,width=750');if (window.focus) {newwindow.focus();} return false;}, Swf: function(o) { var t = this;this.swfOptions = o.swfOptions;var oWidth = o.oWidth ? o.oWidth : o.width;var oHeight = o.oHeight ? o.oHeight : o.height;var oType = o.swfType;o.width = o.width;o.height=o.height;t.setContent('
    ');this.SWF = new $Swf({attr:{eid:t.eid,width:'100%',height:'100%', xtype:oType, movie:o.src, xname:t.eid}, fv:this.swfOptions});t.Jprogress.hide();return t;}, SwfPlay : function(s) { var t = this;try { if(jwplayer(t.swf) && s )return jwplayer(t.swf).play(s);if(jwplayer(t.swf).getState())jwplayer(t.swf).play(s);} catch(e) {} }, Player : function(u) { var t = this, id = t.id, Id = t.Id, b = t.borders;window.$this = this;t.Scrollbar = t.$empty;t.Jbody.addClass('viewport');t.Pid = id+'_ifr';if (!t.$ifr){ t.$ifr = t.Jbody.$createElm('div',{id :t.Pid, name:t.Pid,class:'FramePlayer', onload:'$this.load($this,this)'});if(!J.xJYoutube){ t.Jbody.append(t.$ifr = J.createElm('div',{id :t.Pid, name:t.Pid,class:'FramePlayer', onload:'$this.load($this,this)'}) );J.$ifr = t.$ifr;} else { t.$ifr = J.iframe;t.Jbody.append( t.$ifr = J.playingTemp );} t.load = function(e,e2){ t.framefix.bind("click",function(e){ J(e2).trigger('click');t.iframe = J.iframe = J(e2);J.playingTemp = t.iframe.clone();});t.Jprogress.hide();};t.$ifr.load(function(){ t.Jprogress.hide();});} else t.$ifr.attr('src', u);t.ifr = t.$ifr;t.ELcontent = J(t.Id+'_content');J( "#play-pause").unbind( "click" );J( "#play-pause").unbind();var W = window;if(!J.xJYoutube) setTimeout(function(){ J.xJYoutube = new JYoutube({Player:t.Pid, width: '100%', height: '100%'});},0);return t;}, event : function($) { var t = this;switch ($) { case 'min': t.min = 1;t.med = 0;t.max = 0;break;case 'med': t.med = 1;t.min = 0;t.max = 0;break;case 'max': t.max = 1;t.med = 0;t.min = 0;break;case 39: break;} }, minimize : function() { var t = this;t.event('min');t.ackapa('active-win');JWindow.min(t);return this;}, medimize : function() { var t = this, r;t.maximized = false;t.event('med');t.Body.removeClass('overflow');try {window.scrollTo(t.spos.x,t.spos.y);} catch(e) { window.scroll(t.spos.x,t.spos.y);} if (r = t.lastRect) { t.ELmax.removeClass('Med').addClass('Max');t.resizeTo(r.w, r.h);t.moveTo(r.x, r.y);t.lastRect = 0;if(t.$img)t.$img.$natural();} return t;}, maximize : function() { var t = this, sp = J.scrollPos();t.maximized = !t.maximized;t.spos = sp;t.event('max');t.Body.addClass('overflow');try {window.scrollTo(sp.x,sp.y);} catch(e) { window.scroll(sp.x,sp.y);} if (!t.lastRect) { t.fixs=0;if(t.JId.css('position')=='fixed'){t.fixTop = t.JId.$css('top');t.y = t.fixTop;t.fixs=sp.y} t.lastRect = {x : t.x, y : t.y, w : t.width, h : t.height};t.ELmax.removeClass('Max').addClass('Med');t.moveTo(sp.x, sp.y-t.fixs);WinW = J(window).$getScroll().w-2;t.resizeTo(WinW , J.winHeight()+t.Tbar, 1);t.updateOnResize();if(t.$img)t.$img.$natural('max');} return t;}, updateOnResize : function(noeffect,bound,container){ var t = this, sp = J.scrollPos();J(window).resize(function(e) { if(!t.lastRect)return;t.moveTo(sp.x, sp.y);t.resizeTo(J.winWidth(), J.winHeight()+t.Tbar, 1);});}, mclose : function(ac) { if(!JWindow.RunCount)return history.go(-1);}, close : function(ac) { var t = this, f;t.isf = 'close';t.Body.removeClass('overflow');if (ac && (f = t.onbeforeclose)) { if (f.call(t) === false)return;} t.MBlocker('close');t.JId.remove();J('#'+t.swf).remove();J('#windowManEventBlocker').remove();t.closeTask();if (t.shim) { t.shim.remove();t.shim = 0;} if (t.onclose)t.onclose(t);J(t.root).show();J(document).unbind( 'keyup' );t.$fireEvent('onClose',t);JWindow.remove(t);}, closeTask : function(ac) { J('#min-'+this.id).remove();}, print : function(e) { var t = this;J(t.Id+'_body').printThis({ debug: false, importCSS: true, printContainer: true, loadCSS: "path/to/my.css" });return t;}, Plas : function(e) { var t = this;if(t.con) t.data.code = t.con.val();t.$fireEvent('onSubmit',t);t.$fireEvent('onClick',t);if(t.plas=='close')t.close();}, moveTo : function(x, y) { var t = this, el = t.JId;if (t.x != x) {el.css({left : x});t.x = x;} if (t.y != y) {el.css({top : y});t.y = y;} if (t.shim)t.shim.css({left : x, top : y});return t;}, moveBy : function(x, y) { var p = this.XY;return this.moveTo(p.x + x, p.y + y);}, resizeTo : function(w, h, nr) { var t = this, b = t.borders, el = t.JId, w = parseInt(w);h = parseInt(h);ifr = t.ELcontent;if (!nr && t.lastRect) { t.ELmax.removeClass('Med').addClass('Max');t.lastRect = 0;} if (t.width != w) { ifr.css({width : w - b.w});el.css({width : w});t.width = w;t.Jbody.css({width : w - (b.w)});J('.Htmlview').css({width : w - (10)});t.width = w;} if (t.height != h) { ifr.css({height : h - b.h});t.Jbody.css({height:h-(b.h) });el.css({height : h});t.ELmiddle.css('height', h );t.height = h;} t.Scrollbar();if (t.shim)t.shim.css({width : w, height : h});return t;}, resizeBy : function(dw, dh) { return this.resizeTo(this.width+parseInt(dw), this.height+parseInt(dh));}, effect: function(act, onComplete){ var t = this;switch( act ){ case 'show': t.JId.css({'opacity':0});t.Ts.TransTo({to:t.JId[0],className:'wdosfx', duration: 200,complete: onComplete });break;case 'hide': t.JId.TransferTo({to:t.Min[0],className:'wdosfx', duration: 300,complete: onComplete });break;} return this;}, getSize : function () { var t = this;var n = J(t.Id);return {w: n.width(), h: n.height()};}, getLT : function() { var p = J(this.Id).position();return { L : p.left, T : p.top };}, getHeight: function(dy, side) { var t = this;var n = J(t.Id);n.width();n.height();minHeight = parseInt(t.min_height || 100);maxHeight = parseInt(t.max_height || 150);return Math.min( Math.max(n.height() + dy * side, minHeight), maxHeight );}, $call : function(call){ try {return eval(call);} catch(e) {} }, Fixof: function() { var t = this;var Tie=0;var Sp = J.scrollPos();SpT = Sp.y;if(J.JIE(8))Tie = 1;Top = t.JId.$css('top') - SpT-Tie;Left = t.JId.$css('left');t.JId.css({position:'fixed', top:Top});J(t.Id+'_fixed').removeClass('Fixof').addClass('Fixon');}, Fixon: function() { var t = this;var Tie=0;var Sp = J.scrollPos();SpT = Sp.y;if(J.JIE(8))Tie = 1;Top = t.JId.$css('top');Left = t.JId.$css('left');t.JId.css({position:'absolute', top:Top+SpT+Tie});t.y = Top+SpT;J(t.Id+'_fixed').removeClass('Fixon').addClass('Fixof');}, startMove : function(a, e) { var t = this, bid = t.theme+'_move', mb, sx = e.screenX, sy = e.screenY, dx, dy, wx, wy;J(t.Append).append(J.createElm('div',{id:bid, 'class':t.theme+'_event_blocker'}).css('z-index', JWindow.zIndex));mb = J('#'+bid).css({width : J.winWidth(), height : J.winHeight(), position :'fixed'});wx = t.x;wy = t.y;mb.mousemove(function(e) { dx = e.screenX - sx;dy = e.screenY - sy;t.moveTo(wx+dx, wy+dy);});mb.mouseup(function(e) { mb.remove();});}, startDrag : function(a, e) { var t = this, bid = t.theme+'_move';J(t.Append).append(J.createElm('div',{id:bid, 'class':t.theme+'_event_blocker'}).css('z-index', JWindow.zIndex));mb = J('#'+bid).css({width : J.winWidth(), height:J.winHeight(), position :'fixed'});J(document).mouseup(function(e) { t.Body.focus();mb.remove();e.preventDefault();});}, MBlocker : function(p) { var t = this;f = t.features;if (!t.modal)return t;t.Blocker = J('#windowManEventBlocker');if (!t.Blocker[0]) { J(t.Append).append( J.createElm('div',{id :'windowManEventBlocker', 'class' :''+t.theme+''}).addClass(t.theme+'_visible_event_blocker') );t.Blocker = J('#windowManEventBlocker');} t.Blocker.show().css('z-index', JWindow.zIndex++).css({width : J.winWidth(), height : J.winHeight(), position :'fixed'});J(JWindow.windows).each(function(i, cw) { if( !cw.modal && !(this==t) && (JWindow.windows.length == 1) )t.BlockerRemove=1;});switch (p) { case 'close': if(t.BlockerRemove)t.Blocker.remove();break;case 'show': break;case 'hide': break;} }, keyHandler : function(e) { var t = this;if (typeof e.target.form != 'undefined') return true;var exp = this;var op = null;switch (e.keyCode) { case 70: if (exp) exp.doFullExpand();return true;case 32: case 34: case 39: t.mediaNext();break;case 40: op = 1;break;case 8: case 33: case 37: t.mediaPrevious();break;case 38: op = -1;break;case 27: console.log('esc');break;case 13: this.close(22);J(document).unbind( 'keyup' );op = 0;} if (op !== null) { if (e.preventDefault) e.preventDefault();else e.returnValue = false;if (exp) { if (op == 0) { exp.close(22);} else { } return false;} } return true;}, mediaPrevious: function() { var t = this;if(t.isPanel)return t;if (t.Index > 0) { t.Index--;t.thumbs.eq(t.Index).data('click',1).click();t.$img.hide() .attr('src',t.Image);} else {t.Index = (t.thumbs.length)-2;t.mediaNext();return t;} t.setStatus('Index: '+(t.Index) + ' Image: ' + (t.Image) + ' - '+ (t.thumbs.length) );}, mediaNext : function() { var t = this;if(t.isPanel)return t;if (t.Index < t.thumbs.length-1) { t.Index++;t.thumbs.eq(t.Index).data('click',1).click();t.$img.hide() .attr('src',t.Image);} else {t.Index = (1);t.mediaPrevious();return t;} t.setStatus('Index: '+(t.Index) + ' Image: ' + (t.Image) + ' - '+ (t.thumbs.length) );t.setTitle(t.title);t.setStatus(t.description);}, media : function() { var t = this;t.Ratio = 1;t.prev = J('.imLeft');t.next = J('.imRight');t.$b = 0;if(!t.is){ $m = new $Jwp({xfind:'#Jwp', root:t.root, find:t.find, modal:1, open:t, chrome:1});t.$b = 1;} t.next.click(function() { t.is.$next(t.$b);return false;});t.prev.click(function() { t.is.$prev(t.$b);return false;});JWindow.close();t.Index = t.Index ? t.Index : 0;t.Jbody.addClass('media');J(document).bind("keyup", t.is.keyHandler.$bind(t.is) );navbar = J('.ipanel');win = J(window);imedia = J('.jmedia');iPanel = t.iPanel = J(t.Id+'_ipanel');t.isPanel = (t.thumbs.length == 1);if(t.isPanel)iPanel.remove();imedia.bind('mousemove', function(e) { iPanel.stop(true, true).show().delay(3000).fadeOut('slow');}).mousemove();iPanel.mouseenter(function() { iPanel.stop(true, true).show();}).mousemove(function(e) {e.stopPropagation();});t.$iMax$Med = function(i) {var t =this;t.max_med = i;return J( "."+i ).trigger( "click" );};J( ".ifull" ).click(function() { t.ifull = J( ".Max" )[0] ? t.$iMax$Med('Max') : t.$iMax$Med('Med');jmedia = J('.jmedia');console.log('t.max -----------> '+t.max);if(t.max_med=='Max'){ J( this ).removeClass('imful').addClass('imfulmed');jmedia.removeClass('Move');} if(t.max_med=='Med'){ J( this ).removeClass('imfulmed').addClass('imful');jmedia.addClass('Move');} });var image = '../images/clever/photos/3.jpg';t.Image = t.Image ? t.Image : image;t.$img = t.Jbody.$createElm('img',{id :t.id, src:t.Image, class:'te_content'});t.is.$img=t.$img;$N = t.$img.$natural(5);t.load = 0;t.$img .hide() .load(function(){ t.$img.fadeIn(700);t.$img.$natural(3);console.log( '----- Load ------' );t.load = 1;});}, mobilmode : function() { var t = this, f = t.features;f.Runmax = 1;f.resizable = 0;t.resizable = 0;f.jmin = 0;f.jmax = 0;t.jmin=0;t.jmax=0;J.log(t.theme);t.has = "#"+id;var homePage = id;J.$getStyl( "http://www.w3schools.com/lib/w3.css" , 'mobil'+id );$db4 = '';J("body").append($db4);J.log( J(window).width() );function onDeviceReady(e) { if (J.mobile.activePage.is('#' + homePage)){ e.preventDefault();J.log('activePage',homePage);t.close();} else { J.log(location.hash);history.back();} };if(0){ mob = J.$loadJS("http://code.jquery.com/mobile/1.4.5/jquery.mobile-1.4.5.min.js");setTimeout(function() { J.mobile.initializePage();J.mobile.changePage( t.has );J(window).on("navigate", function (e, data) { var direction = data.state.direction;if (direction == 'back') { J('.ui-loader').remove();J.log(direction);console.log(1);} if (direction == 'forward') { J.log(direction);} });}, 400);};if(0){ J.getScript( "http://code.jquery.com/mobile/1.4.5/jquery.mobile-1.4.5.min.js" ) .done(function( script, textStatus ) { console.log( textStatus );J.mobile.initializePage();J.mobile.changePage( t.has );console.log(t.Id, id);J.log('changePage', t.has);J.log('location.hash',location.hash);J(window).on("navigate", function (e, data) { var direction = data.state.direction;if (direction == 'back') { onDeviceReady(e);J('.ui-loader').remove();J.log(direction);console.log(1);} if (direction == 'forward') { J.log(direction);} });}) .fail(function( jqxhr, settings, exception ) { J( "div.log" ).text( "Triggered ajaxError handler." );});};}, render : function() { var t = this, id = t.id, Id = t.Id, f = t.features, mc = '', bl, v;t.times=0;if(J.isMobile) t.mobilmode();if(t.Size){ var wh = J( window ).$centerpage();$W = wh.width;$H = wh.height;f.width = $W;f.height = $H;} if (t.x == -1)f.x = Math.round((J.winWidth() / 2) - (f.width / 2));if (t.y == -1)f.y = Math.round((J.winHeight() / 2) - (f.height / 2));if(t.modal)t.MBlocker();if(t.wTask){ t.setTaskbar(t.id);f.jmin = t.jmin =1;t.jmax = f.jmax =1;} var opt='';if (f.type){ opt += ' mceModal';opt += ' mce' + f.type.substring(0, 1).toUpperCase() + f.type.substring(1);} if(f.statusbar)opt += ' mceStatusbar';if(f.resizable)opt += ' mceResizable';if(f.movable)opt += ' mceMovable';if(f.chromeless)opt += ' chromeless';if(f.chrome)opt += ' chrome';madal_opt = '';madal_icon = ' '+f.bigicon;jmin = f.jmin;jmax = f.jmax;jclos = f.jclos;if( jmin & jmax & jclos ) { opt += ' mceMinimizable mceMaximizable btn0' } if( !jmin & jmax & jclos ) { opt += ' mceMaximizable btn2' } if( jmin & !jmax & jclos ) { opt += ' mceMinimizable btn2' } if( !jmin & !jmax & jclos ){ opt += ' btn1';} rz = ['ResizeN','ResizeS','ResizeW','ResizeE','ResizeNW','ResizeNE','ResizeSW','ResizeSE'];jWin = ['div',{id:id, role:'dialog', 'data-role':'page', 'aria-labelledby':f.type ? id+'_content' :id+'_title', class:t.theme}, jWrapper = ['div',{id :id+'_wrapper', class:'mceWrapper'+opt}, ['div',{id:id+'_top', class:'mceTop'}, ['div',{class:'mceLeft'}], ['div',{class:'mceCenter'}], ['div',{class:'mceRight'},{html:''}], ['span',{id:id+'_title', class:'mceTitle'}, {text: t.title || '' } ] ], ['div',{id:id+'_middle', class:'mceMiddle'}, ['div',{class:'mceIcon', is:' '}], ['div',{id:id+'_left', class:'mceLeft', tabindex:'0'}], ['span',{id:id+'_content',class:'jwinContent'}, t.winType!='media' ? ['span',{id:id+'_Jprogress', class:'jwinloading windows8'}, ['p',{class:'jspinner'}, ['p',{class:'wBall',id:'wBall_1'}, ['p', {class:'wInnerBall'}] ], ['p',{class:'wBall',id:'wBall_2'}, ['p', {class:'wInnerBall'}] ], ['p',{class:'wBall',id:'wBall_3'}, ['p', {class:'wInnerBall'}] ], ['p',{class:'wBall',id:'wBall_4'}, ['p', {class:'wInnerBall'}] ], ['p',{class:'wBall',id:'wBall_5'}, ['p', {class:'wInnerBall'}] ], ['span',{class:'loadingtitle',text: t.title+' '},['span',{id:id+'_loading'} ] , ['span',{text:' yükleniyor!...'}] ], ] ] : '', t.winType=='media' ? ( ['span',{id:id+'_Jloading', class:'jmedia_loading'}, ['p',{class:'spinner'}] ], ['span',{id:id+'_Jpanel', class:'Move jmedia'}, ['span',{id:id+'_ipanel',class:'ipanel'}, ['div',{class:'imLeft Jibtn'}], ['div',{class:'imful ifull Jibtn'}], ['div',{class:'imRight Jibtn'}] ] ] ) : '', t.winType=='iframe' || t.winType=='Player' || t.winType=='media' ? [ 'span',{id:id+'_framefix', class:'framefix'} , t.winType=='Player' ? ['span',{id:id+'html5-bezel', class:'html5-bezel html5-center-overlay', style:"display:none" }, ['div',{id:id+'Jplayer', class:'bezel-PP'}] ] : '' ] : '', ['div',{id:id+'_body',class:'Jbody',tabindex:'0'}, ] ], ['div',{id :id+'_right', class:'mceRight', tabindex: '0'}] ], ['div',{id :id+'_bottom', class:'mceBottom'}, ['div',{'class' : 'mceLeft'}], ['div',{class:'mceCenter'}], ['div',{class: 'mceRight'}], f.statusbar ? ['span',{id:id +'_status', class:'status'}, f.Content+' '] : '' ], ['div',{id:id+'_Move', class:'action Move', tabindex:'-1', is:' '}], t.jpos ? ['div',{id:id +'_fixed', class:'action Jbtn '+t.Position, tabindex:'-1', onmousedown:'return false;'}] : '', t.jprint ? ['div',{class:'action Jbtn Print', tabindex:'-1', onmousedown:'return false;', is:' '}] : '', t.plas ? ['div',{class:'action Jbtn Plas', tabindex:'-1', onmousedown:'return false;', is:' '}] : '', t.jmin ? ['div',{id:id+'_min', class:'action Min Jbtn', tabindex:'-1', onmousedown:'return false;', is:" "}] : '', t.jmax ? ['div',{id:id+'_max', class:'action Max Jbtn', tabindex:'-1', onmousedown:'return false;', is:' '}] : '', ['div',{class:'action Jbtn Close', tabindex:'-1', onmousedown:'return false;', is:' '}] ] ];if(f.resizable)J.each(rz, function(i,v){ jWrapper.push(['div', {id:id +'_'+v, 'class':'action mceResize '+v, tabindex:'-1'}]);});App = J( 'body' ).createAll( jWin );t.WIN = App;if(J.isMobile) App.addClass('mobile');t.Jbody = J(t.Id+'_body');t.Jbody.data({'data-win':t});t.Ts = J(t.root);t.el = J(Id);t.Jwrapper = J(Id+'_wrapper');t.JId = J(Id);t.ELcontent = J(t.Id+'_content, '+t.Id+'_ifr');t.Jprogress = J(Id+'_Jprogress');t.$title = J(Id+'_title');t.loading = J(Id+'_loading');t.ELmax = J(t.Id+'_max');t.ELmiddle = J(t.Id+'_middle');t.ELviewport = J('.viewport');if(t.jprint)t.$print = new JPrint(t.Id+'_body',{xfn:'div.Print' });t.framefix = J(Id+'_framefix');t.framefix.css('background','none !important');if(t.Minimize)t.setMinimize(t.id);t.isWindow();t.Jwrapper.css({'-user-select': t.userSelect });t.Sp = J.scrollPos();f.x = f.x + t.Sp.x;f.y = f.y + t.Sp.y;if(t.Left&&t.Top){ f.x = t.Left;f.y = t.Top;} J(function(){ });if(f.Runmax)t.show().resizeTo(f.width, f.height).moveTo(f.x, f.y).maximize();else t.show().resizeTo(f.width, f.height).moveTo(f.x, f.y);if(t.Position=='Fixon' & t.jpos)t.Fixof();if (v = t.content)t.setContent(v);switch (t.winType) { case 'Player': t.Player(f.url);t.PlayerOpn = 1;break;case 'iframe': t.setURL(f.url);break;case 'Swf': t.Swf(t.opt);break;case 'ajax': t.Ajax(t.opt);break;case 'html': t.Html(t.opt);break;case 'popup': t.Popup(t.opt);break;case 'Inc': t.Inc(t.opt);break;case 'media': t.media(t.opt);break;case 'log': t.log(t.opt);break;case 'textbox': t.Html5(t.opt);break;} t.framefix.css('display','none');if(f.resizable){ new $JDR({ El:J(t.Id), Wrapper:J(t.Id), anchor:J(t.Id)[0], boundingBox: 'offsetParent', maxW:t.maxW, maxH:t.maxH, media:t.$img, Ratio:t.Ratio, dragstart: function(e) { t.framefix.css('display','block');}, drag: function(e) { var $or = e.originalEvent;t.moveTo($or.LT.L, $or.LT.T);t.resizeTo($or.WH.W, $or.WH.H);if($or.act)t.WIN.addClass('jwindrag_act');log($or.action);}, dragend: function(e) { t.framefix.css('display','none');t.WIN.removeClass("jwindrag_act");} });} if(t.PlayerOpn){ t.POSMIN = function() { t.JPROG = J('#player-panel');t.POS = t.JPROG.getXY();var L = Math.ceil(t.POS.L)+202;J(t.Id+'_sytle').remove();};J(window).resize(function(e) { t.POSMIN();});t.Jplayer = J(t.Id+'Jplayer');var puffOut;showOrHide =true;if(0){ t.framefix.click(function(e) { J(t.Id+'_ifr').click();J(t.Id+'_ifr').trigger('click');if ( showOrHide === true ) { showOrHide=false;puffOut = setTimeout(function() { clearTimeout(puffOut);t.Jplayer.removeClass("puffOut").hide() }, 500);t.Jplayer.removeClass("P-Pause").addClass("P-Play puffOut").show();} else if ( showOrHide === false ) { showOrHide=true;puffOut = setTimeout(function() { clearTimeout(puffOut);t.Jplayer.removeClass("puffOut").hide() }, 500);t.Jplayer.removeClass('P-Play').addClass("P-Pause puffOut").show();} });} var puffOut;t.html5bezel = J(t.Id+'html5-bezel');PlayerButton = J('#play-pause');t.framefix.click(function(e) { Xplayer = J(t.Id+'_ifr').contents().find("div");t.html5bezel.show();showOrHide = PlayerButton.attr('name');if(showOrHide =='Play'){ PlayerButton.click();t.Jplayer.removeClass("html5-bezel-pause").addClass("html5-bezel-play").show();t.html5bezel.addClass("html5-bezel-fade");puffOut = setTimeout(function() { clearTimeout(puffOut);t.html5bezel.removeClass("html5-bezel-fade").hide() }, 400);} else if(showOrHide =='Pause'){ PlayerButton.click();t.Jplayer.removeClass('html5-bezel-play').addClass("html5-bezel-pause").show();t.html5bezel.addClass("html5-bezel-fade");puffOut = setTimeout(function() { clearTimeout(puffOut);t.html5bezel.removeClass("html5-bezel-fade").hide() }, 400);} });};function handleAction(e) { var el = J(e.target), action, f;t.focus(e.currentTarget.className);if ( el.hasClass('action')) { action = J.grep(el[0].className.split(/\s+/), function(v) {return !/^action|Jbtn|mceButton|mceResize$/.test(v);}).join(' ');if (e.type == 'mousedown')f = t.mouseDownActions[action];else { if (t.features.onaction){ t.features.onaction.call(t, action);return false;} f = t.clickActions[action];} if (f) { f.call(t, action, e);return false;} return this;} };J(t.mid).click(handleAction).mousedown(handleAction);J(Id).click(handleAction).mousedown(handleAction);J(JWindow).trigger('JWindow:open', [t]);t.$fireEvent('onComplete',t);return t;}, isWindow : function(){JWindow.w = this;return J['isWin'] = this;} }); var JWindowMeneger = new $Class({ include: [$Implement, $Events, $Options], count :0, windows : [], Lng :{yes:'Evet', no:'Hayır', ok:'Tamam'}, Task:0, zIndex :4000000, $log:{Ready:0,Run:0}, extend: { setup: function(name) { return new this(name);} }, init : function(arg) { if(arg){alert(6);return this.open(arg);} var w = window, lw, nwm, op, b;while ((w = w.parent || w.opener) && w != lw) { if (w.J && this)nwm = this;lw = w;} if (nwm && nwm != this) { alert(9);$CurrentWindowManager = JWindowMeneger;b = document.location.pathname.replace(/[^\/]+$/, '');op = nwm.open;JWindow = J.extend({}, nwm, { open : function(f, a) { if (!/^https?\:|\//.test(f.url))f.url = b+f.url;return op.call(new nwm, f, a);} });nwm.find(window).setTitle(document.title);} else { J(window).bind('resize', function(){ J(this.windows).each(function(i, w){ if(w.lastRect)w.resizeTo(J.winWidth(), J.winHeight(), 1);});});} this.currentWindow = this.find(window);}, find : function(tw) { var i, ifr, w;for(i = 0;i < this.windows.length;i++){ w = this.windows[i];ifr = J(w.Id+'_ifr')[0];if (ifr && ifr.contentWindow == tw)return w;} return this.defaultWin;}, push : function(w) { var t = this;t.windows.push(w);t.RunCount = t.windows.length;}, isRun : function(f) { var t = this;for(var i = 0;i < t.windows.length;i++) { if( t.windows[i].root == f.root){ t.w = t.windows[i];if(t.windows[i].Taskbar){t.windows[i].ThisMin.trigger( "click" );} return t.windows[i].focus();} } return false;}, log : function(f) { var t = this;J(function(){ if(t.$log.Ready)return t.w;t.$log.Ready=1;J.islog = t.w = new $Window(f).render().focus();t.push(t.w);if(!t.isRun(f))t.$log.Ready=0;});return t.w;}, CreateHtml : function(cl='Htmlview',bcl='viewport') { var t = this;var con=false;t.J404 ='
    404 - Bileşen bulunamadı
    ';t.IdName = t.IdName ? t.IdName : 'Ajax'+t.id;t.Jhtml = t.Jbody.$createElm('div',{'id':t.IdName, 'class':'nano-content'}).addClass(cl).data('data-win',t);if(!t.done)t.Jbody.append(t.J404);t.Jhtml.html(t.con);t.Jbody.addClass('nano').addClass(bcl);t.OnCreate = 1;}, Ajax : function(arg) { var t = this;var $t = J['isWin'];$t.Jprogress.show();t.$options(arg);t.$opt_this(t.opt,['width','height']);Url = t.AjaxUrl || t.url;t.Scroll = 0;t.Scroller = 1;t.Jbody = J(t.Jbody);var dt = Url.split("?"), Url = dt[0];var $dpos = 'jajax=1&rndval='+new Date().getTime();var $data = dt[1] ? dt[1]+'&'+$dpos : $dpos;$data = t.Post ? $data+'&'+t.Post : $data;jQuery.ajaxSetup({ url: Url, data: $data, async:false, cache:false, type: "POST" });var request = jQuery.ajax({ success: function(html){ $t.Jprogress.hide();}, complete: function( res, status ) { t.con = res.responseText;t.done =1;t.Jbody.html(t.con);$t.Jbody.nanoScroller({ preventPageScrolling: true });} });request.fail(function(jqXHR, textStatus) { t.ELcontent.append(t.J404);});return t;}, open : function(f) { var t = this;if(t.isRun(f)){ t.w.isRun = 1;return t.w;} t.w = new $Window(f).render().focus();t.push(t.w);if(!t.eventPos)t.mobil(f);return t.w;}, openT : function(f) { var t = this;if(t.isRun(f))return;window.setTimeout(function() { t.w = new $Window(f).render().focus();t.push(t.w);if(f.statusbar)t.w.setStatus(f.statusbar);}, 0);return t.w;}, iframe: function(o) { }, Swf: function(o) { var t = this;t.fw = this.open(o).Swf(o);}, warn : function(msg, cb) { return this.modalBox(msg, {bigicon : 'warning'}, cb);}, error : function(arg, cb) { return this.modalBox(this.$marge(arg,{bigicon:'error'}), cb);}, alert : function(arg, cb, s ) { var t = this;if(this.isRun(arg))return this;A_opt = {title :"Alert", msg:'', modal:0, inline : 1, content :'ww', width : 400, height : 130, type:'alert', Runmax:false, bigicon:'alert', onaction:function(a) { if (a == 'mceOk'){ this.close();if (cb)cb.call(this, s || 1);} else if (a == 'Close')this.close();} };arg = J.extend(A_opt,arg);return t.open(arg).setContent('
    '+(arg.msg || '') +'
    ' +''+this.Lng.ok+'');}, info : function(msg, cb) { return this.modalBox(msg, {bigicon:'info'}, cb);}, confirm : function(msg, cb) { return this.modalBox( {type:'confirm', bigicon:'ask', onaction:function(a) { var t = this;if (a == 'mceOk') { t.close();if (cb)cb.call(t, 1);} else if (a == 'mceCancel' || a == 'Close') { t.close();if (cb)cb.call(t, 0);} } }, cb).setContent( '
    '+msg+'
    '+''+this.Lng.yes+''+''+this.Lng.no+'');}, modalBox : function(f, cb) { f = J.extend({type : 'alert', bigicon : 'error', msg:'', width : 400, height : 150, jmax:0, Runmax:0, onaction: function(a){ if (a == 'mceOk'){ this.close();if (cb)cb.call(this, 1);} else if (a == 'Close')this.close();} }, f);return this.open(f).setContent('
    '+(f.msg || '') +'
    ' +''+this.Lng.ok+'');}, print : function(f, cb) { f = J.extend({type : 'message', bigicon : 'error', title:'Rapor', width : 400, height : 150, Taskbar:0, okBtn:'', modal:true, xchromeless:1, Time:0, Timeout:3500, jmax:0, Runmax:0, onaction: function(a){ if (a == 'mceOk'){ this.close();if (cb)cb.call(this, 1);} else if (a == 'Close')this.close();} }, f);if(f.okBtn)f.okBtn = ''+this.Lng.ok+'';var m = this.open(f).setContent('
    '+(f.msg || '') +'
    ' + f.okBtn);if(f.Time)window.setTimeout(function() { m.close();}, f.Timeout);return m;}, remove : function(w) { var t = this, fr, z = 0, nl = [];J(t.windows).each(function(i, cw) { if (w == cw){ t.windows.splice(i,1);return;} fr = cw;});if (fr){ if(fr.minimized)return false;fr.focus("remove");} else{ J['isWin'] = t;} t.RunCount = t.windows.length;}, close : function($w) { var t = this;t.$log.Ready = 0;if($w)return J.isWin.close();J(t.windows).each(function(i, cw) { cw.close() });return false;}, refresh : function($w) { return J.isWin.Scrollbar();}, min : function(w) { var t = this, mfr, Z = 0, ml = [];w.minimized=true;J(t.windows).each(function(i, mw) { if(mw.minimized)return mw.focus("min");if (w == mw)return;if (mw.zIndex > Z) { Z = mw.zIndex;mfr = mw;} ml.push(mw);});if (mfr)mfr.focus("a-min");}, Mevent : function(w) { var t = this;t.eventPos = 1;J('.nano-pane').remove();if(window.history && history.pushState){ history.pushState(-1, null);history.pushState(0, null);history.pushState(1, null);history.go(-1);window.addEventListener('popstate', function(event, state){ if(state = event.state){ t.w.close();console.log('close : ', -state, J['isWin'].close, t.RunCount, t.windows.length, J['isWin'].id, t.w.id, JSON.stringify(history), event.state );if(!t.RunCount)return history.go(-1);event = document.createEvent('Event');event.initEvent(state > 0 ? 'next' : 'previous', true, true);this.dispatchEvent(event);history.go(-state);console.log(-state);} }, false);};}, mobil : function(a) { var t = this;if(J.isMobile && !a.platform)t.load(t.Mevent,26);if(a.platform=='all')t.load(t.Mevent,26);} });var JWindow = window.JWindow = new JWindowMeneger;jQuery.JWindow = JWindow;J['JWindow'] = JWindow; (function(factory) { if (typeof define === 'function' && define.amd) { return define(['jquery'], function($) { return factory($, window, document);});} else if (typeof exports === 'object') { return module.exports = factory(require('jquery'), window, document);} else { return factory(jQuery, window, document);} })(function($, window, document) { "use strict";var BROWSER_IS_IE7, BROWSER_SCROLLBAR_WIDTH, DOMSCROLL, DOWN, DRAG, ENTER, KEYDOWN, KEYUP, MOUSEDOWN, MOUSEENTER, MOUSEMOVE, MOUSEUP, MOUSEWHEEL, NanoScroll, PANEDOWN, RESIZE, SCROLL, SCROLLBAR, TOUCHMOVE, UP, WHEEL, cAF, defaults, getBrowserScrollbarWidth, hasTransform, isFFWithBuggyScrollbar, rAF, transform, _elementStyle, _prefixStyle, _vendor;defaults = { paneClass: 'nano-pane', sliderClass: 'nano-slider', contentClass: 'nano-content', enabledClass: 'has-scrollbar', flashedClass: 'flashed', activeClass: 'active', iOSNativeScrolling: false, preventPageScrolling: false, disableResize: false, alwaysVisible: false, flashDelay: 1500, sliderMinHeight: 20, sliderMaxHeight: null, sliderhfix:0, documentContext: null, windowContext: null };SCROLLBAR = 'scrollbar';SCROLL = 'scroll';MOUSEDOWN = 'mousedown';MOUSEENTER = 'mouseenter';MOUSEMOVE = 'mousemove';MOUSEWHEEL = 'mousewheel';MOUSEUP = 'mouseup';RESIZE = 'resize';DRAG = 'drag';ENTER = 'enter';UP = 'up';PANEDOWN = 'panedown';DOMSCROLL = 'DOMMouseScroll';DOWN = 'down';WHEEL = 'wheel';KEYDOWN = 'keydown';KEYUP = 'keyup';TOUCHMOVE = 'touchmove';BROWSER_IS_IE7 = window.navigator.appName === 'Microsoft Internet Explorer' && /msie 7./i.test(window.navigator.appVersion) && window.ActiveXObject;BROWSER_SCROLLBAR_WIDTH = null;rAF = window.requestAnimationFrame;cAF = window.cancelAnimationFrame;_elementStyle = document.createElement('div').style;_vendor = (function() { var i, transform, vendor, vendors, _i, _len;vendors = ['t', 'webkitT', 'MozT', 'msT', 'OT'];for (i = _i = 0, _len = vendors.length;_i < _len;i = ++_i) { vendor = vendors[i];transform = vendors[i] + 'ransform';if (transform in _elementStyle) { return vendors[i].substr(0, vendors[i].length - 1);} } return false;})();_prefixStyle = function(style) { if (_vendor === false) { return false;} if (_vendor === '') { return style;} return _vendor + style.charAt(0).toUpperCase() + style.substr(1);};transform = _prefixStyle('transform');hasTransform = transform !== false;getBrowserScrollbarWidth = function() { var outer, outerStyle, scrollbarWidth;outer = document.createElement('div');outerStyle = outer.style;outerStyle.position = 'absolute';outerStyle.width = '100px';outerStyle.height = '100px';outerStyle.overflow = SCROLL;outerStyle.top = '-9999px';document.body.appendChild(outer);scrollbarWidth = outer.offsetWidth - outer.clientWidth;document.body.removeChild(outer);return scrollbarWidth;};isFFWithBuggyScrollbar = function() { var isOSXFF, ua, version;ua = window.navigator.userAgent;isOSXFF = /(?=.+Mac OS X)(?=.+Firefox)/.test(ua);if (!isOSXFF) { return false;} version = /Firefox\/\d{2}\./.exec(ua);if (version) { version = version[0].replace(/\D+/g, '');} return isOSXFF && +version > 23;};NanoScroll = (function() { function NanoScroll(el, options) { this.el = el;this.options = options;BROWSER_SCROLLBAR_WIDTH || (BROWSER_SCROLLBAR_WIDTH = getBrowserScrollbarWidth());this.$el = $(this.el);this.doc = $(this.options.documentContext || document);this.win = $(this.options.windowContext || window);this.body = this.doc.find('body');this.$content = this.$el.children("." + this.options.contentClass);this.$content.attr('tabindex', this.options.tabIndex || 0);this.content = this.$content[0];this.previousPosition = 0;if (this.options.iOSNativeScrolling && (this.el.style.WebkitOverflowScrolling != null)) { this.nativeScrolling();} else { this.generate();} this.createEvents();this.addEvents();this.reset();} NanoScroll.prototype.preventScrolling = function(e, direction) { if (!this.isActive) { return;} if (e.type === DOMSCROLL) { if (direction === DOWN && e.originalEvent.detail > 0 || direction === UP && e.originalEvent.detail < 0) { e.preventDefault();} } else if (e.type === MOUSEWHEEL) { if (!e.originalEvent || !e.originalEvent.wheelDelta) { return;} if (direction === DOWN && e.originalEvent.wheelDelta < 0 || direction === UP && e.originalEvent.wheelDelta > 0) { e.preventDefault();} } };NanoScroll.prototype.nativeScrolling = function() { this.$content.css({ WebkitOverflowScrolling: 'touch' });this.iOSNativeScrolling = true;this.isActive = true;};NanoScroll.prototype.updateScrollValues = function() { var content, direction;content = this.content;this.maxScrollTop = (content.scrollHeight + this.options.sliderhfix) - ( content.clientHeight );this.prevScrollTop = this.contentScrollTop || 0;this.contentScrollTop = content.scrollTop;direction = this.contentScrollTop > this.previousPosition ? "down" : this.contentScrollTop < this.previousPosition ? "up" : "same";this.previousPosition = this.contentScrollTop;if (direction !== "same") { this.$el.trigger('update', { position: this.contentScrollTop, maximum: this.maxScrollTop, direction: direction });} if (!this.iOSNativeScrolling) { this.maxSliderTop = this.paneHeight - this.sliderHeight;this.sliderTop = this.maxScrollTop === 0 ? 0 : this.contentScrollTop * this.maxSliderTop / this.maxScrollTop;} };NanoScroll.prototype.setOnScrollStyles = function() { var cssValue;if (hasTransform) { cssValue = {};cssValue[transform] = "translate(0, " + (this.sliderTop) + "px)";} else { cssValue = { top: this.sliderTop };} if (rAF) { if (cAF && this.scrollRAF) { cAF(this.scrollRAF);} this.scrollRAF = rAF((function(_this) { return function() { _this.scrollRAF = null;return _this.slider.css(cssValue);};})(this));} else { this.slider.css(cssValue);} };NanoScroll.prototype.createEvents = function() { this.events = { down: (function(_this) { return function(e) { _this.isBeingDragged = true;_this.offsetY = e.pageY - _this.slider.offset().top;if (!_this.slider.is(e.target)) { _this.offsetY = 0;} _this.pane.addClass(_this.options.activeClass);_this.doc.bind(MOUSEMOVE, _this.events[DRAG]).bind(MOUSEUP, _this.events[UP]);_this.body.bind(MOUSEENTER, _this.events[ENTER]);return false;};})(this), drag: (function(_this) { return function(e) { _this.sliderY = e.pageY - _this.$el.offset().top - _this.paneTop - (_this.offsetY || _this.sliderHeight * 0.5);_this.scroll();if (_this.contentScrollTop >= _this.maxScrollTop && _this.prevScrollTop !== _this.maxScrollTop) { _this.$el.trigger('scrollend');} else if (_this.contentScrollTop === 0 && _this.prevScrollTop !== 0) { _this.$el.trigger('scrolltop');} return false;};})(this), up: (function(_this) { return function(e) { _this.isBeingDragged = false;_this.pane.removeClass(_this.options.activeClass);_this.doc.unbind(MOUSEMOVE, _this.events[DRAG]).unbind(MOUSEUP, _this.events[UP]);_this.body.unbind(MOUSEENTER, _this.events[ENTER]);return false;};})(this), resize: (function(_this) { return function(e) { _this.reset();};})(this), panedown: (function(_this) { return function(e) { _this.sliderY = (e.offsetY || e.originalEvent.layerY) - (_this.sliderHeight * 0.5);_this.scroll();_this.events.down(e);return false;};})(this), scroll: (function(_this) { return function(e) { _this.updateScrollValues();if (_this.isBeingDragged) { return;} if (!_this.iOSNativeScrolling) { _this.sliderY = _this.sliderTop;_this.setOnScrollStyles();} if (e == null) { return;} if (_this.contentScrollTop >= _this.maxScrollTop) { if (_this.options.preventPageScrolling) { _this.preventScrolling(e, DOWN);} if (_this.prevScrollTop !== _this.maxScrollTop) { _this.$el.trigger('scrollend');} } else if (_this.contentScrollTop === 0) { if (_this.options.preventPageScrolling) { _this.preventScrolling(e, UP);} if (_this.prevScrollTop !== 0) { _this.$el.trigger('scrolltop');} } };})(this), wheel: (function(_this) { return function(e) { var delta;if (e == null) { return;} delta = e.delta || e.wheelDelta || (e.originalEvent && e.originalEvent.wheelDelta) || -e.detail || (e.originalEvent && -e.originalEvent.detail);if (delta) { _this.sliderY += -delta / 3;} _this.scroll();return false;};})(this), enter: (function(_this) { return function(e) { var _ref;if (!_this.isBeingDragged) { return;} if ((e.buttons || e.which) !== 1) { return (_ref = _this.events)[UP].apply(_ref, arguments);} };})(this) };};NanoScroll.prototype.addEvents = function() { var events;this.removeEvents();events = this.events;if (!this.options.disableResize) { this.win.bind(RESIZE, events[RESIZE]);} if (!this.iOSNativeScrolling) { this.slider.bind(MOUSEDOWN, events[DOWN]);this.pane.bind(MOUSEDOWN, events[PANEDOWN]).bind("" + MOUSEWHEEL + " " + DOMSCROLL, events[WHEEL]);} this.$content.bind("" + SCROLL + " " + MOUSEWHEEL + " " + DOMSCROLL + " " + TOUCHMOVE, events[SCROLL]);};NanoScroll.prototype.removeEvents = function() { var events;events = this.events;this.win.unbind(RESIZE, events[RESIZE]);if (!this.iOSNativeScrolling) { this.slider.unbind();this.pane.unbind();} this.$content.unbind("" + SCROLL + " " + MOUSEWHEEL + " " + DOMSCROLL + " " + TOUCHMOVE, events[SCROLL]);};NanoScroll.prototype.generate = function() { var contentClass, cssRule, currentPadding, options, pane, paneClass, sliderClass;options = this.options;paneClass = options.paneClass, sliderClass = options.sliderClass, contentClass = options.contentClass;if (!(pane = this.$el.children("." + paneClass)).length && !pane.children("." + sliderClass).length) { this.$el.append("
    ");} this.pane = this.$el.children("." + paneClass);this.slider = this.pane.find("." + sliderClass);if (BROWSER_SCROLLBAR_WIDTH === 0 && isFFWithBuggyScrollbar()) { currentPadding = window.getComputedStyle(this.content, null).getPropertyValue('padding-right').replace(/[^0-9.]+/g, '');cssRule = { right: -14, paddingRight: +currentPadding + 14 };} else if (BROWSER_SCROLLBAR_WIDTH) { cssRule = { right: -BROWSER_SCROLLBAR_WIDTH };this.$el.addClass(options.enabledClass);} if (cssRule != null) { this.$content.css(cssRule);} return this;};NanoScroll.prototype.restore = function() { this.stopped = false;if (!this.iOSNativeScrolling) { this.pane.show();} this.addEvents();};NanoScroll.prototype.reset = function() { var content, contentHeight, contentPosition, contentStyle, contentStyleOverflowY, paneBottom, paneHeight, paneOuterHeight, paneTop, parentMaxHeight, right, sliderHeight;if (this.iOSNativeScrolling) { this.contentHeight = this.content.scrollHeight;return;} if (!this.$el.find("." + this.options.paneClass).length) { this.generate().stop();} if (this.stopped) { this.restore();} content = this.content;contentStyle = content.style;contentStyleOverflowY = contentStyle.overflowY;if (BROWSER_IS_IE7) { this.$content.css({ height: this.$content.height() });} contentHeight = content.scrollHeight + BROWSER_SCROLLBAR_WIDTH;parentMaxHeight = parseInt(this.$el.css("max-height"), 10);if (parentMaxHeight > 0) { this.$el.height("");this.$el.height(content.scrollHeight > parentMaxHeight ? parentMaxHeight : content.scrollHeight);} paneHeight = this.pane.outerHeight(false);paneTop = parseInt(this.pane.css('top'), 10);paneBottom = parseInt(this.pane.css('bottom'), 10);paneOuterHeight = paneHeight + paneTop + paneBottom;sliderHeight = Math.round(paneOuterHeight / contentHeight * paneHeight);if (sliderHeight < this.options.sliderMinHeight) { sliderHeight = this.options.sliderMinHeight;} else if ((this.options.sliderMaxHeight != null) && sliderHeight > this.options.sliderMaxHeight) { sliderHeight = this.options.sliderMaxHeight;} if (contentStyleOverflowY === SCROLL && contentStyle.overflowX !== SCROLL) { sliderHeight += BROWSER_SCROLLBAR_WIDTH;} this.maxSliderTop = paneOuterHeight - sliderHeight;this.contentHeight = contentHeight;this.paneHeight = paneHeight;this.paneOuterHeight = paneOuterHeight;this.sliderHeight = sliderHeight;this.paneTop = paneTop;this.slider.height(sliderHeight);this.events.scroll();this.pane.show();this.isActive = true;if ((content.scrollHeight === content.clientHeight) || (this.pane.outerHeight(true) >= content.scrollHeight && contentStyleOverflowY !== SCROLL)) { this.pane.hide();this.isActive = false;} else if (this.el.clientHeight === content.scrollHeight && contentStyleOverflowY === SCROLL) { this.slider.hide();} else { this.slider.show();} this.pane.css({ opacity: (this.options.alwaysVisible ? 1 : ''), visibility: (this.options.alwaysVisible ? 'visible' : '') });contentPosition = this.$content.css('position');if (contentPosition === 'static' || contentPosition === 'relative') { right = parseInt(this.$content.css('right'), 10);if (right) { this.$content.css({ right: '', marginRight: right });} } return this;};NanoScroll.prototype.scroll = function() { if (!this.isActive) { return;} this.sliderY = Math.max(0, this.sliderY);this.sliderY = Math.min(this.maxSliderTop, this.sliderY);this.$content.scrollTop(this.maxScrollTop * this.sliderY / this.maxSliderTop);if (!this.iOSNativeScrolling) { this.updateScrollValues();this.setOnScrollStyles();} return this;};NanoScroll.prototype.scrollBottom = function(offsetY) { if (!this.isActive) { return;} this.$content.scrollTop(this.contentHeight - this.$content.height() - offsetY).trigger(MOUSEWHEEL);this.stop().restore();return this;};NanoScroll.prototype.scrollTop = function(offsetY) { if (!this.isActive) { return;} this.$content.scrollTop(+offsetY).trigger(MOUSEWHEEL);this.stop().restore();return this;};NanoScroll.prototype.scrollTo = function(node) { if (!this.isActive) { return;} this.scrollTop(this.$el.find(node).get(0).offsetTop);return this;};NanoScroll.prototype.stop = function() { if (cAF && this.scrollRAF) { cAF(this.scrollRAF);this.scrollRAF = null;} this.stopped = true;this.removeEvents();if (!this.iOSNativeScrolling) { this.pane.hide();} return this;};NanoScroll.prototype.destroy = function() { if (!this.stopped) { this.stop();} if (!this.iOSNativeScrolling && this.pane.length) { this.pane.remove();} if (BROWSER_IS_IE7) { this.$content.height('');} this.$content.removeAttr('tabindex');if (this.$el.hasClass(this.options.enabledClass)) { this.$el.removeClass(this.options.enabledClass);this.$content.css({ right: '' });} return this;};NanoScroll.prototype.flash = function() { if (this.iOSNativeScrolling) { return;} if (!this.isActive) { return;} this.reset();this.pane.addClass(this.options.flashedClass);setTimeout((function(_this) { return function() { _this.pane.removeClass(_this.options.flashedClass);};})(this), this.options.flashDelay);return this;};return NanoScroll;})();$.fn.nanoScroller = function(settings) { return this.each(function() { var options, scrollbar;if (!(scrollbar = this.nanoscroller)) { options = $.extend({}, defaults, settings);this.nanoscroller = scrollbar = new NanoScroll(this, options);} if (settings && typeof settings === "object") { $.extend(scrollbar.options, settings);if (settings.scrollBottom != null) { return scrollbar.scrollBottom(settings.scrollBottom);} if (settings.scrollTop != null) { return scrollbar.scrollTop(settings.scrollTop);} if (settings.scrollTo) { return scrollbar.scrollTo(settings.scrollTo);} if (settings.scroll === 'bottom') { return scrollbar.scrollBottom(0);} if (settings.scroll === 'top') { return scrollbar.scrollTop(0);} if (settings.scroll && settings.scroll instanceof $) { return scrollbar.scrollTo(settings.scroll);} if (settings.stop) { return scrollbar.stop();} if (settings.destroy) { return scrollbar.destroy();} if (settings.flash) { return scrollbar.flash();} } return scrollbar.reset();});};$.fn.nanoScroller.Constructor = NanoScroll;});