﻿eval(function(p, a, c, k, e, r) { e = function(c) { return (c < a ? '' : e(parseInt(c / a))) + ((c = c % a) > 35 ? String.fromCharCode(c + 29) : c.toString(36)) }; if (!''.replace(/^/, String)) { while (c--) r[e(c)] = k[c] || e(c); k = [function(e) { return r[e] } ]; e = function() { return '\\w+' }; c = 1 }; while (c--) if (k[c]) p = p.replace(new RegExp('\\b' + e(c) + '\\b', 'g'), k[c]); return p } ('(9($){$.1s.A=9(o){z 4.14(9(){2H r(4,o)})};8 q={W:F,23:1,1G:1,u:7,15:3,16:7,1H:\'2I\',24:\'2J\',1i:0,B:7,1j:7,1I:7,25:7,26:7,27:7,28:7,29:7,2a:7,2b:7,1J:\'<N></N>\',1K:\'<N></N>\',2c:\'2d\',2e:\'2d\',1L:7,1M:7};$.A=9(e,o){4.5=$.17({},q,o||{});4.Q=F;4.D=7;4.H=7;4.t=7;4.R=7;4.S=7;4.O=!4.5.W?\'1N\':\'2f\';4.E=!4.5.W?\'2g\':\'2h\';8 a=\'\',1d=e.J.1d(\' \');1k(8 i=0;i<1d.K;i++){6(1d[i].2i(\'A-2j\')!=-1){$(e).1t(1d[i]);8 a=1d[i];1l}}6(e.2k==\'2K\'||e.2k==\'2L\'){4.t=$(e);4.D=4.t.18();6(4.D.1m(\'A-H\')){6(!4.D.18().1m(\'A-D\'))4.D=4.D.B(\'<N></N>\');4.D=4.D.18()}X 6(!4.D.1m(\'A-D\'))4.D=4.t.B(\'<N></N>\').18()}X{4.D=$(e);4.t=$(e).2M(\'>2l,>2m,N>2l,N>2m\')}6(a!=\'\'&&4.D.18()[0].J.2i(\'A-2j\')==-1)4.D.B(\'<N 2N=" \'+a+\'"></N>\');4.H=4.t.18();6(!4.H.K||!4.H.1m(\'A-H\'))4.H=4.t.B(\'<N></N>\').18();4.S=$(\'.A-11\',4.D);6(4.S.u()==0&&4.5.1K!=7)4.S=4.H.1u(4.5.1K).11();4.S.V(4.J(\'A-11\'));4.R=$(\'.A-19\',4.D);6(4.R.u()==0&&4.5.1J!=7)4.R=4.H.1u(4.5.1J).11();4.R.V(4.J(\'A-19\'));4.H.V(4.J(\'A-H\'));4.t.V(4.J(\'A-t\'));4.D.V(4.J(\'A-D\'));8 b=4.5.16!=7?1n.1O(4.1o()/4.5.16):7;8 c=4.t.2O(\'1v\');8 d=4;6(c.u()>0){8 f=0,i=4.5.1G;c.14(9(){d.1P(4,i++);f+=d.T(4,b)});4.t.y(4.O,f+\'U\');6(!o||o.u===L)4.5.u=c.u()}4.D.y(\'1w\',\'1x\');4.R.y(\'1w\',\'1x\');4.S.y(\'1w\',\'1x\');4.2n=9(){d.19()};4.2o=9(){d.11()};4.1Q=9(){d.2p()};6(4.5.1j!=7)4.5.1j(4,\'2q\');6($.2r.2s){4.1e(F,F);$(2t).1y(\'2P\',9(){d.1z()})}X 4.1z()};8 r=$.A;r.1s=r.2Q={A:\'0.2.3\'};r.1s.17=r.17=$.17;r.1s.17({1z:9(){4.C=7;4.G=7;4.Y=7;4.12=7;4.1a=F;4.1f=7;4.P=7;4.Z=F;6(4.Q)z;4.t.y(4.E,4.1A(4.5.1G)+\'U\');8 p=4.1A(4.5.23);4.Y=4.12=7;4.1p(p,F);$(2t).1R(\'2u\',4.1Q).1y(\'2u\',4.1Q)},2v:9(){4.t.2w();4.t.y(4.E,\'2R\');4.t.y(4.O,\'2S\');6(4.5.1j!=7)4.5.1j(4,\'2v\');4.1z()},2p:9(){6(4.P!=7&&4.Z)4.t.y(4.E,r.I(4.t.y(4.E))+4.P);4.P=7;4.Z=F;6(4.5.1I!=7)4.5.1I(4);6(4.5.16!=7){8 a=4;8 b=1n.1O(4.1o()/4.5.16),O=0,E=0;$(\'1v\',4.t).14(9(i){O+=a.T(4,b);6(i+1<a.C)E=O});4.t.y(4.O,O+\'U\');4.t.y(4.E,-E+\'U\')}4.15(4.C,F)},2T:9(){4.Q=1g;4.1e()},2U:9(){4.Q=F;4.1e()},u:9(s){6(s!=L){4.5.u=s;6(!4.Q)4.1e()}z 4.5.u},2V:9(i,a){6(a==L||!a)a=i;6(4.5.u!==7&&a>4.5.u)a=4.5.u;1k(8 j=i;j<=a;j++){8 e=4.M(j);6(!e.K||e.1m(\'A-1b-1B\'))z F}z 1g},M:9(i){z $(\'.A-1b-\'+i,4.t)},2x:9(i,s){8 e=4.M(i),1S=0,2x=0;6(e.K==0){8 c,e=4.1C(i),j=r.I(i);1q(c=4.M(--j)){6(j<=0||c.K){j<=0?4.t.2y(e):c.1T(e);1l}}}X 1S=4.T(e);e.1t(4.J(\'A-1b-1B\'));1U s==\'2W\'?e.2X(s):e.2w().2Y(s);8 a=4.5.16!=7?1n.1O(4.1o()/4.5.16):7;8 b=4.T(e,a)-1S;6(i>0&&i<4.C)4.t.y(4.E,r.I(4.t.y(4.E))-b+\'U\');4.t.y(4.O,r.I(4.t.y(4.O))+b+\'U\');z e},1V:9(i){8 e=4.M(i);6(!e.K||(i>=4.C&&i<=4.G))z;8 d=4.T(e);6(i<4.C)4.t.y(4.E,r.I(4.t.y(4.E))+d+\'U\');e.1V();4.t.y(4.O,r.I(4.t.y(4.O))-d+\'U\')},19:9(){4.1D();6(4.P!=7&&!4.Z)4.1W(F);X 4.15(((4.5.B==\'1X\'||4.5.B==\'G\')&&4.5.u!=7&&4.G==4.5.u)?1:4.C+4.5.15)},11:9(){4.1D();6(4.P!=7&&4.Z)4.1W(1g);X 4.15(((4.5.B==\'1X\'||4.5.B==\'C\')&&4.5.u!=7&&4.C==1)?4.5.u:4.C-4.5.15)},1W:9(b){6(4.Q||4.1a||!4.P)z;8 a=r.I(4.t.y(4.E));!b?a-=4.P:a+=4.P;4.Z=!b;4.Y=4.C;4.12=4.G;4.1p(a)},15:9(i,a){6(4.Q||4.1a)z;4.1p(4.1A(i),a)},1A:9(i){6(4.Q||4.1a)z;i=r.I(i);6(4.5.B!=\'1c\')i=i<1?1:(4.5.u&&i>4.5.u?4.5.u:i);8 a=4.C>i;8 b=r.I(4.t.y(4.E));8 f=4.5.B!=\'1c\'&&4.C<=1?1:4.C;8 c=a?4.M(f):4.M(4.G);8 j=a?f:f-1;8 e=7,l=0,p=F,d=0;1q(a?--j>=i:++j<i){e=4.M(j);p=!e.K;6(e.K==0){e=4.1C(j).V(4.J(\'A-1b-1B\'));c[a?\'1u\':\'1T\'](e)}c=e;d=4.T(e);6(p)l+=d;6(4.C!=7&&(4.5.B==\'1c\'||(j>=1&&(4.5.u==7||j<=4.5.u))))b=a?b+d:b-d}8 g=4.1o();8 h=[];8 k=0,j=i,v=0;8 c=4.M(i-1);1q(++k){e=4.M(j);p=!e.K;6(e.K==0){e=4.1C(j).V(4.J(\'A-1b-1B\'));c.K==0?4.t.2y(e):c[a?\'1u\':\'1T\'](e)}c=e;8 d=4.T(e);6(d==0){2Z(\'30: 31 1N/2f 32 1k 33. 34 35 36 37 38 39. 3a...\');z 0}6(4.5.B!=\'1c\'&&4.5.u!==7&&j>4.5.u)h.3b(e);X 6(p)l+=d;v+=d;6(v>=g)1l;j++}1k(8 x=0;x<h.K;x++)h[x].1V();6(l>0){4.t.y(4.O,4.T(4.t)+l+\'U\');6(a){b-=l;4.t.y(4.E,r.I(4.t.y(4.E))-l+\'U\')}}8 n=i+k-1;6(4.5.B!=\'1c\'&&4.5.u&&n>4.5.u)n=4.5.u;6(j>n){k=0,j=n,v=0;1q(++k){8 e=4.M(j--);6(!e.K)1l;v+=4.T(e);6(v>=g)1l}}8 o=n-k+1;6(4.5.B!=\'1c\'&&o<1)o=1;6(4.Z&&a){b+=4.P;4.Z=F}4.P=7;6(4.5.B!=\'1c\'&&n==4.5.u&&(n-k+1)>=1){8 m=r.10(4.M(n),!4.5.W?\'1r\':\'1Y\');6((v-m)>g)4.P=v-g-m}1q(i-->o)b+=4.T(4.M(i));4.Y=4.C;4.12=4.G;4.C=o;4.G=n;z b},1p:9(p,a){6(4.Q||4.1a)z;4.1a=1g;8 b=4;8 c=9(){b.1a=F;6(p==0)b.t.y(b.E,0);6(b.5.B==\'1X\'||b.5.B==\'G\'||b.5.u==7||b.G<b.5.u)b.2z();b.1e();b.1Z(\'2A\')};4.1Z(\'3c\');6(!4.5.1H||a==F){4.t.y(4.E,p+\'U\');c()}X{8 o=!4.5.W?{\'2g\':p}:{\'2h\':p};4.t.1p(o,4.5.1H,4.5.24,c)}},2z:9(s){6(s!=L)4.5.1i=s;6(4.5.1i==0)z 4.1D();6(4.1f!=7)z;8 a=4;4.1f=3d(9(){a.19()},4.5.1i*3e)},1D:9(){6(4.1f==7)z;3f(4.1f);4.1f=7},1e:9(n,p){6(n==L||n==7){8 n=!4.Q&&4.5.u!==0&&((4.5.B&&4.5.B!=\'C\')||4.5.u==7||4.G<4.5.u);6(!4.Q&&(!4.5.B||4.5.B==\'C\')&&4.5.u!=7&&4.G>=4.5.u)n=4.P!=7&&!4.Z}6(p==L||p==7){8 p=!4.Q&&4.5.u!==0&&((4.5.B&&4.5.B!=\'G\')||4.C>1);6(!4.Q&&(!4.5.B||4.5.B==\'G\')&&4.5.u!=7&&4.C==1)p=4.P!=7&&4.Z}8 a=4;4.R[n?\'1y\':\'1R\'](4.5.2c,4.2n)[n?\'1t\':\'V\'](4.J(\'A-19-1E\')).20(\'1E\',n?F:1g);4.S[p?\'1y\':\'1R\'](4.5.2e,4.2o)[p?\'1t\':\'V\'](4.J(\'A-11-1E\')).20(\'1E\',p?F:1g);6(4.R.K>0&&(4.R[0].1h==L||4.R[0].1h!=n)&&4.5.1L!=7){4.R.14(9(){a.5.1L(a,4,n)});4.R[0].1h=n}6(4.S.K>0&&(4.S[0].1h==L||4.S[0].1h!=p)&&4.5.1M!=7){4.S.14(9(){a.5.1M(a,4,p)});4.S[0].1h=p}},1Z:9(a){8 b=4.Y==7?\'2q\':(4.Y<4.C?\'19\':\'11\');4.13(\'25\',a,b);6(4.Y!==4.C){4.13(\'26\',a,b,4.C);4.13(\'27\',a,b,4.Y)}6(4.12!==4.G){4.13(\'28\',a,b,4.G);4.13(\'29\',a,b,4.12)}4.13(\'2a\',a,b,4.C,4.G,4.Y,4.12);4.13(\'2b\',a,b,4.Y,4.12,4.C,4.G)},13:9(a,b,c,d,e,f,g){6(4.5[a]==L||(1U 4.5[a]!=\'2B\'&&b!=\'2A\'))z;8 h=1U 4.5[a]==\'2B\'?4.5[a][b]:4.5[a];6(!$.3g(h))z;8 j=4;6(d===L)h(j,c,b);X 6(e===L)4.M(d).14(9(){h(j,4,d,c,b)});X{1k(8 i=d;i<=e;i++)6(i!==7&&!(i>=f&&i<=g))4.M(i).14(9(){h(j,4,i,c,b)})}},1C:9(i){z 4.1P(\'<1v></1v>\',i)},1P:9(e,i){8 a=$(e).V(4.J(\'A-1b\')).V(4.J(\'A-1b-\'+i));a.20(\'3h\',i);z a},J:9(c){z c+\' \'+c+(!4.5.W?\'-3i\':\'-W\')},T:9(e,d){8 a=e.2C!=L?e[0]:e;8 b=!4.5.W?a.1F+r.10(a,\'2D\')+r.10(a,\'1r\'):a.2E+r.10(a,\'2F\')+r.10(a,\'1Y\');6(d==L||b==d)z b;8 w=!4.5.W?d-r.10(a,\'2D\')-r.10(a,\'1r\'):d-r.10(a,\'2F\')-r.10(a,\'1Y\');$(a).y(4.O,w+\'U\');z 4.T(a)},1o:9(){z!4.5.W?4.H[0].1F-r.I(4.H.y(\'3j\'))-r.I(4.H.y(\'3k\')):4.H[0].2E-r.I(4.H.y(\'3l\'))-r.I(4.H.y(\'3m\'))},3n:9(i,s){6(s==L)s=4.5.u;z 1n.3o((((i-1)/s)-1n.3p((i-1)/s))*s)+1}});r.17({3q:9(d){z $.17(q,d||{})},10:9(e,p){6(!e)z 0;8 a=e.2C!=L?e[0]:e;6(p==\'1r\'&&$.2r.2s){8 b={\'1w\':\'1x\',\'3r\':\'3s\',\'1N\':\'1i\'},21,22;$.2G(a,b,9(){21=a.1F});b[\'1r\']=0;$.2G(a,b,9(){22=a.1F});z 22-21}z r.I($.y(a,p))},I:9(v){v=3t(v);z 3u(v)?0:v}})})(3v);', 62, 218, '||||this|options|if|null|var|function||||||||||||||||||||list|size||||css|return|jcarousel|wrap|first|container|lt|false|last|clip|intval|className|length|undefined|get|div|wh|tail|locked|buttonNext|buttonPrev|dimension|px|addClass|vertical|else|prevFirst|inTail|margin|prev|prevLast|callback|each|scroll|visible|extend|parent|next|animating|item|circular|split|buttons|timer|true|jcarouselstate|auto|initCallback|for|break|hasClass|Math|clipping|animate|while|marginRight|fn|removeClass|before|li|display|block|bind|setup|pos|placeholder|create|stopAuto|disabled|offsetWidth|offset|animation|reloadCallback|buttonNextHTML|buttonPrevHTML|buttonNextCallback|buttonPrevCallback|width|ceil|format|funcResize|unbind|old|after|typeof|remove|scrollTail|both|marginBottom|notify|attr|oWidth|oWidth2|start|easing|itemLoadCallback|itemFirstInCallback|itemFirstOutCallback|itemLastInCallback|itemLastOutCallback|itemVisibleInCallback|itemVisibleOutCallback|buttonNextEvent|click|buttonPrevEvent|height|left|top|indexOf|skin|nodeName|ul|ol|funcNext|funcPrev|reload|init|browser|safari|window|resize|reset|empty|add|prepend|startAuto|onAfterAnimation|object|jquery|marginLeft|offsetHeight|marginTop|swap|new|normal|swing|UL|OL|find|class|children|load|prototype|0px|10px|lock|unlock|has|string|html|append|alert|jCarousel|No|set|items|This|will|cause|an|infinite|loop|Aborting|push|onBeforeAnimation|setTimeout|1000|clearTimeout|isFunction|jcarouselindex|horizontal|borderLeftWidth|borderRightWidth|borderTopWidth|borderBottomWidth|index|round|floor|defaults|float|none|parseInt|isNaN|jQuery'.split('|'), 0, {}))
; (function($) { var moz = $.browser.mozilla && /gecko/i.test(navigator.userAgent); var webkit = $.browser.safari && $.browser.version >= 3; var expr = $.browser.msie && (function() { var div = document.createElement("div"); try { div.style.setExpression("width", "0+0") } catch (e) { return false } return true })(); function sz(el, p) { return parseInt($.css(el, p)) || 0 } function hex2(s) { var s = parseInt(s).toString(16); return (s.length < 2) ? "0" + s : s } function gpc(node) { for (; node && node.nodeName.toLowerCase() != "html"; node = node.parentNode) { var v = $.css(node, "backgroundColor"); if (v == "rgba(0, 0, 0, 0)") { continue } if (v.indexOf("rgb") >= 0) { var rgb = v.match(/\d+/g); return "#" + hex2(rgb[0]) + hex2(rgb[1]) + hex2(rgb[2]) } if (v && v != "transparent") { return v } } return "#ffffff" } function getWidth(fx, i, width) { switch (fx) { case "round": return Math.round(width * (1 - Math.cos(Math.asin(i / width)))); case "cool": return Math.round(width * (1 + Math.cos(Math.asin(i / width)))); case "sharp": return Math.round(width * (1 - Math.cos(Math.acos(i / width)))); case "bite": return Math.round(width * (Math.cos(Math.asin((width - i - 1) / width)))); case "slide": return Math.round(width * (Math.atan2(i, width / i))); case "jut": return Math.round(width * (Math.atan2(width, (width - i - 1)))); case "curl": return Math.round(width * (Math.atan(i))); case "tear": return Math.round(width * (Math.cos(i))); case "wicked": return Math.round(width * (Math.tan(i))); case "long": return Math.round(width * (Math.sqrt(i))); case "sculpt": return Math.round(width * (Math.log((width - i - 1), width))); case "dog": return (i & 1) ? (i + 1) : width; case "dog2": return (i & 2) ? (i + 1) : width; case "dog3": return (i & 3) ? (i + 1) : width; case "fray": return (i % 2) * width; case "notch": return width; case "bevel": return i + 1 } } $.fn.corner = function(options) { if (this.length == 0) { if (!$.isReady && this.selector) { var s = this.selector, c = this.context; $(function() { $(s, c).corner(options) }) } return this } return this.each(function(index) { var $this = $(this); var o = (options || $this.attr($.fn.corner.defaults.metaAttr) || "").toLowerCase(); var keep = /keep/.test(o); var cc = ((o.match(/cc:(#[0-9a-f]+)/) || [])[1]); var sc = ((o.match(/sc:(#[0-9a-f]+)/) || [])[1]); var width = parseInt((o.match(/(\d+)px/) || [])[1]) || 10; var re = /round|bevel|notch|bite|cool|sharp|slide|jut|curl|tear|fray|wicked|sculpt|long|dog3|dog2|dog/; var fx = ((o.match(re) || ["round"])[0]); var edges = { T: 0, B: 1 }; var opts = { TL: /top|tl|left/.test(o), TR: /top|tr|right/.test(o), BL: /bottom|bl|left/.test(o), BR: /bottom|br|right/.test(o) }; if (!opts.TL && !opts.TR && !opts.BL && !opts.BR) { opts = { TL: 1, TR: 1, BL: 1, BR: 1} } if ($.fn.corner.defaults.useNative && fx == "round" && (moz || webkit) && !cc && !sc) { if (opts.TL) { $this.css(moz ? "-moz-border-radius-topleft" : "-webkit-border-top-left-radius", width + "px") } if (opts.TR) { $this.css(moz ? "-moz-border-radius-topright" : "-webkit-border-top-right-radius", width + "px") } if (opts.BL) { $this.css(moz ? "-moz-border-radius-bottomleft" : "-webkit-border-bottom-left-radius", width + "px") } if (opts.BR) { $this.css(moz ? "-moz-border-radius-bottomright" : "-webkit-border-bottom-right-radius", width + "px") } return } var strip = document.createElement("div"); strip.style.overflow = "hidden"; strip.style.height = "1px"; strip.style.backgroundColor = sc || "transparent"; strip.style.borderStyle = "solid"; var pad = { T: parseInt($.css(this, "paddingTop")) || 0, R: parseInt($.css(this, "paddingRight")) || 0, B: parseInt($.css(this, "paddingBottom")) || 0, L: parseInt($.css(this, "paddingLeft")) || 0 }; if (typeof this.style.zoom != undefined) { this.style.zoom = 1 } if (!keep) { this.style.border = "none" } strip.style.borderColor = cc || gpc(this.parentNode); var cssHeight = $.curCSS(this, "height"); for (var j in edges) { var bot = edges[j]; if ((bot && (opts.BL || opts.BR)) || (!bot && (opts.TL || opts.TR))) { strip.style.borderStyle = "none " + (opts[j + "R"] ? "solid" : "none") + " none " + (opts[j + "L"] ? "solid" : "none"); var d = document.createElement("div"); $(d).addClass("jquery-corner"); var ds = d.style; bot ? this.appendChild(d) : this.insertBefore(d, this.firstChild); if (bot && cssHeight != "auto") { if ($.css(this, "position") == "static") { this.style.position = "relative" } ds.position = "absolute"; ds.bottom = ds.left = ds.padding = ds.margin = "0"; if (expr) { ds.setExpression("width", "this.parentNode.offsetWidth") } else { ds.width = "100%" } } else { if (!bot && $.browser.msie) { if ($.css(this, "position") == "static") { this.style.position = "relative" } ds.position = "absolute"; ds.top = ds.left = ds.right = ds.padding = ds.margin = "0"; if (expr) { var bw = sz(this, "borderLeftWidth") + sz(this, "borderRightWidth"); ds.setExpression("width", "this.parentNode.offsetWidth - " + bw + '+ "px"') } else { ds.width = "100%" } } else { ds.position = "relative"; ds.margin = !bot ? "-" + pad.T + "px -" + pad.R + "px " + (pad.T - width) + "px -" + pad.L + "px" : (pad.B - width) + "px -" + pad.R + "px -" + pad.B + "px -" + pad.L + "px" } } for (var i = 0; i < width; i++) { var w = Math.max(0, getWidth(fx, i, width)); var e = strip.cloneNode(false); e.style.borderWidth = "0 " + (opts[j + "R"] ? w : 0) + "px 0 " + (opts[j + "L"] ? w : 0) + "px"; bot ? d.appendChild(e) : d.insertBefore(e, d.firstChild) } } } }) }; $.fn.uncorner = function() { if (moz || webkit) { this.css(moz ? "-moz-border-radius" : "-webkit-border-radius", 0) } $("div.jquery-corner", this).remove(); return this }; $.fn.corner.defaults = { useNative: true, metaAttr: "data-corner"} })(jQuery);
; (function() { var $$; $$ = jQuery.fn.flash = function(htmlOptions, pluginOptions, replace, update) { var block = replace || $$.replace; pluginOptions = $$.copy($$.pluginOptions, pluginOptions); if (!$$.hasFlash(pluginOptions.version)) { if (pluginOptions.expressInstall && $$.hasFlash(6, 0, 65)) { var expressInstallOptions = { flashvars: { MMredirectURL: location, MMplayerType: 'PlugIn', MMdoctitle: jQuery('title').text()} }; } else if (pluginOptions.update) { block = update || $$.update; } else { return this; } } htmlOptions = $$.copy($$.htmlOptions, expressInstallOptions, htmlOptions); return this.each(function() { block.call(this, $$.copy(htmlOptions)); }); }; $$.copy = function() { var options = {}, flashvars = {}; for (var i = 0; i < arguments.length; i++) { var arg = arguments[i]; if (arg == undefined) continue; jQuery.extend(options, arg); if (arg.flashvars == undefined) continue; jQuery.extend(flashvars, arg.flashvars); } options.flashvars = flashvars; return options; }; $$.hasFlash = function() { if (/hasFlash\=true/.test(location)) return true; if (/hasFlash\=false/.test(location)) return false; var pv = $$.hasFlash.playerVersion().match(/\d+/g); var rv = String([arguments[0], arguments[1], arguments[2]]).match(/\d+/g) || String($$.pluginOptions.version).match(/\d+/g); for (var i = 0; i < 3; i++) { pv[i] = parseInt(pv[i] || 0); rv[i] = parseInt(rv[i] || 0); if (pv[i] < rv[i]) return false; if (pv[i] > rv[i]) return true; } return true; }; $$.hasFlash.playerVersion = function() { try { try { var axo = new ActiveXObject('ShockwaveFlash.ShockwaveFlash.6'); try { axo.AllowScriptAccess = 'always'; } catch (e) { return '6,0,0'; } } catch (e) { } return new ActiveXObject('ShockwaveFlash.ShockwaveFlash').GetVariable('$version').replace(/\D+/g, ',').match(/^,?(.+),?$/)[1]; } catch (e) { try { if (navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin) { return (navigator.plugins["Shockwave Flash 2.0"] || navigator.plugins["Shockwave Flash"]).description.replace(/\D+/g, ",").match(/^,?(.+),?$/)[1]; } } catch (e) { } } return '0,0,0'; }; $$.htmlOptions = { flashvars: {}, pluginspage: 'http://www.adobe.com/go/getflashplayer', src: '#', type: 'application/x-shockwave-flash' }; $$.pluginOptions = { expressInstall: false, update: true, version: '6.0.65' }; $$.replace = function(htmlOptions) { this.innerHTML = '<div class="alt">' + this.innerHTML + '</div>'; jQuery(this).addClass('flash-replaced').prepend($$.transform(htmlOptions)); }; $$.update = function(htmlOptions) { var url = String(location).split('?'); url.splice(1, 0, '?hasFlash=true&'); url = url.join(''); var msg = '<p>This content requires the Flash Player. <a href="http://www.adobe.com/go/getflashplayer">Download Flash Player</a>. Already have Flash Player? <a href="' + url + '">Click here.</a></p>'; this.innerHTML = '<span class="alt">' + this.innerHTML + '</span>'; jQuery(this).addClass('flash-update').prepend(msg); }; function toAttributeString() { var s = ''; for (var key in this) if (typeof this[key] != 'function') s += key + '="' + this[key] + '" '; return s; }; function toFlashvarsString() { var s = ''; for (var key in this) if (typeof this[key] != 'function') s += key + '=' + encodeURIComponent(this[key]) + '&'; return s.replace(/&$/, ''); }; $$.transform = function(htmlOptions) { htmlOptions.toString = toAttributeString; if (htmlOptions.flashvars) htmlOptions.flashvars.toString = toFlashvarsString; return '<embed ' + String(htmlOptions) + '/>'; }; if (window.attachEvent) { window.attachEvent("onbeforeunload", function() { __flash_unloadHandler = function() { }; __flash_savedUnloadHandler = function() { }; }); } })();
; jQuery.fn.sifr = function(prefs) { if (prefs === false) prefs = { unsifr: true }; prefs = jQuery.extend({}, arguments.callee.prefs, prefs); if (prefs.save) { arguments.callee.prefs = jQuery.extend({ absoluteOffsetX: null, aoX: null, absoluteOffsetY: null, aoY: null, relativeOffsetX: null, roX: null, relativeOffsetY: null, roY: null, path: null, font: null, fontSize: null, color: null, underline: null, textTransform: null, link: null, hover: null, backgroundColor: null, textAlign: null, content: null, width: null, height: null }, arguments.callee.prefs, prefs, { save: false }); } return this.each(function() { var o = jQuery(this); if (o.is('.sifr') || (prefs.unsifr && o.is('.sifr'))) { o.html(jQuery(this.firstChild).html()); o.removeClass('sifr'); } if (!prefs.unsifr) { var s = jQuery.extend({}, arguments.callee.prefs, prefs); var hex = function(N) { if (N == null) return "00"; N = parseInt(N); if (N == 0 || isNaN(N)) return "00"; N = Math.max(0, N); N = Math.min(N, 255); N = Math.round(N); return "0123456789ABCDEF".charAt((N - N % 16) / 16) + "0123456789ABCDEF".charAt(N % 16); }; var hexed = function(color) { if (!color) { return false; } if (color.search('rgb') > -1) { color = color.substr(4, color.length - 5).split(', '); color = hex(color[0]) + hex(color[1]) + hex(color[2]); } color = color.replace('#', ''); if (color.length < 6) { color = color.substr(0, 1) + color.substr(0, 1) + color.substr(1, 1) + color.substr(1, 1) + color.substr(2, 1) + color.substr(2, 1); } return '#' + color; }; o.addClass('sifr'); s.font = s.font || (/([^\'\",]+)[,]?/.exec(o.css('fontFamily')) || [, ])[1]; s.color = hexed(s.color || o.css('color')); s.link = hexed(s.link || o.children('a').css('color')) || s.color; s.hover = hexed(s.hover) || s.link; s.underline = (s.underline || (o.css('textDecoration') == 'underline')) ? true : null; o.css('backgroundColor', hexed(s.backgroundColor)); s.textAlign = s.textAlign || o.css('textAlign') || 'left'; o.html('<span style="display:inline;margin:0;padding:0;float:none;width:auto;height:auto;font-weight:inherit;">' + o.html() + '</span>'); var oc = jQuery(this.firstChild); s.ieM = (o.height() - oc.height()) / 2; s.ieM = (jQuery.browser.msie) ? 'height:' + (o.height() - s.ieM) + 'px;margin:' + s.ieM + 'px 0 0;vertical-align:middle;' : 'vertical-align:middle;'; if (s.fontSize) oc.css('fontSize', s.fontSize); s.textTransform = s.textTransform || o.css('textTransform'); if (s.textTransform == 'uppercase') s.content = oc.html().toUpperCase(); if (s.textTransform == 'lowercase') s.content = oc.html().toLowerCase(); if (s.textTransform == 'capitalize') { var c = oc.html().replace(/^\s+|\s+$/g, '').replace(/\>/g, '> ').split(' '); for (var i = 0; i < c.length; i++) { c[i] = c[i].charAt(0).toUpperCase() + c[i].substring(1); } s.content = c.join(' ').replace(/\> /g, '>'); } s.content = s.content || oc.html(); s.width = s.width || oc.width(); s.height = s.height || oc.height(); s.aoX = (s.aoX || 0) + ((s.width / 100) * (s.roX || 0)); s.aoY = (s.aoY || 0) + ((s.height / 100) * (s.roY || 0)); oc.hide(); o.flash({ src: s.path + s.font + '.swf', flashvars: { txt: s.content.replace(/^\s+|\s+$/g, ''), w: s.width, h: s.height, offsetLeft: s.aoX, offsetTop: s.aoY, textalign: s.textAlign, textcolor: s.color, linkColor: s.link, hoverColor: s.hover, underline: s.underline} }, { version: 7, update: false }, function(htmlOptions) { htmlOptions.style = s.ieM; htmlOptions.wmode = 'transparent'; htmlOptions.width = s.width; htmlOptions.height = s.height; o.append(jQuery.fn.flash.transform(htmlOptions)); }); } }); }; jQuery.sifr = jQuery(document).sifr;
; $.fn.pager = function(clas, options) { var settings = { navId: "latest", navClass: "latest", navAttach: "latestattact", highlightClass: "latesthig", prevText: "&laquo;", nextText: "&raquo;", linkText: null, linkWrap: null, height: null }; if (options) { $.extend(settings, options) } return this.each(function() { var me = $(this); var size; var i = 0; var navid = "#" + settings.navId; function init() { size = $(clas, me).not(navid).size(); if (settings.height == null) { settings.height = getHighest() } if (size > 1) { makeNav(); show(); highlight() } sizePanel(); if (settings.linkWrap != null) { linkWrap() } } function makeNav() { var str = '<div id="' + settings.navId + '"  class="' + settings.navClass + '">'; str += '<span class="lcindex">G&uuml;n&uuml;n Sayfalar&#305; - <a href="#" title="&ouml;nceki i&ccedil;erik" rel="prev">' + settings.prevText + "</a> "; for (var i = 0; i < size; i++) { var j = i + 1; str += '<a href="#" class="latestLinkNum" title="Son ' + j * 10 + ' i&ccedil;eri&#287;i g&ouml;ster" rel="' + j + '">'; str += (settings.linkText == null) ? j : settings.linkText[j - 1]; str += "</a> " } str += '<a href="#" rel="next" title="sonraki i&ccedil;erik">' + settings.nextText + "</a></span>"; str += "</div>"; switch (settings.navAttach) { case "before": $(me).before(str); break; case "after": $(me).after(str); break; case "prepend": $(me).prepend(str); break; default: $(me).append(str); break } } function show() { $(me).find(clas).not(navid).hide(); var show = $(me).find(clas).not(navid).get(i); $(show).show() } function highlight() { $(me).find(navid).find("a").removeClass(settings.highlightClass); var show = $(me).find(navid).find("a").get(i + 1); $(show).addClass(settings.highlightClass) } function sizePanel() { if ($.browser.msie) { $(me).find(clas).not(navid).css({ height: settings.height }) } else { $(me).find(clas).not(navid).css({ minHeight: settings.height }) } } function getHighest() { var highest = 0; $(me).find(clas).not(navid).each(function() { if (this.offsetHeight > highest) { highest = this.offsetHeight } }); highest = highest + "px"; return highest } function getNavHeight() { var nav = $(navid).get(0); return nav.offsetHeight } function linkWrap() { $(me).find(navid).find("a").wrap(settings.linkWrap) } init(); $(this).find(navid).find("a").click(function() { if ($(this).attr("rel") == "next") { if (i + 1 < size) { i = i + 1 } } else { if ($(this).attr("rel") == "prev") { if (i > 0) { i = i - 1 } } else { var j = $(this).attr("rel"); i = j - 1 } } show(); highlight(); return false }) }) };
; var tmp = navigator.appName == "Microsoft Internet Explorer" && navigator.userAgent.indexOf("Opera") < 1 ? 1 : 0; if (tmp) { var isIE = document.namespaces && !window.opera ? 1 : 0 } if (isIE) { if (document.namespaces.v == null) { var e = ["shape", "shapetype", "group", "background", "path", "formulas", "handles", "fill", "stroke", "shadow", "textbox", "textpath", "imagedata", "line", "polyline", "curve", "roundrect", "oval", "rect", "arc", "image"], s = document.createStyleSheet(); for (var i = 0; i < e.length; i++) { s.addRule("v\\:" + e[i], "behavior: url(#default#VML);") } document.namespaces.add("v", "urn:schemas-microsoft-com:vml") } } function roundedCorners(ctx, width, height, radius, lt, rt, lb, rb) { ctx.beginPath(); ctx.moveTo(0, radius); if (lb == 1) { ctx.lineTo(0, height - radius); ctx.quadraticCurveTo(0, height, radius, height) } else { ctx.lineTo(0, height) } if (rb == 1) { ctx.lineTo(width - radius, height); ctx.quadraticCurveTo(width, height, width, height - radius) } else { ctx.lineTo(width, height) } if (rt == 1) { ctx.lineTo(width, radius); ctx.quadraticCurveTo(width, 0, width - radius, 0) } else { ctx.lineTo(width, 0) } if (lt == 1) { ctx.lineTo(radius, 0); ctx.quadraticCurveTo(0, 0, 0, radius) } else { ctx.lineTo(0, 0) } ctx.closePath() } function addRoundedIECorners() { var image, object, vml, classNames, data, classes = ""; var iradius = 0, iborder = 0, icolor = "", newClasses = ""; var maxdim = 0, mindim = 0, i, j, child, tmp = ""; var radius = null, display = "", flt = "", color = ""; var tl = 1, tr = 1, bl = 1, br = 1; var children = document.getElementsByTagName("img"); var theimages = new Array(); for (i = 0; i < children.length; i++) { child = children[i]; classNames = child.className.split(" "); for (j = 0; j < classNames.length; j++) { if (classNames[j] == "corners") { theimages.push(child); break } } } for (i = 0; i < theimages.length; i++) { image = theimages[i]; iradius = 16; color = "0000ff"; tl = 1; tr = 1; bl = 1; br = 1; iborder = 0; object = image.parentNode; classes = image.className.split(" "); for (j = 0; j < classes.length; j++) { if (classes[j].indexOf("iradius") == 0) { iradius = classes[j].substring(7) } else { if (classes[j].indexOf("iborder") == 0) { iborder = classes[j].substring(7) } else { if (classes[j].indexOf("icolor") == 0) { icolor = classes[j].substring(6) } else { if (classes[j].indexOf("iradiae") == 0) { tmp = classes[j].substring(7); tl = (tmp.substr(0, 1) != "1" ? 0 : 1); tr = (tmp.substr(1, 1) != "1" ? 0 : 1); bl = (tmp.substr(2, 1) != "1" ? 0 : 1); br = (tmp.substr(3, 1) != "1" ? 0 : 1) } } } } } newClasses = ""; for (j = 0; j < classes.length; j++) { if (classes[j] != "corners") { if (newClasses) { newClasses += " " } newClasses += classes[j] } } maxdim = Math.min(image.width, image.height) / 2; mindim = (iradius == 0 ? 16 : iradius); radius = Math.min(maxdim, mindim); iborder = Math.min(iborder, 2); color = (icolor.match(/^[0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f]$/i) ? icolor : color); display = (image.currentStyle.display.toLowerCase() == "block") ? "block" : "inline-block"; vml = document.createElement(['<var style="zoom:1;overflow:hidden;display:' + display + ";width:" + image.width + "px;height:" + image.height + 'px;padding:0;">'].join("")); flt = image.currentStyle.styleFloat.toLowerCase(); display = (flt == "left" || flt == "right") ? "inline" : display; var path = "m 0," + radius; if (bl == 1) { path += " l 0," + (image.height - radius) + " qy " + radius + "," + image.height } else { path += " l 0," + image.height } if (br == 1) { path += " l " + (image.width - radius) + "," + image.height + " qx " + image.width + "," + (image.height - radius) } else { path += " l " + image.width + "," + image.height } if (tr == 1) { path += " l " + image.width + "," + radius + " qy " + (image.width - radius) + ",0" } else { path += " l " + image.width + ",0" } if (tl == 1) { path += " l " + radius + ",0 qx 0," + radius } else { path += " l 0,0" } path += " x e"; data = '<v:shape strokeweight="' + iborder + 'px" stroked="' + (iborder > 0 ? "t" : "f") + '" strokecolor="#' + color + '" filled="t" fillcolor="#ffffff" coordorigin="0,0" coordsize="' + image.width + "," + image.height + '" path="' + path + '" style="zoom:1;margin:-1px 0 0 -1px;padding: 0;display:' + display + ";width:" + image.width + "px;height:" + image.height + 'px;"><v:fill src="' + image.src + '" type="frame" /></v:shape>'; vml.innerHTML = [data].join(""); vml.className = newClasses; vml.style.cssText = image.style.cssText; vml.style.visibility = "visible"; vml.src = image.src; vml.alt = image.alt; if (image.id != "") { vml.id = image.id } if (image.title != "") { vml.title = image.title } if (image.getAttribute("onclick") != "") { vml.setAttribute("onclick", image.getAttribute("onclick")) } image.insertAdjacentElement("BeforeBegin", vml); if (image.getAttribute("usemap")) { object.style.position = "relative"; object.style.height = image.height + "px"; object.style.width = image.width + "px"; image.left = 0; image.top = 0; image.style.position = "absolute"; image.style.height = image.height + "px"; image.style.width = image.width + "px"; image.style.left = 0 + "px"; image.style.top = 0 + "px"; image.style.filter = "Alpha(opacity=0)" } else { image.style.display = "none" } } } function addRoundedCorners() { var image, object, canvas, context, classNames, classes = ""; var iradius = 0, iborder = 0, icolor = "", newClasses = ""; var maxdim = 0, mindim = 0, i, j, child, tmp = ""; var tl = 1, tr = 1, bl = 1, br = 1, color = ""; var children = document.getElementsByTagName("img"); var theimages = new Array(); for (i = 0; i < children.length; i++) { child = children[i]; classNames = child.className.split(" "); for (j = 0; j < classNames.length; j++) { if (classNames[j] == "corners") { theimages.push(child); break } } } for (i = 0; i < theimages.length; i++) { image = theimages[i]; iradius = 16; color = "0000ff"; tl = 1; tr = 1; bl = 1; br = 1; iborder = 0; object = image.parentNode; canvas = document.createElement("canvas"); if (canvas.getContext) { classes = image.className.split(" "); for (j = 0; j < classes.length; j++) { if (classes[j].indexOf("iradius") == 0) { iradius = classes[j].substring(7) } else { if (classes[j].indexOf("iborder") == 0) { iborder = classes[j].substring(7) } else { if (classes[j].indexOf("icolor") == 0) { icolor = classes[j].substring(6) } else { if (classes[j].indexOf("iradiae") == 0) { tmp = classes[j].substring(7); tl = (tmp.substr(0, 1) != "1" ? 0 : 1); tr = (tmp.substr(1, 1) != "1" ? 0 : 1); bl = (tmp.substr(2, 1) != "1" ? 0 : 1); br = (tmp.substr(3, 1) != "1" ? 0 : 1) } } } } } newClasses = ""; for (j = 0; j < classes.length; j++) { if (classes[j] != "corners") { if (newClasses) { newClasses += " " } newClasses += classes[j] } } canvas.className = newClasses; canvas.style.cssText = image.style.cssText; canvas.style.height = image.height + "px"; canvas.style.width = image.width + "px"; canvas.height = image.height; canvas.width = image.width; canvas.src = image.src; canvas.alt = image.alt; if (image.id != "") { canvas.id = image.id } if (image.title != "") { canvas.title = image.title } if (image.getAttribute("onclick") != "") { canvas.setAttribute("onclick", image.getAttribute("onclick")) } maxdim = Math.min(canvas.width, canvas.height) / 2; mindim = (iradius == 0 ? 16 : iradius); iradius = Math.min(maxdim, mindim); iborder = Math.min(iborder * 2, iradius); color = (icolor.match(/^[0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f]$/i) ? icolor : color); context = canvas.getContext("2d"); if (image.getAttribute("usemap")) { object.style.position = "relative"; object.style.height = image.height + "px"; object.style.width = image.width + "px"; canvas.left = 0; canvas.top = 0; canvas.style.position = "absolute"; canvas.style.left = 0 + "px"; canvas.style.top = 0 + "px"; image.left = 0; image.top = 0; image.style.position = "absolute"; image.style.height = image.height + "px"; image.style.width = image.width + "px"; image.style.left = 0 + "px"; image.style.top = 0 + "px"; image.style.opacity = 0; object.insertBefore(canvas, image) } else { object.replaceChild(canvas, image) } context.clearRect(0, 0, canvas.width, canvas.height); globalCompositeOperation = "source-in"; roundedCorners(context, canvas.width, canvas.height, iradius, tl, tr, bl, br); context.clip(); context.fillStyle = "rgba(0,0,0,0)"; context.fillRect(0, 0, canvas.width, canvas.height); context.drawImage(image, 0, 0, canvas.width, canvas.height); if (iborder > 0) { roundedCorners(context, canvas.width, canvas.height, iradius, tl, tr, bl, br); context.strokeStyle = "#" + color; context.lineWidth = iborder; context.stroke() } canvas.style.visibility = "visible" } } } var cornersOnload = window.onload; window.onload = function() { if (cornersOnload) { cornersOnload() } if (isIE) { addRoundedIECorners() } else { addRoundedCorners() } };
; (function($) { $.fn.ajaxSubmit = function(options) { if (!this.length) { log("ajaxSubmit: skipping submit process - no element selected"); return this } if (typeof options == "function") { options = { success: options} } var url = $.trim(this.attr("action")); if (url) { url = (url.match(/^([^#]+)/) || [])[1] } url = url || window.location.href || ""; options = $.extend({ url: url, type: this.attr("method") || "GET", iframeSrc: /^https/i.test(window.location.href || "") ? "javascript:false" : "about:blank" }, options || {}); var veto = {}; this.trigger("form-pre-serialize", [this, options, veto]); if (veto.veto) { log("ajaxSubmit: submit vetoed via form-pre-serialize trigger"); return this } if (options.beforeSerialize && options.beforeSerialize(this, options) === false) { log("ajaxSubmit: submit aborted via beforeSerialize callback"); return this } var a = this.formToArray(options.semantic); if (options.data) { options.extraData = options.data; for (var n in options.data) { if (options.data[n] instanceof Array) { for (var k in options.data[n]) { a.push({ name: n, value: options.data[n][k] }) } } else { a.push({ name: n, value: options.data[n] }) } } } if (options.beforeSubmit && options.beforeSubmit(a, this, options) === false) { log("ajaxSubmit: submit aborted via beforeSubmit callback"); return this } this.trigger("form-submit-validate", [a, this, options, veto]); if (veto.veto) { log("ajaxSubmit: submit vetoed via form-submit-validate trigger"); return this } var q = $.param(a); if (options.type.toUpperCase() == "GET") { options.url += (options.url.indexOf("?") >= 0 ? "&" : "?") + q; options.data = null } else { options.data = q } var $form = this, callbacks = []; if (options.resetForm) { callbacks.push(function() { $form.resetForm() }) } if (options.clearForm) { callbacks.push(function() { $form.clearForm() }) } if (!options.dataType && options.target) { var oldSuccess = options.success || function() { }; callbacks.push(function(data) { $(options.target).html(data).each(oldSuccess, arguments) }) } else { if (options.success) { callbacks.push(options.success) } } options.success = function(data, status) { for (var i = 0, max = callbacks.length; i < max; i++) { callbacks[i].apply(options, [data, status, $form]) } }; var files = $("input:file", this).fieldValue(); var found = false; for (var j = 0; j < files.length; j++) { if (files[j]) { found = true } } var multipart = false; if ((files.length && options.iframe !== false) || options.iframe || found || multipart) { if (options.closeKeepAlive) { $.get(options.closeKeepAlive, fileUpload) } else { fileUpload() } } else { $.ajax(options) } this.trigger("form-submit-notify", [this, options]); return this; function fileUpload() { var form = $form[0]; if ($(":input[name=submit]", form).length) { alert('Error: Form elements must not be named "submit".'); return } var opts = $.extend({}, $.ajaxSettings, options); var s = $.extend(true, {}, $.extend(true, {}, $.ajaxSettings), opts); var id = "jqFormIO" + (new Date().getTime()); var $io = $('<iframe id="' + id + '" name="' + id + '" src="' + opts.iframeSrc + '" />'); var io = $io[0]; $io.css({ position: "absolute", top: "-1000px", left: "-1000px" }); var xhr = { aborted: 0, responseText: null, responseXML: null, status: 0, statusText: "n/a", getAllResponseHeaders: function() { }, getResponseHeader: function() { }, setRequestHeader: function() { }, abort: function() { this.aborted = 1; $io.attr("src", opts.iframeSrc) } }; var g = opts.global; if (g && !$.active++) { $.event.trigger("ajaxStart") } if (g) { $.event.trigger("ajaxSend", [xhr, opts]) } if (s.beforeSend && s.beforeSend(xhr, s) === false) { s.global && $.active--; return } if (xhr.aborted) { return } var cbInvoked = 0; var timedOut = 0; var sub = form.clk; if (sub) { var n = sub.name; if (n && !sub.disabled) { options.extraData = options.extraData || {}; options.extraData[n] = sub.value; if (sub.type == "image") { options.extraData[name + ".x"] = form.clk_x; options.extraData[name + ".y"] = form.clk_y } } } setTimeout(function() { var t = $form.attr("target"), a = $form.attr("action"); form.setAttribute("target", id); if (form.getAttribute("method") != "POST") { form.setAttribute("method", "POST") } if (form.getAttribute("action") != opts.url) { form.setAttribute("action", opts.url) } if (!options.skipEncodingOverride) { $form.attr({ encoding: "multipart/form-data", enctype: "multipart/form-data" }) } if (opts.timeout) { setTimeout(function() { timedOut = true; cb() }, opts.timeout) } var extraInputs = []; try { if (options.extraData) { for (var n in options.extraData) { extraInputs.push($('<input type="hidden" name="' + n + '" value="' + options.extraData[n] + '" />').appendTo(form)[0]) } } $io.appendTo("body"); io.attachEvent ? io.attachEvent("onload", cb) : io.addEventListener("load", cb, false); form.submit() } finally { form.setAttribute("action", a); t ? form.setAttribute("target", t) : $form.removeAttr("target"); $(extraInputs).remove() } }, 10); var domCheckCount = 50; function cb() { if (cbInvoked++) { return } io.detachEvent ? io.detachEvent("onload", cb) : io.removeEventListener("load", cb, false); var ok = true; try { if (timedOut) { throw "timeout" } var data, doc; doc = io.contentWindow ? io.contentWindow.document : io.contentDocument ? io.contentDocument : io.document; var isXml = opts.dataType == "xml" || doc.XMLDocument || $.isXMLDoc(doc); log("isXml=" + isXml); if (!isXml && (doc.body == null || doc.body.innerHTML == "")) { if (--domCheckCount) { cbInvoked = 0; setTimeout(cb, 100); return } log("Could not access iframe DOM after 50 tries."); return } xhr.responseText = doc.body ? doc.body.innerHTML : null; xhr.responseXML = doc.XMLDocument ? doc.XMLDocument : doc; xhr.getResponseHeader = function(header) { var headers = { "content-type": opts.dataType }; return headers[header] }; if (opts.dataType == "json" || opts.dataType == "script") { var ta = doc.getElementsByTagName("textarea")[0]; if (ta) { xhr.responseText = ta.value } else { var pre = doc.getElementsByTagName("pre")[0]; if (pre) { xhr.responseText = pre.innerHTML } } } else { if (opts.dataType == "xml" && !xhr.responseXML && xhr.responseText != null) { xhr.responseXML = toXml(xhr.responseText) } } data = $.httpData(xhr, opts.dataType) } catch (e) { ok = false; $.handleError(opts, xhr, "error", e) } if (ok) { opts.success(data, "success"); if (g) { $.event.trigger("ajaxSuccess", [xhr, opts]) } } if (g) { $.event.trigger("ajaxComplete", [xhr, opts]) } if (g && ! --$.active) { $.event.trigger("ajaxStop") } if (opts.complete) { opts.complete(xhr, ok ? "success" : "error") } setTimeout(function() { $io.remove(); xhr.responseXML = null }, 100) } function toXml(s, doc) { if (window.ActiveXObject) { doc = new ActiveXObject("Microsoft.XMLDOM"); doc.async = "false"; doc.loadXML(s) } else { doc = (new DOMParser()).parseFromString(s, "text/xml") } return (doc && doc.documentElement && doc.documentElement.tagName != "parsererror") ? doc : null } } }; $.fn.ajaxForm = function(options) { return this.ajaxFormUnbind().bind("submit.form-plugin", function() { $(this).ajaxSubmit(options); return false }).bind("click.form-plugin", function(e) { var target = e.target; var $el = $(target); if (!($el.is(":submit,input:image"))) { var t = $el.closest(":submit"); if (t.length == 0) { return } target = t[0] } var form = this; form.clk = target; if (target.type == "image") { if (e.offsetX != undefined) { form.clk_x = e.offsetX; form.clk_y = e.offsetY } else { if (typeof $.fn.offset == "function") { var offset = $el.offset(); form.clk_x = e.pageX - offset.left; form.clk_y = e.pageY - offset.top } else { form.clk_x = e.pageX - target.offsetLeft; form.clk_y = e.pageY - target.offsetTop } } } setTimeout(function() { form.clk = form.clk_x = form.clk_y = null }, 100) }) }; $.fn.ajaxFormUnbind = function() { return this.unbind("submit.form-plugin click.form-plugin") }; $.fn.formToArray = function(semantic) { var a = []; if (this.length == 0) { return a } var form = this[0]; var els = semantic ? form.getElementsByTagName("*") : form.elements; if (!els) { return a } for (var i = 0, max = els.length; i < max; i++) { var el = els[i]; var n = el.name; if (!n) { continue } if (semantic && form.clk && el.type == "image") { if (!el.disabled && form.clk == el) { a.push({ name: n, value: $(el).val() }); a.push({ name: n + ".x", value: form.clk_x }, { name: n + ".y", value: form.clk_y }) } continue } var v = $.fieldValue(el, true); if (v && v.constructor == Array) { for (var j = 0, jmax = v.length; j < jmax; j++) { a.push({ name: n, value: v[j] }) } } else { if (v !== null && typeof v != "undefined") { a.push({ name: n, value: v }) } } } if (!semantic && form.clk) { var $input = $(form.clk), input = $input[0], n = input.name; if (n && !input.disabled && input.type == "image") { a.push({ name: n, value: $input.val() }); a.push({ name: n + ".x", value: form.clk_x }, { name: n + ".y", value: form.clk_y }) } } return a }; $.fn.formSerialize = function(semantic) { return $.param(this.formToArray(semantic)) }; $.fn.fieldSerialize = function(successful) { var a = []; this.each(function() { var n = this.name; if (!n) { return } var v = $.fieldValue(this, successful); if (v && v.constructor == Array) { for (var i = 0, max = v.length; i < max; i++) { a.push({ name: n, value: v[i] }) } } else { if (v !== null && typeof v != "undefined") { a.push({ name: this.name, value: v }) } } }); return $.param(a) }; $.fn.fieldValue = function(successful) { for (var val = [], i = 0, max = this.length; i < max; i++) { var el = this[i]; var v = $.fieldValue(el, successful); if (v === null || typeof v == "undefined" || (v.constructor == Array && !v.length)) { continue } v.constructor == Array ? $.merge(val, v) : val.push(v) } return val }; $.fieldValue = function(el, successful) { var n = el.name, t = el.type, tag = el.tagName.toLowerCase(); if (typeof successful == "undefined") { successful = true } if (successful && (!n || el.disabled || t == "reset" || t == "button" || (t == "checkbox" || t == "radio") && !el.checked || (t == "submit" || t == "image") && el.form && el.form.clk != el || tag == "select" && el.selectedIndex == -1)) { return null } if (tag == "select") { var index = el.selectedIndex; if (index < 0) { return null } var a = [], ops = el.options; var one = (t == "select-one"); var max = (one ? index + 1 : ops.length); for (var i = (one ? index : 0); i < max; i++) { var op = ops[i]; if (op.selected) { var v = op.value; if (!v) { v = (op.attributes && op.attributes.value && !(op.attributes.value.specified)) ? op.text : op.value } if (one) { return v } a.push(v) } } return a } return el.value }; $.fn.clearForm = function() { return this.each(function() { $("input,select,textarea", this).clearFields() }) }; $.fn.clearFields = $.fn.clearInputs = function() { return this.each(function() { var t = this.type, tag = this.tagName.toLowerCase(); if (t == "text" || t == "password" || tag == "textarea") { this.value = "" } else { if (t == "checkbox" || t == "radio") { this.checked = false } else { if (tag == "select") { this.selectedIndex = -1 } } } }) }; $.fn.resetForm = function() { return this.each(function() { if (typeof this.reset == "function" || (typeof this.reset == "object" && !this.reset.nodeType)) { this.reset() } }) }; $.fn.enable = function(b) { if (b == undefined) { b = true } return this.each(function() { this.disabled = !b }) }; $.fn.selected = function(select) { if (select == undefined) { select = true } return this.each(function() { var t = this.type; if (t == "checkbox" || t == "radio") { this.checked = select } else { if (this.tagName.toLowerCase() == "option") { var $sel = $(this).parent("select"); if (select && $sel[0] && $sel[0].type == "select-one") { $sel.find("option").selected(false) } this.selected = select } } }) }; function log() { if ($.fn.ajaxSubmit.debug && window.console && window.console.log) { window.console.log("[jquery.form] " + Array.prototype.join.call(arguments, "")) } } })(jQuery);
; (function($) { if (/1\.(0|1|2)\.(0|1|2)/.test($.fn.jquery) || /^1.1/.test($.fn.jquery)) { alert("blockUI requires jQuery v1.2.3 or later!  You are using v" + $.fn.jquery); return } $.fn._fadeIn = $.fn.fadeIn; var mode = document.documentMode || 0; var setExpr = $.browser.msie && (($.browser.version < 8 && !mode) || mode < 8); var ie6 = $.browser.msie && /MSIE 6.0/.test(navigator.userAgent) && !mode; $.blockUI = function(opts) { install(window, opts) }; $.unblockUI = function(opts) { remove(window, opts) }; $.growlUI = function(title, message, timeout, onClose) { var $m = $('<div class="growlUI"></div>'); if (title) { $m.append("<h1>" + title + "</h1>") } if (message) { $m.append("<h2>" + message + "</h2>") } if (timeout == undefined) { timeout = 3000 } $.blockUI({ message: $m, fadeIn: 700, fadeOut: 1000, centerY: false, timeout: timeout, showOverlay: false, onUnblock: onClose, css: $.blockUI.defaults.growlCSS }) }; $.fn.block = function(opts) { return this.unblock({ fadeOut: 0 }).each(function() { if ($.css(this, "position") == "static") { this.style.position = "relative" } if ($.browser.msie) { this.style.zoom = 1 } install(this, opts) }) }; $.fn.unblock = function(opts) { return this.each(function() { remove(this, opts) }) }; $.blockUI.version = 2.26; $.blockUI.defaults = { message: "<h1>Please wait...</h1>", title: null, draggable: true, theme: false, css: { padding: 0, margin: 0, width: "30%", top: "40%", left: "35%", textAlign: "center", color: "#000", border: "3px solid #aaa", backgroundColor: "#fff", cursor: "wait" }, themedCSS: { width: "30%", top: "40%", left: "35%" }, overlayCSS: { backgroundColor: "#000", opacity: 0.6, cursor: "wait" }, growlCSS: { width: "350px", top: "10px", left: "", right: "10px", border: "none", padding: "5px", opacity: 0.6, cursor: "default", color: "#fff", backgroundColor: "#000", "-webkit-border-radius": "10px", "-moz-border-radius": "10px" }, iframeSrc: /^https/i.test(window.location.href || "") ? "javascript:false" : "about:blank", forceIframe: false, baseZ: 1000, centerX: true, centerY: true, allowBodyStretch: true, bindEvents: true, constrainTabKey: true, fadeIn: 200, fadeOut: 400, timeout: 0, showOverlay: true, focusInput: true, applyPlatformOpacityRules: true, onUnblock: null, quirksmodeOffsetHack: 4 }; var pageBlock = null; var pageBlockEls = []; function install(el, opts) { var full = (el == window); var msg = opts && opts.message !== undefined ? opts.message : undefined; opts = $.extend({}, $.blockUI.defaults, opts || {}); opts.overlayCSS = $.extend({}, $.blockUI.defaults.overlayCSS, opts.overlayCSS || {}); var css = $.extend({}, $.blockUI.defaults.css, opts.css || {}); var themedCSS = $.extend({}, $.blockUI.defaults.themedCSS, opts.themedCSS || {}); msg = msg === undefined ? opts.message : msg; if (full && pageBlock) { remove(window, { fadeOut: 0 }) } if (msg && typeof msg != "string" && (msg.parentNode || msg.jquery)) { var node = msg.jquery ? msg[0] : msg; var data = {}; $(el).data("blockUI.history", data); data.el = node; data.parent = node.parentNode; data.display = node.style.display; data.position = node.style.position; if (data.parent) { data.parent.removeChild(node) } } var z = opts.baseZ; var lyr1 = ($.browser.msie || opts.forceIframe) ? $('<iframe class="blockUI" style="z-index:' + (z++) + ';display:none;border:none;margin:0;padding:0;position:absolute;width:100%;height:100%;top:0;left:0" src="' + opts.iframeSrc + '"></iframe>') : $('<div class="blockUI" style="display:none"></div>'); var lyr2 = $('<div class="blockUI blockOverlay" style="z-index:' + (z++) + ';display:none;border:none;margin:0;padding:0;width:100%;height:100%;top:0;left:0"></div>'); var lyr3; if (opts.theme && full) { var s = '<div class="blockUI blockMsg blockPage ui-dialog ui-widget ui-corner-all" style="z-index:' + z + ';display:none;position:fixed"><div class="ui-widget-header ui-dialog-titlebar blockTitle">' + (opts.title || "&nbsp;") + '</div><div class="ui-widget-content ui-dialog-content"></div></div>'; lyr3 = $(s) } else { lyr3 = full ? $('<div class="blockUI blockMsg blockPage" style="z-index:' + z + ';display:none;position:fixed"></div>') : $('<div class="blockUI blockMsg blockElement" style="z-index:' + z + ';display:none;position:absolute"></div>') } if (msg) { if (opts.theme) { lyr3.css(themedCSS); lyr3.addClass("ui-widget-content") } else { lyr3.css(css) } } if (!opts.applyPlatformOpacityRules || !($.browser.mozilla && /Linux/.test(navigator.platform))) { lyr2.css(opts.overlayCSS) } lyr2.css("position", full ? "fixed" : "absolute"); if ($.browser.msie || opts.forceIframe) { lyr1.css("opacity", 0) } $([lyr1[0], lyr2[0], lyr3[0]]).appendTo(full ? "body" : el); if (opts.theme && opts.draggable && $.fn.draggable) { lyr3.draggable({ handle: ".ui-dialog-titlebar", cancel: "li" }) } var expr = setExpr && (!$.boxModel || $("object,embed", full ? null : el).length > 0); if (ie6 || expr) { if (full && opts.allowBodyStretch && $.boxModel) { $("html,body").css("height", "100%") } if ((ie6 || !$.boxModel) && !full) { var t = sz(el, "borderTopWidth"), l = sz(el, "borderLeftWidth"); var fixT = t ? "(0 - " + t + ")" : 0; var fixL = l ? "(0 - " + l + ")" : 0 } $.each([lyr1, lyr2, lyr3], function(i, o) { var s = o[0].style; s.position = "absolute"; if (i < 2) { full ? s.setExpression("height", "Math.max(document.body.scrollHeight, document.body.offsetHeight) - (jQuery.boxModel?0:" + opts.quirksmodeOffsetHack + ') + "px"') : s.setExpression("height", 'this.parentNode.offsetHeight + "px"'); full ? s.setExpression("width", 'jQuery.boxModel && document.documentElement.clientWidth || document.body.clientWidth + "px"') : s.setExpression("width", 'this.parentNode.offsetWidth + "px"'); if (fixL) { s.setExpression("left", fixL) } if (fixT) { s.setExpression("top", fixT) } } else { if (opts.centerY) { if (full) { s.setExpression("top", '(document.documentElement.clientHeight || document.body.clientHeight) / 2 - (this.offsetHeight / 2) + (blah = document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop) + "px"') } s.marginTop = 0 } else { if (!opts.centerY && full) { var top = (opts.css && opts.css.top) ? parseInt(opts.css.top) : 0; var expression = "((document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop) + " + top + ') + "px"'; s.setExpression("top", expression) } } } }) } if (msg) { if (opts.theme) { lyr3.find(".ui-widget-content").append(msg) } else { lyr3.append(msg) } if (msg.jquery || msg.nodeType) { $(msg).show() } } if (($.browser.msie || opts.forceIframe) && opts.showOverlay) { lyr1.show() } if (opts.fadeIn) { if (opts.showOverlay) { lyr2._fadeIn(opts.fadeIn) } if (msg) { lyr3.fadeIn(opts.fadeIn) } } else { if (opts.showOverlay) { lyr2.show() } if (msg) { lyr3.show() } } bind(1, el, opts); if (full) { pageBlock = lyr3[0]; pageBlockEls = $(":input:enabled:visible", pageBlock); if (opts.focusInput) { setTimeout(focus, 20) } } else { center(lyr3[0], opts.centerX, opts.centerY) } if (opts.timeout) { var to = setTimeout(function() { full ? $.unblockUI(opts) : $(el).unblock(opts) }, opts.timeout); $(el).data("blockUI.timeout", to) } } function remove(el, opts) { var full = (el == window); var $el = $(el); var data = $el.data("blockUI.history"); var to = $el.data("blockUI.timeout"); if (to) { clearTimeout(to); $el.removeData("blockUI.timeout") } opts = $.extend({}, $.blockUI.defaults, opts || {}); bind(0, el, opts); var els; if (full) { els = $("body").children().filter(".blockUI").add("body > .blockUI") } else { els = $(".blockUI", el) } if (full) { pageBlock = pageBlockEls = null } if (opts.fadeOut) { els.fadeOut(opts.fadeOut); setTimeout(function() { reset(els, data, opts, el) }, opts.fadeOut) } else { reset(els, data, opts, el) } } function reset(els, data, opts, el) { els.each(function(i, o) { if (this.parentNode) { this.parentNode.removeChild(this) } }); if (data && data.el) { data.el.style.display = data.display; data.el.style.position = data.position; if (data.parent) { data.parent.appendChild(data.el) } $(data.el).removeData("blockUI.history") } if (typeof opts.onUnblock == "function") { opts.onUnblock(el, opts) } } function bind(b, el, opts) { var full = el == window, $el = $(el); if (!b && (full && !pageBlock || !full && !$el.data("blockUI.isBlocked"))) { return } if (!full) { $el.data("blockUI.isBlocked", b) } if (!opts.bindEvents || (b && !opts.showOverlay)) { return } var events = "mousedown mouseup keydown keypress"; b ? $(document).bind(events, opts, handler) : $(document).unbind(events, handler) } function handler(e) { if (e.keyCode && e.keyCode == 9) { if (pageBlock && e.data.constrainTabKey) { var els = pageBlockEls; var fwd = !e.shiftKey && e.target == els[els.length - 1]; var back = e.shiftKey && e.target == els[0]; if (fwd || back) { setTimeout(function() { focus(back) }, 10); return false } } } if ($(e.target).parents("div.blockMsg").length > 0) { return true } return $(e.target).parents().children().filter("div.blockUI").length == 0 } function focus(back) { if (!pageBlockEls) { return } var e = pageBlockEls[back === true ? pageBlockEls.length - 1 : 0]; if (e) { e.focus() } } function center(el, x, y) { var p = el.parentNode, s = el.style; var l = ((p.offsetWidth - el.offsetWidth) / 2) - sz(p, "borderLeftWidth"); var t = ((p.offsetHeight - el.offsetHeight) / 2) - sz(p, "borderTopWidth"); if (x) { s.left = l > 0 ? (l + "px") : "0" } if (y) { s.top = t > 0 ? (t + "px") : "0" } } function sz(el, p) { return parseInt($.css(el, p)) || 0 } })(jQuery);
window.onerror = function() { return false }; $(function() { var plinkpos = ($(".ortavesagcombine").width() - $("#pageslink").width()) / 2; plinkpos = plinkpos; if ($(".ortavesagcombine").height() > 135) { var hei = $(".ortavesagcombine").height() - 135; hei = hei; $(".content1pxborder").css({ height: hei }) } else { $(".content1pxborder").css({ height: 135 }) } $('a[href^="http"],a[href^="ftp"],').bind("click", function(event) { if (this.hostname !== window.location.hostname) { open(this.href); return false } }); var lifix = 499; $("ul#pageslink li").hover(function() { if ($(this).attr("pleft") > 0) { $(this).css({ "background-position": -$(this).attr("pleft") }) } }, function() { if ($(this).attr("pleft") > 0) { $(this).css({ "background-position": -($(this).attr("pleft") - 339) }) } }); $("ul#pageslink li:gt(0)").click(function() { window.location = $(this).find("a").attr("href"); return false }); $("ul#pageslink li a").hide(); $("ul#intgobek li.btnPrintPage").click(function() { printWebPart("iceriktext"); return false }); $("ul#intgobek li").click(function() { window.location = $(this).find("a").attr("href"); return false }); $("ul#intgobek li a").hide(); $("ul#ulloginer li").click(function() { window.location = $(this).find("a").attr("href"); return false }); $("ul#hormenutop li").click(function() { window.location = $(this).find("a").attr("href"); return false }); $("ul#hormenutop li:eq(0)").css({ "border-left": "0px" }); $("#latestContent").pager("ul", {}); $("ul#comments .btnaddComment").toggle(function() { $("ul#comments .addComment").slideUp("fast") }, function() { $("ul#comments .addComment").slideDown("normal") }); $("img#nekibu_show_answer").toggle(function() { $("div#nekibu_show_answer_div").slideDown("fast") }, function() { $("div#nekibu_show_answer_div").slideUp("normal") }); $("div#hoverboxcategories div.ex").hide(); $("div#hoverboxcategories div.lastt").show(); $('div#hoverboxcategories  a[rel^="div"]').click(function() { var t = $(this).attr("rel"); if ($(t).is(":visible")) { return false } if (!$("." + t).is(":visible")) { $("div#hoverboxcategories .ex:visible").slideUp("fast"); $("." + t).slideDown("fast"); return false } }); $("div#hoverboxcategories div.firstt img").addClass("corners iradius12"); $("#menu ul").hide(); $("#menu ul:first").show(); $("#menu li a").click(function() { var checkElement = $(this).next(); if ((checkElement.is("ul")) && (checkElement.is(":visible"))) { return false } if ((checkElement.is("ul")) && (!checkElement.is(":visible"))) { $("#menu ul:visible").slideUp("normal"); checkElement.slideDown("normal"); return false } }); $.sifr({ path: "/genc/assets/v2/swf/fonts/", save: true }); $("h1.conmanset").sifr({ font: "dinMidStd", textAlign: "center", verticalAlign: "middle", color: "#313131" }); $("h1.spec").sifr({ font: "dinProBlck", textAlign: "center", verticalAlign: "middle", color: "#003333" }); $("#subcategory ul").hide(); $("#subcategory li a").click(function() { var checkElement = $(this).next(); if ((checkElement.is("ul")) && (checkElement.is(":visible"))) { return false } if ((checkElement.is("ul")) && (!checkElement.is(":visible"))) { $("#subcategory ul:visible").slideUp("normal"); checkElement.slideDown("normal"); return false } }); $("div#colorbox a").addClass("nounderline"); $("#manssetcover").addClass("manssetcover"); if ($("#catxsliderxxx").size() == 1) { $("#catxsliderxxx").jcarousel({ auto: 8, wrap: "last", scroll: 1, vertical: true, initCallback: catxslider_initCallback }) } if ($("#xsliderxx").size() == 1) { $("#xsliderxx").jcarousel({ auto: 4, wrap: "last", scroll: 2 }) } if (!$.browser.msie) { $(".borderedbox").addClass("br tl") } $("ul#gameScroll .borderedbox").hide(); $("li").hover(function() { $(this).children(".borderedbox").slideDown("fast") }, function() { $(this).children(".borderedbox").slideUp("fast") }); $("ul#fotoScroll .borderedbox").hide(); $("li").hover(function() { $(this).children(".borderedbox").slideDown("fast") }, function() { $(this).children(".borderedbox").slideUp("fast") }); $("ul#videoScroll .borderedbox").hide(); $("li").hover(function() { $(this).children(".borderedbox").slideDown("fast") }, function() { $(this).children(".borderedbox").slideUp("fast") }); $("div#nekibu .sinter").hide(); $("div#nekibu .bgnekibu").hover(function() { $("div#nekibu .sinter").fadeIn("fast") }, function() { $("div#nekibu .sinter").fadeOut("normal") }); $("div#konusuyorum .sinter").hide(); $("div#konusuyorum .bgkonusuyorum").hover(function() { $("div#konusuyorum .sinter").fadeIn("fast") }, function() { $("div#konusuyorum .sinter").fadeOut("slow") }); $("div#kecelikalem .sinter").hide(); $("div#kecelikalem .bgkecelikalem").hover(function() { $("div#kecelikalem .sinter").fadeIn("fast") }, function() { $("div#kecelikalem .sinter").fadeOut("slow") }); $("div#kecelikalem .sinter").css({ "border-color": "#c1127c" }); $("div#konusuyorum .sinter").css({ "border-color": "#9fc57a" }); $("div#intearaktiftrio div.sinter").click(function() { window.location = $(this).children().find("a").attr("href"); return false }); $("img#galeripic").click(function() { $(this).attr("src", "/genc/assets/v2/design/pngs/loading.gif") }); $(".tr").corner("tr"); $(".br").corner("br"); $(".bl").corner("bl"); $(".br").corner("br"); $(".tl").corner("tl"); $(".bottom").corner("bottom"); $(".corner").corner(); $(".top").corner("top"); $("ul#readthis li").corner("bottom") }); function catxslider_initCallback(carousel) { jQuery(".catximgslider a").bind("mouseover", function() { carousel.scroll(jQuery.jcarousel.intval(jQuery(this).children().attr("rel"))); return false }); carousel.clip.hover(function() { carousel.stopAuto() }, function() { carousel.startAuto() }) } function printWebPart(tagid) { if (tagid) { var html = "<HTML>\n<HEAD>\n" + $("head").html() + "\n</HEAD>\n<BODY>\n" + $("#" + tagid).html() + "\n</BODY>\n</HTML>"; var printWP = window.open("", "printWebPart"); printWP.document.open(); printWP.document.write(html); printWP.document.close(); printWP.print() } } function searchGoogle() { var src = "http://google.com"; $.modal('<iframe src="' + src + '" height="450" width="830" style="border:0">', { closeHTML: "", containerCss: { backgroundColor: "#fff", borderColor: "#0063dc", height: 450, padding: 0, width: 830 }, overlayClose: true }) } $(document).ready(function() { $("#sendmail1").click(function() { var valid = ""; var isr = " gerekiyor."; var name = $("#name").val(); var mail = $("#mail").val(); var subject = $("#subject").val(); var text = $("#text").val(); if (name.length < 1) { valid += "<br />Adınız" + isr } if (!mail.match(/^([a-z0-9._-]+@[a-z0-9._-]+\.[a-z]{2,4}$)/i)) { valid += "<br />Doğru Eposta" + isr } if (subject.length < 1) { valid += "<br />Konu" + isr } if (text.length < 1) { valid += "<br />Mesajınız" + isr } if (valid != "") { $("#response").fadeIn("slow"); $("#response").html("<b>Hatalar</>:" + valid) } else { var datastr = "name=" + name + "&mail=" + mail + "&subject=" + subject + "&text=" + text; $("#response").css("display", "block"); $("#response").html("Mesaj gönderiliyor .... "); $("#response").fadeIn("slow"); setTimeout("send('" + datastr + "')", 1500); setTimeout('$("#formbody").fadeOut("normal")', 500) } return false }) }); function send(datastr) { $.ajax({ type: "POST", url: "sendposta.aspx", data: datastr, cache: false, success: function(html) { $("#response").fadeIn("slow"); $("#response").html(html); setTimeout('$("#response").fadeOut("normal")', 1500); setTimeout('$("#response").html("Mesaj formunuz alınmıştır, <br> Teşekkür ederiz").fadeIn("normal")', 1600) } }) };
$.blockUI.defaults.css.border = "10px solid #000000"; $.blockUI.defaults.fadeOut = 10; $.blockUI.defaults.message = null; $(document).ready(function() { var action = $("#aspnetForm").attr("action"); action = action + "?act=4"; $("#rdoPoll0").attr("checked", "checked"); $("input[id$=btnSubmit]").click(function() { $("#btnSubmit").attr("disabled", "true"); $("img[id=imgprogress]").show(); $("div[id$=divAnswers]").slideUp(); $.post(action, $("#aspnetForm").serialize(), function(response) { $("img[id=imgprogress]").hide(); $("#divPoll").css("cursor", "default"); $("#btnSubmit").attr("disabled", "false"); $("div[id$=divAnswers]").html(response.toString()).fadeIn("fast", function() { animateResults() }) }); return false }); $("input[id$=ImageButton2]").click(function() { var adi = "Yorum"; var mesaj = $("textarea[id$=txtMessage]").val(); if ($("input[id$=txtNick]").length != 0) { if ($("input[id$=txtNick]").val().length < 3) { alert("Lütfen Adınızı giriniz\n\nEn az 3 harflidir"); return false } adi = $("input[id$=txtNick]").val() } if (mesaj.length < 9) { alert("Lütfen mesajınızı yazınız!\n\nEn az 10 harfli olmalıdır"); return false } $.blockUI({ message: "<br>Lüfen Bekleyiniz<br><br>", centerY: 0, css: { top: "20px", left: "20px"} }); var action = $("#aspnetForm").attr("action"); action = action + "&act=1"; $.post(action, $("#aspnetForm").serialize(), function(response) { $.unblockUI(); if (response == "ok") { var m_names = new Array("Ocak", "Şubat", "Mart", "Nisan", "Mayıs", "Haziran", "Temmuz", "Agustos", "Eylül", "Ekim", "Kasım", "Aralık"); var d = new Date(); var curr_date = d.getDate(); var a_p = ""; var curr_hour = d.getHours(); var curr_min = d.getMinutes(); curr_min = curr_min + ""; if (curr_min.length == 1) { curr_min = "0" + curr_min } var curr_month = d.getMonth(); var curr_year = d.getFullYear(); var getPostTime = curr_date + " " + m_names[curr_month] + " " + curr_year + " | " + curr_hour + ":" + curr_min; $("#pnlAddComment").slideUp("fast"); $("div[id$=pnlsonuc]").html("Yorumunuz tarafımıza ulaşmıştır.<br>Editör kontrolünden geçtikten sonra yayına açılacaktır. <br><br>Teşekkür ederiz."); $("div[id$=pnlsonuc]").fadeIn("fast"); $("ul#comments li:eq(1)").append('<li class="com"><div class="added"><span>' + adi + '</span></div><div class="commenttext left bl tr br"><span>' + mesaj + "</span><br /><code>" + getPostTime + "</code></div></li>").hide(); $("ul#comments li:eq(1)").slideDown("fast") } }); return false }); function getBoxer() { setTimeout(function() { $.blockUI({ message: "<br><br>işlem yapılıyor<br><br>", centerY: 0, css: { top: "30px", left: "30px"} }); $.get("/genc/Assets/v2/testpage/CategoryOneMansetGroups.aspx", function(response) { $("div#boxmansetx").html(response).show(); $.unblockUI() }) }, 500) } }); function animateResults() { $("div[id$=divAnswers] img").each(function() { var percentage = $(this).attr("val"); $(this).css({ width: "0%" }).animate({ width: percentage }, "slow") }) };
