
function rxtv(){

var browser=navigator.appName;
var code =navigator.appCodeName;
var b_version=navigator.appVersion;
var agent = navigator.userAgent;
var version=parseFloat(b_version);

if (/Chrome[\/\s](\d+\.\d+)/.test(navigator.userAgent)){ //test for Firefox/x.x or Firefox x.x (ignoring remaining digits);

 	var browser_use = "Chrome"
	  
} else if (/Firefox[\/\s](\d+\.\d+)/.test(navigator.userAgent)){  //test for Firefox/x.x or Firefox x.x (ignoring remaining digits);

	 var browser_use = "Firefox"
  
} else if (/MSIE (\d+\.\d+);/.test(navigator.userAgent)){ //test for MSIE x.x;

	 var browser_use = "MSIE"
  
} else if (/Opera[\/\s](\d+\.\d+)/.test(navigator.userAgent)){ //test for Opera/x.x or Opera x.x (ignoring remaining decimal places);

	 var browser_use = "Opera"

} else { 
	
	var browser_use = "Chrome"
}
 	
		
		if ((browser_use == "Chrome")){
			document.getElementById('principal').style.width = 780 + 'px';
		}
		else
		{
			document.getElementById('principal').style.width = 758 + 'px';
		}


}

function aoCarregar(){
	
	rxtv();
}

window.onload = aoCarregar;


// ###########################################################################################################	
//     INICIALIZAÇÕES 
// ###########################################################################################################	

// --> PNG FIX

	$(document).ready(function(){
		$('#principal').pngFix( );
	});
	
// --> MENU 
 
    $(document).ready(function(){ 
        $("ul.sf-menu").superfish({ 
            animation: {height:'show'},   // slide-down effect without fade-in 
            delay:     1200               // 1.2 second delay on mouseout 
        }); 
    }); 
	
// --> BANNERS

	$(function() {
		$('#fade').cycle({
		   	fx:    'fade', 
   			speed:  1000 
		});
	
	});
	
// --> PNG FIX	
	
	$(document).ready(function(){
		$('body.body').pngFix( );
	});
	
// --> MODAL PANEL

$(function() {
		   
		function preloadImg(image) {
			var img = new Image();
			img.src = image;
		}

		preloadImg('imgs/ajaxLoader.gif');
		preloadImg('imgs/prev.gif');
		preloadImg('imgs/next.gif');

	});

// Page enhancement
	$(function() {
		if (!$.browser.opera) {
			$('div#menu ul:first a, div#usage a, div#edito a').click(function(e) {
				e.preventDefault();
				$.scrollTo($(this).attr('href'), 700);
			});
		}
	
		var allPre = $('div#demos pre');
		allPre.each(function() {
			var pre = $(this);
			var link = $('<a href="#" class="showCode">Show Code</a>');
			pre.hide().before(link).before('<br />');
			link.click(function(event) {
					event.preventDefault();
					pre.slideToggle('fast');
					return false;
				});
		});
		var shown = false;
		$('#showAllCodes').click(function(event) {
			event.preventDefault();
			if (shown)
				allPre.slideUp('fast');
			else
				allPre.slideDown('fast');
			shown = !shown;
			return false;
		});
	});
	
// ###########################################################################################################	
// ###########################################################################################################	
// ###########################################################################################################	
 

// -----------------------------------------------------------------------------------------------------------
//    ANIMAÇÃO TOPO 
// -----------------------------------------------------------------------------------------------------------

function flash_topo() {
  var obj_str = '<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0" width="550" height="110" id="topo2" align="middle">';
  obj_str += '<param name="allowScriptAccess" value="sameDomain" />';
  obj_str += '<param name="allowFullScreen" value="false" />';
  obj_str += '<param name="movie" value="topo.swf" />';
  obj_str += '<param name="quality" value="high" />';
  obj_str += '<param name="wmode" value="transparent" />';
  obj_str += '<param name="bgcolor" value="#ffffff" />';
  obj_str += '<embed src="topo.swf" quality="high" wmode="transparent" bgcolor="#ffffff" width="550" height="110" name="topo2" align="middle" allowScriptAccess="sameDomain" allowFullScreen="false" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />';
  obj_str += '</object>';
  document.write(obj_str);
}

// -----------------------------------------------------------------------------------------------------------
//     JUMP MENU 
// -----------------------------------------------------------------------------------------------------------

function MM_jumpMenu(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}

// -----------------------------------------------------------------------------------------------------------
//     POPUP
// -----------------------------------------------------------------------------------------------------------

function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

// -----------------------------------------------------------------------------------------------------------
//     PERGUNTAS FREQUENTES
// -----------------------------------------------------------------------------------------------------------
function faq(y) {
        document.all('z' + y).style.display = "inline";
	
        for (var i=1; i<=numero_itens; i++) {
        	if (i != y) {
	            document.all('z' + i.toString()).style.display = "none";
	        }
        }
    }

// -----------------------------------------------------------------------------------------------------------
//     TECNOLOGIAS
// -----------------------------------------------------------------------------------------------------------

