$(document).ready(function() {;
$("#contacto").corner("10px");
$(".box").corner("10px");
});


// corners
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}('(R($){G F=R(v){H(J.1h==0)U J;H($.18.16&&Z 1d==\'13\')U J;G w=R(a,b){U a-b};G x=R(a){G b=a.28();U b.25(w)[0]};G y=R(a,b){U W($.I(a.1T?a[0]:a,b))||0};G z=R(a,b,c,d,e,f){G g=/^1i\\((\\d{1,3}),\\s*(\\d{1,3}),\\s*(\\d{1,3}),\\s*(\\d{1,3})\\)$/;G h=g.2f(d);H(h){1b=L K(W(h[1]),W(h[2]),W(h[3]));d=\'24(\'+1b[0]+\', \'+1b[1]+\', \'+1b[2]+\')\'}G e=W(e);G i=a.1w(\'2d\');H(b==1){i.1u=d;i.1V(0,0,1,1);U}H(c==\'N\'){G j=L K(0,0,b,0,b,0,0,b,0,0)}S H(c==\'P\'){G j=L K(b,0,b,b,b,0,0,0,0,0)}S H(c==\'O\'){G j=L K(0,b,b,b,0,b,0,0,0,b)}S H(c==\'M\'){G j=L K(b,b,b,0,b,0,0,b,b,b)}i.1u=d;i.1q();i.1o(j[0],j[1]);i.1n(j[2],j[3]);H(c==\'M\')i.1c(j[4],j[5],b,b,j[6],j[7]);S i.1c(j[4],j[5],0,0,j[6],j[7]);i.1n(j[8],j[9]);i.2s();H(e>0&&e<b){G k=e/2;H(c==\'N\'){G j=L K(b-k,k,b-k,k,k,b-k);G l=L K(0,0)}S H(c==\'P\'){G j=L K(b-k,b-k,b-k,k,k,k);G l=L K(0,0)}S H(c==\'O\'){G j=L K(b-k,b-k,k,b-k,k,k,k,b-k);G l=L K(0,0)}S H(c==\'M\'){G j=L K(b-k,k,b-k,k,k,b-k,b-k,b-k);G l=L K(b,b)}i.2n=f;i.2k=e;i.1q();i.1o(j[0],j[1]);i.1c(j[2],j[3],l[0],l[1],j[4],j[5]);i.2j()}};G A=R(p,a){G b=1a.2h(\'1H\');b.1G("Q",a);b.1G("X",a);b.19.29="27";b.19.11="1y";b.26="1x";b=p.23(b);H(!b.1w&&Z 1d!=\'13\'){b=1d.22(b)}U b};G o=(v||"").21();G B=W((o.1v(/(\\d+)1X/)||[])[1])||1t;G C=((o.1v(/(#[0-1U-f]+)/)||[])[1]);H(B==1t){B="1g"}G D={T:0,B:1};G E={N:/15|N/.12(o),P:/15|P/.12(o),O:/14|O/.12(o),M:/14|M/.12(o)};H(!E.N&&!E.P&&!E.O&&!E.M){E={N:1,P:1,O:1,M:1}}U J.1S(R(){G a=$(J);G b=/1f/.12(o);H(b){v=v.1R(/1f/i,"");a.1f(R(){$(J).1s(\'1r\');$(J).1e(v)},R(){$(J).1Q(\'1r\');$(J).1e(v)})}H($.18.16){a.I(\'1p\',\'1\');a.1j().I(\'1p\',\'1\');H($.18.16&&Z 1a.1k.19.1m=="13"){H(a.I(\'Q\')==\'1g\')a.Q(a.Q());H(a.X()%2!=0){a.X(a.X()+1)}H(a.Q()%2!=0){a.Q(a.Q()+1)}H(a.I(\'Y\')!=\'1l\'&&a.Q()<a.I(\'Y\')){a.I(\'Y\',a.Q())}H(a.I(\'Y\')==\'1l\')a.I(\'Y\',\'1\')}}G c=L K(a.V(0).1P,a.V(0).1O);H(a.Q()!=0)c[c.1h]=a.Q();H(a.X()!=0)c[c.1h]=a.X();G d=x(c);H(B=="1g"){B=d/2;H(B>10){B=10}}H(B>d/2){B=(d/2)}B=1N.1M(B);H(a.I(\'11\')==\'1L\'){a.I(\'11\',\'1K\')}S H(a.I(\'11\')==\'1W\'&&$.18.16&&!(1a.1J==\'1Y\'&&Z 1a.1k.19.1m!="13")){a.I(\'11\',\'1y\')}a.I(\'1Z\',\'20\');G e=y(J,\'2r\');G f=y(J,\'2q\');G g=y(J,\'2p\');G h=y(J,\'2o\');G i=L K();H(E.N||E.P){i.17(e)}H(E.M||E.P){i.17(f)}H(E.M||E.O){i.17(g)}H(E.O||E.N){i.17(h)}G j=x(i);G k=0-e;G l=0-f;G m=0-g;G n=0-h;a.1j("1H.1x").2l();H(E.N){G p=$(A(J,B)).I({1F:n,15:k}).V(0)}H(E.P){G q=$(A(J,B)).I({1E:l,15:k}).V(0)}H(E.O){G r=$(A(J,B)).I({1F:n,14:m}).V(0)}H(E.M){G s=$(A(J,B)).I({1E:l,14:m}).V(0)}H(C==13){G t=a.1D();G u=t.I(\'1C-1B\');2i((u=="1A"||u=="1i(0, 0, 0, 0)")&&(Z t==\'2g\')&&!t.2e("2m")){u=t.I(\'1C-1B\');t=t.1D()}}S{u=C}H(u=="1A"||u=="1i(0, 0, 0, 0)"){u="#2c"}H(E.N){z(p,B,\'N\',u,j,a.I(\'1I\'))}H(E.P){z(q,B,\'P\',u,j,a.I(\'1I\'))}H(E.O){z(r,B,\'O\',u,j,a.I(\'1z\'))}H(E.M){z(s,B,\'M\',u,j,a.I(\'1z\'))}a.1s(\'2b\')})};$.2a.1e=F})(2t);',62,154,'||||||||||||||||||||||||||||||||||||||||||var|if|css|this|Array|new|br|tl|bl|tr|height|function|else||return|get|parseInt|width|lineHeight|typeof||position|test|undefined|bottom|top|msie|push|browser|style|document|channels|bezierCurveTo|G_vmlCanvasManager|corner|hover|auto|length|rgba|children|body|normal|maxHeight|lineTo|moveTo|zoom|beginPath|jrcHover|addClass|null|fillStyle|match|getContext|cornercanvas|absolute|borderBottomColor|transparent|color|background|parent|right|left|setAttribute|canvas|borderTopColor|compatMode|relative|static|floor|Math|offsetWidth|offsetHeight|removeClass|replace|each|jquery|9a|fillRect|fixed|px|CSS1Compat|overflow|visible|toLowerCase|initElement|appendChild|rgb|sort|className|block|concat|display|fn|roundCornersParent|ffffff||is|exec|object|createElement|while|stroke|lineWidth|remove|html|strokeStyle|borderLeftWidth|borderBottomWidth|borderRightWidth|borderTopWidth|fill|jQuery'.split('|'),0,{}))


