﻿/*
* jquery.tools 1.0.2 - The missing UI library
* [tools.tabs-1.0.1, jquery.scrollable 1.0.5]
* Copyright (c) 2009 Tero Piirainen
* http://flowplayer.org/tools/
* Dual licensed under MIT and GPL 2+ licenses
* http://www.opensource.org/licenses
* Build: Fri Jun 12 12:42:00 GMT+00:00 2009
* NOTE: THE TABS SCRIPT IS EDITED BY HLYNUR T. TO FIX AN ISSUE WITH THE ONCLICK FUNCTION NOT FIRING AT THE RIGHT TIME AND TO CHANGE THE WAY CLASSES ARE ADDED TO SELECTED TABS (ON THE LI NOT JUST A)
*/
(function($) { $.tools = $.tools || { version: {} }; $.tools.version.tabs = '1.0.1'; $.tools.addTabEffect = function(name, fn) { effects[name] = fn; }; var effects = { 'default': function(i) { this.getPanes().hide().eq(i).show(); }, fade: function(i) { this.getPanes().hide().eq(i).fadeIn(this.getConf().fadeInSpeed); }, slide: function(i) { this.getCurrentPane().slideUp("fast"); this.getPanes().eq(i).slideDown(); }, horizontal: function(i) { if (!$._hW) { $._hW = this.getPanes().eq(0).width(); } this.getCurrentPane().animate({ width: 0 }, function() { $(this).hide(); }); this.getPanes().eq(i).animate({ width: $._hW }, function() { $(this).show(); }); } }; function Tabs(tabs, panes, opts) { var self = this; var current; function bind(name, fn) { $(self).bind(name, function(e, args) { if (fn && fn.call(this, args.index) === false && args) { args.proceed = false; } }); return self; } $.each(opts, function(name, fn) { if ($.isFunction(fn)) { bind(name, fn); } }); $.extend(this, { click: function(i) { if (i === current) { return self; } var pane = self.getCurrentPane(); var tab = tabs.eq(i); if (typeof i == 'string') { tab = tabs.filter("[href=" + i + "]"); i = tabs.index(tab); } if (!tab.length) { if (current >= 0) { return self; } i = opts.initialIndex; tab = tabs.eq(i); } var args = { index: i, proceed: true }; $(self).triggerHandler("onBeforeClick", args); if (!args.proceed) { return self; } effects[opts.effect].call(self, i); current = i; $(self).triggerHandler("onClick", args); tabs.removeClass(opts.current).parent().removeClass(opts.current); tab.addClass(opts.current).parent().addClass(opts.current); return self; }, getConf: function() { return opts; }, getTabs: function() { return tabs; }, getPanes: function() { return panes; }, getCurrentPane: function() { return panes.eq(current); }, getCurrentTab: function() { return tabs.eq(current); }, getIndex: function() { return current; }, next: function() { return self.click(current + 1); }, prev: function() { return self.click(current - 1); }, onBeforeClick: function(fn) { return bind("onBeforeClick", fn); }, onClick: function(fn) { return bind("onClick", fn); } }); tabs.each(function(i) { $(this).bind(opts.event, function(e) { self.click(i); if (!opts.history) { return e.preventDefault(); } }); }); if (location.hash) { self.click(location.hash); } else { self.click(opts.initialIndex); } if (opts.history) { tabs.history(function(evt, hash) { self.click(hash || 0); }, location.hash); } panes.find("a[href^=#]").click(function() { self.click($(this).attr("href")); }); } $.fn.tabs = function(query, arg) { var el = this.eq(typeof conf == 'number' ? conf : 0).data("tabs"); if (el) { return el; } var opts = { tabs: 'a', current: 'current', onBeforeClick: null, onClick: null, effect: 'default', history: false, initialIndex: 0, event: 'click', api: false }; if ($.isFunction(arg)) { arg = { onBeforeClick: arg }; } $.extend(opts, arg); this.each(function() { var els = $(this).find(opts.tabs); if (!els.length) { els = $(this).children(); } var panes = query.jquery ? query : $(query); el = new Tabs(els, panes, opts); $(this).data("tabs", el); }); return opts.api ? el : this; }; })(jQuery); (function($) { var hash, iframe; $.prototype.history = function(fn, initHash) { var el = this; if ($.browser.msie && /MSIE 6\.0/i.test(window.navigator.userAgent) && !/MSIE 7\.0/i.test(window.navigator.userAgent)) { if (!iframe) { iframe = $("<iframe />").hide().get(0); $("body").append(iframe); setInterval(function() { var idoc = iframe.contentWindow.document; var h = idoc.location.hash; if (hash !== h) { $.event.trigger("hash", h); hash = h; location.hash = h; } }, 50); } el.bind("click.hash", function(e) { var doc = iframe.contentWindow.document; doc.open().close(); doc.location.hash = $(this).attr("href"); }); if (initHash && el.filter("[href=" + initHash + "]").length) { el.filter("[href=" + initHash + "]").triggerHandler("click.hash"); } else { el.eq(0).triggerHandler("click.hash"); } } else { setInterval(function() { var h = location.hash; if (el.filter("[href*=" + h + "]").length && h !== hash) { hash = h; $.event.trigger("hash", h); } }, 50); } $(window).bind("hash", fn); return this; }; })(jQuery);
/*
* jQuery SWFObject Plugin v1.0.3 <http://jquery.thewikies.com/swfobject/>
*  Copyright (c) 2008 Jonathan Neal
*  This software is released under the MIT License <http://www.opensource.org/licenses/mit-license.php>
*  This software is released under the GPL License <http://www.opensource.org/licenses/gpl-2.0.php>
*/
(function(A) { A.flashPlayerVersion = function() { var D, B = null, I = false, H = "ShockwaveFlash.ShockwaveFlash"; if (!(D = navigator.plugins["Shockwave Flash"])) { try { B = new ActiveXObject(H + ".7") } catch (G) { try { B = new ActiveXObject(H + ".6"); D = [6, 0, 21]; B.AllowScriptAccess = "always" } catch (F) { if (D && D[0] === 6) { I = true } } if (!I) { try { B = new ActiveXObject(H) } catch (E) { D = "X 0,0,0" } } } if (!I && B) { try { D = B.GetVariable("$version") } catch (C) { } } } else { D = D.description } D = D.match(/^[A-Za-z\s]*?(\d+)(\.|,)(\d+)(\s+r|,)(\d+)/); return [D[1] * 1, D[3] * 1, D[5] * 1] } (); A.flashExpressInstaller = "http://www.eskill.is/library/1426/filename/expressInstall.swf"; A.hasFlashPlayer = (A.flashPlayerVersion[0] !== 0); A.hasFlashPlayerVersion = function(C) { var B = A.flashPlayerVersion; C = (/string|integer/.test(typeof C)) ? C.toString().split(".") : C; return (C) ? (B[0] >= (C.major || C[0] || B[0]) && B[1] >= (C.minor || C[1] || B[1]) && B[2] >= (C.release || C[2] || B[2])) : (B[0] !== 0) }; A.flash = function(M) { if (!A.hasFlashPlayer) { return false } var C = M.swf || "", K = M.params || {}, E = document.createElement("body"), B, L, H, D, J, I, G, F; M.height = M.height || 180; M.width = M.width || 320; if (M.hasVersion && !A.hasFlashPlayerVersion(M.hasVersion)) { A.extend(M, { id: "SWFObjectExprInst", height: Math.max(M.height, 137), width: Math.max(M.width, 214) }); C = M.expressInstaller || A.flashExpressInstaller; K = { flashvars: { MMredirectURL: window.location.href, MMplayerType: (A.browser.msie && A.browser.win) ? "ActiveX" : "PlugIn", MMdoctitle: document.title.slice(0, 47) + " - Flash Player Installation"}} } if (M.flashvars && typeof K === "object") { A.extend(K, { flashvars: M.flashvars }) } for (J in (I = ["swf", "expressInstall", "hasVersion", "params", "flashvars"])) { delete M[I[J]] } B = []; for (J in M) { if (typeof M[J] === "object") { L = []; for (I in M[J]) { L.push(I.replace(/([A-Z])/, "-$1").toLowerCase() + ":" + M[J][I] + ";") } M[J] = L.join("") } B.push(J + '="' + M[J] + '"') } M = B.join(" "); if (typeof K === "object") { B = []; for (J in K) { if (typeof K[J] === "object") { L = []; for (I in K[J]) { if (typeof K[J][I] === "object") { H = []; for (G in K[J][I]) { if (typeof K[J][I][G] === "object") { D = []; for (F in K[J][I][G]) { D.push(F.replace(/([A-Z])/, "-$1").toLowerCase() + ":" + K[J][I][G][F] + ";") } K[J][I][G] = D.join("") } H.push(G + "{" + K[J][I][G] + "}") } K[J][I] = H.join("") } L.push(window.escape(I) + "=" + window.escape(K[J][I])) } K[J] = L.join("&amp;") } B.push('<PARAM NAME="' + J + '" VALUE="' + K[J] + '">') } K = B.join("") } if (!(/style=/.test(M))) { M += ' style="vertical-align:text-top;"' } if (!(/style=(.*?)vertical-align/.test(M))) { M = M.replace(/style="/, 'style="vertical-align:text-top;') } if (A.browser.msie) { M += ' classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"'; K = '<PARAM NAME="movie" VALUE="' + C + '">' + K } else { M += ' type="application/x-shockwave-flash" data="' + C + '"' } E.innerHTML = "<OBJECT " + M + ">" + K + "</OBJECT>"; return A(E.firstChild) }; A.fn.flash = function(C) { if (!A.hasFlashPlayer) { return this } var B = 0, D; while ((D = this.eq(B++))[0]) { D.html(A.flash(A.extend({}, C))); if (D[0].firstChild.getAttribute("id") === "SWFObjectExprInst") { B = this.length } } return this } } (jQuery));
/*
* Equal Heights Plugin Version 1.0, Copyright (c) 2008 Rob Glazebrook (cssnewbie.com) http://www.cssnewbie.com/equalheights-jquery-plugin/
* Usage: $(object).equalHeights([minHeight], [maxHeight]);
*/
(function($) { $.fn.equalHeights = function(minHeight, maxHeight) {	tallest = (minHeight) ? minHeight : 0;this.each(function(){	if ($(this).height() > tallest)	{tallest = $(this).height();}});if ((maxHeight) && tallest > maxHeight) tallest = maxHeight;return this.each(function()	{$(this).height(tallest);});}})(jQuery);
/*
* jCarousel - Riding carousels with jQuery http://sorgalla.com/jcarousel/
* Copyright (c) 2006 Jan Sorgalla (http://sorgalla.com)
* Dual licensed under the MIT (MIT-LICENSE.txt)
* and GPL (GPL-LICENSE.txt) licenses.
*/
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($){$.1v.C=9(o){z 4.1b(9(){3p r(4,o)})};8 q={Z:F,25:1,21:1,u:7,1c:3,15:7,1K:\'2X\',2c:\'2Q\',1q:0,B:7,1j:7,1G:7,2F:7,2B:7,2z:7,2x:7,2v:7,2s:7,2p:7,1S:\'<P></P>\',1Q:\'<P></P>\',2m:\'2l\',2k:\'2l\',1O:7,1L:7};$.C=9(e,o){4.5=$.16({},q,o||{});4.Q=F;4.D=7;4.H=7;4.t=7;4.U=7;4.R=7;4.N=!4.5.Z?\'1H\':\'26\';4.E=!4.5.Z?\'24\':\'23\';8 a=\'\',1e=e.K.1e(\' \');1r(8 i=0;i<1e.I;i++){6(1e[i].2y(\'C-2w\')!=-1){$(e).1E(1e[i]);8 a=1e[i];1p}}6(e.2t==\'3o\'||e.2t==\'3n\'){4.t=$(e);4.D=4.t.19();6(4.D.1o(\'C-H\')){6(!4.D.19().1o(\'C-D\'))4.D=4.D.B(\'<P></P>\');4.D=4.D.19()}10 6(!4.D.1o(\'C-D\'))4.D=4.t.B(\'<P></P>\').19()}10{4.D=$(e);4.t=$(e).3h(\'>2o,>2n,P>2o,P>2n\')}6(a!=\'\'&&4.D.19()[0].K.2y(\'C-2w\')==-1)4.D.B(\'<P 3g=" \'+a+\'"></P>\');4.H=4.t.19();6(!4.H.I||!4.H.1o(\'C-H\'))4.H=4.t.B(\'<P></P>\').19();4.R=$(\'.C-11\',4.D);6(4.R.u()==0&&4.5.1Q!=7)4.R=4.H.1z(4.5.1Q).11();4.R.V(4.K(\'C-11\'));4.U=$(\'.C-17\',4.D);6(4.U.u()==0&&4.5.1S!=7)4.U=4.H.1z(4.5.1S).11();4.U.V(4.K(\'C-17\'));4.H.V(4.K(\'C-H\'));4.t.V(4.K(\'C-t\'));4.D.V(4.K(\'C-D\'));8 b=4.5.15!=7?1k.1P(4.1m()/4.5.15):7;8 c=4.t.32(\'1F\');8 d=4;6(c.u()>0){8 f=0,i=4.5.21;c.1b(9(){d.1I(4,i++);f+=d.S(4,b)});4.t.y(4.N,f+\'T\');6(!o||o.u===J)4.5.u=c.u()}4.D.y(\'1y\',\'1A\');4.U.y(\'1y\',\'1A\');4.R.y(\'1y\',\'1A\');4.2G=9(){d.17()};4.2b=9(){d.11()};4.1U=9(){d.2q()};6(4.5.1j!=7)4.5.1j(4,\'2a\');6($.2A.28){4.1f(F,F);$(27).1u(\'2I\',9(){d.1t()})}10 4.1t()};8 r=$.C;r.1v=r.2H={C:\'0.2.3\'};r.1v.16=r.16=$.16;r.1v.16({1t:9(){4.A=7;4.G=7;4.X=7;4.13=7;4.14=F;4.1d=7;4.O=7;4.W=F;6(4.Q)z;4.t.y(4.E,4.1s(4.5.21)+\'T\');8 p=4.1s(4.5.25);4.X=4.13=7;4.1i(p,F);$(27).22(\'2E\',4.1U).1u(\'2E\',4.1U)},2D:9(){4.t.2C();4.t.y(4.E,\'3u\');4.t.y(4.N,\'3t\');6(4.5.1j!=7)4.5.1j(4,\'2D\');4.1t()},2q:9(){6(4.O!=7&&4.W)4.t.y(4.E,r.M(4.t.y(4.E))+4.O);4.O=7;4.W=F;6(4.5.1G!=7)4.5.1G(4);6(4.5.15!=7){8 a=4;8 b=1k.1P(4.1m()/4.5.15),N=0,E=0;$(\'1F\',4.t).1b(9(i){N+=a.S(4,b);6(i+1<a.A)E=N});4.t.y(4.N,N+\'T\');4.t.y(4.E,-E+\'T\')}4.1c(4.A,F)},3s:9(){4.Q=1h;4.1f()},3r:9(){4.Q=F;4.1f()},u:9(s){6(s!=J){4.5.u=s;6(!4.Q)4.1f()}z 4.5.u},3q:9(i,a){6(a==J||!a)a=i;6(4.5.u!==7&&a>4.5.u)a=4.5.u;1r(8 j=i;j<=a;j++){8 e=4.L(j);6(!e.I||e.1o(\'C-1a-1D\'))z F}z 1h},L:9(i){z $(\'.C-1a-\'+i,4.t)},2u:9(i,s){8 e=4.L(i),20=0,2u=0;6(e.I==0){8 c,e=4.1B(i),j=r.M(i);1n(c=4.L(--j)){6(j<=0||c.I){j<=0?4.t.2r(e):c.1X(e);1p}}}10 20=4.S(e);e.1E(4.K(\'C-1a-1D\'));1R s==\'3l\'?e.3k(s):e.2C().3j(s);8 a=4.5.15!=7?1k.1P(4.1m()/4.5.15):7;8 b=4.S(e,a)-20;6(i>0&&i<4.A)4.t.y(4.E,r.M(4.t.y(4.E))-b+\'T\');4.t.y(4.N,r.M(4.t.y(4.N))+b+\'T\');z e},1V:9(i){8 e=4.L(i);6(!e.I||(i>=4.A&&i<=4.G))z;8 d=4.S(e);6(i<4.A)4.t.y(4.E,r.M(4.t.y(4.E))+d+\'T\');e.1V();4.t.y(4.N,r.M(4.t.y(4.N))-d+\'T\')},17:9(){4.1C();6(4.O!=7&&!4.W)4.1T(F);10 4.1c(((4.5.B==\'1Z\'||4.5.B==\'G\')&&4.5.u!=7&&4.G==4.5.u)?1:4.A+4.5.1c)},11:9(){4.1C();6(4.O!=7&&4.W)4.1T(1h);10 4.1c(((4.5.B==\'1Z\'||4.5.B==\'A\')&&4.5.u!=7&&4.A==1)?4.5.u:4.A-4.5.1c)},1T:9(b){6(4.Q||4.14||!4.O)z;8 a=r.M(4.t.y(4.E));!b?a-=4.O:a+=4.O;4.W=!b;4.X=4.A;4.13=4.G;4.1i(a)},1c:9(i,a){6(4.Q||4.14)z;4.1i(4.1s(i),a)},1s:9(i){6(4.Q||4.14)z;6(4.5.B!=\'18\')i=i<1?1:(4.5.u&&i>4.5.u?4.5.u:i);8 a=4.A>i;8 b=r.M(4.t.y(4.E));8 f=4.5.B!=\'18\'&&4.A<=1?1:4.A;8 c=a?4.L(f):4.L(4.G);8 j=a?f:f-1;8 e=7,l=0,p=F,d=0;1n(a?--j>=i:++j<i){e=4.L(j);p=!e.I;6(e.I==0){e=4.1B(j).V(4.K(\'C-1a-1D\'));c[a?\'1z\':\'1X\'](e)}c=e;d=4.S(e);6(p)l+=d;6(4.A!=7&&(4.5.B==\'18\'||(j>=1&&(4.5.u==7||j<=4.5.u))))b=a?b+d:b-d}8 g=4.1m();8 h=[];8 k=0,j=i,v=0;8 c=4.L(i-1);1n(++k){e=4.L(j);p=!e.I;6(e.I==0){e=4.1B(j).V(4.K(\'C-1a-1D\'));c.I==0?4.t.2r(e):c[a?\'1z\':\'1X\'](e)}c=e;8 d=4.S(e);6(d==0){3f(\'3e: 3d 1H/26 3c 1r 3b. 3a 39 38 37 36 35. 34...\');z 0}6(4.5.B!=\'18\'&&4.5.u!==7&&j>4.5.u)h.33(e);10 6(p)l+=d;v+=d;6(v>=g)1p;j++}1r(8 x=0;x<h.I;x++)h[x].1V();6(l>0){4.t.y(4.N,4.S(4.t)+l+\'T\');6(a){b-=l;4.t.y(4.E,r.M(4.t.y(4.E))-l+\'T\')}}8 n=i+k-1;6(4.5.B!=\'18\'&&4.5.u&&n>4.5.u)n=4.5.u;6(j>n){k=0,j=n,v=0;1n(++k){8 e=4.L(j--);6(!e.I)1p;v+=4.S(e);6(v>=g)1p}}8 o=n-k+1;6(4.5.B!=\'18\'&&o<1)o=1;6(4.W&&a){b+=4.O;4.W=F}4.O=7;6(4.5.B!=\'18\'&&n==4.5.u&&(n-k+1)>=1){8 m=r.Y(4.L(n),!4.5.Z?\'1l\':\'1N\');6((v-m)>g)4.O=v-g-m}1n(i-->o)b+=4.S(4.L(i));4.X=4.A;4.13=4.G;4.A=o;4.G=n;z b},1i:9(p,a){6(4.Q||4.14)z;4.14=1h;8 b=4;8 c=9(){b.14=F;6(p==0)b.t.y(b.E,0);6(b.5.B==\'1Z\'||b.5.B==\'G\'||b.5.u==7||b.G<b.5.u)b.2j();b.1f();b.1M(\'2i\')};4.1M(\'31\');6(!4.5.1K||a==F){4.t.y(4.E,p+\'T\');c()}10{8 o=!4.5.Z?{\'24\':p}:{\'23\':p};4.t.1i(o,4.5.1K,4.5.2c,c)}},2j:9(s){6(s!=J)4.5.1q=s;6(4.5.1q==0)z 4.1C();6(4.1d!=7)z;8 a=4;4.1d=30(9(){a.17()},4.5.1q*2Z)},1C:9(){6(4.1d==7)z;2Y(4.1d);4.1d=7},1f:9(n,p){6(n==J||n==7){8 n=!4.Q&&4.5.u!==0&&((4.5.B&&4.5.B!=\'A\')||4.5.u==7||4.G<4.5.u);6(!4.Q&&(!4.5.B||4.5.B==\'A\')&&4.5.u!=7&&4.G>=4.5.u)n=4.O!=7&&!4.W}6(p==J||p==7){8 p=!4.Q&&4.5.u!==0&&((4.5.B&&4.5.B!=\'G\')||4.A>1);6(!4.Q&&(!4.5.B||4.5.B==\'G\')&&4.5.u!=7&&4.A==1)p=4.O!=7&&4.W}8 a=4;4.U[n?\'1u\':\'22\'](4.5.2m,4.2G)[n?\'1E\':\'V\'](4.K(\'C-17-1w\')).1J(\'1w\',n?F:1h);4.R[p?\'1u\':\'22\'](4.5.2k,4.2b)[p?\'1E\':\'V\'](4.K(\'C-11-1w\')).1J(\'1w\',p?F:1h);6(4.U.I>0&&(4.U[0].1g==J||4.U[0].1g!=n)&&4.5.1O!=7){4.U.1b(9(){a.5.1O(a,4,n)});4.U[0].1g=n}6(4.R.I>0&&(4.R[0].1g==J||4.R[0].1g!=p)&&4.5.1L!=7){4.R.1b(9(){a.5.1L(a,4,p)});4.R[0].1g=p}},1M:9(a){8 b=4.X==7?\'2a\':(4.X<4.A?\'17\':\'11\');4.12(\'2F\',a,b);6(4.X!==4.A){4.12(\'2B\',a,b,4.A);4.12(\'2z\',a,b,4.X)}6(4.13!==4.G){4.12(\'2x\',a,b,4.G);4.12(\'2v\',a,b,4.13)}4.12(\'2s\',a,b,4.A,4.G,4.X,4.13);4.12(\'2p\',a,b,4.X,4.13,4.A,4.G)},12:9(a,b,c,d,e,f,g){6(4.5[a]==J||(1R 4.5[a]!=\'2h\'&&b!=\'2i\'))z;8 h=1R 4.5[a]==\'2h\'?4.5[a][b]:4.5[a];6(!$.2W(h))z;8 j=4;6(d===J)h(j,c,b);10 6(e===J)4.L(d).1b(9(){h(j,4,d,c,b)});10{1r(8 i=d;i<=e;i++)6(i!==7&&!(i>=f&&i<=g))4.L(i).1b(9(){h(j,4,i,c,b)})}},1B:9(i){z 4.1I(\'<1F></1F>\',i)},1I:9(e,i){8 a=$(e).V(4.K(\'C-1a\')).V(4.K(\'C-1a-\'+i));a.1J(\'2V\',i);z a},K:9(c){z c+\' \'+c+(!4.5.Z?\'-2U\':\'-Z\')},S:9(e,d){8 a=e.2g!=J?e[0]:e;8 b=!4.5.Z?a.1x+r.Y(a,\'2f\')+r.Y(a,\'1l\'):a.2e+r.Y(a,\'2d\')+r.Y(a,\'1N\');6(d==J||b==d)z b;8 w=!4.5.Z?d-r.Y(a,\'2f\')-r.Y(a,\'1l\'):d-r.Y(a,\'2d\')-r.Y(a,\'1N\');$(a).y(4.N,w+\'T\');z 4.S(a)},1m:9(){z!4.5.Z?4.H[0].1x-r.M(4.H.y(\'2T\'))-r.M(4.H.y(\'2S\')):4.H[0].2e-r.M(4.H.y(\'2R\'))-r.M(4.H.y(\'3i\'))},2P:9(i,s){6(s==J)s=4.5.u;z 1k.2O((((i-1)/s)-1k.2N((i-1)/s))*s)+1}});r.16({3m:9(d){z $.16(q,d||{})},Y:9(e,p){6(!e)z 0;8 a=e.2g!=J?e[0]:e;6(p==\'1l\'&&$.2A.28){8 b={\'1y\':\'1A\',\'2M\':\'2L\',\'1H\':\'1q\'},1Y,1W;$.29(a,b,9(){1Y=a.1x});b[\'1l\']=0;$.29(a,b,9(){1W=a.1x});z 1W-1Y}z r.M($.y(a,p))},M:9(v){v=2K(v);z 2J(v)?0:v}})})(3v);', 62, 218, '||||this|options|if|null|var|function||||||||||||||||||||list|size||||css|return|first|wrap|jcarousel|container|lt|false|last|clip|length|undefined|className|get|intval|wh|tail|div|locked|buttonPrev|dimension|px|buttonNext|addClass|inTail|prevFirst|margin|vertical|else|prev|callback|prevLast|animating|visible|extend|next|circular|parent|item|each|scroll|timer|split|buttons|jcarouselstate|true|animate|initCallback|Math|marginRight|clipping|while|hasClass|break|auto|for|pos|setup|bind|fn|disabled|offsetWidth|display|before|block|create|stopAuto|placeholder|removeClass|li|reloadCallback|width|format|attr|animation|buttonPrevCallback|notify|marginBottom|buttonNextCallback|ceil|buttonPrevHTML|typeof|buttonNextHTML|scrollTail|funcResize|remove|oWidth2|after|oWidth|both|old|offset|unbind|top|left|start|height|window|safari|swap|init|funcPrev|easing|marginTop|offsetHeight|marginLeft|jquery|object|onAfterAnimation|startAuto|buttonPrevEvent|click|buttonNextEvent|ol|ul|itemVisibleOutCallback|reload|prepend|itemVisibleInCallback|nodeName|add|itemLastOutCallback|skin|itemLastInCallback|indexOf|itemFirstOutCallback|browser|itemFirstInCallback|empty|reset|resize|itemLoadCallback|funcNext|prototype|load|isNaN|parseInt|none|float|floor|round|index|swing|borderTopWidth|borderRightWidth|borderLeftWidth|horizontal|jcarouselindex|isFunction|normal|clearTimeout|1000|setTimeout|onBeforeAnimation|children|push|Aborting|loop|infinite|an|cause|will|This|items|set|No|jCarousel|alert|class|find|borderBottomWidth|append|html|string|defaults|OL|UL|new|has|unlock|lock|10px|0px|jQuery'.split('|'), 0, {}));
/*
* jQuery Form Plugin
* version: 2.28 (10-MAY-2009)
* @requires jQuery v1.2.2 or later
*/
function log(text) { };
(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' }, 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 (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="about:blank" />'); 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', 'about:blank') } }; 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 nullCheckFlag = 0; 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; if ((doc.body == null || doc.body.innerHTML == '') && !nullCheckFlag) { nullCheckFlag = 1; cbInvoked--; setTimeout(cb, 100); 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]; xhr.responseText = ta ? ta.value : xhr.responseText } 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.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.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 } })(jQuery);
/* jQuery Swap */
(function($) { $.fn.swap = function(b) { b = $(b)[0]; var a = this[0]; var t = a.parentNode.insertBefore(document.createTextNode(''), a); b.parentNode.insertBefore(a, b); t.parentNode.insertBefore(b, t); t.parentNode.removeChild(t); return this } })(jQuery);
/*
* Made by Eskill
*  www.eskill.is | eskill@eskill.is
*/
jQuery.extend({
	cookie: function(n, v, d, p)
	{
		if (typeof v !== 'undefined')
		{
			var e = '';
			if (d)
			{
				var t = new Date();
				t.setTime(t.getTime() + (d * 86400000));
				e = "expires=" + t.toGMTString();
			};
			if (typeof p !== 'undefined')
			{
				document.cookie = n + '=' + escape(v) + '; ' + e + '; path=' + p;
			}
			else
			{
				document.cookie = n + '=' + escape(v) + '; ' + e + '; path=/';
			}
			return v;
		}
		else
		{
			n = new RegExp('(^|; )' + n + '=([^;]*)', 'i');
			n = document.cookie.match(n);
			return (n && unescape(n[2]) || '');
		}
	},
	fontsizer: function(container)
	{
		var container = $(container);
		if (!container.length) return false;

		container.prepend('<ul class="text-resize-options">' +
							'<li class="smaller-text"><a href="/" title="Minnka textastærð">A-</a></li>' +
							'<li class="bigger-text"><a href="/" title="Stækka textastærð">A+</a></li>' +
						  '</ul>');

		var linksmaller = $("li.smaller-text a");
		var linkbigger = $("li.bigger-text a");

		var cookie = $.cookie("vis.is-fontsize");
		if (cookie)
		{
			setSize(cookie);

			if (cookie == 2) makeInactive(linkbigger);
			if (cookie == 0) makeInactive(linksmaller);
		}
		else makeInactive(linksmaller);


		linksmaller.click(function()
		{
			if (getSize() == 1)
			{
				setSize(0);
				makeInactive(linksmaller);
			}
			if (getSize() == 2)
			{
				setSize(1);
				makeActive(linkbigger);
			}

			return false;
		});

		linkbigger.click(function()
		{
			if (getSize() == null)
			{
				setSize(1);
				makeActive(linksmaller);
			}
			else if (getSize() == 1)
			{
				setSize(2);
				makeInactive(linkbigger);
			}

			return false;
		});

		// puts class inactive on the element sent in
		function makeInactive(elem)
		{
			elem.addClass("inactive");
		}

		// removes class inactive on the element sent in
		function makeActive(elem)
		{
			elem.removeClass("inactive");
		}

		function getSize()
		{
			var body = $('body');

			if (body.hasClass('fontsize1')) return 1
			else if (body.hasClass('fontsize2')) return 2
			else return null;
		}

		function setSize(size)
		{
			var body = $('body');

			if (size == 1) body.removeClass('fontsize2').addClass('fontsize1');
			else if (size == 2) body.removeClass('fontsize1').addClass('fontsize2');
			else body.removeClass('fontsize1').removeClass('fontsize2');

			$.cookie("vis.is-fontsize", size, 365);
		}
	}
});
jQuery.fn.extend(
	{
		originalValue: function(originalValue)
		{
			this.each(function()
			{
				if (originalValue)
				{
					$(this).val(originalValue);
				}
				$(this).attr('originalValue', $(this).val());
			}
			).blur(function()
			{
				if (!$(this).val())
				{
					$(this).val($(this).attr('originalValue'));
				}
			}
			).focus(function()
			{
				if ($(this).val() === $(this).attr('originalValue'))
				{
					$(this).val('');
				}
			}
			);
		}
	}
);
/*
* Facebox (for jQuery)
* version: 1.2 (05/05/2008)
* modified by Hlynur T. (hlynur@eskill.is)
* @requires jQuery v1.3.2 or later
* Examples at http://famspam.com/facebox/
* Licensed under the MIT:
*   http://www.opensource.org/licenses/mit-license.php
* Copyright 2007, 2008 Chris Wanstrath [ chris@ozmm.org ]
*/
// default settings
var fbset = {
	opacity: 0.5,
	overlay: true,
	loadingImage: 'images/bgs/loading.gif',
	closeImage: 'images/buttons/fb-close.gif',
	imageTypes: ['png', 'jpg', 'jpeg', 'gif'],
	useAnim: true,
	faceboxHtml: '\
		<div id="facebox" style="display:none;"> \
		  <div class="popup"> \
			<table> \
			  <tbody> \
				<tr> \
				  <td class="tl"/><td class="tb"/><td class="tr"/> \
				</tr> \
				<tr> \
				  <td class="lb"/> \
				  <td class="body"> \
					<div class="content"> \
					</div> \
					  <a href="#" class="close"> \
						<img src="/facebox/closelabel.gif" title="close" class="close_image" /> \
					  </a> \
				  </td> \
				  <td class="rb"/> \
				</tr> \
				<tr> \
				  <td class="bl"/><td class="bb"/><td class="br"/> \
				</tr> \
			  </tbody> \
			</table> \
		  </div> \
		</div>'
};
(function(G) { G.facebox = function(N, M) { G.facebox.loading(); if (N.ajax) { H(N.ajax) } else { if (N.image) { C(N.image) } else { if (N.div) { K(N.div) } else { if (G.isFunction(N)) { N.call(G) } else { G.facebox.reveal(N, M) } } } } }; G.extend(G.facebox, { settings: fbset, loading: function() { L(); if (G("#facebox .loading").length == 1) { return true } E(); G("#facebox .content").empty(); G("#facebox .body").children().hide().end().append('<div class="loading"><img src="' + G.facebox.settings.loadingImage + '"/></div>'); G("#facebox").css({ top: I()[1] + (J() / 10), left: 385.5 }).show(); G(document).bind("keydown.facebox", function(M) { if (M.keyCode == 27) { G.facebox.close() } return true }); G(document).trigger("loading.facebox"); G("#facebox").css("left", G(window).width() / 2 - (G("#facebox table").width() / 2)) }, reveal: function(S, N, M) { G(document).trigger("beforeReveal.facebox"); if (N) { G("#facebox .content").addClass(N) } if (M && typeof M != "undefined") { if (S) { var P = N.split("_")[1]; var R = P.split("x")[0]; var Q = P.split("x")[1]; G("#facebox .content").addClass("iframe"); var O = document.createElement("iframe"); O.setAttribute("frameBorder", "0"); G("#facebox .content").append(O); O.contentWindow.document.location.href = S; G(O).css("border", "none").height(parseInt(Q)).width(parseInt(R)) } } else { if (S) { G("#facebox .content").append(S) } } G("#facebox .loading").remove(); G("#facebox .body").children().fadeIn("normal"); G("#facebox").css("left", G(window).width() / 2 - (G("#facebox table").width() / 2)); G(document).trigger("reveal.facebox").trigger("afterReveal.facebox") }, close: function() { G(document).trigger("close.facebox"); return false } }); G.fn.facebox = function(M) { L(M); function N() { G.facebox.loading(true); var O = this.rel.match(/overlay\[?\.(\w+)\]?/); if (O) { O = O[1] } K(this.href, O); return false } return this.click(N) }; function L(O) { if (G.facebox.settings.inited) { return true } else { G.facebox.settings.inited = true } G(document).trigger("init.facebox"); D(); var M = G.facebox.settings.imageTypes.join("|"); G.facebox.settings.imageTypesRegexp = new RegExp("." + M + "$", "i"); if (O) { G.extend(G.facebox.settings, O) } G("body").append(G.facebox.settings.faceboxHtml); var N = [new Image(), new Image()]; N[0].src = G.facebox.settings.closeImage; N[1].src = G.facebox.settings.loadingImage; G("#facebox").find(".b:first, .bl, .br, .tl, .tr").each(function() { N.push(new Image()); N.slice(-1).src = G(this).css("background-image").replace(/url\((.+)\)/, "$1") }); G("#facebox .close").click(G.facebox.close); G("#facebox .close_image").attr("src", G.facebox.settings.closeImage) } function I() { var N, M; if (self.pageYOffset) { M = self.pageYOffset; N = self.pageXOffset } else { if (document.documentElement && document.documentElement.scrollTop) { M = document.documentElement.scrollTop; N = document.documentElement.scrollLeft } else { if (document.body) { M = document.body.scrollTop; N = document.body.scrollLeft } } } return new Array(N, M) } function J() { var M; if (self.innerHeight) { M = self.innerHeight } else { if (document.documentElement && document.documentElement.clientHeight) { M = document.documentElement.clientHeight } else { if (document.body) { M = document.body.clientHeight } } } return M } function D() { var M = G.facebox.settings; M.loadingImage = M.loading_image || M.loadingImage; M.closeImage = M.close_image || M.closeImage; M.imageTypes = M.image_types || M.imageTypes; M.faceboxHtml = M.facebox_html || M.faceboxHtml } function K(N, M) { if (N.match(/#/)) { var O = window.location.href.split("#")[0]; var P = N.replace(O, ""); G.facebox.reveal(G(P).clone().show(), M) } else { if (N.match(G.facebox.settings.imageTypesRegexp)) { C(N, M) } else { if (M !== null && M.match(/^iframe_/)) { F(N, M) } else { H(N, M) } } } } function C(N, M) { var O = new Image(); O.onload = function() { G.facebox.reveal('<div class="image"><img src="' + O.src + '" /></div>', M) }; O.src = N } function H(N, M) { G.get(N, function(O) { G.facebox.reveal(O, M) }) } function F(N, M) { G.facebox.reveal(N, M, true) } function B() { return G.facebox.settings.overlay == false || G.facebox.settings.opacity === null } function E() { if (B()) { return } if (G("facebox_overlay").length == 0) { G("body").append('<div id="facebox_overlay" class="facebox_hide"></div>') } if (G.facebox.settings.useAnim) { G("#facebox_overlay").hide().addClass("facebox_overlayBG").css("opacity", G.facebox.settings.opacity).click(function() { G(document).trigger("close.facebox") }).fadeIn(200) } else { G("#facebox_overlay").hide().addClass("facebox_overlayBG").css("opacity", G.facebox.settings.opacity).click(function() { G(document).trigger("close.facebox") }).fadeIn(0) } return false } function A() { if (B()) { return } if (G.facebox.settings.useAnim) { G("#facebox_overlay").fadeOut(200, function() { G("#facebox_overlay").removeClass("facebox_overlayBG"); G("#facebox_overlay").addClass("facebox_hide"); G("#facebox_overlay").remove() }) } else { G("#facebox_overlay").removeClass("facebox_overlayBG"); G("#facebox_overlay").addClass("facebox_hide"); G("#facebox_overlay").remove() } return false } G(document).bind("close.facebox", function() { G(document).unbind("keydown.facebox"); if (G.support.opacity && G.facebox.settings.useAnim) { G("#facebox").fadeOut(function() { G("#facebox .content").removeClass().addClass("content"); A(); G("#facebox .loading").remove() }) } else { G("#facebox").css("display", "none"); G("#facebox .content").removeClass().addClass("content"); A(); G("#facebox .loading").remove() } }) })(jQuery);