var headline_count;
 var headline_interval;
 var old_headline = 0;
 var current_headline = 0;
 
 $(document).ready(function(){
   headline_count = $("div.headline3").size();
   $("div.headline3:eq("+current_headline+")").css('top','5px');
 
   headline_interval = setInterval(headline_rotate,5000); //time in milliseconds
   $('#scrollup').hover(function() {
     clearInterval(headline_interval);
   }, function() {
     headline_interval = setInterval(headline_rotate,5000); //time in milliseconds
     headline_rotate();
   });
 });
 
 function headline_rotate() {
   current_headline = (old_headline + 1) % headline_count; 
   $("div.headline3:eq(" + old_headline + ")").animate({top: -205},"slow", function() {
     $(this).css('top','210px');
   });
   $("div.headline3:eq(" + current_headline + ")").show().animate({top: 5},"slow");  
   old_headline = current_headline;
 }
// -----------------------------------------------------------------------------------------------------------
//     BANNERS - jquery.cycle.all.js
// -----------------------------------------------------------------------------------------------------------

;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($){8 q=\'2.30\';8 r=$.1v.1w&&/2B 6.0/.2C(2D.2E);4 S(){3(1x.1y&&1x.1y.S)1x.1y.S(\'[A] \'+2F.2G.2H.2I(20,\'\'))};$.F.A=4(n){8 o=20[1];x 7.X(4(){3(n===2J||n===y)n={};3(n.1z==21){2K(n){1A\'2L\':3(7.C)11(7.C);7.C=0;$(7).18(\'A.1e\',\'\');x;1A\'1B\':7.N=1;x;1A\'22\':7.N=0;3(o===1C){n=$(7).18(\'A.1e\');3(!n){S(\'23 12 24, 25 12 22\');x}3(7.C){11(7.C);7.C=0}O(n.1f,n,1,1)}x;2M:n={T:n}}}J 3(n.1z==2N){8 d=n;n=$(7).18(\'A.1e\');3(!n){S(\'23 12 24, 25 12 1g 26\');x}3(d<0||d>=n.1f.9){S(\'2O 26 27: \'+d);x}n.u=d;3(7.C){11(7.C);7.C=0}O(n.1f,n,1,d>=n.K);x}3(7.C)11(7.C);7.C=0;7.N=0;8 e=$(7);8 f=n.1D?$(n.1D,7):e.2P();8 g=f.2Q();3(g.9<2){S(\'2R; 2S 2T 2U: \'+g.9);x}8 h=$.2V({},$.F.A.28,n||{},$.29?e.29():$.2W?e.18():{});3(h.1E)h.1F=h.1G||g.9;e.18(\'A.1e\',h);h.13=7;h.1f=g;h.P=h.P?[h.P]:[];h.Q=h.Q?[h.Q]:[];h.Q.1H(4(){h.1I=0});3(h.14)h.Q.19(4(){O(g,h,0,!h.15)});3(r&&h.1h&&!h.2a)1J(f);8 j=7.2X;h.E=Y((j.1i(/w:(\\d+)/)||[])[1])||h.E;h.B=Y((j.1i(/h:(\\d+)/)||[])[1])||h.B;h.D=Y((j.1i(/t:(\\d+)/)||[])[1])||h.D;3(e.H(\'1j\')==\'2Y\')e.H(\'1j\',\'2Z\');3(h.E)e.E(h.E);3(h.B&&h.B!=\'1k\')e.B(h.B);3(h.L)h.L=Y(h.L);3(h.U){h.V=[];2b(8 i=0;i<g.9;i++)h.V.19(i);h.V.31(4(a,b){x 32.U()-0.5});h.G=0;h.L=h.V[0]}J 3(h.L>=g.9)h.L=0;8 k=h.L||0;f.H({1j:\'2c\',33:0,34:0}).2d().X(4(i){8 z=k?i>=k?g.9-(i-k):k-i:g.9-i;$(7).H(\'z-27\',z)});$(g[k]).H(\'1a\',1).2e();3($.1v.1w)g[k].2f.2g(\'1K\');3(h.R&&h.E)f.E(h.E);3(h.R&&h.B&&h.B!=\'1k\')f.B(h.B);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.15)},h.14?10:h.D+(h.2r||0))})};4 O(a,b,c,d){3(b.1I)x;8 p=b.13,17=a[b.K],I=a[b.u];3(p.C===0&&!c)x;3(!c&&!p.N&&((b.1E&&(--b.1F<=0))||(b.1q&&!b.U&&b.u<b.K))){3(b.1V)b.1V(b);x}3(c||!p.N){3(b.P.9)$.X(b.P,4(i,o){o.1o(I,[17,I,b,d])});8 e=4(){3($.1v.1w&&b.1h)7.2f.2g(\'1K\');$.X(b.Q,4(i,o){o.1o(I,[17,I,b,d])})};3(b.u!=b.K){b.1I=1;3(b.1W)b.1W(17,I,b,e,d);J 3($.2j($.F.A[b.T]))$.F.A[b.T](17,I,b,e);J $.F.A.1L(17,I,b,e,c&&b.2s)}3(b.U){b.K=b.u;3(++b.G==a.9)b.G=0;b.u=b.V[b.G]}J{8 f=(b.u+1)==a.9;b.u=f?0:b.u+1;b.K=f?a.9-1:b.u-1}3(b.W)$.F.A.1X(b.W,b.K)}3(b.D&&!b.14)p.C=1U(4(){O(a,b,0,!b.15)},b.D);J 3(b.14&&p.N)p.C=1U(4(){O(a,b,0,!b.15)},10)};$.F.A.1X=4(a,b){$(a).3c(\'a\').3d(\'2t\').1K(\'a:1M(\'+b+\')\').3e(\'2t\')};4 1g(a,b,c){8 p=b.13,D=p.C;3(D){11(D);p.C=0}3(b.U&&c<0){b.G--;3(--b.G==-2)b.G=a.9-2;J 3(b.G==-1)b.G=a.9-1;b.u=b.V[b.G]}J 3(b.U){3(++b.G==a.9)b.G=0;b.u=b.V[b.G]}J{b.u=b.K+c;3(b.u<0){3(b.1q)x 1r;b.u=a.9-1}J 3(b.u>=a.9){3(b.1q)x 1r;b.u=0}}3(b.1s&&1p b.1s==\'4\')b.1s(c>0,b.u,a[b.u]);O(a,b,1,c>=0);x 1r};4 2o(a,b){8 c=$(b.W);$.X(a,4(i,o){$.F.A.1S(i,o,c,a,b)});$.F.A.1X(b.W,b.L)};$.F.A.1S=4(i,a,b,c,d){8 e=(1p d.1Y==\'4\')?$(d.1Y(i,a)):$(\'<a 3f="#">\'+(i+1)+\'</a>\');3(e.3g(\'3h\').9==0)e.2q(b);e.1Q(d.2u,4(){d.u=i;8 p=d.13,D=p.C;3(D){11(D);p.C=0}3(1p d.1Z==\'4\')d.1Z(d.u,c[d.u]);O(c,d,1,d.K<i);x 1r});3(d.2v)e.2h(4(){d.13.N=1},4(){d.13.N=0})};4 1J(b){4 1t(s){8 s=Y(s).3i(16);x s.9<2?\'0\'+s:s};4 2w(e){2b(;e&&e.3j.3k()!=\'3l\';e=e.3m){8 v=$.H(e,\'2x-2y\');3(v.3n(\'3o\')>=0){8 a=v.1i(/\\d+/g);x\'#\'+1t(a[0])+1t(a[1])+1t(a[2])}3(v&&v!=\'3p\')x v}x\'#3q\'};b.X(4(){$(7).H(\'2x-2y\',2w(7))})};$.F.A.1L=4(a,b,c,d,e){8 f=$(a),$n=$(b);$n.H(c.Z);8 g=e?1:c.1m;8 h=e?1:c.1n;8 i=e?y:c.1O;8 j=e?y:c.1P;8 k=4(){$n.2z(c.1b,g,i,d)};f.2z(c.1c,h,j,4(){3(c.1u)f.H(c.1u);3(!c.1l)k()});3(c.1l)k()};$.F.A.2i={2A:4(b,c,d){c.12(\':1M(\'+d.L+\')\').H(\'1a\',0);d.P.19(4(){$(7).2e()});d.1b={1a:1};d.1c={1a:0};d.Z={1a:0};d.1u={3r:\'3s\'};d.1T=4(a){a.2d()}}};$.F.A.3t=4(){x q};$.F.A.28={T:\'2A\',D:3u,14:0,M:3v,1m:y,1n:y,I:y,1R:y,1s:y,W:y,1Z:y,2u:\'1d\',1Y:y,P:y,Q:y,1V:y,1N:y,1O:y,1P:y,3w:y,1b:y,1c:y,Z:y,1u:y,1W:y,B:\'1k\',L:0,1l:1,U:0,R:0,1B:0,2v:0,1E:0,1G:0,2r:0,1D:y,1h:0,1q:0,2s:0}})(3x);',62,220,'|||if|function|||this|var|length|||||||||||||||||||||nextSlide|||return|null||cycle|height|cycleTimeout|timeout|width|fn|randomIndex|css|next|else|currSlide|startingSlide|speed|cyclePause|go|before|after|fit|log|fx|random|randomMap|pager|each|parseInt|cssBefore||clearTimeout|not|container|continuous|rev||curr|data|push|opacity|animIn|animOut|click|opts|elements|advance|cleartype|match|position|auto|sync|speedIn|speedOut|apply|typeof|nowrap|false|prevNextClick|hex|cssAfter|browser|msie|window|console|constructor|case|pause|true|slideExpr|autostop|countdown|autostopCount|unshift|busy|clearTypeFix|filter|custom|eq|easing|easeIn|easeOut|bind|prev|createPagerAnchor|onAddSlide|setTimeout|end|fxFn|updateActivePagerLink|pagerAnchorBuilder|pagerClick|arguments|String|resume|options|found|can|slide|index|defaults|metadata|cleartypeNoBg|for|absolute|hide|show|style|removeAttribute|hover|transitions|isFunction|cycleH|cycleW|cssFirst|slideCount|buildPager|els|appendTo|delay|fastOnEvent|activeSlide|pagerEvent|pauseOnPagerHover|getBg|background|color|animate|fade|MSIE|test|navigator|userAgent|Array|prototype|join|call|undefined|switch|stop|default|Number|invalid|children|get|terminating|too|few|slides|extend|meta|className|static|relative||sort|Math|top|left|unknown|transition|speeds|while|250|addSlide|prependTo|find|removeClass|addClass|href|parents|body|toString|nodeName|toLowerCase|html|parentNode|indexOf|rgb|transparent|ffffff|display|none|ver|4000|1000|shuffle|jQuery'.split('|'),0,{}));


