/*
 * 	loopedSlider 0.5 - jQuery plugin *	written by Nathan Searles *	http://code.google.com/p/loopedslider/
 *	Copyright (c) 2009 Nathan Searles (http://nathansearles.com/) *	Dual licensed under the MIT (MIT-LICENSE.txt) and GPL (GPL-LICENSE.txt) licenses.
 */
(function($){$.fn.loopedSlider=function(options){var defaults={container:'.container',slides:'.slides',pagination:'.pagination',containerClick:true,autoStart:0,slidespeed:300,fadespeed:300,autoHeight:false};this.each(function(){var obj=$(this);var o=$.extend(defaults,options);var pagination=$(o.pagination+' li a',obj);var m=0;var t=1;var s=$(o.slides,obj).children().size();var w=$(o.slides,obj).children().outerWidth();var p=0;var u=false;var n=0;$(o.slides,obj).css({width:(s*w)});$(o.slides,obj).children().each(function(){$(this).css({position:'absolute',left:p,display:'block'});p=p+w});$(pagination,obj).each(function(){n=n+1;$(this).attr('rel',n);$(pagination.eq(0),obj).parent().addClass('active')});$(o.slides,obj).children(':eq('+(s-1)+')').css({position:'absolute',left:-w});if(o.autoHeight){autoHeight(t)}$('.next',obj).click(function(){if(u===false){animate('next',true);if(o.autoStart){clearInterval(sliderIntervalID)}}return false});$('.previous',obj).click(function(){if(u===false){animate('prev',true);if(o.autoStart){clearInterval(sliderIntervalID)}}return false});if(o.containerClick){$(o.container,obj).click(function(){if(u===false){animate('next',true);if(o.autoStart){clearInterval(sliderIntervalID)}}return false})}$(pagination,obj).click(function(){if($(this).parent().hasClass('active')){return false}else{t=$(this).attr('rel');$(pagination,obj).parent().siblings().removeClass('active');$(this).parent().addClass('active');animate('fade',t);if(o.autoStart){clearInterval(sliderIntervalID)}}return false});if(o.autoStart){sliderIntervalID=setInterval(function(){if(u===false){animate('next',true)}},o.autoStart)}function current(t){if(t===s+1){t=1}if(t===0){t=s}$(pagination,obj).parent().siblings().removeClass('active');$(pagination+'[rel="'+(t)+'"]',obj).parent().addClass('active')};function autoHeight(t){if(t===s+1){t=1}if(t===0){t=s}var getHeight=$(o.slides,obj).children(':eq('+(t-1)+')',obj).outerHeight();$('.container',obj).animate({height:getHeight},o.autoHeight)};function animate(dir,clicked){u=true;switch(dir){case'next':t=t+1;m=(-(t*w-w));current(t);if(o.autoHeight){autoHeight(t)}$(o.slides,obj).animate({left:m},o.slidespeed,function(){if(t===s+1){t=1;$(o.slides,obj).css({left:0},function(){$(o.slides,obj).animate({left:m})});$(o.slides,obj).children(':eq(0)').css({left:0});$(o.slides,obj).children(':eq('+(s-1)+')').css({position:'absolute',left:-w})}if(t===s)$(o.slides,obj).children(':eq(0)').css({left:(s*w)});if(t===s-1)$(o.slides,obj).children(':eq('+(s-1)+')').css({left:s*w-w});u=false});break;case'prev':t=t-1;m=(-(t*w-w));current(t);if(o.autoHeight){autoHeight(t)}$(o.slides,obj).animate({left:m},o.slidespeed,function(){if(t===0){t=s;$(o.slides,obj).children(':eq('+(s-1)+')').css({position:'absolute',left:(s*w-w)});$(o.slides,obj).css({left:-(s*w-w)});$(o.slides,obj).children(':eq(0)').css({left:(s*w)})}if(t===2)$(o.slides,obj).children(':eq(0)').css({position:'absolute',left:0});if(t===1)$(o.slides,obj).children(':eq('+(s-1)+')').css({position:'absolute',left:-w});u=false});break;case'fade':t=[t]*1;m=(-(t*w-w));current(t);if(o.autoHeight){autoHeight(t)}$(o.slides,obj).children().fadeOut(o.fadespeed,function(){$(o.slides,obj).css({left:m});$(o.slides,obj).children(':eq('+(s-1)+')').css({left:s*w-w});$(o.slides,obj).children(':eq(0)').css({left:0});if(t===s){$(o.slides,obj).children(':eq(0)').css({left:(s*w)})}if(t===1){$(o.slides,obj).children(':eq('+(s-1)+')').css({position:'absolute',left:-w})}$(o.slides,obj).children().fadeIn(o.fadespeed);u=false});break;default:break}}})}})(jQuery);