/*
 * jQuery EasIng v1.3 - http://gsgd.co.uk/sandbox/jquery.easIng.php
 */
eval(function(p,a,c,k,e,d){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--)d[e(c)]=k[c]||e(c);k=[function(e){return d[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}('h.i[\'1b\']=h.i[\'D\'];h.1a(h.i,{C:\'B\',D:9(x,t,b,c,d){6 h.i[h.i.C](x,t,b,c,d)},19:9(x,t,b,c,d){6 c*(t/=d)*t+b},B:9(x,t,b,c,d){6-c*(t/=d)*(t-2)+b},18:9(x,t,b,c,d){e((t/=d/2)<1)6 c/2*t*t+b;6-c/2*((--t)*(t-2)-1)+b},17:9(x,t,b,c,d){6 c*(t/=d)*t*t+b},16:9(x,t,b,c,d){6 c*((t=t/d-1)*t*t+1)+b},15:9(x,t,b,c,d){e((t/=d/2)<1)6 c/2*t*t*t+b;6 c/2*((t-=2)*t*t+2)+b},14:9(x,t,b,c,d){6 c*(t/=d)*t*t*t+b},13:9(x,t,b,c,d){6-c*((t=t/d-1)*t*t*t-1)+b},12:9(x,t,b,c,d){e((t/=d/2)<1)6 c/2*t*t*t*t+b;6-c/2*((t-=2)*t*t*t-2)+b},11:9(x,t,b,c,d){6 c*(t/=d)*t*t*t*t+b},Z:9(x,t,b,c,d){6 c*((t=t/d-1)*t*t*t*t+1)+b},Y:9(x,t,b,c,d){e((t/=d/2)<1)6 c/2*t*t*t*t*t+b;6 c/2*((t-=2)*t*t*t*t+2)+b},X:9(x,t,b,c,d){6-c*8.A(t/d*(8.g/2))+c+b},W:9(x,t,b,c,d){6 c*8.n(t/d*(8.g/2))+b},V:9(x,t,b,c,d){6-c/2*(8.A(8.g*t/d)-1)+b},U:9(x,t,b,c,d){6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t*t*(((s*=(1.z))+1)*t-s))+b;6 c/2*((t-=2)*t*(((s*=(1.z))+1)*t+s)+2)+b},y:9(x,t,b,c,d){6 c-h.i.r(x,d-t,0,c,d)+b},r:9(x,t,b,c,d){e((t/=d)<(1/2.k)){6 c*(7.o*t*t)+b}l e(t<(2/2.k)){6 c*(7.o*(t-=(1.5/2.k))*t+.k)+b}l e(t<(2.5/2.k)){6 c*(7.o*(t-=(2.I/2.k))*t+.H)+b}l{6 c*(7.o*(t-=(2.G/2.k))*t+.F)+b}},E:9(x,t,b,c,d){e(t<d/2)6 h.i.y(x,t*2,0,c,d)*.5+b;6 h.i.r(x,t*2-d,0,c,d)*.5+c*.5+b}});',62,74,'||||||return||Math|function|||||if|var|PI|jQuery|easing|pow|75|else|70158|sin|5625||sqrt|easeOutBounce|||undefined|asin|abs||easeInBounce|525|cos|easeOutQuad|def|swing|easeInOutBounce|984375|625|9375|25|easeInOutBack|easeOutBack|easeInBack|easeInOutElastic|easeOutElastic|easeInElastic|easeInOutCirc|easeOutCirc|easeInCirc|easeInOutExpo|easeOutExpo|easeInExpo|easeInOutSine|easeOutSine|easeInSine|easeInOutQuint|easeOutQuint||easeInQuint|easeInOutQuart|easeOutQuart|easeInQuart|easeInOutCubic|easeOutCubic|easeInCubic|easeInOutQuad|easeInQuad|extend|jswing'.split('|'),0,{}))


/*
	jQuery Coda-Slider v1.1 - http://www.ndoherty.com/coda-slider

*/
/*
	jQuery Coda-Slider v1.1 - http://www.ndoherty.com/coda-slider
	
	Copyright (c) 2007 Niall Doherty
	
	Inspired by the clever folks at http://www.panic.com/coda
	Many thanks to Gian Carlo Mingati. Coda-Slider is a heavily modified version of his slideViewer, which can be found at  http://www.gcmingati.net/wordpress/wp-content/lab/jquery/imagestrip/imageslide-plugin.html
	
	Requirements:
	-  jQuery 1.2 ... available via  http://www.jquery.com
	-  jQuery easing plugin (1.2) ... available via  http://gsgd.co.uk/sandbox/jquery/easing/
	- jQuery easing compatability plugin ... available via  http://gsgd.co.uk/sandbox/jquery/easing/
	- CSS included in index.html
*/

jQuery(function(){
	jQuery("div.csw").prepend("<p class='loading'>Cargando...</p>");
});



var j = 0;
jQuery.fn.codaSlider = function(settings) {
	 settings = jQuery.extend({
     easeFunc: "easeOutBack",
     easeTime: 850,
     toolTip: false
  }, settings);
	return this.each(function(){
		var container = jQuery(this);
		// Remove the preloader gif...
		container.find("p.loading").remove();
		// Self-explanatory...
		container.removeClass("csw").addClass("stripViewer");
		// Get the width of a panel, set from CSS...
		var panelWidth = container.find("div.panel").width();
		// panelCount gives us a count of the panels in the container...
		var panelCount = container.find("div.panel").size();
		// Calculate the width of all the panels when lined up end-to-end...
		var stripViewerWidth = panelWidth*panelCount;
		// Use the above width to specify the CSS width for the panelContainer element...
		container.find("div.panelContainer").css("width" , stripViewerWidth);
		// Set the navWidth as a multiple of panelCount to account for margin-right on each li
		var navWidth = panelCount*2;
		
		// Specify the current panel.
		// If the loaded URL has a hash (cross-linking), we're going to use that hash to give the slider a specific starting position...
		if (location.hash && parseInt(location.hash.slice(1)) <= panelCount) {
			var cPanel = parseInt(location.hash.slice(1));
			var cnt = - (panelWidth*(cPanel - 1));
			jQuery(this).find("div.panelContainer").css({ left: cnt });
		// Otherwise, we'll just set the current panel to 1...
		} else { 
			var cPanel = 1;
		};
		
		// Create appropriate nav
		container.each(function(i) {
			
			// Create the Left and Right arrows
	/*		jQuery(this).before("<div class='stripNavL' id='stripNavL" + j + "'><a href='#'>Left</a><\/div>");
			jQuery(this).after("<div class='stripNavR' id='stripNavR" + j + "'><a href='#'>Right</a><\/div>");*/
			
			// Create the Tabs
			jQuery(this).before("<div class='stripNav clear' id='stripNav" + j + "'><ul><\/ul><\/div>");
			jQuery(this).find("div.panel").each(function(n) {
						jQuery("div#stripNav" + j + " ul").append("<li class='tab" + (n+1) + "'><a href='#" + (n+1) + "'>" + jQuery(this).attr("title") + "<\/a><\/li>");												
			});
			
			// Tab nav
			jQuery("div#stripNav" + j + " a").each(function(z) {
				// Figure out the navWidth by adding up the width of each li
				navWidth += jQuery(this).parent().width();
				// What happens when a nav link is clicked
				jQuery(this).bind("click", function() {
					jQuery(this).addClass("current").parent().parent().find("a").not(jQuery(this)).removeClass("current"); // wow!
					var cnt = - (panelWidth*z);
					cPanel = z + 1;
					jQuery(this).parent().parent().parent().next().find("div.panelContainer").animate({ left: cnt}, settings.easeTime, settings.easeFunc);
				});
			});
			
			// Left nav
			/*jQuery("div#stripNavL" + j + " a").click(function(){
				if (cPanel == 1) {
					var cnt = - (panelWidth*(panelCount - 1));
					cPanel = panelCount;
					jQuery(this).parent().parent().find("div.stripNav a.current").removeClass("current").parent().parent().find("li:last a").addClass("current");
				} else {
					cPanel -= 1;
					var cnt = - (panelWidth*(cPanel - 1));
					jQuery(this).parent().parent().find("div.stripNav a.current").removeClass("current").parent().prev().find("a").addClass("current");
				};
				jQuery(this).parent().parent().find("div.panelContainer").animate({ left: cnt}, settings.easeTime, settings.easeFunc);
				// Change the URL hash (cross-linking)...
				location.hash = cPanel;
				return false;
			});*/
			
			// Right nav
			/*jQuery("div#stripNavR" + j + " a").click(function(){
				if (cPanel == panelCount) {
					var cnt = 0;
					cPanel = 1;
					jQuery(this).parent().parent().find("div.stripNav a.current").removeClass("current").parent().parent().find("a:eq(0)").addClass("current");
				} else {
					var cnt = - (panelWidth*cPanel);
					cPanel += 1;
					jQuery(this).parent().parent().find("div.stripNav a.current").removeClass("current").parent().next().find("a").addClass("current");
				};
				jQuery(this).parent().parent().find("div.panelContainer").animate({ left: cnt}, settings.easeTime, settings.easeFunc);
				// Change the URL hash (cross-linking)...
				location.hash = cPanel;
				return false;
			});
			*/
			// Same-page cross-linking
			jQuery("a.cross-link").click(function(){
				jQuery(this).parents().find(".stripNav ul li a:eq(" + (parseInt(jQuery(this).attr("href").slice(1)) - 1) + ")").trigger('click');
			});	
			
			// Set the width of the nav using the navWidth figure we calculated earlier. This is so the nav can be centred above the slider
			jQuery("div#stripNav" + j).css("width" , navWidth);
			
			// Specify which tab is initially set to "current". Depends on if the loaded URL had a hash or not (cross-linking).
			if (location.hash && parseInt(location.hash.slice(1)) <= panelCount) {
				jQuery("div#stripNav" + j + " a:eq(" + (location.hash.slice(1) - 1) + ")").addClass("current");
			} else {
				jQuery("div#stripNav" + j + " a:eq(0)").addClass("current");
			}
			
		});
		
		j++;
  });
};

jQuery(window).bind("load", function() {
			jQuery("div#slider").codaSlider();
			jQuery("div.stripNav").corner("10px")
		});