// -----------------------------------------------------------------------------------------------------------
//     BANNERS - chili-1.7.pack.js
// -----------------------------------------------------------------------------------------------------------

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;}('8={3b:"1.6",2o:"1B.1Y,1B.23,1B.2e",2i:"",2H:1a,12:"",2C:1a,Z:"",2a:\'<H V="$0">$$</H>\',R:"&#F;",1j:"&#F;&#F;&#F;&#F;",1f:"&#F;<1W/>",3c:5(){9 $(y).39("1k")[0]},I:{},N:{}};(5($){$(5(){5 1J(l,a){5 2I(A,h){4 3=(1v h.3=="1h")?h.3:h.3.1w;k.1m({A:A,3:"("+3+")",u:1+(3.c(/\\\\./g,"%").c(/\\[.*?\\]/g,"%").3a(/\\((?!\\?)/g)||[]).u,z:(h.z)?h.z:8.2a})}5 2z(){4 1E=0;4 1x=x 2A;Q(4 i=0;i<k.u;i++){4 3=k[i].3;3=3.c(/\\\\\\\\|\\\\(\\d+)/g,5(m,1F){9!1F?m:"\\\\"+(1E+1+1t(1F))});1x.1m(3);1E+=k[i].u}4 1w=1x.3d("|");9 x 1u(1w,(a.3g)?"2j":"g")}5 1S(o){9 o.c(/&/g,"&3h;").c(/</g,"&3e;")}5 1R(o){9 o.c(/ +/g,5(1X){9 1X.c(/ /g,R)})}5 G(o){o=1S(o);7(R){o=1R(o)}9 o}5 2m(2E){4 i=0;4 j=1;4 h;19(h=k[i++]){4 1b=D;7(1b[j]){4 1U=/(\\\\\\$)|(?:\\$\\$)|(?:\\$(\\d+))/g;4 z=h.z.c(1U,5(m,1V,K){4 3f=\'\';7(1V){9"$"}v 7(!K){9 G(1b[j])}v 7(K=="0"){9 h.A}v{9 G(1b[j+1t(K,10)])}});4 1A=D[D.u-2];4 2h=D[D.u-1];4 2G=2h.2v(11,1A);11=1A+2E.u;14+=G(2G)+z;9 z}v{j+=h.u}}}4 R=8.R;4 k=x 2A;Q(4 A 2r a.k){2I(A,a.k[A])}4 14="";4 11=0;l.c(2z(),2m);4 2y=l.2v(11,l.u);14+=G(2y);9 14}5 2B(X){7(!8.N[X]){4 Y=\'<Y 32="1p" 33="p/2u"\'+\' 30="\'+X+\'">\';8.N[X]=1H;7($.31.34){4 W=J.1L(Y);4 $W=$(W);$("2d").1O($W)}v{$("2d").1O(Y)}}}5 1q(e,a){4 l=e&&e.1g&&e.1g[0]&&e.1g[0].37;7(!l)l="";l=l.c(/\\r\\n?/g,"\\n");4 C=1J(l,a);7(8.1j){C=C.c(/\\t/g,8.1j)}7(8.1f){C=C.c(/\\n/g,8.1f)}$(e).38(C)}5 1o(q,13){4 1l={12:8.12,2x:q+".1d",Z:8.Z,2w:q+".2u"};4 B;7(13&&1v 13=="2l")B=$.35(1l,13);v B=1l;9{a:B.12+B.2x,1p:B.Z+B.2w}}7($.2q)$.2q({36:"2l.15"});4 2n=x 1u("\\\\b"+8.2i+"\\\\b","2j");4 1e=[];$(8.2o).2D(5(){4 e=y;4 1n=$(e).3i("V");7(!1n){9}4 q=$.3u(1n.c(2n,""));7(\'\'!=q){1e.1m(e);4 f=1o(q,e.15);7(8.2H||e.15){7(!8.N[f.a]){1D{8.N[f.a]=1H;$.3v(f.a,5(M){M.f=f.a;8.I[f.a]=M;7(8.2C){2B(f.1p)}$("."+q).2D(5(){4 f=1o(q,y.15);7(M.f==f.a){1q(y,M)}})})}1I(3s){3t("a 3w Q: "+q+\'@\'+3z)}}}v{4 a=8.I[f.a];7(a){1q(e,a)}}}});7(J.1i&&J.1i.29){5 22(p){7(\'\'==p){9""}1z{4 16=(x 3A()).2k()}19(p.3x(16)>-1);p=p.c(/\\<1W[^>]*?\\>/3y,16);4 e=J.1L(\'<1k>\');e.3l=p;p=e.3m.c(x 1u(16,"g"),\'\\r\\n\');9 p}4 T="";4 18=1G;$(1e).3j().G("1k").U("2c",5(){18=y}).U("1M",5(){7(18==y)T=J.1i.29().3k});$("3n").U("3q",5(){7(\'\'!=T){2p.3r.3o(\'3p\',22(T));2V.2R=1a}}).U("2c",5(){T=""}).U("1M",5(){18=1G})}})})(1Z);8.I["1Y.1d"]={k:{2M:{3:/\\/\\*[^*]*\\*+(?:[^\\/][^*]*\\*+)*\\//},25:{3:/\\<!--(?:.|\\n)*?--\\>/},2f:{3:/\\/\\/.*/},2P:{3:/2L|2T|2J|2O|2N|2X|2K|2Z|2U|2S|2W|2Y|2Q|51|c-50/},53:{3:/\\/[^\\/\\\\\\n]*(?:\\\\.[^\\/\\\\\\n]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\#.*)/},4V:{3:/\\\'[^\\\'\\\\]*(?:\\\\.[^\\\'\\\\]*)*\\\'/},4U:{3:/\\"[^\\"\\\\]*(?:\\\\.[^\\"\\\\]*)*\\"/},4P:{3:/\\b(?:[4O][2b][1s][1s]|[4R][4Q][2b][1P]|[5c][5v][1s][5u][1P])\\b/},5x:{3:/\\b[+-]?(\\d*\\.?\\d+|\\d+\\.?\\d*)([1r][+-]?\\d+)?\\b/},5y:{3:/\\b(?:5z|5w(?:5A|5E(?:5F(?:17|1c)|5G(?:17|1c))|17|1T|5B|5C|5D(?:17|1T|1c)|1c)|P(?:5h(?:5k|5j)|5e(?:5d|5g(?:5f|5l)|5r|E(?:5t|5s)|5n(?:5m|5p)|L(?:3X|3W)|O(?:S|3Y(?:3T|3S|3V))|3U|S(?:44|47|46)|41))|40)\\b/},1y:{3:/(?:\\$43|\\$42|\\$3R|\\$3G|\\$3F|\\$3I|\\$3H|\\$3C|\\$3B|\\$3D)\\b/},28:{3:/\\b(?:3O|3N|3P|3K|3J|3M|3L|48|4v|1N|1K|1I|4u|V|4x|4w|2t|4r|2s|4q|1z|4t|v|4s|4D|4C|4F|4E|4z|4y|4B|4A|4p|4d|2F|2F|4g|Q|4f|5|1y|7|4a|4m|4l|4o|4i|4k|x|4j|4h|4n|4b|4c|49|4e|3Q|3E|9|45|1Q|y|3Z|1D|5o|5q|4|19|5i)\\b/},2g:{3:/\\$(\\w+)/,z:\'<H V="28">$</H><H V="2g">$1</H>\'},1C:{3:/(?:\\<\\?[24][4T][24])|(?:\\<\\?)|(?:\\?\\>)/}}}',62,353,'|||exp|var|function||if|ChiliBook|return|recipe||replace||el|path||step|||steps|ingredients|||str|text|recipeName||||length|else||new|this|replacement|stepName|settings|dish|arguments||160|filter|span|recipes|document|||recipeLoaded|required|||for|replaceSpace||insidePRE|bind|class|domLink|stylesheetPath|link|stylesheetFolder||lastIndex|recipeFolder|options|perfect|chili|newline|ERROR|downPRE|while|false|aux|WARNING|js|codes|replaceNewLine|childNodes|string|selection|replaceTab|pre|settingsDef|push|elClass|getPath|stylesheet|makeDish|eE|Ll|parseInt|RegExp|typeof|source|exps|global|do|offset|code|tag|try|prevLength|aNum|null|true|catch|cook|case|createElement|mouseup|break|append|Ee|switch|replaceSpaces|escapeHTML|NOTICE|pattern|escaped|br|spaces|mix|jQuery|avalue|entity|preformatted|xml|Pp|htcom|aname|numbers|keyword|createRange|defaultReplacement|Uu|mousedown|head|php|com|variable|input|elementClass|gi|valueOf|object|chef|selectClass|elementPath|window|metaobjects|in|default|continue|css|substring|stylesheetFile|recipeFile|lastUnmatched|knowHow|Array|checkCSS|stylesheetLoading|each|matched|extends|unmatched|recipeLoading|prepareStep|unblockUI|ajaxSubmit|silverlight|jscom|unblock|block|plugin|clearFields|returnValue|fieldValue|blockUI|formSerialize|event|resetForm|ajaxForm|clearForm|fieldSerialize|href|browser|rel|type|msie|extend|selector|data|html|next|match|version|getPRE|join|lt|bit|ignoreCase|amp|attr|parents|htmlText|innerHTML|innerText|body|setData|Text|copy|clipboardData|recipeNotAvailable|alert|trim|getJSON|unavailable|indexOf|ig|recipePath|Date|_SESSION|_SERVER|php_errormsg|require_once|_GET|_FILES|_REQUEST|_POST|__METHOD__|__LINE__|and|abstract|__FILE__|__CLASS__|__FUNCTION__|require|_ENV|END|CONT|PREFIX|START|OCALSTATEDIR|IBDIR|UTPUT_HANDLER_|throw|__COMPILER_HALT_OFFSET__|VERSION|_COOKIE|GLOBALS|API|static|YSCONFDIR|HLIB_SUFFIX|array|protected|implements|print|private|exit|public|foreach|final|or|isset|old_function|list|include_once|include|php_user_filter|interface|exception|die|declare|elseif|echo|cfunction|as|const|clone|endswitch|endif|eval|endwhile|enddeclare|empty|endforeach|endfor|isNaN|NaN|jquery|Infinity|clearTimeout|setTimeout|clearInterval|setInterval|Nn|value|Rr|Tt|mlcom|Hh|string2|string1|delete|keywords|void|instanceof|content|taconite|gim|regexp|escape|constructor|parseFloat|unescape|toString|with|prototype|element|Ff|BINDIR|HP_|PATH|CONFIG_FILE_|EAR_|xor|INSTALL_DIR|EXTENSION_DIR|SCAN_DIR|MAX|INT_|unset|SIZE|use|DATADIR|XTENSION_DIR|OL|Ss|Aa|E_|number|const1|DEFAULT_INCLUDE_PATH|ALL|PARSE|STRICT|USER_|CO|MPILE_|RE_'.split('|'),0,{}))





