/*
 * jQuery Cycle Plugin
 * Examples and documentation at: http://malsup.com/jquery/cycle/
 * Copyright (c) 2007 M. Alsup
 * Version 1.93
 * Dual licensed under the MIT and GPL licenses:
 * http://www.opensource.org/licenses/mit-license.php
 * http://www.gnu.org/licenses/gpl.html
 */

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}('(4($){6 j=\'1.1N\';$.s.u=4(g){l 8.G(4(){3(g&&g.1l==1h){2e(g){1f\'23\':3(8.B)1s(8.B);8.B=0;l;1f\'19\':8.F=1;l;1f\'1M\':8.F=0;l;1L:g={K:g}}}6 b=$(8),$v=b.1J(),r=$v.1F();3(r.m<2)l;6 c=$.25({},$.s.u.1v,g||{},$.1Y?b.1X():{});3(c.1c)c.1r=r.m;c.y=c.y?[c.y]:[];c.C=c.C?[c.C]:[];c.C.1Q(4(){c.18=0});6 d=8.1O;6 w=15((d.14(/w:(\\d+)/)||[])[1])||c.R;6 h=15((d.14(/h:(\\d+)/)||[])[1])||c.I;c.9=15((d.14(/t:(\\d+)/)||[])[1])||c.9;3(b.x(\'10\')==\'1K\')b.x(\'10\',\'1I\');3(w)b.R(w);3(h&&h!=\'1a\')b.I(h);$v.G(4(i){$(8).x(\'z-1E\',r.m-i)}).x(\'10\',\'1D\').2d();$(r[0]).1z();3(c.Q&&w)$v.R(w);3(c.Q&&h&&h!=\'1a\')$v.I(h);3(c.19)b.2b(4(){8.F=1},4(){8.F=0});6 e=$.s.u.1B[c.K];3($.1x(e))e(b,$v,c);$v.G(4(){6 a=$(8);8.22=(c.Q&&h)?h:a.I();8.21=(c.Q&&w)?w:a.R()});c.P=c.P||{};c.N=c.N||{};c.O=c.O||{};$v.1u(\':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o){6 a=$(\'<a 1Z="#">\'+(i+1)+\'</a>\').20(d).13(\'D\',4(){c.7=i;L(b,c,1,!c.H);l 1w});3(i==0)a.1C(\'1b\')})};$.s.u.1i=4(a,b,c,d){6 e=$(a),$n=$(b);$n.x(c.P);6 f=4(){$n.1A(c.N,c.V,c.16,d)};e.1A(c.O,c.U,c.1e,4(){3(c.Y)e.x(c.Y);3(!c.W)f()});3(c.W)f()};$.s.u.1B={1y:4(a,b,c){b.1u(\':1d(0)\').x(\'1g\',0);c.y.2c(4(){$(8).1z()});c.N={1g:1};c.O={1g:0};c.Y={2a:\'29\'}}};$.s.u.28=4(){l j};$.s.u.1v={K:\'1y\',9:27,q:26,V:5,U:5,D:5,k:5,11:5,J:5,y:5,C:5,17:5,16:5,1e:5,24:5,N:5,O:5,P:5,Y:5,Z:5,I:\'1a\',W:1,M:0,Q:0,19:0,1c:0,1k:0}})(2f);',62,140,'|||if|function|null|var|nextSlide|this|timeout|||||||||||next|return|length||||speed|els|fn||cycle|slides||css|before||currSlide|cycleTimeout|after|click|curr|cyclePause|each|rev|height|pager|fx|go|random|animIn|animOut|cssBefore|fit|width|apply|Math|speedOut|speedIn|sync|else|cssAfter|fxFn|position|prev|advance|bind|match|parseInt|easeIn|easing|busy|pause|auto|activeSlide|autostop|eq|easeOut|case|opacity|String|custom|parentNode|delay|constructor|setTimeout|buildPager|true|floor|while|countdown|clearTimeout|cssFirst|not|defaults|false|isFunction|fade|show|animate|transitions|addClass|absolute|index|get|removeClass|find|relative|children|static|default|resume|93|className|250|unshift|400|200|fast|600|slow|filter|data|meta|href|appendTo|cycleW|cycleH|stop|shuffle|extend|1000|4000|ver|none|display|hover|push|hide|switch|jQuery'.split('|'),0,{}))
  $(document).ready(function() {
  /*------ slideshow------*/ 
  $.imgno = $('#images').children().size(); 
  //alert($.imgno);
	//if 		($.imgno >= 2) alert("more than 2");
	//else 	alert("less than 2");

	if 		($.imgno >= 2) {$('#images').after('<div id="imgnav"><a id="next" href="#" title="nästa bild">Next</a><span id="imgpag"></span><a id="prev" href="#" title="föregående bild">Prev</a> </div>').cycle({ 
    fx:    'fade', 
    speed:  'slow', 
    timeout: 0, 
    next:   '#next', 
    prev:   '#prev',
	 pager:  '#imgpag' 
	 
 });}
	else 	$('#images').addClass("nonav");
	
	
});