/*
 * jQuery ifixpng plugin (previously known as pngfix) * Version 3.1.2  (2008/09/01)
 * @requires jQuery v1.2.6 or above, or a lower version with the dimensions plugin
 * Based on the plugin by Kush M., http://jquery.khurshid.com
 * (c) Copyright Yereth Jansen (yereth@yereth.nl) * personal website: http://www.yereth.nl * Company website: http://www.wharf.nl
 * 
 * Dual licensed under the MIT and GPL licenses: * http://www.opensource.org/licenses/mit-license.php * http://www.gnu.org/licenses/gpl.html
 * Plugin page: http://plugins.jquery.com/project/iFixPng2
 */
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}(';(6($){$.9=6(a){$.9.v=a};$.9.w={F:/^18\\(["\']?(.*\\.G([?].*)?)["\']?\\)$/i,k:/.*\\.G([?].*)?$/i},$.9.H=6(){r $.9.v||\'19/v.1a\'};g f={s:$(\'s\').z(\'1b\'),I:$.J.1c&&$.J.1d<7,m:6(a){r"1e:1f.1g.1h(1i=1j,1k=1l,8=\'"+a+"\')"}};$.K.9=f.I?6(){6 A(a,b,c,d,e){a.l({m:f.m(b),n:c,o:d}).z({8:$.9.H()}).B()}r 3.L(6(){g b=$(3);4(b.M(\'k\')||b.M(\'1m\')){g c,k;4(3.8&&3.8.N($.9.w.k)){c=(f.s&&3.8.1n(0,1)!=\'/\'&&3.8.1o(f.s)===-1)?f.s+3.8:3.8;4(!3.n||!3.o){$(O P()).Q(\'R\',6(){A(b,c,3.n,3.o);$(3).S()}).z(\'8\',c)}p A(b,c,3.n,3.o)}}p 4(3.T){g d=b.l(\'C\');4(d&&d.N($.9.w.F)&&3.D.1p==\'1q-1r\'){d=1s.$1;g x=3.D.1t||0,y=3.D.1u||0;4(x||y){g e={},k;4(U x!=\'V\'){4(x==\'h\')e.h=0;p 4(x==\'W\')e.W=b.n()%2===1?-1:0;p e.h=x}4(U y!=\'V\'){4(y==\'X\')e.X=b.o()%2===1?-1:0;p 4(y==\'j\')e.j=0;p e.j=y}k=O P();$(k).Q(\'R\',6(){g x,y,q={},t;4(/u|%/.Y(e.j)){q.j="(3.Z.10 - 3.10) * "+(e.j==\'u\'?0.5:(11(e.j)/12));13 e.j}4(/u|%/.Y(e.h)){q.h="(3.Z.14 - 3.14) * "+(e.h==\'u\'?0.5:(11(e.h)/12));13 e.h}b.B().l({C:\'15\'}).1v($(\'<16></16>\').l(e).l({n:3.n,o:3.o,E:\'17\',m:f.m(d)}));4(q.j||q.h){g a=b.1w(\':1x\')[0];1y(t 1z q)a.T.1A(t,q[t],\'1B\')}$(3).S()});k.8=d}p{b.l({C:\'15\',m:f.m(d)})}}}})}:6(){r 3};$.K.B=6(){r 3.L(6(){g a=$(3);4(a.l(\'E\')!=\'17\')a.l({E:\'1C\'})})}})(1D);',62,102,'|||this|if||function||src|ifixpng|||||||var|left||top|img|css|filter|width|height|else|expr|return|base|prop|center|pixel|regexp|||attr|fixImage|positionFix|backgroundImage|currentStyle|position|bg|png|getPixel|ltie7|browser|fn|each|is|match|new|Image|one|load|remove|style|typeof|undefined|right|bottom|test|parentNode|offsetHeight|parseInt|100|delete|offsetWidth|none|div|absolute|url|images|gif|href|msie|version|progid|DXImageTransform|Microsoft|AlphaImageLoader|enabled|true|sizingMethod|crop|input|substring|indexOf|backgroundRepeat|no|repeat|RegExp|backgroundPositionX|backgroundPositionY|prepend|children|first|for|in|setExpression|JavaScript|relative|jQuery'.split('|'),0,{}))

  
  
/* ===========================
   ----- INITIALIZATIONS -----
   =========================== */
$(function(){ 
	$("#content > div").loopedSlider({ container: '.slide', slides: '.slide > ul', containerClick: false }); // for the sliding elements and page numbers
	$('.previous, .next').ifixpng('/images/common/pixel.gif');  // this makes transparent PNGs work in IE 6/7
	//fade arrows in and out on hover		
	$('.arrows, .launch').hide();
	$('.tabs-container, .slide').hover( function () { $('.arrows, .launch').fadeIn(1500); }, function() { $('.arrows, .launch').fadeOut(500); });
});	