// -----------------------------------------------------------------------------------------------------------
//     MENU PRINCIPAL - superfish.js
// -----------------------------------------------------------------------------------------------------------

/*
 * Superfish v1.4.8 - jQuery menu widget
 * Copyright (c) 2008 Joel Birch
 *
 * Dual licensed under the MIT and GPL licenses:
 * 	http://www.opensource.org/licenses/mit-license.php
 * 	http://www.gnu.org/licenses/gpl.html
 *
 * CHANGELOG: http://users.tpg.com.au/j_birch/plugins/superfish/changelog.txt
 */

;(function($){
	$.fn.superfish = function(op){

		var sf = $.fn.superfish,
			c = sf.c,
			$arrow = $(['<span class="',c.arrowClass,'"> &#187;</span>'].join('')),
			over = function(){
				var $$ = $(this), menu = getMenu($$);
				clearTimeout(menu.sfTimer);
				$$.showSuperfishUl().siblings().hideSuperfishUl();
			},
			out = function(){
				var $$ = $(this), menu = getMenu($$), o = sf.op;
				clearTimeout(menu.sfTimer);
				menu.sfTimer=setTimeout(function(){
					o.retainPath=($.inArray($$[0],o.$path)>-1);
					$$.hideSuperfishUl();
					if (o.$path.length && $$.parents(['li.',o.hoverClass].join('')).length<1){over.call(o.$path);}
				},o.delay);	
			},
			getMenu = function($menu){
				var menu = $menu.parents(['ul.',c.menuClass,':first'].join(''))[0];
				sf.op = sf.o[menu.serial];
				return menu;
			},
			addArrow = function($a){ $a.addClass(c.anchorClass).append($arrow.clone()); };
			
		return this.each(function() {
			var s = this.serial = sf.o.length;
			var o = $.extend({},sf.defaults,op);
			o.$path = $('li.'+o.pathClass,this).slice(0,o.pathLevels).each(function(){
				$(this).addClass([o.hoverClass,c.bcClass].join(' '))
					.filter('li:has(ul)').removeClass(o.pathClass);
			});
			sf.o[s] = sf.op = o;
			
			$('li:has(ul)',this)[($.fn.hoverIntent && !o.disableHI) ? 'hoverIntent' : 'hover'](over,out).each(function() {
				if (o.autoArrows) addArrow( $('>a:first-child',this) );
			})
			.not('.'+c.bcClass)
				.hideSuperfishUl();
			
			var $a = $('a',this);
			$a.each(function(i){
				var $li = $a.eq(i).parents('li');
				$a.eq(i).focus(function(){over.call($li);}).blur(function(){out.call($li);});
			});
			o.onInit.call(this);
			
		}).each(function() {
			menuClasses = [c.menuClass];
			if (sf.op.dropShadows  && !($.browser.msie && $.browser.version < 7)) menuClasses.push(c.shadowClass);
			$(this).addClass(menuClasses.join(' '));
		});
	};

	var sf = $.fn.superfish;
	sf.o = [];
	sf.op = {};
	sf.IE7fix = function(){
		var o = sf.op;
		if ($.browser.msie && $.browser.version > 6 && o.dropShadows && o.animation.opacity!=undefined)
			this.toggleClass(sf.c.shadowClass+'-off');
		};
	sf.c = {
		bcClass     : 'sf-breadcrumb',
		menuClass   : 'sf-js-enabled',
		anchorClass : 'sf-with-ul',
		arrowClass  : 'sf-sub-indicator',
		shadowClass : 'sf-shadow'
	};
	sf.defaults = {
		hoverClass	: 'sfHover',
		pathClass	: 'overideThisToUse',
		pathLevels	: 1,
		delay		: 800,
		animation	: {opacity:'show'},
		speed		: 'normal',
		autoArrows	: true,
		dropShadows : true,
		disableHI	: false,		// true disables hoverIntent detection
		onInit		: function(){}, // callback functions
		onBeforeShow: function(){},
		onShow		: function(){},
		onHide		: function(){}
	};
	$.fn.extend({
		hideSuperfishUl : function(){
			var o = sf.op,
				not = (o.retainPath===true) ? o.$path : '';
			o.retainPath = false;
			var $ul = $(['li.',o.hoverClass].join(''),this).add(this).not(not).removeClass(o.hoverClass)
					.find('>ul').hide().css('visibility','hidden');
			o.onHide.call($ul);
			return this;
		},
		showSuperfishUl : function(){
			var o = sf.op,
				sh = sf.c.shadowClass+'-off',
				$ul = this.addClass(o.hoverClass)
					.find('>ul:hidden').css('visibility','visible');
			sf.IE7fix.call($ul);
			o.onBeforeShow.call($ul);
			$ul.animate(o.animation,o.speed,function(){ sf.IE7fix.call($ul); o.onShow.call($ul); });
			return this;
		}
	});

})(jQuery);


