var PARMABBR=$H({TCAT:"topcat",PCAT:"parentcat",FAM:"fuseaction=model.",FA:"fuseaction",PID:"product_id",PDCT:"prodcat",ICDE:"itemcode",FMPC:"fmprodcat",RCAT:"recipecat",EXPLAIN:"the expanded parameter name from the abbreviation(key name)"});var VALUEABBR=$H({FMCV:"fammenucontent",SCTV:"swapcontent",PDRV:"prodrange",FEMV:"fammenu",CRTV:"contentright",EXPLAIN:"the expanded parameter value from the abbreviation(key value)"});var KNOWNAJAX=$H({DCFC:"dynamic content, fuse content version",DCMD:"dynamic content, model.xxx version",DCPC:"dynamic content, model.prodcontent version",DCPR:"dynamic content, model.prodrecipeguide version",DCPCR:"dynamic content, model.prodcontent + prodrecipeguide version",DCCP:"dynamic content, cached content packet version",DCFM:"dynamic content, mode.fammenucontent version",BB:"blackboard controller",XBB:"do not imply blackboard",HTTP:"",EXPLAIN:"a description of the abbreviated known hash(key name)"});var REQDPARMS=$H({DCMD:["fuseaction","CAT","topcat"],DCFC:["CAT","topcat"],DCCP:["CAT"],DCPC:["prodcat","product_id"],DCPR:["prodcat","product_id"],DCPCR:["prodcat","product_id"],DCFM:["itemcode"],BB:["CAT"],XBB:[],HTTP:[],EXPLAIN:["The required parameters for the call"]});var KNOWNMETHODS=$H({DCMD:["dynamiccontent","/index.cfm",""],DCFC:["dynamiccontent","/view/frontend/pages/dsp_fuse_content.cfm",""],BB:["blackboard","/view/frontend/pages/dsp_blackboard.cfm",""],DCPC:["prodcontent","/index.cfm?fuseaction=model.prodcontent","GCO"],DCPR:["recipecontent","/index.cfm?fuseaction=model.prodrecipeguide",""],DCPCR:["prodcontent","",""],DCFM:["fammenucontent","/index.cfm?fuseaction=model.fammenucontent","FEM"],DCCP:["","",""],HTTP:["","",""],XBB:["","",""],EXPLAIN:["The target div","The target URL","The topcat for the special area"],EXPLAINDCCP:["a special case","see the code",""]});function substituteForAbbreviations(B){var E,C,A;var D="";B.each(function(F){C=PARMABBR.get(F.key.toUpperCase());if(C==null){C=F.key.toLowerCase()+"=";}else{if(C.include("=")){}else{C=C+"=";}}A=VALUEABBR.get(F.value.toUpperCase());if(A==null){A=F.value;}D=D+C+A+"&";});return $H(D.parseQuery());}function checkRequiredParameters(E,D,C){var B,A;var F=new Array();B=REQDPARMS.get(E.toUpperCase());if(B!=null){B.each(function(H,G){A=D.get(H.toLowerCase())||C.get(H.toLowerCase());if(A==null){A=D.get(H.toUpperCase())||C.get(H.toUpperCase());if(A==null){A=D.get(H.capitalize())||C.get(H.capitalize());if(A==null){F[F.length]=H;}}}});}else{}return F;}function constructCall(K,J,L){var I,G,A,F,B,H,D,C,E;B="";I=REQDPARMS.get(K.toUpperCase());if(I!=null){I.each(function(N,M){G=J.get(N.toLowerCase())||L.get(N.toLowerCase());if(G==null){G=J.get(N.toUpperCase())||L.get(N.toUpperCase());if(G==null){G=J.get(N.capitalize())||L.get(N.capitalize());if(G==null){}}}if(G!=null){B=B+N+"="+G+"&";}});J.each(function(M){G=I.indexOf(M.key.toLowerCase());if(G==-1){G=I.indexOf(M.key.toUpperCase());if(G==-1){G=I.indexOf(M.key.capitalize());}}if(G==-1){B=B+M.key+"="+M.value+"&";}});}else{return ;}C=KNOWNMETHODS.get(K.toUpperCase())[0];D=KNOWNMETHODS.get(K.toUpperCase())[1];E=KNOWNMETHODS.get(K.toUpperCase())[2];F=$H(B.parseQuery());H=F.invoke("join","=").sort().join("&");parmsHash=$H({url:D,parms:H,div:C,topcat:E});return parmsHash;}function rebuildDivs(L,J){var D,A,C,H,I,K,G,F,E,B;D=KNOWNMETHODS.get(L.toUpperCase())[2];if(D==null||D==""){E=$H(getDivContent("currentSkin").parseQuery());D=E.get("CAT");if(D==null){D=E.get("cat");}}doNavigation(L,J);A=$H(J.toLowerCase().parseQuery());F=A.get("cat");thisarentcat=A.get("parentcat");K=A.get("prodcat");B=A.get("itemcode");thisfmprodcat=A.get("fmprodcat");if(D=="GCO"){if(L!="DCMD"&&K!=null){C="/index.cfm?fuseaction=model.prodrange";H="prodcat="+K.toUpperCase()+"&cat="+K.toUpperCase();I="dynamiccontent";run_ajaxpageswap(C,H,I,false);}}if(D=="FEM"){if(L!="DCMD"&&B!=null&&thisfmprodcat!=null){C="/index.cfm?fuseaction=model.fammenu";H="fmprodcat="+thisfmprodcat.toUpperCase()+"&itemcode="+B.toUpperCase();I="dynamiccontent";run_ajaxpageswap(C,H,I,false);}}}function doNavigation(K,I){var C,H,G,B,J,D,E,A,F;C=$H(I.toUpperCase().parseQuery());G=C.get("CAT");if(G==null){G=C.get("PRODCAT");}B="NAV"+G;J="LHNTOP"+G;D="LHNTOP_TR"+G;eltfound=$(B)||null;if(eltfound!=null){A=eltfound.hasClassName("navlink");if(!A){A=eltfound.hasClassName("navlinktextblack");}if(A){hideByClassName("LHNTOP");toggleByClassName("navLHSnav","+","navlink");toggleByClassName("navLHSnav","-","navlinktextblack");eltfound.addClassName("navlinktextblack");eltfound.removeClassName("navlink");eltfound=$(J);if(eltfound!=null){A=$(J).visible();if(A){}else{Element.show(D);Element.show(J);}}}else{A=$(B).hasClassName("subnavlink");if(A){eltfound=$(B).up("div");if(eltfound==null){}else{A=eltfound.visible();if(A){}else{hideByClassName("LHNTOP");eltfound.show();}toggleByClassName("navLHSnav","+","navlink");toggleByClassName("navLHSnav","-","navlinktextblack");F="NAV"+$(B).up("div").identify().substr(6);$(F).addClassName("navlinktextblack");$(F).removeClassName("navlink");}}else{}}}}function doDCPCRcall(C,B){var A,D;if(C=="DCPCR"){["DCPC","DCPR"].each(function(E){A=KNOWNMETHODS.get(E.toUpperCase())[1];D=KNOWNMETHODS.get(E.toUpperCase())[0];run_ajaxpageswap(A,B,D);});}}function doDCCPcall(G,D){var A,C,B,F,E;A=$H(D.toUpperCase().parseQuery());C=A.get("CAT");if(C==null){C=A.get("PRODCAT");}B="dynamiccontent"+C;F=$(B)||null;if(F!=null){E=F.hasClassName("dyncontent");if(E){hideByClassName("dyncontent");Element.show(B);}}}function getDivContent(B){var A=$(B);if(A==null){return"";}else{return document.getElementById(B).innerHTML;}}function setDivContent(C,A){var B=$(C);if(B==null){return false;}else{document.getElementById(C).innerHTML=A.toUpperCase();return true;}}function hideByClassName(C){var B="."+C;var A=$$(B).each(Element.hide);}function toggleByClassName(C,E,D){var B="."+C;var A=$$(B);if(A){A.each(function(F){if(E=="+"){F.addClassName(D);}else{F.removeClassName(D);}});}}function showByID(A){var B=$(A).each(Element.show);}function doCalls(f){if(f==""){return ;}var Q,Z,c,A,J,b,D,L,X,I,W,F,H,S;var E,M,K,P,O,V,N,T,a,U,C,G,B,R;c=$H();F=true;S=false;var d=true;var W=false;var e=f.split("+");e.each(function(j,h){Q=j.split("-");J=Q[0];if(J=="SK"){Z=Q[1];return ;}if(J=="XBB"){F=false;return ;}if(J=="TESTME"){S=true;return ;}if(Q.length>1){G=Q[1].split("_");B="=";R="";for(step=0;step<G.length;step++){R=R+G[step]+B;if(B=="="){B="&";}else{B="=";}}}if(J=="PM"){if(Q.length>1){c=$H(R.parseQuery());}else{c=$H();}return ;}H=KNOWNAJAX.get(J);if(!H){if(S){alert("Function: "+J+" is not known - ignored, yui1.1.js: function: doCalls ");}return ;}if(W){return ;}if(Q.length>1){A=$H(R.parseQuery());}else{A=$H();}A=substituteForAbbreviations(A);c=substituteForAbbreviations(c);var i=checkRequiredParameters(J,A,c);if(i.length!=0){alert(J+" missing following parms: "+i);return ;}callHash=constructCall(J,A,c);L=callHash.get("div");E=callHash.get("topcat");if(L=="IGNORE"){return ;}if(d){X=$(L);if(X==null){rebuildDivs(J,callHash.get("parms"));a=false;U=false;d=false;}else{O=$H(getDivContent("currentSkin").toUpperCase().parseQuery());K=O.get("CAT");V=O.get("PRODCAT");var g=$H(callHash.get("parms").toUpperCase().parseQuery());M=g.get("CAT");N=g.get("PARENTCAT");T=g.get("PRODCAT");a=false;U=false;if(T==null){if(N==null){N=g.get("PARENTCAT");}if(M!=K){if((N!=null&&N!=K)||(N==null)){a=true;}}}else{C="NAV"+T;X=$(C);if(X==null){a=true;}else{I=g.get("FUSEACTION");if(I!="MODEL.PRODRANGE"&&I!="MODEL.FAMMENU"){O=$H(getDivContent("currentSubNav").toUpperCase().parseQuery());V=O.get("PRODCAT");if(T!=V){U=true;}}}}if(a){rebuildDivs(J,callHash.get("parms"));U=false;d=false;}else{if(U){b="/index.cfm?fuseaction=model.prodrange";D="prodcat="+T.toUpperCase();L="dynamiccontent";run_ajaxpageswap(b,D,L);}}}}if(d){doNavigation(J,callHash.get("parms"));d=false;}if(J=="DCCP"){doDCCPcall(J,callHash.get("parms"));W=true;return ;}if(J=="DCPCR"){doDCPCRcall(J,callHash.get("parms"));return ;}b=callHash.get("url");D=callHash.get("parms");L=callHash.get("div");run_ajaxpageswap(b,D,L);});if(F){A=$H();var Y=checkRequiredParameters("BB",A,c);if(Y.length==0){callHash=constructCall("BB",A,c);b=callHash.get("url");D=callHash.get("parms");L=callHash.get("div");run_ajaxpageswap(b,D,L);}}}