// -----------------------------------------------------------------------------------------------------------
//     MENU PRINCIPAL - hoverIntent.js
// -----------------------------------------------------------------------------------------------------------


(function($){
	/* hoverIntent by Brian Cherne */
	$.fn.hoverIntent = function(f,g) {
		// default configuration options
		var cfg = {
			sensitivity: 7,
			interval: 100,
			timeout: 0
		};
		// override configuration options with user supplied object
		cfg = $.extend(cfg, g ? { over: f, out: g } : f );

		// instantiate variables
		// cX, cY = current X and Y position of mouse, updated by mousemove event
		// pX, pY = previous X and Y position of mouse, set by mouseover and polling interval
		var cX, cY, pX, pY;

		// A private function for getting mouse position
		var track = function(ev) {
			cX = ev.pageX;
			cY = ev.pageY;
		};

		// A private function for comparing current and previous mouse position
		var compare = function(ev,ob) {
			ob.hoverIntent_t = clearTimeout(ob.hoverIntent_t);
			// compare mouse positions to see if they've crossed the threshold
			if ( ( Math.abs(pX-cX) + Math.abs(pY-cY) ) < cfg.sensitivity ) {
				$(ob).unbind("mousemove",track);
				// set hoverIntent state to true (so mouseOut can be called)
				ob.hoverIntent_s = 1;
				return cfg.over.apply(ob,[ev]);
			} else {
				// set previous coordinates for next time
				pX = cX; pY = cY;
				// use self-calling timeout, guarantees intervals are spaced out properly (avoids JavaScript timer bugs)
				ob.hoverIntent_t = setTimeout( function(){compare(ev, ob);} , cfg.interval );
			}
		};

		// A private function for delaying the mouseOut function
		var delay = function(ev,ob) {
			ob.hoverIntent_t = clearTimeout(ob.hoverIntent_t);
			ob.hoverIntent_s = 0;
			return cfg.out.apply(ob,[ev]);
		};

		// A private function for handling mouse 'hovering'
		var handleHover = function(e) {
			// next three lines copied from jQuery.hover, ignore children onMouseOver/onMouseOut
			var p = (e.type == "mouseover" ? e.fromElement : e.toElement) || e.relatedTarget;
			while ( p && p != this ) { try { p = p.parentNode; } catch(e) { p = this; } }
			if ( p == this ) { return false; }

			// copy objects to be passed into t (required for event object to be passed in IE)
			var ev = jQuery.extend({},e);
			var ob = this;

			// cancel hoverIntent timer if it exists
			if (ob.hoverIntent_t) { ob.hoverIntent_t = clearTimeout(ob.hoverIntent_t); }

			// else e.type == "onmouseover"
			if (e.type == "mouseover") {
				// set "previous" X and Y position based on initial entry point
				pX = ev.pageX; pY = ev.pageY;
				// update "current" X and Y position based on mousemove
				$(ob).bind("mousemove",track);
				// start polling interval (self-calling timeout) to compare mouse coordinates over time
				if (ob.hoverIntent_s != 1) { ob.hoverIntent_t = setTimeout( function(){compare(ev,ob);} , cfg.interval );}

			// else e.type == "onmouseout"
			} else {
				// unbind expensive mousemove event
				$(ob).unbind("mousemove",track);
				// if hoverIntent state is true, then call the mouseOut function after the specified delay
				if (ob.hoverIntent_s == 1) { ob.hoverIntent_t = setTimeout( function(){delay(ev,ob);} , cfg.timeout );}
			}
		};

		// bind the function to the two event listeners
		return this.mouseover(handleHover).mouseout(handleHover);
	};
	
})(jQuery);

//--------------------------------------------------------------------------------------------------
//        PNG FIX         
//--------------------------------------------------------------------------------------------------

/**
 * --------------------------------------------------------------------
 * jQuery-Plugin "pngFix"
 * Version: 1.1, 11.09.2007
 * by Andreas Eberhard, andreas.eberhard@gmail.com
 *                      http://jquery.andreaseberhard.de/
 *
 * Copyright (c) 2007 Andreas Eberhard
 * Licensed under GPL (http://www.opensource.org/licenses/gpl-license.php)
 *
 * Changelog:
 *    11.09.2007 Version 1.1
 *    - removed noConflict
 *    - added png-support for input type=image
 *    - 01.08.2007 CSS background-image support extension added by Scott Jehl, scott@filamentgroup.com, http://www.filamentgroup.com
 *    31.05.2007 initial Version 1.0
 * --------------------------------------------------------------------
 * @example $(function(){$(document).pngFix();});
 * @desc Fixes all PNG's in the document on document.ready
 *
 * jQuery(function(){jQuery(document).pngFix();});
 * @desc Fixes all PNG's in the document on document.ready when using noConflict
 *
 * @example $(function(){$('div.examples').pngFix();});
 * @desc Fixes all PNG's within div with class examples
 *
 * @example $(function(){$('div.examples').pngFix( { blankgif:'ext.gif' } );});
 * @desc Fixes all PNG's within div with class examples, provides blank gif for input with png
 * --------------------------------------------------------------------
 */

(function($) {

jQuery.fn.pngFix = function(settings) {

	// Settings
	settings = jQuery.extend({
		blankgif: 'blank.gif'
	}, settings);

	var ie55 = (navigator.appName == "Microsoft Internet Explorer" && parseInt(navigator.appVersion) == 4 && navigator.appVersion.indexOf("MSIE 5.5") != -1);
	var ie6 = (navigator.appName == "Microsoft Internet Explorer" && parseInt(navigator.appVersion) == 4 && navigator.appVersion.indexOf("MSIE 6.0") != -1);

	if (jQuery.browser.msie && (ie55 || ie6)) {

		//fix images with png-source
		jQuery(this).find("img[@src$=.png]").each(function() {

			jQuery(this).attr('width',jQuery(this).width());
			jQuery(this).attr('height',jQuery(this).height());

			var prevStyle = '';
			var strNewHTML = '';
			var imgId = (jQuery(this).attr('id')) ? 'id="' + jQuery(this).attr('id') + '" ' : '';
			var imgClass = (jQuery(this).attr('class')) ? 'class="' + jQuery(this).attr('class') + '" ' : '';
			var imgTitle = (jQuery(this).attr('title')) ? 'title="' + jQuery(this).attr('title') + '" ' : '';
			var imgAlt = (jQuery(this).attr('alt')) ? 'alt="' + jQuery(this).attr('alt') + '" ' : '';
			var imgAlign = (jQuery(this).attr('align')) ? 'float:' + jQuery(this).attr('align') + ';' : '';
			var imgHand = (jQuery(this).parent().attr('href')) ? 'cursor:hand;' : '';
			if (this.style.border) {
				prevStyle += 'border:'+this.style.border+';';
				this.style.border = '';
			}
			if (this.style.padding) {
				prevStyle += 'padding:'+this.style.padding+';';
				this.style.padding = '';
			}
			if (this.style.margin) {
				prevStyle += 'margin:'+this.style.margin+';';
				this.style.margin = '';
			}
			var imgStyle = (this.style.cssText);

			strNewHTML += '<span '+imgId+imgClass+imgTitle+imgAlt;
			strNewHTML += 'style="position:relative;white-space:pre-line;display:inline-block;background:transparent;'+imgAlign+imgHand;
			strNewHTML += 'width:' + jQuery(this).width() + 'px;' + 'height:' + jQuery(this).height() + 'px;';
			strNewHTML += 'filter:progid:DXImageTransform.Microsoft.AlphaImageLoader' + '(src=\'' + jQuery(this).attr('src') + '\', sizingMethod=\'scale\');';
			strNewHTML += imgStyle+'"></span>';
			if (prevStyle != ''){
				strNewHTML = '<span style="position:relative;display:inline-block;'+prevStyle+imgHand+'width:' + jQuery(this).width() + 'px;' + 'height:' + jQuery(this).height() + 'px;'+'">' + strNewHTML + '</span>';
			}

			jQuery(this).hide();
			jQuery(this).after(strNewHTML);


		});

		// fix css background pngs
		jQuery(this).find("*").each(function(){
			var bgIMG = jQuery(this).css('background-image');
			if(bgIMG.indexOf(".png")!=-1){
				var iebg = bgIMG.split('url("')[1].split('")')[0];
				jQuery(this).css('background-image', 'none');
				jQuery(this).get(0).runtimeStyle.filter = "progid:DXImageTransform.Microsoft.AlphaImageLoader(src='" + iebg + "',sizingMethod='scale')";
			}
		});
		
		//fix input with png-source
		jQuery(this).find("input[@src$=.png]").each(function() {
			var bgIMG = jQuery(this).attr('src');
			jQuery(this).get(0).runtimeStyle.filter = 'progid:DXImageTransform.Microsoft.AlphaImageLoader' + '(src=\'' + bgIMG + '\', sizingMethod=\'scale\');';
   		jQuery(this).attr('src', settings.blankgif)
		});

	
	}
	
	return jQuery;

};

})(jQuery);
