
(function(d){var g=document.createElement("input");d.extend(d.support,{placeholder:!!("placeholder"in g)});d.fn.addPlaceholder=function(g){function h(a,c){if(f(a.val())||a.val()==c)a.val(c),a.addClass(b["class"]);a.focusin(function(){a.hasClass(b["class"])&&(a.removeClass(b["class"]),a.val(""))});a.focusout(function(){f(a.val())&&(a.val(c),a.addClass(b["class"]))})}function i(a,c){a.addClass(b["class"]);var e=d("<span/>",{"class":a.attr("class")+" "+b["class"],text:c,css:{border:"none",cursor:"text",background:"transparent",position:"absolute",top:a.position().top,left:a.position().left,lineHeight:a.height()+3+"px",paddingLeft:parseFloat(a.css("paddingLeft"))+2+"px"}}).insertAfter(a);a.focusin(function(){a.hasClass(b["class"])&&(e.hide(),a.removeClass(b["class"]))});a.focusout(function(){f(a.val())&&(e.show(),a.addClass(b["class"]))});b.checkafill&&function j(){!f(a.val())&&a.hasClass(b["class"])&&a.focusin();setTimeout(j,250)}()}function f(a){return b.allowspaces?a==="":d.trim(a)===""}var b={"class":"placeholder",allowspaces:!1,dopass:!0,dotextarea:!0,checkafill:!1};return this.each(function(){if(d.support.placeholder)return!1;d.extend(b,g);if(!(this.tagName.toLowerCase()=="input"||b.dotextarea&&this.tagName.toLowerCase()=="textarea"))return!0;var a=d(this),c=this.getAttribute("placeholder"),e=a.is("input[type=password]");if(!c)return!0;b.dopass&&e?i(a,c):e||h(a,c)})}})(jQuery);(function(window,undefined){var S={version:"3.0.3"};var ua=navigator.userAgent.toLowerCase();if(ua.indexOf("windows")>-1||ua.indexOf("win32")>-1){S.isWindows=true}else{if(ua.indexOf("macintosh")>-1||ua.indexOf("mac os x")>-1){S.isMac=true}else{if(ua.indexOf("linux")>-1){S.isLinux=true}}}S.isIE=ua.indexOf("msie")>-1;S.isIE6=ua.indexOf("msie 6")>-1;S.isIE7=ua.indexOf("msie 7")>-1;S.isGecko=ua.indexOf("gecko")>-1&&ua.indexOf("safari")==-1;S.isWebKit=ua.indexOf("applewebkit/")>-1;var inlineId=/#(.+)$/,galleryName=/^(light|shadow)box\[(.*?)\]/i,inlineParam=/\s*([a-z_]*?)\s*=\s*(.+)\s*/,fileExtension=/[0-9a-z]+$/i,scriptPath=/(.+\/)shadowbox\.js/i;var open=false,initialized=false,lastOptions={},slideDelay=0,slideStart,slideTimer;S.current=-1;S.dimensions=null;S.ease=function(state){return 1+Math.pow(state-1,3)};S.errorInfo={fla:{name:"Flash",url:"http://www.adobe.com/products/flashplayer/"},qt:{name:"QuickTime",url:"http://www.apple.com/quicktime/download/"},wmp:{name:"Windows Media Player",url:"http://www.microsoft.com/windows/windowsmedia/"},f4m:{name:"Flip4Mac",url:"http://www.flip4mac.com/wmv_download.htm"}};S.gallery=[];S.onReady=noop;S.path=null;S.player=null;S.playerId="sb-player";S.options={animate:true,animateFade:true,autoplayMovies:true,continuous:false,enableKeys:true,flashParams:{bgcolor:"#000000",allowfullscreen:true},flashVars:{},flashVersion:"9.0.115",handleOversize:"resize",handleUnsupported:"link",onChange:noop,onClose:noop,onFinish:noop,onOpen:noop,showMovieControls:true,skipSetup:false,slideshowDelay:0,viewportPadding:20};S.getCurrent=function(){return S.current>-1?S.gallery[S.current]:null};S.hasNext=function(){return S.gallery.length>1&&(S.current!=S.gallery.length-1||S.options.continuous)};S.isOpen=function(){return open};S.isPaused=function(){return slideTimer=="pause"};S.applyOptions=function(options){lastOptions=apply({},S.options);apply(S.options,options)};S.revertOptions=function(){apply(S.options,lastOptions)};S.init=function(options,callback){if(initialized){return}initialized=true;if(S.skin.options){apply(S.options,S.skin.options)}if(options){apply(S.options,options)}if(!S.path){var path,scripts=document.getElementsByTagName("script");for(var i=0,len=scripts.length;i<len;++i){path=scriptPath.exec(scripts[i].src);if(path){S.path=path[1];break}}}if(callback){S.onReady=callback}bindLoad()};S.open=function(obj){if(open){return}var gc=S.makeGallery(obj);S.gallery=gc[0];S.current=gc[1];obj=S.getCurrent();if(obj==null){return}S.applyOptions(obj.options||{});filterGallery();if(S.gallery.length){obj=S.getCurrent();if(S.options.onOpen(obj)===false){return}open=true;S.skin.onOpen(obj,load)}};S.close=function(){if(!open){return}open=false;if(S.player){S.player.remove();S.player=null}if(typeof slideTimer=="number"){clearTimeout(slideTimer);slideTimer=null}slideDelay=0;listenKeys(false);S.options.onClose(S.getCurrent());S.skin.onClose();S.revertOptions()};S.play=function(){if(!S.hasNext()){return}if(!slideDelay){slideDelay=S.options.slideshowDelay*1000}if(slideDelay){slideStart=now();slideTimer=setTimeout(function(){slideDelay=slideStart=0;S.next()},slideDelay);if(S.skin.onPlay){S.skin.onPlay()}}};S.pause=function(){if(typeof slideTimer!="number"){return}slideDelay=Math.max(0,slideDelay-(now()-slideStart));if(slideDelay){clearTimeout(slideTimer);slideTimer="pause";if(S.skin.onPause){S.skin.onPause()}}};S.change=function(index){if(!(index in S.gallery)){if(S.options.continuous){index=(index<0?S.gallery.length+index:0);if(!(index in S.gallery)){return}}else{return}}S.current=index;if(typeof slideTimer=="number"){clearTimeout(slideTimer);slideTimer=null;slideDelay=slideStart=0}S.options.onChange(S.getCurrent());load(true)};S.next=function(){S.change(S.current+1)};S.previous=function(){S.change(S.current-1)};S.setDimensions=function(height,width,maxHeight,maxWidth,topBottom,leftRight,padding,preserveAspect){var originalHeight=height,originalWidth=width;var extraHeight=2*padding+topBottom;if(height+extraHeight>maxHeight){height=maxHeight-extraHeight}var extraWidth=2*padding+leftRight;if(width+extraWidth>maxWidth){width=maxWidth-extraWidth}var changeHeight=(originalHeight-height)/originalHeight,changeWidth=(originalWidth-width)/originalWidth,oversized=(changeHeight>0||changeWidth>0);if(preserveAspect&&oversized){if(changeHeight>changeWidth){width=Math.round((originalWidth/originalHeight)*height)}else{if(changeWidth>changeHeight){height=Math.round((originalHeight/originalWidth)*width)}}}S.dimensions={height:height+topBottom,width:width+leftRight,innerHeight:height,innerWidth:width,top:Math.floor((maxHeight-(height+extraHeight))/2+padding),left:Math.floor((maxWidth-(width+extraWidth))/2+padding),oversized:oversized};return S.dimensions};S.makeGallery=function(obj){var gallery=[],current=-1;if(typeof obj=="string"){obj=[obj]}if(typeof obj.length=="number"){each(obj,function(i,o){if(o.content){gallery[i]=o}else{gallery[i]={content:o}}});current=0}else{if(obj.tagName){var cacheObj=S.getCache(obj);obj=cacheObj?cacheObj:S.makeObject(obj)}if(obj.gallery){gallery=[];var o;for(var key in S.cache){o=S.cache[key];if(o.gallery&&o.gallery==obj.gallery){if(current==-1&&o.content==obj.content){current=gallery.length}gallery.push(o)}}if(current==-1){gallery.unshift(obj);current=0}}else{gallery=[obj];current=0}}each(gallery,function(i,o){gallery[i]=apply({},o)});return[gallery,current]};S.makeObject=function(link,options){var obj={content:link.href,title:link.getAttribute("title")||"",link:link};if(options){options=apply({},options);each(["player","title","height","width","gallery"],function(i,o){if(typeof options[o]!="undefined"){obj[o]=options[o];delete options[o]}});obj.options=options}else{obj.options={}}if(!obj.player){obj.player=S.getPlayer(obj.content)}var rel=link.getAttribute("rel");if(rel){var match=rel.match(galleryName);if(match){obj.gallery=escape(match[2])}each(rel.split(";"),function(i,p){match=p.match(inlineParam);if(match){obj[match[1]]=match[2]}})}return obj};S.getPlayer=function(content){if(content.indexOf("#")>-1&&content.indexOf(document.location.href)==0){return"inline"}var q=content.indexOf("?");if(q>-1){content=content.substring(0,q)}var ext,m=content.match(fileExtension);if(m){ext=m[0].toLowerCase()}if(ext){if(S.img&&S.img.ext.indexOf(ext)>-1){return"img"}if(S.swf&&S.swf.ext.indexOf(ext)>-1){return"swf"}if(S.flv&&S.flv.ext.indexOf(ext)>-1){return"flv"}if(S.qt&&S.qt.ext.indexOf(ext)>-1){if(S.wmp&&S.wmp.ext.indexOf(ext)>-1){return"qtwmp"}else{return"qt"}}if(S.wmp&&S.wmp.ext.indexOf(ext)>-1){return"wmp"}}return"iframe"};function filterGallery(){var err=S.errorInfo,plugins=S.plugins,obj,remove,needed,m,format,replace,inlineEl,flashVersion;for(var i=0;i<S.gallery.length;++i){obj=S.gallery[i];remove=false;needed=null;switch(obj.player){case"flv":case"swf":if(!plugins.fla){needed="fla"}break;case"qt":if(!plugins.qt){needed="qt"}break;case"wmp":if(S.isMac){if(plugins.qt&&plugins.f4m){obj.player="qt"}else{needed="qtf4m"}}else{if(!plugins.wmp){needed="wmp"}}break;case"qtwmp":if(plugins.qt){obj.player="qt"}else{if(plugins.wmp){obj.player="wmp"}else{needed="qtwmp"}}break}if(needed){if(S.options.handleUnsupported=="link"){switch(needed){case"qtf4m":format="shared";replace=[err.qt.url,err.qt.name,err.f4m.url,err.f4m.name];break;case"qtwmp":format="either";replace=[err.qt.url,err.qt.name,err.wmp.url,err.wmp.name];break;default:format="single";replace=[err[needed].url,err[needed].name]}obj.player="html";obj.content='<div class="sb-message">'+sprintf(S.lang.errors[format],replace)+"</div>"}else{remove=true}}else{if(obj.player=="inline"){m=inlineId.exec(obj.content);if(m){inlineEl=get(m[1]);if(inlineEl){obj.content=inlineEl.innerHTML}else{remove=true}}else{remove=true}}else{if(obj.player=="swf"||obj.player=="flv"){flashVersion=(obj.options&&obj.options.flashVersion)||S.options.flashVersion;if(S.flash&&!S.flash.hasFlashPlayerVersion(flashVersion)){obj.width=310;obj.height=177}}}}if(remove){S.gallery.splice(i,1);if(i<S.current){--S.current}else{if(i==S.current){S.current=i>0?i-1:i}}--i}}}function listenKeys(on){if(!S.options.enableKeys){return}(on?addEvent:removeEvent)(document,"keydown",handleKey)}function handleKey(e){if(e.metaKey||e.shiftKey||e.altKey||e.ctrlKey){return}var code=keyCode(e),handler;switch(code){case 81:case 88:case 27:handler=S.close;break;case 37:handler=S.previous;break;case 39:handler=S.next;break;case 32:handler=typeof slideTimer=="number"?S.pause:S.play;break}if(handler){preventDefault(e);handler()}}function load(changing){listenKeys(false);var obj=S.getCurrent();var player=(obj.player=="inline"?"html":obj.player);if(typeof S[player]!="function"){throw"unknown player "+player}if(changing){S.player.remove();S.revertOptions();S.applyOptions(obj.options||{})}S.player=new S[player](obj,S.playerId);if(S.gallery.length>1){var next=S.gallery[S.current+1]||S.gallery[0];if(next.player=="img"){var a=new Image();a.src=next.content}var prev=S.gallery[S.current-1]||S.gallery[S.gallery.length-1];if(prev.player=="img"){var b=new Image();b.src=prev.content}}S.skin.onLoad(changing,waitReady)}function waitReady(){if(!open){return}if(typeof S.player.ready!="undefined"){var timer=setInterval(function(){if(open){if(S.player.ready){clearInterval(timer);timer=null;S.skin.onReady(show)}}else{clearInterval(timer);timer=null}},10)}else{S.skin.onReady(show)}}function show(){if(!open){return}S.player.append(S.skin.body,S.dimensions);S.skin.onShow(finish)}function finish(){if(!open){return}if(S.player.onLoad){S.player.onLoad()}S.options.onFinish(S.getCurrent());if(!S.isPaused()){S.play()}listenKeys(true)}if(!Array.prototype.indexOf){Array.prototype.indexOf=function(obj,from){var len=this.length>>>0;from=from||0;if(from<0){from+=len}for(;from<len;++from){if(from in this&&this[from]===obj){return from}}return-1}}function now(){return(new Date).getTime()}function apply(original,extension){for(var property in extension){original[property]=extension[property]}return original}function each(obj,callback){var i=0,len=obj.length;for(var value=obj[0];i<len&&callback.call(value,i,value)!==false;value=obj[++i]){}}function sprintf(str,replace){return str.replace(/\{(\w+?)\}/g,function(match,i){return replace[i]})}function noop(){}function get(id){return document.getElementById(id)}function remove(el){el.parentNode.removeChild(el)}var supportsOpacity=true,supportsFixed=true;function checkSupport(){var body=document.body,div=document.createElement("div");supportsOpacity=typeof div.style.opacity==="string";div.style.position="fixed";div.style.margin=0;div.style.top="20px";body.appendChild(div,body.firstChild);supportsFixed=div.offsetTop==20;body.removeChild(div)}S.getStyle=(function(){var opacity=/opacity=([^)]*)/,getComputedStyle=document.defaultView&&document.defaultView.getComputedStyle;return function(el,style){var ret;if(!supportsOpacity&&style=="opacity"&&el.currentStyle){ret=opacity.test(el.currentStyle.filter||"")?(parseFloat(RegExp.$1)/100)+"":"";return ret===""?"1":ret}if(getComputedStyle){var computedStyle=getComputedStyle(el,null);if(computedStyle){ret=computedStyle[style]}if(style=="opacity"&&ret==""){ret="1"}}else{ret=el.currentStyle[style]}return ret}})();S.appendHTML=function(el,html){if(el.insertAdjacentHTML){el.insertAdjacentHTML("BeforeEnd",html)}else{if(el.lastChild){var range=el.ownerDocument.createRange();range.setStartAfter(el.lastChild);var frag=range.createContextualFragment(html);el.appendChild(frag)}else{el.innerHTML=html}}};S.getWindowSize=function(dimension){if(document.compatMode==="CSS1Compat"){return document.documentElement["client"+dimension]}return document.body["client"+dimension]};S.setOpacity=function(el,opacity){var style=el.style;if(supportsOpacity){style.opacity=(opacity==1?"":opacity)}else{style.zoom=1;if(opacity==1){if(typeof style.filter=="string"&&(/alpha/i).test(style.filter)){style.filter=style.filter.replace(/\s*[\w\.]*alpha\([^\)]*\);?/gi,"")}}else{style.filter=(style.filter||"").replace(/\s*[\w\.]*alpha\([^\)]*\)/gi,"")+" alpha(opacity="+(opacity*100)+")"}}};S.clearOpacity=function(el){S.setOpacity(el,1)};function getTarget(e){return e.target}function getPageXY(e){return[e.pageX,e.pageY]}function preventDefault(e){e.preventDefault()}function keyCode(e){return e.keyCode}function addEvent(el,type,handler){jQuery(el).bind(type,handler)}function removeEvent(el,type,handler){jQuery(el).unbind(type,handler)}jQuery.fn.shadowbox=function(options){return this.each(function(){var el=jQuery(this);var opts=jQuery.extend({},options||{},jQuery.metadata?el.metadata():jQuery.meta?el.data():{});var cls=this.className||"";opts.width=parseInt((cls.match(/w:(\d+)/)||[])[1])||opts.width;opts.height=parseInt((cls.match(/h:(\d+)/)||[])[1])||opts.height;Shadowbox.setup(el,opts)})};var loaded=false,DOMContentLoaded;if(document.addEventListener){DOMContentLoaded=function(){document.removeEventListener("DOMContentLoaded",DOMContentLoaded,false);S.load()}}else{if(document.attachEvent){DOMContentLoaded=function(){if(document.readyState==="complete"){document.detachEvent("onreadystatechange",DOMContentLoaded);S.load()}}}}function doScrollCheck(){if(loaded){return}try{document.documentElement.doScroll("left")}catch(e){setTimeout(doScrollCheck,1);return}S.load()}function bindLoad(){if(document.readyState==="complete"){return S.load()}if(document.addEventListener){document.addEventListener("DOMContentLoaded",DOMContentLoaded,false);window.addEventListener("load",S.load,false)}else{if(document.attachEvent){document.attachEvent("onreadystatechange",DOMContentLoaded);window.attachEvent("onload",S.load);var topLevel=false;try{topLevel=window.frameElement===null}catch(e){}if(document.documentElement.doScroll&&topLevel){doScrollCheck()}}}}S.load=function(){if(loaded){return}if(!document.body){return setTimeout(S.load,13)}loaded=true;checkSupport();S.onReady();if(!S.options.skipSetup){S.setup()}S.skin.init()};S.plugins={};if(navigator.plugins&&navigator.plugins.length){var names=[];each(navigator.plugins,function(i,p){names.push(p.name)});names=names.join(",");var f4m=names.indexOf("Flip4Mac")>-1;S.plugins={fla:names.indexOf("Shockwave Flash")>-1,qt:names.indexOf("QuickTime")>-1,wmp:!f4m&&names.indexOf("Windows Media")>-1,f4m:f4m}}else{var detectPlugin=function(name){var axo;try{axo=new ActiveXObject(name)}catch(e){}return!!axo};S.plugins={fla:detectPlugin("ShockwaveFlash.ShockwaveFlash"),qt:detectPlugin("QuickTime.QuickTime"),wmp:detectPlugin("wmplayer.ocx"),f4m:false}}var relAttr=/^(light|shadow)box/i,expando="shadowboxCacheKey",cacheKey=1;S.cache={};S.select=function(selector){var links=[];if(!selector){var rel;each(document.getElementsByTagName("a"),function(i,el){rel=el.getAttribute("rel");if(rel&&relAttr.test(rel)){links.push(el)}})}else{var length=selector.length;if(length){if(typeof selector=="string"){if(S.find){links=S.find(selector)}}else{if(length==2&&typeof selector[0]=="string"&&selector[1].nodeType){if(S.find){links=S.find(selector[0],selector[1])}}else{for(var i=0;i<length;++i){links[i]=selector[i]}}}}else{links.push(selector)}}return links};S.setup=function(selector,options){each(S.select(selector),function(i,link){S.addCache(link,options)})};S.teardown=function(selector){each(S.select(selector),function(i,link){S.removeCache(link)})};S.addCache=function(link,options){var key=link[expando];if(key==undefined){key=cacheKey++;link[expando]=key;addEvent(link,"click",handleClick)}S.cache[key]=S.makeObject(link,options)};S.removeCache=function(link){removeEvent(link,"click",handleClick);delete S.cache[link[expando]];link[expando]=null};S.getCache=function(link){var key=link[expando];return(key in S.cache&&S.cache[key])};S.clearCache=function(){for(var key in S.cache){S.removeCache(S.cache[key].link)}S.cache={}};function handleClick(e){S.open(this);if(S.gallery.length){preventDefault(e)}}
S.find=(function(){var chunker=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^[\]]*\]|['"][^'"]*['"]|[^[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g,done=0,toString=Object.prototype.toString,hasDuplicate=false,baseHasDuplicate=true;[0,0].sort(function(){baseHasDuplicate=false;return 0});var Sizzle=function(selector,context,results,seed){results=results||[];var origContext=context=context||document;if(context.nodeType!==1&&context.nodeType!==9){return[]}if(!selector||typeof selector!=="string"){return results}var parts=[],m,set,checkSet,extra,prune=true,contextXML=isXML(context),soFar=selector;while((chunker.exec(""),m=chunker.exec(soFar))!==null){soFar=m[3];parts.push(m[1]);if(m[2]){extra=m[3];break}}if(parts.length>1&&origPOS.exec(selector)){if(parts.length===2&&Expr.relative[parts[0]]){set=posProcess(parts[0]+parts[1],context)}else{set=Expr.relative[parts[0]]?[context]:Sizzle(parts.shift(),context);while(parts.length){selector=parts.shift();if(Expr.relative[selector]){selector+=parts.shift()}set=posProcess(selector,set)}}}else{if(!seed&&parts.length>1&&context.nodeType===9&&!contextXML&&Expr.match.ID.test(parts[0])&&!Expr.match.ID.test(parts[parts.length-1])){var ret=Sizzle.find(parts.shift(),context,contextXML);context=ret.expr?Sizzle.filter(ret.expr,ret.set)[0]:ret.set[0]}if(context){var ret=seed?{expr:parts.pop(),set:makeArray(seed)}:Sizzle.find(parts.pop(),parts.length===1&&(parts[0]==="~"||parts[0]==="+")&&context.parentNode?context.parentNode:context,contextXML);set=ret.expr?Sizzle.filter(ret.expr,ret.set):ret.set;if(parts.length>0){checkSet=makeArray(set)}else{prune=false}while(parts.length){var cur=parts.pop(),pop=cur;if(!Expr.relative[cur]){cur=""}else{pop=parts.pop()}if(pop==null){pop=context}Expr.relative[cur](checkSet,pop,contextXML)}}else{checkSet=parts=[]}}if(!checkSet){checkSet=set}if(!checkSet){throw"Syntax error, unrecognized expression: "+(cur||selector)}if(toString.call(checkSet)==="[object Array]"){if(!prune){results.push.apply(results,checkSet)}else{if(context&&context.nodeType===1){for(var i=0;checkSet[i]!=null;i++){if(checkSet[i]&&(checkSet[i]===true||checkSet[i].nodeType===1&&contains(context,checkSet[i]))){results.push(set[i])}}}else{for(var i=0;checkSet[i]!=null;i++){if(checkSet[i]&&checkSet[i].nodeType===1){results.push(set[i])}}}}}else{makeArray(checkSet,results)}if(extra){Sizzle(extra,origContext,results,seed);Sizzle.uniqueSort(results)}return results};Sizzle.uniqueSort=function(results){if(sortOrder){hasDuplicate=baseHasDuplicate;results.sort(sortOrder);if(hasDuplicate){for(var i=1;i<results.length;i++){if(results[i]===results[i-1]){results.splice(i--,1)}}}}return results};Sizzle.matches=function(expr,set){return Sizzle(expr,null,null,set)};Sizzle.find=function(expr,context,isXML){var set,match;if(!expr){return[]}for(var i=0,l=Expr.order.length;i<l;i++){var type=Expr.order[i],match;if((match=Expr.leftMatch[type].exec(expr))){var left=match[1];match.splice(1,1);if(left.substr(left.length-1)!=="\\"){match[1]=(match[1]||"").replace(/\\/g,"");set=Expr.find[type](match,context,isXML);if(set!=null){expr=expr.replace(Expr.match[type],"");break}}}}if(!set){set=context.getElementsByTagName("*")}return{set:set,expr:expr}};Sizzle.filter=function(expr,set,inplace,not){var old=expr,result=[],curLoop=set,match,anyFound,isXMLFilter=set&&set[0]&&isXML(set[0]);while(expr&&set.length){for(var type in Expr.filter){if((match=Expr.match[type].exec(expr))!=null){var filter=Expr.filter[type],found,item;anyFound=false;if(curLoop===result){result=[]}if(Expr.preFilter[type]){match=Expr.preFilter[type](match,curLoop,inplace,result,not,isXMLFilter);if(!match){anyFound=found=true}else{if(match===true){continue}}}if(match){for(var i=0;(item=curLoop[i])!=null;i++){if(item){found=filter(item,match,i,curLoop);var pass=not^!!found;if(inplace&&found!=null){if(pass){anyFound=true}else{curLoop[i]=false}}else{if(pass){result.push(item);anyFound=true}}}}}if(found!==undefined){if(!inplace){curLoop=result}expr=expr.replace(Expr.match[type],"");if(!anyFound){return[]}break}}}if(expr===old){if(anyFound==null){throw"Syntax error, unrecognized expression: "+expr}else{break}}old=expr}return curLoop};var Expr=Sizzle.selectors={order:["ID","NAME","TAG"],match:{ID:/#((?:[\w\u00c0-\uFFFF-]|\\.)+)/,CLASS:/\.((?:[\w\u00c0-\uFFFF-]|\\.)+)/,NAME:/\[name=['"]*((?:[\w\u00c0-\uFFFF-]|\\.)+)['"]*\]/,ATTR:/\[\s*((?:[\w\u00c0-\uFFFF-]|\\.)+)\s*(?:(\S?=)\s*(['"]*)(.*?)\3|)\s*\]/,TAG:/^((?:[\w\u00c0-\uFFFF\*-]|\\.)+)/,CHILD:/:(only|nth|last|first)-child(?:\((even|odd|[\dn+-]*)\))?/,POS:/:(nth|eq|gt|lt|first|last|even|odd)(?:\((\d*)\))?(?=[^-]|$)/,PSEUDO:/:((?:[\w\u00c0-\uFFFF-]|\\.)+)(?:\((['"]*)((?:\([^\)]+\)|[^\2\(\)]*)+)\2\))?/},leftMatch:{},attrMap:{"class":"className","for":"htmlFor"},attrHandle:{href:function(elem){return elem.getAttribute("href")}},relative:{"+":function(checkSet,part){var isPartStr=typeof part==="string",isTag=isPartStr&&!/\W/.test(part),isPartStrNotTag=isPartStr&&!isTag;if(isTag){part=part.toLowerCase()}for(var i=0,l=checkSet.length,elem;i<l;i++){if((elem=checkSet[i])){while((elem=elem.previousSibling)&&elem.nodeType!==1){}checkSet[i]=isPartStrNotTag||elem&&elem.nodeName.toLowerCase()===part?elem||false:elem===part}}if(isPartStrNotTag){Sizzle.filter(part,checkSet,true)}},">":function(checkSet,part){var isPartStr=typeof part==="string";if(isPartStr&&!/\W/.test(part)){part=part.toLowerCase();for(var i=0,l=checkSet.length;i<l;i++){var elem=checkSet[i];if(elem){var parent=elem.parentNode;checkSet[i]=parent.nodeName.toLowerCase()===part?parent:false}}}else{for(var i=0,l=checkSet.length;i<l;i++){var elem=checkSet[i];if(elem){checkSet[i]=isPartStr?elem.parentNode:elem.parentNode===part}}if(isPartStr){Sizzle.filter(part,checkSet,true)}}},"":function(checkSet,part,isXML){var doneName=done++,checkFn=dirCheck;if(typeof part==="string"&&!/\W/.test(part)){var nodeCheck=part=part.toLowerCase();checkFn=dirNodeCheck}checkFn("parentNode",part,doneName,checkSet,nodeCheck,isXML)},"~":function(checkSet,part,isXML){var doneName=done++,checkFn=dirCheck;if(typeof part==="string"&&!/\W/.test(part)){var nodeCheck=part=part.toLowerCase();checkFn=dirNodeCheck}checkFn("previousSibling",part,doneName,checkSet,nodeCheck,isXML)}},find:{ID:function(match,context,isXML){if(typeof context.getElementById!=="undefined"&&!isXML){var m=context.getElementById(match[1]);return m?[m]:[]}},NAME:function(match,context){if(typeof context.getElementsByName!=="undefined"){var ret=[],results=context.getElementsByName(match[1]);for(var i=0,l=results.length;i<l;i++){if(results[i].getAttribute("name")===match[1]){ret.push(results[i])}}return ret.length===0?null:ret}},TAG:function(match,context){return context.getElementsByTagName(match[1])}},preFilter:{CLASS:function(match,curLoop,inplace,result,not,isXML){match=" "+match[1].replace(/\\/g,"")+" ";if(isXML){return match}for(var i=0,elem;(elem=curLoop[i])!=null;i++){if(elem){if(not^(elem.className&&(" "+elem.className+" ").replace(/[\t\n]/g," ").indexOf(match)>=0)){if(!inplace){result.push(elem)}}else{if(inplace){curLoop[i]=false}}}}return false},ID:function(match){return match[1].replace(/\\/g,"")},TAG:function(match,curLoop){return match[1].toLowerCase()},CHILD:function(match){if(match[1]==="nth"){var test=/(-?)(\d*)n((?:\+|-)?\d*)/.exec(match[2]==="even"&&"2n"||match[2]==="odd"&&"2n+1"||!/\D/.test(match[2])&&"0n+"+match[2]||match[2]);match[2]=(test[1]+(test[2]||1))-0;match[3]=test[3]-0}match[0]=done++;return match},ATTR:function(match,curLoop,inplace,result,not,isXML){var name=match[1].replace(/\\/g,"");if(!isXML&&Expr.attrMap[name]){match[1]=Expr.attrMap[name]}if(match[2]==="~="){match[4]=" "+match[4]+" "}return match},PSEUDO:function(match,curLoop,inplace,result,not){if(match[1]==="not"){if((chunker.exec(match[3])||"").length>1||/^\w/.test(match[3])){match[3]=Sizzle(match[3],null,null,curLoop)}else{var ret=Sizzle.filter(match[3],curLoop,inplace,true^not);if(!inplace){result.push.apply(result,ret)}return false}}else{if(Expr.match.POS.test(match[0])||Expr.match.CHILD.test(match[0])){return true}}return match},POS:function(match){match.unshift(true);return match}},filters:{enabled:function(elem){return elem.disabled===false&&elem.type!=="hidden"},disabled:function(elem){return elem.disabled===true},checked:function(elem){return elem.checked===true},selected:function(elem){elem.parentNode.selectedIndex;return elem.selected===true},parent:function(elem){return!!elem.firstChild},empty:function(elem){return!elem.firstChild},has:function(elem,i,match){return!!Sizzle(match[3],elem).length},header:function(elem){return/h\d/i.test(elem.nodeName)},text:function(elem){return"text"===elem.type},radio:function(elem){return"radio"===elem.type},checkbox:function(elem){return"checkbox"===elem.type},file:function(elem){return"file"===elem.type},password:function(elem){return"password"===elem.type},submit:function(elem){return"submit"===elem.type},image:function(elem){return"image"===elem.type},reset:function(elem){return"reset"===elem.type},button:function(elem){return"button"===elem.type||elem.nodeName.toLowerCase()==="button"},input:function(elem){return/input|select|textarea|button/i.test(elem.nodeName)}},setFilters:{first:function(elem,i){return i===0},last:function(elem,i,match,array){return i===array.length-1},even:function(elem,i){return i%2===0},odd:function(elem,i){return i%2===1},lt:function(elem,i,match){return i<match[3]-0},gt:function(elem,i,match){return i>match[3]-0},nth:function(elem,i,match){return match[3]-0===i},eq:function(elem,i,match){return match[3]-0===i}},filter:{PSEUDO:function(elem,match,i,array){var name=match[1],filter=Expr.filters[name];if(filter){return filter(elem,i,match,array)}else{if(name==="contains"){return(elem.textContent||elem.innerText||getText([elem])||"").indexOf(match[3])>=0}else{if(name==="not"){var not=match[3];for(var i=0,l=not.length;i<l;i++){if(not[i]===elem){return false}}return true}else{throw"Syntax error, unrecognized expression: "+name}}}},CHILD:function(elem,match){var type=match[1],node=elem;switch(type){case"only":case"first":while((node=node.previousSibling)){if(node.nodeType===1){return false}}if(type==="first"){return true}node=elem;case"last":while((node=node.nextSibling)){if(node.nodeType===1){return false}}return true;case"nth":var first=match[2],last=match[3];if(first===1&&last===0){return true}var doneName=match[0],parent=elem.parentNode;if(parent&&(parent.sizcache!==doneName||!elem.nodeIndex)){var count=0;for(node=parent.firstChild;node;node=node.nextSibling){if(node.nodeType===1){node.nodeIndex=++count}}parent.sizcache=doneName}var diff=elem.nodeIndex-last;if(first===0){return diff===0}else{return(diff%first===0&&diff/first>=0)}}},ID:function(elem,match){return elem.nodeType===1&&elem.getAttribute("id")===match},TAG:function(elem,match){return(match==="*"&&elem.nodeType===1)||elem.nodeName.toLowerCase()===match},CLASS:function(elem,match){return(" "+(elem.className||elem.getAttribute("class"))+" ").indexOf(match)>-1},ATTR:function(elem,match){var name=match[1],result=Expr.attrHandle[name]?Expr.attrHandle[name](elem):elem[name]!=null?elem[name]:elem.getAttribute(name),value=result+"",type=match[2],check=match[4];return result==null?type==="!=":type==="="?value===check:type==="*="?value.indexOf(check)>=0:type==="~="?(" "+value+" ").indexOf(check)>=0:!check?value&&result!==false:type==="!="?value!==check:type==="^="?value.indexOf(check)===0:type==="$="?value.substr(value.length-check.length)===check:type==="|="?value===check||value.substr(0,check.length+1)===check+"-":false},POS:function(elem,match,i,array){var name=match[2],filter=Expr.setFilters[name];if(filter){return filter(elem,i,match,array)}}}};var origPOS=Expr.match.POS;for(var type in Expr.match){Expr.match[type]=new RegExp(Expr.match[type].source+/(?![^\[]*\])(?![^\(]*\))/.source);Expr.leftMatch[type]=new RegExp(/(^(?:.|\r|\n)*?)/.source+Expr.match[type].source)}var makeArray=function(array,results){array=Array.prototype.slice.call(array,0);if(results){results.push.apply(results,array);return results}return array};try{Array.prototype.slice.call(document.documentElement.childNodes,0)}catch(e){makeArray=function(array,results){var ret=results||[];if(toString.call(array)==="[object Array]"){Array.prototype.push.apply(ret,array)}else{if(typeof array.length==="number"){for(var i=0,l=array.length;i<l;i++){ret.push(array[i])}}else{for(var i=0;array[i];i++){ret.push(array[i])}}}return ret}}var sortOrder;if(document.documentElement.compareDocumentPosition){sortOrder=function(a,b){if(!a.compareDocumentPosition||!b.compareDocumentPosition){if(a==b){hasDuplicate=true}return a.compareDocumentPosition?-1:1}var ret=a.compareDocumentPosition(b)&4?-1:a===b?0:1;if(ret===0){hasDuplicate=true}return ret}}else{if("sourceIndex"in document.documentElement){sortOrder=function(a,b){if(!a.sourceIndex||!b.sourceIndex){if(a==b){hasDuplicate=true}return a.sourceIndex?-1:1}var ret=a.sourceIndex-b.sourceIndex;if(ret===0){hasDuplicate=true}return ret}}else{if(document.createRange){sortOrder=function(a,b){if(!a.ownerDocument||!b.ownerDocument){if(a==b){hasDuplicate=true}return a.ownerDocument?-1:1}var aRange=a.ownerDocument.createRange(),bRange=b.ownerDocument.createRange();aRange.setStart(a,0);aRange.setEnd(a,0);bRange.setStart(b,0);bRange.setEnd(b,0);var ret=aRange.compareBoundaryPoints(Range.START_TO_END,bRange);if(ret===0){hasDuplicate=true}return ret}}}}function getText(elems){var ret="",elem;for(var i=0;elems[i];i++){elem=elems[i];if(elem.nodeType===3||elem.nodeType===4){ret+=elem.nodeValue}else{if(elem.nodeType!==8){ret+=getText(elem.childNodes)}}}return ret}(function(){var form=document.createElement("div"),id="script"+(new Date).getTime();form.innerHTML="<a name='"+id+"'/>";var root=document.documentElement;root.insertBefore(form,root.firstChild);if(document.getElementById(id)){Expr.find.ID=function(match,context,isXML){if(typeof context.getElementById!=="undefined"&&!isXML){var m=context.getElementById(match[1]);return m?m.id===match[1]||typeof m.getAttributeNode!=="undefined"&&m.getAttributeNode("id").nodeValue===match[1]?[m]:undefined:[]}};Expr.filter.ID=function(elem,match){var node=typeof elem.getAttributeNode!=="undefined"&&elem.getAttributeNode("id");return elem.nodeType===1&&node&&node.nodeValue===match}}root.removeChild(form);root=form=null})();(function(){var div=document.createElement("div");div.appendChild(document.createComment(""));if(div.getElementsByTagName("*").length>0){Expr.find.TAG=function(match,context){var results=context.getElementsByTagName(match[1]);if(match[1]==="*"){var tmp=[];for(var i=0;results[i];i++){if(results[i].nodeType===1){tmp.push(results[i])}}results=tmp}return results}}div.innerHTML="<a href='#'></a>";if(div.firstChild&&typeof div.firstChild.getAttribute!=="undefined"&&div.firstChild.getAttribute("href")!=="#"){Expr.attrHandle.href=function(elem){return elem.getAttribute("href",2)}}div=null})();if(document.querySelectorAll){(function(){var oldSizzle=Sizzle,div=document.createElement("div");div.innerHTML="<p class='TEST'></p>";if(div.querySelectorAll&&div.querySelectorAll(".TEST").length===0){return}Sizzle=function(query,context,extra,seed){context=context||document;if(!seed&&context.nodeType===9&&!isXML(context)){try{return makeArray(context.querySelectorAll(query),extra)}catch(e){}}return oldSizzle(query,context,extra,seed)};for(var prop in oldSizzle){Sizzle[prop]=oldSizzle[prop]}div=null})()}(function(){var div=document.createElement("div");div.innerHTML="<div class='test e'></div><div class='test'></div>";if(!div.getElementsByClassName||div.getElementsByClassName("e").length===0){return}div.lastChild.className="e";if(div.getElementsByClassName("e").length===1){return}Expr.order.splice(1,0,"CLASS");Expr.find.CLASS=function(match,context,isXML){if(typeof context.getElementsByClassName!=="undefined"&&!isXML){return context.getElementsByClassName(match[1])}};div=null})();function dirNodeCheck(dir,cur,doneName,checkSet,nodeCheck,isXML){for(var i=0,l=checkSet.length;i<l;i++){var elem=checkSet[i];if(elem){elem=elem[dir];var match=false;while(elem){if(elem.sizcache===doneName){match=checkSet[elem.sizset];break}if(elem.nodeType===1&&!isXML){elem.sizcache=doneName;elem.sizset=i}if(elem.nodeName.toLowerCase()===cur){match=elem;break}elem=elem[dir]}checkSet[i]=match}}}function dirCheck(dir,cur,doneName,checkSet,nodeCheck,isXML){for(var i=0,l=checkSet.length;i<l;i++){var elem=checkSet[i];if(elem){elem=elem[dir];var match=false;while(elem){if(elem.sizcache===doneName){match=checkSet[elem.sizset];break}if(elem.nodeType===1){if(!isXML){elem.sizcache=doneName;elem.sizset=i}if(typeof cur!=="string"){if(elem===cur){match=true;break}}else{if(Sizzle.filter(cur,[elem]).length>0){match=elem;break}}}elem=elem[dir]}checkSet[i]=match}}}var contains=document.compareDocumentPosition?function(a,b){return a.compareDocumentPosition(b)&16}:function(a,b){return a!==b&&(a.contains?a.contains(b):true)};var isXML=function(elem){var documentElement=(elem?elem.ownerDocument||elem:0).documentElement;return documentElement?documentElement.nodeName!=="HTML":false};var posProcess=function(selector,context){var tmpSet=[],later="",match,root=context.nodeType?[context]:context;while((match=Expr.match.PSEUDO.exec(selector))){later+=match[0];selector=selector.replace(Expr.match.PSEUDO,"")}selector=Expr.relative[selector]?selector+"*":selector;for(var i=0,l=root.length;i<l;i++){Sizzle(selector,root[i],tmpSet)}return Sizzle.filter(later,tmpSet)};return Sizzle})();S.flash=(function(){var swfobject=function(){var UNDEF="undefined",OBJECT="object",SHOCKWAVE_FLASH="Shockwave Flash",SHOCKWAVE_FLASH_AX="ShockwaveFlash.ShockwaveFlash",FLASH_MIME_TYPE="application/x-shockwave-flash",EXPRESS_INSTALL_ID="SWFObjectExprInst",win=window,doc=document,nav=navigator,domLoadFnArr=[],regObjArr=[],objIdArr=[],listenersArr=[],script,timer=null,storedAltContent=null,storedAltContentId=null,isDomLoaded=false,isExpressInstallActive=false;var ua=function(){var w3cdom=typeof doc.getElementById!=UNDEF&&typeof doc.getElementsByTagName!=UNDEF&&typeof doc.createElement!=UNDEF,playerVersion=[0,0,0],d=null;if(typeof nav.plugins!=UNDEF&&typeof nav.plugins[SHOCKWAVE_FLASH]==OBJECT){d=nav.plugins[SHOCKWAVE_FLASH].description;if(d&&!(typeof nav.mimeTypes!=UNDEF&&nav.mimeTypes[FLASH_MIME_TYPE]&&!nav.mimeTypes[FLASH_MIME_TYPE].enabledPlugin)){d=d.replace(/^.*\s+(\S+\s+\S+$)/,"$1");playerVersion[0]=parseInt(d.replace(/^(.*)\..*$/,"$1"),10);playerVersion[1]=parseInt(d.replace(/^.*\.(.*)\s.*$/,"$1"),10);playerVersion[2]=/r/.test(d)?parseInt(d.replace(/^.*r(.*)$/,"$1"),10):0}}else{if(typeof win.ActiveXObject!=UNDEF){var a=null,fp6Crash=false;try{a=new ActiveXObject(SHOCKWAVE_FLASH_AX+".7")}catch(e){try{a=new ActiveXObject(SHOCKWAVE_FLASH_AX+".6");playerVersion=[6,0,21];a.AllowScriptAccess="always"}catch(e){if(playerVersion[0]==6){fp6Crash=true}}if(!fp6Crash){try{a=new ActiveXObject(SHOCKWAVE_FLASH_AX)}catch(e){}}}if(!fp6Crash&&a){try{d=a.GetVariable("$version");if(d){d=d.split(" ")[1].split(",");playerVersion=[parseInt(d[0],10),parseInt(d[1],10),parseInt(d[2],10)]}}catch(e){}}}}var u=nav.userAgent.toLowerCase(),p=nav.platform.toLowerCase(),webkit=/webkit/.test(u)?parseFloat(u.replace(/^.*webkit\/(\d+(\.\d+)?).*$/,"$1")):false,ie=false,windows=p?/win/.test(p):/win/.test(u),mac=p?/mac/.test(p):/mac/.test(u);return{w3cdom:w3cdom,pv:playerVersion,webkit:webkit,ie:ie,win:windows,mac:mac}}();var onDomLoad=function(){if(!ua.w3cdom){return}addDomLoadEvent(main);if(ua.ie&&ua.win){try{doc.write("<script id=__ie_ondomload defer=true src=//:><\/script>");script=getElementById("__ie_ondomload");if(script){addListener(script,"onreadystatechange",checkReadyState)}}catch(e){}}if(ua.webkit&&typeof doc.readyState!=UNDEF){timer=setInterval(function(){if(/loaded|complete/.test(doc.readyState)){callDomLoadFunctions()}},10)}if(typeof doc.addEventListener!=UNDEF){doc.addEventListener("DOMContentLoaded",callDomLoadFunctions,null)}addLoadEvent(callDomLoadFunctions)}();function checkReadyState(){if(script.readyState=="complete"){script.parentNode.removeChild(script);callDomLoadFunctions()}}function callDomLoadFunctions(){if(isDomLoaded){return}if(ua.ie&&ua.win){var s=createElement("span");try{var t=doc.getElementsByTagName("body")[0].appendChild(s);t.parentNode.removeChild(t)}catch(e){return}}isDomLoaded=true;if(timer){clearInterval(timer);timer=null}var dl=domLoadFnArr.length;for(var i=0;i<dl;i++){domLoadFnArr[i]()}}function addDomLoadEvent(fn){if(isDomLoaded){fn()}else{domLoadFnArr[domLoadFnArr.length]=fn}}function addLoadEvent(fn){if(typeof win.addEventListener!=UNDEF){win.addEventListener("load",fn,false)}else{if(typeof doc.addEventListener!=UNDEF){doc.addEventListener("load",fn,false)}else{if(typeof win.attachEvent!=UNDEF){addListener(win,"onload",fn)}else{if(typeof win.onload=="function"){var fnOld=win.onload;win.onload=function(){fnOld();fn()}}else{win.onload=fn}}}}}function main(){var rl=regObjArr.length;for(var i=0;i<rl;i++){var id=regObjArr[i].id;if(ua.pv[0]>0){var obj=getElementById(id);if(obj){regObjArr[i].width=obj.getAttribute("width")?obj.getAttribute("width"):"0";regObjArr[i].height=obj.getAttribute("height")?obj.getAttribute("height"):"0";if(hasPlayerVersion(regObjArr[i].swfVersion)){if(ua.webkit&&ua.webkit<312){fixParams(obj)}setVisibility(id,true)}else{if(regObjArr[i].expressInstall&&!isExpressInstallActive&&hasPlayerVersion("6.0.65")&&(ua.win||ua.mac)){showExpressInstall(regObjArr[i])}else{displayAltContent(obj)}}}}else{setVisibility(id,true)}}}function fixParams(obj){var nestedObj=obj.getElementsByTagName(OBJECT)[0];if(nestedObj){var e=createElement("embed"),a=nestedObj.attributes;if(a){var al=a.length;for(var i=0;i<al;i++){if(a[i].nodeName=="DATA"){e.setAttribute("src",a[i].nodeValue)}else{e.setAttribute(a[i].nodeName,a[i].nodeValue)}}}var c=nestedObj.childNodes;if(c){var cl=c.length;for(var j=0;j<cl;j++){if(c[j].nodeType==1&&c[j].nodeName=="PARAM"){e.setAttribute(c[j].getAttribute("name"),c[j].getAttribute("value"))}}}obj.parentNode.replaceChild(e,obj)}}function showExpressInstall(regObj){isExpressInstallActive=true;var obj=getElementById(regObj.id);if(obj){if(regObj.altContentId){var ac=getElementById(regObj.altContentId);if(ac){storedAltContent=ac;storedAltContentId=regObj.altContentId}}else{storedAltContent=abstractAltContent(obj)}if(!(/%$/.test(regObj.width))&&parseInt(regObj.width,10)<310){regObj.width="310"}if(!(/%$/.test(regObj.height))&&parseInt(regObj.height,10)<137){regObj.height="137"}doc.title=doc.title.slice(0,47)+" - Flash Player Installation";var pt=ua.ie&&ua.win?"ActiveX":"PlugIn",dt=doc.title,fv="MMredirectURL="+win.location+"&MMplayerType="+pt+"&MMdoctitle="+dt,replaceId=regObj.id;if(ua.ie&&ua.win&&obj.readyState!=4){var newObj=createElement("div");replaceId+="SWFObjectNew";newObj.setAttribute("id",replaceId);obj.parentNode.insertBefore(newObj,obj);obj.style.display="none";var fn=function(){obj.parentNode.removeChild(obj)};addListener(win,"onload",fn)}createSWF({data:regObj.expressInstall,id:EXPRESS_INSTALL_ID,width:regObj.width,height:regObj.height},{flashvars:fv},replaceId)}}function displayAltContent(obj){if(ua.ie&&ua.win&&obj.readyState!=4){var el=createElement("div");obj.parentNode.insertBefore(el,obj);el.parentNode.replaceChild(abstractAltContent(obj),el);obj.style.display="none";var fn=function(){obj.parentNode.removeChild(obj)};addListener(win,"onload",fn)}else{obj.parentNode.replaceChild(abstractAltContent(obj),obj)}}function abstractAltContent(obj){var ac=createElement("div");if(ua.win&&ua.ie){ac.innerHTML=obj.innerHTML}else{var nestedObj=obj.getElementsByTagName(OBJECT)[0];if(nestedObj){var c=nestedObj.childNodes;if(c){var cl=c.length;for(var i=0;i<cl;i++){if(!(c[i].nodeType==1&&c[i].nodeName=="PARAM")&&!(c[i].nodeType==8)){ac.appendChild(c[i].cloneNode(true))}}}}}return ac}function createSWF(attObj,parObj,id){var r,el=getElementById(id);if(el){if(typeof attObj.id==UNDEF){attObj.id=id}if(ua.ie&&ua.win){var att="";for(var i in attObj){if(attObj[i]!=Object.prototype[i]){if(i.toLowerCase()=="data"){parObj.movie=attObj[i]}else{if(i.toLowerCase()=="styleclass"){att+=' class="'+attObj[i]+'"'}else{if(i.toLowerCase()!="classid"){att+=" "+i+'="'+attObj[i]+'"'}}}}}var par="";for(var j in parObj){if(parObj[j]!=Object.prototype[j]){par+='<param name="'+j+'" value="'+parObj[j]+'" />'}}el.outerHTML='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"'+att+">"+par+"</object>";objIdArr[objIdArr.length]=attObj.id;r=getElementById(attObj.id)}else{if(ua.webkit&&ua.webkit<312){var e=createElement("embed");e.setAttribute("type",FLASH_MIME_TYPE);for(var k in attObj){if(attObj[k]!=Object.prototype[k]){if(k.toLowerCase()=="data"){e.setAttribute("src",attObj[k])}else{if(k.toLowerCase()=="styleclass"){e.setAttribute("class",attObj[k])}else{if(k.toLowerCase()!="classid"){e.setAttribute(k,attObj[k])}}}}}for(var l in parObj){if(parObj[l]!=Object.prototype[l]){if(l.toLowerCase()!="movie"){e.setAttribute(l,parObj[l])}}}el.parentNode.replaceChild(e,el);r=e}else{var o=createElement(OBJECT);o.setAttribute("type",FLASH_MIME_TYPE);for(var m in attObj){if(attObj[m]!=Object.prototype[m]){if(m.toLowerCase()=="styleclass"){o.setAttribute("class",attObj[m])}else{if(m.toLowerCase()!="classid"){o.setAttribute(m,attObj[m])}}}}for(var n in parObj){if(parObj[n]!=Object.prototype[n]&&n.toLowerCase()!="movie"){createObjParam(o,n,parObj[n])}}el.parentNode.replaceChild(o,el);r=o}}}return r}function createObjParam(el,pName,pValue){var p=createElement("param");p.setAttribute("name",pName);p.setAttribute("value",pValue);el.appendChild(p)}function removeSWF(id){var obj=getElementById(id);if(obj&&(obj.nodeName=="OBJECT"||obj.nodeName=="EMBED")){if(ua.ie&&ua.win){if(obj.readyState==4){removeObjectInIE(id)}else{win.attachEvent("onload",function(){removeObjectInIE(id)})}}else{obj.parentNode.removeChild(obj)}}}function removeObjectInIE(id){var obj=getElementById(id);if(obj){for(var i in obj){if(typeof obj[i]=="function"){obj[i]=null}}obj.parentNode.removeChild(obj)}}function getElementById(id){var el=null;try{el=doc.getElementById(id)}catch(e){}return el}function createElement(el){return doc.createElement(el)}function addListener(target,eventType,fn){target.attachEvent(eventType,fn);listenersArr[listenersArr.length]=[target,eventType,fn]}function hasPlayerVersion(rv){var pv=ua.pv,v=rv.split(".");v[0]=parseInt(v[0],10);v[1]=parseInt(v[1],10)||0;v[2]=parseInt(v[2],10)||0;return(pv[0]>v[0]||(pv[0]==v[0]&&pv[1]>v[1])||(pv[0]==v[0]&&pv[1]==v[1]&&pv[2]>=v[2]))?true:false}function createCSS(sel,decl){if(ua.ie&&ua.mac){return}var h=doc.getElementsByTagName("head")[0],s=createElement("style");s.setAttribute("type","text/css");s.setAttribute("media","screen");if(!(ua.ie&&ua.win)&&typeof doc.createTextNode!=UNDEF){s.appendChild(doc.createTextNode(sel+" {"+decl+"}"))}h.appendChild(s);if(ua.ie&&ua.win&&typeof doc.styleSheets!=UNDEF&&doc.styleSheets.length>0){var ls=doc.styleSheets[doc.styleSheets.length-1];if(typeof ls.addRule==OBJECT){ls.addRule(sel,decl)}}}function setVisibility(id,isVisible){var v=isVisible?"visible":"hidden";if(isDomLoaded&&getElementById(id)){getElementById(id).style.visibility=v}else{createCSS("#"+id,"visibility:"+v)}}function urlEncodeIfNecessary(s){var regex=/[\\\"<>\.;]/;var hasBadChars=regex.exec(s)!=null;return hasBadChars?encodeURIComponent(s):s}var cleanup=function(){if(ua.ie&&ua.win){window.attachEvent("onunload",function(){var ll=listenersArr.length;for(var i=0;i<ll;i++){listenersArr[i][0].detachEvent(listenersArr[i][1],listenersArr[i][2])}var il=objIdArr.length;for(var j=0;j<il;j++){removeSWF(objIdArr[j])}for(var k in ua){ua[k]=null}ua=null;for(var l in swfobject){swfobject[l]=null}swfobject=null})}}();return{registerObject:function(objectIdStr,swfVersionStr,xiSwfUrlStr){if(!ua.w3cdom||!objectIdStr||!swfVersionStr){return}var regObj={};regObj.id=objectIdStr;regObj.swfVersion=swfVersionStr;regObj.expressInstall=xiSwfUrlStr?xiSwfUrlStr:false;regObjArr[regObjArr.length]=regObj;setVisibility(objectIdStr,false)},getObjectById:function(objectIdStr){var r=null;if(ua.w3cdom){var o=getElementById(objectIdStr);if(o){var n=o.getElementsByTagName(OBJECT)[0];if(!n||(n&&typeof o.SetVariable!=UNDEF)){r=o}else{if(typeof n.SetVariable!=UNDEF){r=n}}}}return r},embedSWF:function(swfUrlStr,replaceElemIdStr,widthStr,heightStr,swfVersionStr,xiSwfUrlStr,flashvarsObj,parObj,attObj){if(!ua.w3cdom||!swfUrlStr||!replaceElemIdStr||!widthStr||!heightStr||!swfVersionStr){return}widthStr+="";heightStr+="";if(hasPlayerVersion(swfVersionStr)){setVisibility(replaceElemIdStr,false);var att={};if(attObj&&typeof attObj===OBJECT){for(var i in attObj){if(attObj[i]!=Object.prototype[i]){att[i]=attObj[i]}}}att.data=swfUrlStr;att.width=widthStr;att.height=heightStr;var par={};if(parObj&&typeof parObj===OBJECT){for(var j in parObj){if(parObj[j]!=Object.prototype[j]){par[j]=parObj[j]}}}if(flashvarsObj&&typeof flashvarsObj===OBJECT){for(var k in flashvarsObj){if(flashvarsObj[k]!=Object.prototype[k]){if(typeof par.flashvars!=UNDEF){par.flashvars+="&"+k+"="+flashvarsObj[k]}else{par.flashvars=k+"="+flashvarsObj[k]}}}}addDomLoadEvent(function(){createSWF(att,par,replaceElemIdStr);if(att.id==replaceElemIdStr){setVisibility(replaceElemIdStr,true)}})}else{if(xiSwfUrlStr&&!isExpressInstallActive&&hasPlayerVersion("6.0.65")&&(ua.win||ua.mac)){isExpressInstallActive=true;setVisibility(replaceElemIdStr,false);addDomLoadEvent(function(){var regObj={};regObj.id=regObj.altContentId=replaceElemIdStr;regObj.width=widthStr;regObj.height=heightStr;regObj.expressInstall=xiSwfUrlStr;showExpressInstall(regObj)})}}},getFlashPlayerVersion:function(){return{major:ua.pv[0],minor:ua.pv[1],release:ua.pv[2]}},hasFlashPlayerVersion:hasPlayerVersion,createSWF:function(attObj,parObj,replaceElemIdStr){if(ua.w3cdom){return createSWF(attObj,parObj,replaceElemIdStr)}else{return undefined}},removeSWF:function(objElemIdStr){if(ua.w3cdom){removeSWF(objElemIdStr)}},createCSS:function(sel,decl){if(ua.w3cdom){createCSS(sel,decl)}},addDomLoadEvent:addDomLoadEvent,addLoadEvent:addLoadEvent,getQueryParamValue:function(param){var q=doc.location.search||doc.location.hash;if(param==null){return urlEncodeIfNecessary(q)}if(q){var pairs=q.substring(1).split("&");for(var i=0;i<pairs.length;i++){if(pairs[i].substring(0,pairs[i].indexOf("="))==param){return urlEncodeIfNecessary(pairs[i].substring((pairs[i].indexOf("=")+1)))}}}return""},expressInstallCallback:function(){if(isExpressInstallActive&&storedAltContent){var obj=getElementById(EXPRESS_INSTALL_ID);if(obj){obj.parentNode.replaceChild(storedAltContent,obj);if(storedAltContentId){setVisibility(storedAltContentId,true);if(ua.ie&&ua.win){storedAltContent.style.display="block"}}storedAltContent=null;storedAltContentId=null;isExpressInstallActive=false}}}}}();return swfobject})();S.lang={code:"it",of:"di",loading:"in caricamento",cancel:"Annulla",next:"Avanti",previous:"Indietro",play:"Play",pause:"Pausa",close:"Chiudi",errors:{single:'È necessario installare il plugin <a href="{0}">{1}</a> per poter vedere questo contenuto.',shared:'È necessario installare i plugin <a href="{0}">{1}</a> e <a href="{2}">{3}</a> per poter vedere questo contenuto.',either:'È necessario installare o il plugin <a href="{0}">{1}</a> o <a href="{2}">{3}</a> per poter vedere questo contenuto.'}};var pre,proxyId="sb-drag-proxy",dragData,dragProxy,dragTarget;function resetDrag(){dragData={x:0,y:0,startX:null,startY:null}}function updateProxy(){var dims=S.dimensions;apply(dragProxy.style,{height:dims.innerHeight+"px",width:dims.innerWidth+"px"})}function enableDrag(){resetDrag();var style=["position:absolute","cursor:"+(S.isGecko?"-moz-grab":"move"),"background-color:"+(S.isIE?"#fff;filter:alpha(opacity=0)":"transparent")].join(";");S.appendHTML(S.skin.body,'<div id="'+proxyId+'" style="'+style+'"></div>');dragProxy=get(proxyId);updateProxy();addEvent(dragProxy,"mousedown",startDrag)}function disableDrag(){if(dragProxy){removeEvent(dragProxy,"mousedown",startDrag);remove(dragProxy);dragProxy=null}dragTarget=null}function startDrag(e){preventDefault(e);var xy=getPageXY(e);dragData.startX=xy[0];dragData.startY=xy[1];dragTarget=get(S.player.id);addEvent(document,"mousemove",positionDrag);addEvent(document,"mouseup",endDrag);if(S.isGecko){dragProxy.style.cursor="-moz-grabbing"}}function positionDrag(e){var player=S.player,dims=S.dimensions,xy=getPageXY(e);var moveX=xy[0]-dragData.startX;dragData.startX+=moveX;dragData.x=Math.max(Math.min(0,dragData.x+moveX),dims.innerWidth-player.width);var moveY=xy[1]-dragData.startY;dragData.startY+=moveY;dragData.y=Math.max(Math.min(0,dragData.y+moveY),dims.innerHeight-player.height);apply(dragTarget.style,{left:dragData.x+"px",top:dragData.y+"px"})}function endDrag(){removeEvent(document,"mousemove",positionDrag);removeEvent(document,"mouseup",endDrag);if(S.isGecko){dragProxy.style.cursor="-moz-grab"}}S.img=function(obj,id){this.obj=obj;this.id=id;this.ready=false;var self=this;pre=new Image();pre.onload=function(){self.height=obj.height?parseInt(obj.height,10):pre.height;self.width=obj.width?parseInt(obj.width,10):pre.width;self.ready=true;pre.onload=null;pre=null};pre.src=obj.content};S.img.ext=["bmp","gif","jpg","jpeg","png"];S.img.prototype={append:function(body,dims){var img=document.createElement("img");img.id=this.id;img.src=this.obj.content;img.style.position="absolute";var height,width;if(dims.oversized&&S.options.handleOversize=="resize"){height=dims.innerHeight;width=dims.innerWidth}else{height=this.height;width=this.width}img.setAttribute("height",height);img.setAttribute("width",width);body.appendChild(img)},remove:function(){var el=get(this.id);if(el){remove(el)}disableDrag();if(pre){pre.onload=null;pre=null}},onLoad:function(){var dims=S.dimensions;if(dims.oversized&&S.options.handleOversize=="drag"){enableDrag()}},onWindowResize:function(){var dims=S.dimensions;switch(S.options.handleOversize){case"resize":var el=get(this.id);el.height=dims.innerHeight;el.width=dims.innerWidth;break;case"drag":if(dragTarget){var top=parseInt(S.getStyle(dragTarget,"top")),left=parseInt(S.getStyle(dragTarget,"left"));if(top+this.height<dims.innerHeight){dragTarget.style.top=dims.innerHeight-this.height+"px"}if(left+this.width<dims.innerWidth){dragTarget.style.left=dims.innerWidth-this.width+"px"}updateProxy()}break}}};S.iframe=function(obj,id){this.obj=obj;this.id=id;var overlay=get("sb-overlay");this.height=obj.height?parseInt(obj.height,10):overlay.offsetHeight;this.width=obj.width?parseInt(obj.width,10):overlay.offsetWidth};S.iframe.prototype={append:function(body,dims){var html='<iframe id="'+this.id+'" name="'+this.id+'" height="100%" width="100%" frameborder="0" marginwidth="0" marginheight="0" style="visibility:hidden" onload="this.style.visibility=\'visible\'" scrolling="auto"';if(S.isIE){html+=' allowtransparency="true"';if(S.isIE6){html+=" src=\"javascript:false;document.write('');\""}}html+="></iframe>";body.innerHTML=html},remove:function(){var el=get(this.id);if(el){remove(el);if(S.isGecko){delete window.frames[this.id]}}},onLoad:function(){var win=S.isIE?get(this.id).contentWindow:window.frames[this.id];win.location.href=this.obj.content}};S.html=function(obj,id){this.obj=obj;this.id=id;this.height=obj.height?parseInt(obj.height,10):300;this.width=obj.width?parseInt(obj.width,10):500};S.html.prototype={append:function(body,dims){var div=document.createElement("div");div.id=this.id;div.className="html";div.innerHTML=this.obj.content;body.appendChild(div)},remove:function(){var el=get(this.id);if(el){remove(el)}}};S.swf=function(obj,id){this.obj=obj;this.id=id;this.height=obj.height?parseInt(obj.height,10):300;this.width=obj.width?parseInt(obj.width,10):300};S.swf.ext=["swf"];S.swf.prototype={append:function(body,dims){var tmp=document.createElement("div");tmp.id=this.id;body.appendChild(tmp);var height=dims.innerHeight,width=dims.innerWidth,swf=this.obj.content,version=S.options.flashVersion,express=S.path+"expressInstall.swf",flashvars=S.options.flashVars,params=S.options.flashParams;S.flash.embedSWF(swf,this.id,width,height,version,express,flashvars,params)},remove:function(){S.flash.expressInstallCallback();S.flash.removeSWF(this.id)},onWindowResize:function(){var dims=S.dimensions,el=get(this.id);el.height=dims.innerHeight;el.width=dims.innerWidth}};var jwControllerHeight=20;S.flv=function(obj,id){this.obj=obj;this.id=id;this.height=obj.height?parseInt(obj.height,10):300;if(S.options.showMovieControls){this.height+=jwControllerHeight}this.width=obj.width?parseInt(obj.width,10):300};S.flv.ext=["flv","m4v"];S.flv.prototype={append:function(body,dims){var tmp=document.createElement("div");tmp.id=this.id;body.appendChild(tmp);var height=dims.innerHeight,width=dims.innerWidth,swf=S.path+"player.swf",version=S.options.flashVersion,express=S.path+"expressInstall.swf",flashvars=apply({file:this.obj.content,height:height,width:width,autostart:(S.options.autoplayMovies?"true":"false"),controlbar:(S.options.showMovieControls?"bottom":"none"),backcolor:"0x000000",frontcolor:"0xCCCCCC",lightcolor:"0x557722"},S.options.flashVars),params=S.options.flashParams;S.flash.embedSWF(swf,this.id,width,height,version,express,flashvars,params)},remove:function(){S.flash.expressInstallCallback();S.flash.removeSWF(this.id)},onWindowResize:function(){var dims=S.dimensions,el=get(this.id);el.height=dims.innerHeight;el.width=dims.innerWidth}};var qtControllerHeight=16;S.qt=function(obj,id){this.obj=obj;this.id=id;this.height=obj.height?parseInt(obj.height,10):300;if(S.options.showMovieControls){this.height+=qtControllerHeight}this.width=obj.width?parseInt(obj.width,10):300};S.qt.ext=["dv","mov","moov","movie","mp4","avi","mpg","mpeg"];S.qt.prototype={append:function(body,dims){var opt=S.options,autoplay=String(opt.autoplayMovies),controls=String(opt.showMovieControls);var html="<object",movie={id:this.id,name:this.id,height:this.height,width:this.width,kioskmode:"true"};if(S.isIE){movie.classid="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B";movie.codebase="http://www.apple.com/qtactivex/qtplugin.cab#version=6,0,2,0"}else{movie.type="video/quicktime";movie.data=this.obj.content}for(var m in movie){html+=" "+m+'="'+movie[m]+'"'}html+=">";var params={src:this.obj.content,scale:"aspect",controller:controls,autoplay:autoplay};for(var p in params){html+='<param name="'+p+'" value="'+params[p]+'">'}html+="</object>";body.innerHTML=html},remove:function(){try{document[this.id].Stop()}catch(e){}var el=get(this.id);if(el){remove(el)}}};var wmpControllerHeight=(S.isIE?70:45);S.wmp=function(obj,id){this.obj=obj;this.id=id;this.height=obj.height?parseInt(obj.height,10):300;if(S.options.showMovieControls){this.height+=wmpControllerHeight}this.width=obj.width?parseInt(obj.width,10):300};S.wmp.ext=["asf","avi","mpg","mpeg","wm","wmv"];S.wmp.prototype={append:function(body,dims){var opt=S.options,autoplay=opt.autoplayMovies?1:0;var movie='<object id="'+this.id+'" name="'+this.id+'" height="'+this.height+'" width="'+this.width+'"',params={autostart:opt.autoplayMovies?1:0};if(S.isIE){movie+=' classid="clsid:6BF52A52-394A-11d3-B153-00C04F79FAA6"';params.url=this.obj.content;params.uimode=opt.showMovieControls?"full":"none"}else{movie+=' type="video/x-ms-wmv"';movie+=' data="'+this.obj.content+'"';params.showcontrols=opt.showMovieControls?1:0}movie+=">";for(var p in params){movie+='<param name="'+p+'" value="'+params[p]+'">'}movie+="</object>";body.innerHTML=movie},remove:function(){if(S.isIE){try{window[this.id].controls.stop();window[this.id].URL="movie"+now()+".wmv";window[this.id]=function(){}}catch(e){}}var el=get(this.id);if(el){setTimeout(function(){remove(el)},10)}}};var overlayOn=false,visibilityCache=[],pngIds=["sb-nav-close","sb-nav-next","sb-nav-play","sb-nav-pause","sb-nav-previous"],container,overlay,wrapper,doWindowResize=true;function animate(el,property,to,duration,callback){var isOpacity=(property=="opacity"),anim=isOpacity?S.setOpacity:function(el,value){el.style[property]=""+value+"px"};if(duration==0||(!isOpacity&&!S.options.animate)||(isOpacity&&!S.options.animateFade)){anim(el,to);if(callback){callback()}return}var from=parseFloat(S.getStyle(el,property))||0;var delta=to-from;if(delta==0){if(callback){callback()}return}duration*=1000;var begin=now(),ease=S.ease,end=begin+duration,time;var interval=setInterval(function(){time=now();if(time>=end){clearInterval(interval);interval=null;anim(el,to);if(callback){callback()}}else{anim(el,from+ease((time-begin)/duration)*delta)}},10)}function setSize(){container.style.height=S.getWindowSize("Height")+"px";container.style.width=S.getWindowSize("Width")+"px"}function setPosition(){container.style.top=document.documentElement.scrollTop+"px";container.style.left=document.documentElement.scrollLeft+"px"}function toggleTroubleElements(on){if(on){each(visibilityCache,function(i,el){el[0].style.visibility=el[1]||""})}else{visibilityCache=[];each(S.options.troubleElements,function(i,tag){each(document.getElementsByTagName(tag),function(j,el){visibilityCache.push([el,el.style.visibility]);el.style.visibility="hidden"})})}}function toggleNav(id,on){var el=get("sb-nav-"+id);if(el){el.style.display=on?"":"none"}}function toggleLoading(on,callback){var loading=get("sb-loading"),playerName=S.getCurrent().player,anim=(playerName=="img"||playerName=="html");if(on){S.setOpacity(loading,0);loading.style.display="block";var wrapped=function(){S.clearOpacity(loading);if(callback){callback()}};if(anim){animate(loading,"opacity",1,S.options.fadeDuration,wrapped)}else{wrapped()}}else{var wrapped=function(){loading.style.display="none";S.clearOpacity(loading);if(callback){callback()}};if(anim){animate(loading,"opacity",0,S.options.fadeDuration,wrapped)}else{wrapped()}}}function buildBars(callback){var obj=S.getCurrent();get("sb-title-inner").innerHTML=obj.title||"";var close,next,play,pause,previous;if(S.options.displayNav){close=true;var len=S.gallery.length;if(len>1){if(S.options.continuous){next=previous=true}else{next=(len-1)>S.current;previous=S.current>0}}if(S.options.slideshowDelay>0&&S.hasNext()){pause=!S.isPaused();play=!pause}}else{close=next=play=pause=previous=false}toggleNav("close",close);toggleNav("next",next);toggleNav("play",play);toggleNav("pause",pause);toggleNav("previous",previous);var counter="";if(S.options.displayCounter&&S.gallery.length>1){var len=S.gallery.length;if(S.options.counterType=="skip"){var i=0,end=len,limit=parseInt(S.options.counterLimit)||0;if(limit<len&&limit>2){var h=Math.floor(limit/2);i=S.current-h;if(i<0){i+=len}end=S.current+(limit-h);if(end>len){end-=len}}while(i!=end){if(i==len){i=0}counter+='<a onclick="Shadowbox.change('+i+');"';if(i==S.current){counter+=' class="sb-counter-current"'}counter+=">"+(++i)+"</a>"}}else{counter=[S.current+1,S.lang.of,len].join(" ")}}get("sb-counter").innerHTML=counter;callback()}function showBars(callback){var titleInner=get("sb-title-inner"),infoInner=get("sb-info-inner"),duration=0.35;titleInner.style.visibility=infoInner.style.visibility="";if(titleInner.innerHTML!=""){animate(titleInner,"marginTop",0,duration)}animate(infoInner,"marginTop",0,duration,callback)}function hideBars(anim,callback){var title=get("sb-title"),info=get("sb-info"),titleHeight=title.offsetHeight,infoHeight=info.offsetHeight,titleInner=get("sb-title-inner"),infoInner=get("sb-info-inner"),duration=(anim?0.35:0);animate(titleInner,"marginTop",titleHeight,duration);animate(infoInner,"marginTop",infoHeight*-1,duration,function(){titleInner.style.visibility=infoInner.style.visibility="hidden";callback()})}function adjustHeight(height,top,anim,callback){var wrapperInner=get("sb-wrapper-inner"),duration=(anim?S.options.resizeDuration:0);animate(wrapper,"top",top,duration);animate(wrapperInner,"height",height,duration,callback)}function adjustWidth(width,left,anim,callback){var duration=(anim?S.options.resizeDuration:0);animate(wrapper,"left",left,duration);animate(wrapper,"width",width,duration,callback)}function setDimensions(height,width){var bodyInner=get("sb-body-inner"),height=parseInt(height),width=parseInt(width),topBottom=wrapper.offsetHeight-bodyInner.offsetHeight,leftRight=wrapper.offsetWidth-bodyInner.offsetWidth,maxHeight=overlay.offsetHeight,maxWidth=overlay.offsetWidth,padding=parseInt(S.options.viewportPadding)||20,preserveAspect=(S.player&&S.options.handleOversize!="drag");return S.setDimensions(height,width,maxHeight,maxWidth,topBottom,leftRight,padding,preserveAspect)}var K={};K.markup='<div id="sb-container"><div id="sb-overlay"></div><div id="sb-wrapper"><div id="sb-title"><div id="sb-title-inner"></div></div><div id="sb-wrapper-inner"><div id="sb-body"><div id="sb-body-inner"></div><div id="sb-loading"><div id="sb-loading-inner"><span>{loading}</span></div></div></div></div><div id="sb-info"><div id="sb-info-inner"><div id="sb-counter"></div><div id="sb-nav"><a id="sb-nav-close" title="{close}" onclick="Shadowbox.close()"></a><a id="sb-nav-next" title="{next}" onclick="Shadowbox.next()"></a><a id="sb-nav-play" title="{play}" onclick="Shadowbox.play()"></a><a id="sb-nav-pause" title="{pause}" onclick="Shadowbox.pause()"></a><a id="sb-nav-previous" title="{previous}" onclick="Shadowbox.previous()"></a></div></div></div></div></div>';K.options={animSequence:"sync",counterLimit:10,counterType:"default",displayCounter:true,displayNav:true,fadeDuration:0.35,initialHeight:160,initialWidth:320,modal:false,overlayColor:"#000",overlayOpacity:0.5,resizeDuration:0.35,showOverlay:true,troubleElements:["select","object","embed","canvas"]};K.init=function(){S.appendHTML(document.body,sprintf(K.markup,S.lang));K.body=get("sb-body-inner");container=get("sb-container");overlay=get("sb-overlay");wrapper=get("sb-wrapper");if(!supportsFixed){container.style.position="absolute"}if(!supportsOpacity){var el,m,re=/url\("(.*\.png)"\)/;each(pngIds,function(i,id){el=get(id);if(el){m=S.getStyle(el,"backgroundImage").match(re);if(m){el.style.backgroundImage="none";el.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(enabled=true,src="+m[1]+",sizingMethod=scale);"}}})}var timer;addEvent(window,"resize",function(){if(timer){clearTimeout(timer);timer=null}if(open){timer=setTimeout(K.onWindowResize,10)}})};K.onOpen=function(obj,callback){doWindowResize=false;container.style.display="block";setSize();var dims=setDimensions(S.options.initialHeight,S.options.initialWidth);adjustHeight(dims.innerHeight,dims.top);adjustWidth(dims.width,dims.left);if(S.options.showOverlay){overlay.style.backgroundColor=S.options.overlayColor;S.setOpacity(overlay,0);if(!S.options.modal){addEvent(overlay,"click",S.close)}overlayOn=true}if(!supportsFixed){setPosition();addEvent(window,"scroll",setPosition)}toggleTroubleElements();container.style.visibility="visible";if(overlayOn){animate(overlay,"opacity",S.options.overlayOpacity,S.options.fadeDuration,callback)}else{callback()}};K.onLoad=function(changing,callback){toggleLoading(true);while(K.body.firstChild){remove(K.body.firstChild)}hideBars(changing,function(){if(!open){return}if(!changing){wrapper.style.visibility="visible"}buildBars(callback)})};K.onReady=function(callback){if(!open){return}var player=S.player,dims=setDimensions(player.height,player.width);var wrapped=function(){showBars(callback)};switch(S.options.animSequence){case"hw":adjustHeight(dims.innerHeight,dims.top,true,function(){adjustWidth(dims.width,dims.left,true,wrapped)});break;case"wh":adjustWidth(dims.width,dims.left,true,function(){adjustHeight(dims.innerHeight,dims.top,true,wrapped)});break;default:adjustWidth(dims.width,dims.left,true);adjustHeight(dims.innerHeight,dims.top,true,wrapped)}};K.onShow=function(callback){toggleLoading(false,callback);doWindowResize=true};K.onClose=function(){if(!supportsFixed){removeEvent(window,"scroll",setPosition)}removeEvent(overlay,"click",S.close);wrapper.style.visibility="hidden";var callback=function(){container.style.visibility="hidden";container.style.display="none";toggleTroubleElements(true)};if(overlayOn){animate(overlay,"opacity",0,S.options.fadeDuration,callback)}else{callback()}};K.onPlay=function(){toggleNav("play",false);toggleNav("pause",true)};K.onPause=function(){toggleNav("pause",false);toggleNav("play",true)};K.onWindowResize=function(){if(!doWindowResize){return}setSize();var player=S.player,dims=setDimensions(player.height,player.width);adjustWidth(dims.width,dims.left);adjustHeight(dims.innerHeight,dims.top);if(player.onWindowResize){player.onWindowResize()}};S.skin=K;window.Shadowbox=S})(window);function sizeContent(){var windowHeight=getWindowHeight();var footerHeight=0;var headerHeight=0;var contentHeight=windowHeight-footerHeight-headerHeight;if(document.getElementById("fbContainer"))document.getElementById("fbContainer").style.height=contentHeight+"px";var altDiv=document.getElementById("altmsg");if(altDiv){var altH=altDiv.offsetHeight;var altW=altDiv.offsetWidth;altDiv.style.top=(contentHeight/2-altH/2)+"px";altDiv.style.left=(getWindowWidth()/2-altW/2)+"px";}}
function addEvent(obj,type,fn)
{if(obj.addEventListener)
obj.addEventListener(type,fn,false);else if(obj.attachEvent)
{obj["e"+type+fn]=fn;obj.attachEvent("on"+type,function(){obj["e"+type+fn]();});}}
function getWindowHeight(){var windowHeight=0;if(typeof(window.innerHeight)=='number'){windowHeight=window.innerHeight;}
else{if(document.documentElement&&document.documentElement.clientHeight){windowHeight=document.documentElement.clientHeight;}
else{if(document.body&&document.body.clientHeight){windowHeight=document.body.clientHeight;}}}
return windowHeight;};function getWindowWidth(){var ww=0;if(self.innerWidth)
ww=self.innerWidth;else if(document.documentElement&&document.documentElement.clientWidth)
ww=document.documentElement.clientWidth;else if(document.body)
ww=document.body.clientWidth;return ww;}
addEvent(window,"load",sizeContent);addEvent(window,"resize",sizeContent);var FlippingBook;(function($){FlippingBook=function(){this.pages=[];this.zoomPages=[];this.printPages=[];this.contents=[];this.stageWidth="100%";this.stageHeight="100%";this.settings={bookWidth:640,bookHeight:480,pagesSet:this.pages,zoomPagesSet:this.zoomPages,printPagesSet:this.printPages,scaleContent:true,preserveProportions:false,centerContent:true,hardcover:false,hardcoverThickness:3,hardcoverEdgeColor:0xFFFFFF,highlightHardcover:true,frameWidth:0,frameColor:0xFFFFFF,frameAlpha:100,firstPageNumber:1,autoFlipSize:50,navigationFlipOffset:30,flipOnClick:true,handOverCorner:true,handOverPage:true,alwaysOpened:false,staticShadowsType:"Asymmetric",staticShadowsDepth:1,staticShadowsLightColor:0xFFFFFF,staticShadowsDarkColor:0x000000,dynamicShadowsDepth:1,dynamicShadowsLightColor:0xFFFFFF,dynamicShadowsDarkColor:0x000000,moveSpeed:2,closeSpeed:3,gotoSpeed:3,rigidPageSpeed:5,flipSound:"",hardcoverSound:"",preloaderType:"Thin",pageBackgroundColor:0x99CCFF,loadOnDemand:true,allowPagesUnload:true,showUnderlyingPages:false,playOnDemand:true,freezeOnFlip:false,darkPages:false,smoothPages:false,rigidPages:false,flipCornerStyle:"manually",flipCornerPosition:"bottom-right",flipCornerAmount:50,flipCornerAngle:20,flipCornerRelease:true,flipCornerVibrate:true,flipCornerPlaySound:false,zoomEnabled:true,zoomPath:"pages/large/",zoomImageWidth:900,zoomImageHeight:1165,zoomOnClick:true,zoomUIColor:0x8f9ea6,zoomHint:"Double click for zooming.",zoomHintEnabled:false,centerBook:true,useCustomCursors:true,dropShadowEnabled:true,dropShadowHideWhenFlipping:true,backgroundColor:0xFFFFFF,backgroundImage:"img/bookBackground.jpg",backgroundImagePlacement:"fit",printEnabled:true,printTitle:"Print Pages",downloadURL:"",downloadTitle:"Download PDF",downloadSize:"Size: 4.7 Mb",downloadComplete:"Complete",extXML:""};this.containerId="fbContainer";this.forwardButtonId="fbForwardButton";this.backButtonId="fbBackButton";this.zoomButtonId="fbZoomButton";this.printButtonId="fbPrintButton";this.downloadButtonId="fbDownloadButton";this.currentPagesId="fbCurrentPages";this.totalPagesId="fbTotalPages";this.contentsMenuId="fbContentsMenu";};FlippingBook.prototype.create=function(swfPath){if(!swfPath)swfPath='FlippingBook.swf';this.settings.pagesSet=this.pages;this.settings.zoomPagesSet=this.zoomPages;this.settings.printPagesSet=this.printPages;if(location.hash.substr(1)!="")
this.settings.firstPageNumber=location.hash.substr(1);this.addLoadEvent(this.onWindowLoad);swfobject.embedSWF(swfPath,this.containerId,this.stageWidth,this.stageHeight,"8.0.0","js/expressInstall.swf",this.settings,{allowScriptAccess:"always",bgcolor:"#"+this.settings.backgroundColor.toString(16)});}
FlippingBook.prototype.getFlippingBookReference=function(){return this.getObjectReference(this.containerId);}
FlippingBook.prototype.getObjectReference=function(id){return document.getElementById(id);}
FlippingBook.prototype.flipForward=function(){flippingBook.getFlippingBookReference().flipForward();}
FlippingBook.prototype.flipBack=function(){flippingBook.getFlippingBookReference().flipBack();}
FlippingBook.prototype.zoomButtonClick=function(){if(flippingBook.getFlippingBookReference().isZoomedIn())
flippingBook.zoomOut();else
flippingBook.zoomIn();}
FlippingBook.prototype.zoomIn=function(){this.getFlippingBookReference().zoomIn();}
FlippingBook.prototype.zoomOut=function(){this.getFlippingBookReference().zoomOut();}
FlippingBook.prototype.print=function(){flippingBook.getFlippingBookReference().print();}
FlippingBook.prototype.downloadFile=function(){if(flippingBook.settings.downloadURL)
flippingBook.getFlippingBookReference().downloadFile();}
FlippingBook.prototype.onWindowLoad=function(){var forwardButton=flippingBook.getObjectReference(flippingBook.forwardButtonId);if(forwardButton){forwardButton.style.cursor="pointer";forwardButton.onclick=flippingBook.flipForward;}
var backButton=flippingBook.getObjectReference(flippingBook.backButtonId);if(backButton){backButton.style.cursor="pointer";backButton.onclick=flippingBook.flipBack;}
var zoomButton=flippingBook.getObjectReference(flippingBook.zoomButtonId);if(zoomButton){zoomButton.style.cursor="pointer";zoomButton.onclick=flippingBook.zoomButtonClick;}
var printButton=flippingBook.getObjectReference(flippingBook.printButtonId);if(printButton){printButton.style.cursor="pointer";printButton.onclick=flippingBook.print;}
var downloadButton=flippingBook.getObjectReference(flippingBook.downloadButtonId);if(downloadButton){downloadButton.style.cursor="pointer";downloadButton.onclick=flippingBook.downloadFile;}
flippingBook.buildContentsMenu();}
FlippingBook.prototype.onPutPage=function(leftPageNumber,rightPageNumber){this.updatePagination(leftPageNumber,rightPageNumber);this.updateContentsMenu(leftPageNumber,rightPageNumber);}
FlippingBook.prototype.updatePagination=function(leftPageNumber,rightPageNumber){var leftPageExists=(leftPageNumber!=undefined);var rightPageExists=(rightPageNumber!=undefined);var pageNumberString=leftPageNumber+"-"+rightPageNumber;if(!leftPageExists)
pageNumberString=rightPageNumber;if(!rightPageExists)
pageNumberString=leftPageNumber;this.getObjectReference(this.currentPagesId).innerHTML=pageNumberString;this.getObjectReference(this.totalPagesId).innerHTML=" / "+this.getFlippingBookReference().totalPages();}
FlippingBook.prototype.buildContentsMenu=function(){var contentsSelect=this.getObjectReference(this.contentsMenuId);if(contentsSelect){for(var i=0;i<this.contents.length;i++)
contentsSelect.options[i]=new Option(this.contents[i][0],this.contents[i][1]);contentsSelect.onchange=this.onContentsChange;}}
FlippingBook.prototype.onContentsChange=function(){var contentsSelect=flippingBook.getObjectReference(flippingBook.contentsMenuId);var pageNumber=contentsSelect.options[contentsSelect.selectedIndex].value;if(pageNumber)
flippingBook.getFlippingBookReference().flipGotoPage(pageNumber);}
FlippingBook.prototype.updateContentsMenu=function(leftPageNumber,rightPageNumber){var contentsSelect=flippingBook.getObjectReference(flippingBook.contentsMenuId);if(contentsSelect){for(var i=0;i<this.contents.length-1;i++){var minPage=contentsSelect.options[i].value;var maxPage=contentsSelect.options[i+1].value;var leftOK=false;var rightOK=false;if(leftPageNumber)
leftOK=(Number(leftPageNumber)>=minPage&&Number(leftPageNumber)<=maxPage);else
leftOK=true;if(rightPageNumber)
rightOK=(Number(rightPageNumber)>=minPage&&Number(rightPageNumber)<=maxPage);else
rightOK=true;if(leftOK&&rightOK)
break;}
contentsSelect.selectedIndex=i;}}
FlippingBook.prototype.getWindowHeight=function(){var windowHeight=0;if(typeof(window.innerHeight)=='number'){windowHeight=window.innerHeight;}
else{if(document.documentElement&&document.documentElement.clientHeight){windowHeight=document.documentElement.clientHeight;}
else{if(document.body&&document.body.clientHeight){windowHeight=document.body.clientHeight;}}}
return windowHeight;}
FlippingBook.prototype.addLoadEvent=function(fn){if(typeof window.addEventListener!="undefined"){window.addEventListener("load",fn,false);}
else if(typeof document.addEventListener!="undefined"){document.addEventListener("load",fn,false);}
else if(typeof window.attachEvent!="undefined"){window.attachEvent("onload",fn);}
else if(typeof window.onload=="function"){var fnOld=window.onload;window.onload=function(){fnOld();fn();};}
else{window.onload=fn;}}
FlippingBook.prototype.handleWheel=function(delta){this.getFlippingBookReference().onWheelScroll(delta);}
FlippingBook.prototype.goToPage=function(n){flippingBook.getFlippingBookReference().flipGotoPage(n);}
flippingBook=new FlippingBook();function wheel(event){var delta=0;if(!event)event=window.event;if(event){if(event.wheelDelta){delta=event.wheelDelta/120;if(window.opera)delta=-delta;}else if(event.detail){delta=-event.detail/3;}
if(delta)flippingBook.handleWheel(delta);if(event.preventDefault)event.preventDefault();event.returnValue=false;}}
$(document).scroll(function(){wheel()});})(jQuery);var pfricette={"it":[{"image":"img/pf4_pictures/ricette/005.gif","action":"come_gustarlo/ricette/calamari-parmigiano-reggiano.aspx"},{"image":"img/pf4_pictures/ricette/001.gif","action":"come_gustarlo/ricette/carpaccio-parmigiano-reggiano.aspx"},{"image":"img/pf4_pictures/ricette/002.gif","action":"come_gustarlo/ricette/cappesante-scaglie-parmigiano-reggiano-prosciutto-parma.aspx"},{"image":"img/pf4_pictures/ricette/003.gif","action":"come_gustarlo/ricette/souffle-parmigiano-reggiano.aspx"},{"image":"img/pf4_pictures/ricette/004.gif","action":"come_gustarlo/ricette/bonbons-parmigiano-reggiano.aspx"},{"image":"img/pf4_pictures/ricette/006.gif","action":"come_gustarlo/ricette/crostatina-emilia.aspx"},{"image":"img/pf4_pictures/ricette/007.gif","action":"come_gustarlo/ricette/insalata-croccante-prosciutto-parmigiano.aspx"},{"image":"img/pf4_pictures/ricette/008.gif","action":"come_gustarlo/ricette/biscottini-salati-parmigiano-reggiano.aspx"}],"en":[{"image":"img/pf4_pictures/ricette/005.gif","action":"come_gustarlo/ricette/calamari-parmigiano-reggiano.aspx"},{"image":"img/pf4_pictures/ricette/001.gif","action":"come_gustarlo/ricette/carpaccio-parmigiano-reggiano.aspx"},{"image":"img/pf4_pictures/ricette/002.gif","action":"come_gustarlo/ricette/cappesante-scaglie-parmigiano-reggiano-prosciutto-parma.aspx"},{"image":"img/pf4_pictures/ricette/003.gif","action":"come_gustarlo/ricette/souffle-parmigiano-reggiano.aspx"},{"image":"img/pf4_pictures/ricette/004.gif","action":"come_gustarlo/ricette/bonbons-parmigiano-reggiano.aspx"},{"image":"img/pf4_pictures/ricette/006.gif","action":"come_gustarlo/ricette/crostatina-emilia.aspx"},{"image":"img/pf4_pictures/ricette/007.gif","action":"come_gustarlo/ricette/insalata-croccante-prosciutto-parmigiano.aspx"},{"image":"img/pf4_pictures/ricette/008.gif","action":"come_gustarlo/ricette/biscottini-salati-parmigiano-reggiano.aspx"}]};var pfvideo={"it":[{"image":"img/pf4_pictures/video/001.gif","action":"come_gustarlo/analisi_sensoriale/default.aspx"},{"image":"img/pf4_pictures/video/002.gif","action":"come/guida_parmigiano_reggiano/default.aspx"},{"image":"img/pf4_pictures/video/003.gif","action":"comunicazione/campagne_pubblicitarie/spot.aspx"},{"image":"img/pf4_pictures/video/006.gif","action":"come/zona_origine/default.aspx"},{"image":"img/pf4_pictures/video/007.gif","action":"news/2010_1/giuliano_razzoli_protagonista_nuovo_spot_parmigiano.aspx"},{"image":"img/pf4_pictures/video/004.gif","action":"come/parmigiano_reggiano/default.aspx"},{"image":"img/pf4_pictures/video/005.gif","action":"dove_trova/guida_acquisto/bollini_fanno_differenza.aspx"}],"en":[{"image":"img/pf4_pictures/video/001.gif","action":"taste/sensory_analysis/default.aspx"},{"image":"img/pf4_pictures/video/002.gif","action":"made/guide_parmigiano_reggiano/default.aspx"},{"image":"img/pf4_pictures/video/004.gif","action":"made/parmigiano_reggiano_cheese/default.aspx"},{"image":"img/pf4_pictures/video/005.gif","action":"where/purchase_guide/stamp_that_makes_difference.aspx"},{"image":"img/pf4_pictures/video/006.gif","action":"made/place_origin/default.aspx"},]};var pfgallery={"it":[{"image":"img/pf4_pictures/gallery/1-picnic.jpg","action":"/area_stampa/archivio_fotografico/default.aspx"},{"image":"img/pf4_pictures/gallery/2-parmigiano-reggiano.jpg","action":"/area_stampa/archivio_fotografico/default.aspx"},{"image":"img/pf4_pictures/gallery/3-marchio-fuoco.jpg","action":"/area_stampa/archivio_fotografico/default.aspx"},{"image":"img/pf4_pictures/gallery/4-uva.jpg","action":"/area_stampa/archivio_fotografico/default.aspx"},{"image":"img/pf4_pictures/gallery/5-forma-tagliata.jpg","action":"/area_stampa/archivio_fotografico/default.aspx"},{"image":"img/pf4_pictures/gallery/6-forma-fetta.jpg","action":"/area_stampa/archivio_fotografico/default.aspx"},{"image":"img/pf4_pictures/gallery/7-espertizzazione.jpg","action":"/area_stampa/archivio_fotografico/default.aspx"},{"image":"img/pf4_pictures/gallery/8-forma-fetta-blu.jpg","action":"/area_stampa/archivio_fotografico/default.aspx"},{"image":"img/pf4_pictures/gallery/9-stagionatura.jpg","action":"/area_stampa/archivio_fotografico/default.aspx"},{"image":"img/pf4_pictures/gallery/10-dop.jpg","action":"/area_stampa/archivio_fotografico/default.aspx"}],"en":[{"image":"img/pf4_pictures/gallery/1-picnic.jpg","action":"/press_area/photo_archive/default.aspx"},{"image":"img/pf4_pictures/gallery/2-parmigiano-reggiano.jpg","action":"/press_area/photo_archive/default.aspx"},{"image":"img/pf4_pictures/gallery/3-marchio-fuoco.jpg","action":"/press_area/photo_archive/default.aspx"},{"image":"img/pf4_pictures/gallery/4-uva.jpg","action":"/press_area/photo_archive/default.aspx"},{"image":"img/pf4_pictures/gallery/5-forma-tagliata.jpg","action":"/press_area/photo_archive/default.aspx"},{"image":"img/pf4_pictures/gallery/6-forma-fetta.jpg","action":"/press_area/photo_archive/default.aspx"},{"image":"img/pf4_pictures/gallery/7-espertizzazione.jpg","action":"/press_area/photo_archive/default.aspx"},{"image":"img/pf4_pictures/gallery/8-forma-fetta-blu.jpg","action":"/press_area/photo_archive/default.aspx"},{"image":"img/pf4_pictures/gallery/9-stagionatura.jpg","action":"/press_area/photo_archive/default.aspx"},{"image":"img/pf4_pictures/gallery/10-dop.jpg","action":"/press_area/photo_archive/default.aspx"}]};(function($){$.fn.hoverIntent=function(f,g){var cfg={sensitivity:7,interval:100,timeout:0};cfg=$.extend(cfg,g?{over:f,out:g}:f);var cX,cY,pX,pY;var track=function(ev){cX=ev.pageX;cY=ev.pageY;};var compare=function(ev,ob){ob.hoverIntent_t=clearTimeout(ob.hoverIntent_t);if((Math.abs(pX-cX)+Math.abs(pY-cY))<cfg.sensitivity){$(ob).unbind("mousemove",track);ob.hoverIntent_s=1;return cfg.over.apply(ob,[ev]);}else{pX=cX;pY=cY;ob.hoverIntent_t=setTimeout(function(){compare(ev,ob);},cfg.interval);}};var delay=function(ev,ob){ob.hoverIntent_t=clearTimeout(ob.hoverIntent_t);ob.hoverIntent_s=0;return cfg.out.apply(ob,[ev]);};var handleHover=function(e){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;}var ev=jQuery.extend({},e);var ob=this;if(ob.hoverIntent_t){ob.hoverIntent_t=clearTimeout(ob.hoverIntent_t);}if(e.type=="mouseover"){pX=ev.pageX;pY=ev.pageY;$(ob).bind("mousemove",track);if(ob.hoverIntent_s!=1){ob.hoverIntent_t=setTimeout(function(){compare(ev,ob);},cfg.interval);}}else{$(ob).unbind("mousemove",track);if(ob.hoverIntent_s==1){ob.hoverIntent_t=setTimeout(function(){delay(ev,ob);},cfg.timeout);}}};return this.mouseover(handleHover).mouseout(handleHover);};})(jQuery);;(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(){var 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,onInit:function(){},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);;(function($){var ver='2.9997';if($.support==undefined){$.support={opacity:!($.browser.msie)};}
function debug(s){$.fn.cycle.debug&&log(s);}
function log(){window.console&&console.log&&console.log('[cycle] '+Array.prototype.join.call(arguments,' '));}
$.expr[':'].paused=function(el){return el.cyclePause;}
$.fn.cycle=function(options,arg2){var o={s:this.selector,c:this.context};if(this.length===0&&options!='stop'){if(!$.isReady&&o.s){log('DOM not ready, queuing slideshow');$(function(){$(o.s,o.c).cycle(options,arg2);});return this;}
log('terminating; zero elements found by selector'+($.isReady?'':' (DOM not ready)'));return this;}
return this.each(function(){var opts=handleArguments(this,options,arg2);if(opts===false)
return;opts.updateActivePagerLink=opts.updateActivePagerLink||$.fn.cycle.updateActivePagerLink;if(this.cycleTimeout)
clearTimeout(this.cycleTimeout);this.cycleTimeout=this.cyclePause=0;var $cont=$(this);var $slides=opts.slideExpr?$(opts.slideExpr,this):$cont.children();var els=$slides.get();var opts2=buildOptions($cont,$slides,els,opts,o);if(opts2===false)
return;if(els.length<2){log('terminating; too few slides: '+els.length);return;}
var startTime=opts2.continuous?10:getTimeout(els[opts2.currSlide],els[opts2.nextSlide],opts2,!opts2.backwards);if(startTime){startTime+=(opts2.delay||0);if(startTime<10)
startTime=10;debug('first timeout: '+startTime);this.cycleTimeout=setTimeout(function(){go(els,opts2,0,!opts.backwards)},startTime);}});};function triggerPause(cont,byHover,onPager){var opts=$(cont).data('cycle.opts');var paused=!!cont.cyclePause;if(paused&&opts.paused)
opts.paused(cont,opts,byHover,onPager);else if(!paused&&opts.resumed)
opts.resumed(cont,opts,byHover,onPager);}
function handleArguments(cont,options,arg2){if(cont.cycleStop==undefined)
cont.cycleStop=0;if(options===undefined||options===null)
options={};if(options.constructor==String){switch(options){case'destroy':case'stop':var opts=$(cont).data('cycle.opts');if(!opts)
return false;cont.cycleStop++;if(cont.cycleTimeout)
clearTimeout(cont.cycleTimeout);cont.cycleTimeout=0;opts.elements&&$(opts.elements).stop();$(cont).removeData('cycle.opts');if(options=='destroy')
destroy(opts);return false;case'toggle':cont.cyclePause=(cont.cyclePause===1)?0:1;checkInstantResume(cont.cyclePause,arg2,cont);triggerPause(cont);return false;case'pause':cont.cyclePause=1;triggerPause(cont);return false;case'resume':cont.cyclePause=0;checkInstantResume(false,arg2,cont);triggerPause(cont);return false;case'prev':case'next':var opts=$(cont).data('cycle.opts');if(!opts){log('options not found, "prev/next" ignored');return false;}
$.fn.cycle[options](opts);return false;default:options={fx:options};};return options;}
else if(options.constructor==Number){var num=options;options=$(cont).data('cycle.opts');if(!options){log('options not found, can not advance slide');return false;}
if(num<0||num>=options.elements.length){log('invalid slide index: '+num);return false;}
options.nextSlide=num;if(cont.cycleTimeout){clearTimeout(cont.cycleTimeout);cont.cycleTimeout=0;}
if(typeof arg2=='string')
options.oneTimeFx=arg2;go(options.elements,options,1,num>=options.currSlide);return false;}
return options;function checkInstantResume(isPaused,arg2,cont){if(!isPaused&&arg2===true){var options=$(cont).data('cycle.opts');if(!options){log('options not found, can not resume');return false;}
if(cont.cycleTimeout){clearTimeout(cont.cycleTimeout);cont.cycleTimeout=0;}
go(options.elements,options,1,!options.backwards);}}};function removeFilter(el,opts){if(!$.support.opacity&&opts.cleartype&&el.style.filter){try{el.style.removeAttribute('filter');}
catch(smother){}}};function destroy(opts){if(opts.next)
$(opts.next).unbind(opts.prevNextEvent);if(opts.prev)
$(opts.prev).unbind(opts.prevNextEvent);if(opts.pager||opts.pagerAnchorBuilder)
$.each(opts.pagerAnchors||[],function(){this.unbind().remove();});opts.pagerAnchors=null;if(opts.destroy)
opts.destroy(opts);};function buildOptions($cont,$slides,els,options,o){var opts=$.extend({},$.fn.cycle.defaults,options||{},$.metadata?$cont.metadata():$.meta?$cont.data():{});var meta=$.isFunction($cont.data)?$cont.data(opts.metaAttr):null;if(meta)
opts=$.extend(opts,meta);if(opts.autostop)
opts.countdown=opts.autostopCount||els.length;var cont=$cont[0];$cont.data('cycle.opts',opts);opts.$cont=$cont;opts.stopCount=cont.cycleStop;opts.elements=els;opts.before=opts.before?[opts.before]:[];opts.after=opts.after?[opts.after]:[];if(!$.support.opacity&&opts.cleartype)
opts.after.push(function(){removeFilter(this,opts);});if(opts.continuous)
opts.after.push(function(){go(els,opts,0,!opts.backwards);});saveOriginalOpts(opts);if(!$.support.opacity&&opts.cleartype&&!opts.cleartypeNoBg)
clearTypeFix($slides);if($cont.css('position')=='static')
$cont.css('position','relative');if(opts.width)
$cont.width(opts.width);if(opts.height&&opts.height!='auto')
$cont.height(opts.height);if(opts.startingSlide)
opts.startingSlide=parseInt(opts.startingSlide,10);else if(opts.backwards)
opts.startingSlide=els.length-1;if(opts.random){opts.randomMap=[];for(var i=0;i<els.length;i++)
opts.randomMap.push(i);opts.randomMap.sort(function(a,b){return Math.random()-0.5;});opts.randomIndex=1;opts.startingSlide=opts.randomMap[1];}
else if(opts.startingSlide>=els.length)
opts.startingSlide=0;opts.currSlide=opts.startingSlide||0;var first=opts.startingSlide;$slides.css({position:'absolute',top:0,left:0}).hide().each(function(i){var z;if(opts.backwards)
z=first?i<=first?els.length+(i-first):first-i:els.length-i;else
z=first?i>=first?els.length-(i-first):first-i:els.length-i;$(this).css('z-index',z)});$(els[first]).css('opacity',1).show();removeFilter(els[first],opts);if(opts.fit){if(!opts.aspect){if(opts.width)
$slides.width(opts.width);if(opts.height&&opts.height!='auto')
$slides.height(opts.height);}else{$slides.each(function(){var $slide=$(this);var ratio=(opts.aspect===true)?$slide.width()/$slide.height():opts.aspect;if(opts.width&&$slide.width()!=opts.width){$slide.width(opts.width);$slide.height(opts.width/ratio);}
if(opts.height&&$slide.height()<opts.height){$slide.height(opts.height);$slide.width(opts.height*ratio);}});}}
if(opts.center&&((!opts.fit)||opts.aspect)){$slides.each(function(){var $slide=$(this);$slide.css({"margin-left":opts.width?((opts.width-$slide.width())/2)+"px":0,"margin-top":opts.height?((opts.height-$slide.height())/2)+"px":0});});}
if(opts.center&&!opts.fit&&!opts.slideResize){$slides.each(function(){var $slide=$(this);$slide.css({"margin-left":opts.width?((opts.width-$slide.width())/2)+"px":0,"margin-top":opts.height?((opts.height-$slide.height())/2)+"px":0});});}
var reshape=opts.containerResize&&!$cont.innerHeight();if(reshape){var maxw=0,maxh=0;for(var j=0;j<els.length;j++){var $e=$(els[j]),e=$e[0],w=$e.outerWidth(),h=$e.outerHeight();if(!w)w=e.offsetWidth||e.width||$e.attr('width');if(!h)h=e.offsetHeight||e.height||$e.attr('height');maxw=w>maxw?w:maxw;maxh=h>maxh?h:maxh;}
if(maxw>0&&maxh>0)
$cont.css({width:maxw+'px',height:maxh+'px'});}
var pauseFlag=false;if(opts.pause)
$cont.hover(function(){pauseFlag=true;this.cyclePause++;triggerPause(cont,true);},function(){pauseFlag&&this.cyclePause--;triggerPause(cont,true);});if(supportMultiTransitions(opts)===false)
return false;var requeue=false;options.requeueAttempts=options.requeueAttempts||0;$slides.each(function(){var $el=$(this);this.cycleH=(opts.fit&&opts.height)?opts.height:($el.height()||this.offsetHeight||this.height||$el.attr('height')||0);this.cycleW=(opts.fit&&opts.width)?opts.width:($el.width()||this.offsetWidth||this.width||$el.attr('width')||0);if($el.is('img')){var loadingIE=($.browser.msie&&this.cycleW==28&&this.cycleH==30&&!this.complete);var loadingFF=($.browser.mozilla&&this.cycleW==34&&this.cycleH==19&&!this.complete);var loadingOp=($.browser.opera&&((this.cycleW==42&&this.cycleH==19)||(this.cycleW==37&&this.cycleH==17))&&!this.complete);var loadingOther=(this.cycleH==0&&this.cycleW==0&&!this.complete);if(loadingIE||loadingFF||loadingOp||loadingOther){if(o.s&&opts.requeueOnImageNotLoaded&&++options.requeueAttempts<100){log(options.requeueAttempts,' - img slide not loaded, requeuing slideshow: ',this.src,this.cycleW,this.cycleH);setTimeout(function(){$(o.s,o.c).cycle(options)},opts.requeueTimeout);requeue=true;return false;}
else{log('could not determine size of image: '+this.src,this.cycleW,this.cycleH);}}}
return true;});if(requeue)
return false;opts.cssBefore=opts.cssBefore||{};opts.cssAfter=opts.cssAfter||{};opts.cssFirst=opts.cssFirst||{};opts.animIn=opts.animIn||{};opts.animOut=opts.animOut||{};$slides.not(':eq('+first+')').css(opts.cssBefore);$($slides[first]).css(opts.cssFirst);if(opts.timeout){opts.timeout=parseInt(opts.timeout,10);if(opts.speed.constructor==String)
opts.speed=$.fx.speeds[opts.speed]||parseInt(opts.speed,10);if(!opts.sync)
opts.speed=opts.speed/2;var buffer=opts.fx=='none'?0:opts.fx=='shuffle'?500:250;while((opts.timeout-opts.speed)<buffer)
opts.timeout+=opts.speed;}
if(opts.easing)
opts.easeIn=opts.easeOut=opts.easing;if(!opts.speedIn)
opts.speedIn=opts.speed;if(!opts.speedOut)
opts.speedOut=opts.speed;opts.slideCount=els.length;opts.currSlide=opts.lastSlide=first;if(opts.random){if(++opts.randomIndex==els.length)
opts.randomIndex=0;opts.nextSlide=opts.randomMap[opts.randomIndex];}
else if(opts.backwards)
opts.nextSlide=opts.startingSlide==0?(els.length-1):opts.startingSlide-1;else
opts.nextSlide=opts.startingSlide>=(els.length-1)?0:opts.startingSlide+1;if(!opts.multiFx){var init=$.fn.cycle.transitions[opts.fx];if($.isFunction(init))
init($cont,$slides,opts);else if(opts.fx!='custom'&&!opts.multiFx){log('unknown transition: '+opts.fx,'; slideshow terminating');return false;}}
var e0=$slides[first];if(!opts.skipInitializationCallbacks){if(opts.before.length)
opts.before[0].apply(e0,[e0,e0,opts,true]);if(opts.after.length)
opts.after[0].apply(e0,[e0,e0,opts,true]);}
if(opts.next)
$(opts.next).bind(opts.prevNextEvent,function(){return advance(opts,1)});if(opts.prev)
$(opts.prev).bind(opts.prevNextEvent,function(){return advance(opts,0)});if(opts.pager||opts.pagerAnchorBuilder)
buildPager(els,opts);exposeAddSlide(opts,els);return opts;};function saveOriginalOpts(opts){opts.original={before:[],after:[]};opts.original.cssBefore=$.extend({},opts.cssBefore);opts.original.cssAfter=$.extend({},opts.cssAfter);opts.original.animIn=$.extend({},opts.animIn);opts.original.animOut=$.extend({},opts.animOut);$.each(opts.before,function(){opts.original.before.push(this);});$.each(opts.after,function(){opts.original.after.push(this);});};function supportMultiTransitions(opts){var i,tx,txs=$.fn.cycle.transitions;if(opts.fx.indexOf(',')>0){opts.multiFx=true;opts.fxs=opts.fx.replace(/\s*/g,'').split(',');for(i=0;i<opts.fxs.length;i++){var fx=opts.fxs[i];tx=txs[fx];if(!tx||!txs.hasOwnProperty(fx)||!$.isFunction(tx)){log('discarding unknown transition: ',fx);opts.fxs.splice(i,1);i--;}}
if(!opts.fxs.length){log('No valid transitions named; slideshow terminating.');return false;}}
else if(opts.fx=='all'){opts.multiFx=true;opts.fxs=[];for(p in txs){tx=txs[p];if(txs.hasOwnProperty(p)&&$.isFunction(tx))
opts.fxs.push(p);}}
if(opts.multiFx&&opts.randomizeEffects){var r1=Math.floor(Math.random()*20)+30;for(i=0;i<r1;i++){var r2=Math.floor(Math.random()*opts.fxs.length);opts.fxs.push(opts.fxs.splice(r2,1)[0]);}
debug('randomized fx sequence: ',opts.fxs);}
return true;};function exposeAddSlide(opts,els){opts.addSlide=function(newSlide,prepend){var $s=$(newSlide),s=$s[0];if(!opts.autostopCount)
opts.countdown++;els[prepend?'unshift':'push'](s);if(opts.els)
opts.els[prepend?'unshift':'push'](s);opts.slideCount=els.length;$s.css('position','absolute');$s[prepend?'prependTo':'appendTo'](opts.$cont);if(prepend){opts.currSlide++;opts.nextSlide++;}
if(!$.support.opacity&&opts.cleartype&&!opts.cleartypeNoBg)
clearTypeFix($s);if(opts.fit&&opts.width)
$s.width(opts.width);if(opts.fit&&opts.height&&opts.height!='auto')
$s.height(opts.height);s.cycleH=(opts.fit&&opts.height)?opts.height:$s.height();s.cycleW=(opts.fit&&opts.width)?opts.width:$s.width();$s.css(opts.cssBefore);if(opts.pager||opts.pagerAnchorBuilder)
$.fn.cycle.createPagerAnchor(els.length-1,s,$(opts.pager),els,opts);if($.isFunction(opts.onAddSlide))
opts.onAddSlide($s);else
$s.hide();};}
$.fn.cycle.resetState=function(opts,fx){fx=fx||opts.fx;opts.before=[];opts.after=[];opts.cssBefore=$.extend({},opts.original.cssBefore);opts.cssAfter=$.extend({},opts.original.cssAfter);opts.animIn=$.extend({},opts.original.animIn);opts.animOut=$.extend({},opts.original.animOut);opts.fxFn=null;$.each(opts.original.before,function(){opts.before.push(this);});$.each(opts.original.after,function(){opts.after.push(this);});var init=$.fn.cycle.transitions[fx];if($.isFunction(init))
init(opts.$cont,$(opts.elements),opts);};function go(els,opts,manual,fwd){if(manual&&opts.busy&&opts.manualTrump){debug('manualTrump in go(), stopping active transition');$(els).stop(true,true);opts.busy=0;}
if(opts.busy){debug('transition active, ignoring new tx request');return;}
var p=opts.$cont[0],curr=els[opts.currSlide],next=els[opts.nextSlide];if(p.cycleStop!=opts.stopCount||p.cycleTimeout===0&&!manual)
return;if(!manual&&!p.cyclePause&&!opts.bounce&&((opts.autostop&&(--opts.countdown<=0))||(opts.nowrap&&!opts.random&&opts.nextSlide<opts.currSlide))){if(opts.end)
opts.end(opts);return;}
var changed=false;if((manual||!p.cyclePause)&&(opts.nextSlide!=opts.currSlide)){changed=true;var fx=opts.fx;curr.cycleH=curr.cycleH||$(curr).height();curr.cycleW=curr.cycleW||$(curr).width();next.cycleH=next.cycleH||$(next).height();next.cycleW=next.cycleW||$(next).width();if(opts.multiFx){if(fwd&&(opts.lastFx==undefined||++opts.lastFx>=opts.fxs.length))
opts.lastFx=0;else if(!fwd&&(opts.lastFx==undefined||--opts.lastFx<0))
opts.lastFx=opts.fxs.length-1;fx=opts.fxs[opts.lastFx];}
if(opts.oneTimeFx){fx=opts.oneTimeFx;opts.oneTimeFx=null;}
$.fn.cycle.resetState(opts,fx);if(opts.before.length)
$.each(opts.before,function(i,o){if(p.cycleStop!=opts.stopCount)return;o.apply(next,[curr,next,opts,fwd]);});var after=function(){opts.busy=0;$.each(opts.after,function(i,o){if(p.cycleStop!=opts.stopCount)return;o.apply(next,[curr,next,opts,fwd]);});if(!p.cycleStop){queueNext();}};debug('tx firing('+fx+'); currSlide: '+opts.currSlide+'; nextSlide: '+opts.nextSlide);opts.busy=1;if(opts.fxFn)
opts.fxFn(curr,next,opts,after,fwd,manual&&opts.fastOnEvent);else if($.isFunction($.fn.cycle[opts.fx]))
$.fn.cycle[opts.fx](curr,next,opts,after,fwd,manual&&opts.fastOnEvent);else
$.fn.cycle.custom(curr,next,opts,after,fwd,manual&&opts.fastOnEvent);}
else{queueNext();}
if(changed||opts.nextSlide==opts.currSlide){opts.lastSlide=opts.currSlide;if(opts.random){opts.currSlide=opts.nextSlide;if(++opts.randomIndex==els.length)
opts.randomIndex=0;opts.nextSlide=opts.randomMap[opts.randomIndex];if(opts.nextSlide==opts.currSlide)
opts.nextSlide=(opts.currSlide==opts.slideCount-1)?0:opts.currSlide+1;}
else if(opts.backwards){var roll=(opts.nextSlide-1)<0;if(roll&&opts.bounce){opts.backwards=!opts.backwards;opts.nextSlide=1;opts.currSlide=0;}
else{opts.nextSlide=roll?(els.length-1):opts.nextSlide-1;opts.currSlide=roll?0:opts.nextSlide+1;}}
else{var roll=(opts.nextSlide+1)==els.length;if(roll&&opts.bounce){opts.backwards=!opts.backwards;opts.nextSlide=els.length-2;opts.currSlide=els.length-1;}
else{opts.nextSlide=roll?0:opts.nextSlide+1;opts.currSlide=roll?els.length-1:opts.nextSlide-1;}}}
if(changed&&opts.pager)
opts.updateActivePagerLink(opts.pager,opts.currSlide,opts.activePagerClass);function queueNext(){var ms=0,timeout=opts.timeout;if(opts.timeout&&!opts.continuous){ms=getTimeout(els[opts.currSlide],els[opts.nextSlide],opts,fwd);if(opts.fx=='shuffle')
ms-=opts.speedOut;}
else if(opts.continuous&&p.cyclePause)
ms=10;if(ms>0)
p.cycleTimeout=setTimeout(function(){go(els,opts,0,!opts.backwards)},ms);}};$.fn.cycle.updateActivePagerLink=function(pager,currSlide,clsName){$(pager).each(function(){$(this).children().removeClass(clsName).eq(currSlide).addClass(clsName);});};function getTimeout(curr,next,opts,fwd){if(opts.timeoutFn){var t=opts.timeoutFn.call(curr,curr,next,opts,fwd);while(opts.fx!='none'&&(t-opts.speed)<250)
t+=opts.speed;debug('calculated timeout: '+t+'; speed: '+opts.speed);if(t!==false)
return t;}
return opts.timeout;};$.fn.cycle.next=function(opts){advance(opts,1);};$.fn.cycle.prev=function(opts){advance(opts,0);};function advance(opts,moveForward){var val=moveForward?1:-1;var els=opts.elements;var p=opts.$cont[0],timeout=p.cycleTimeout;if(timeout){clearTimeout(timeout);p.cycleTimeout=0;}
if(opts.random&&val<0){opts.randomIndex--;if(--opts.randomIndex==-2)
opts.randomIndex=els.length-2;else if(opts.randomIndex==-1)
opts.randomIndex=els.length-1;opts.nextSlide=opts.randomMap[opts.randomIndex];}
else if(opts.random){opts.nextSlide=opts.randomMap[opts.randomIndex];}
else{opts.nextSlide=opts.currSlide+val;if(opts.nextSlide<0){if(opts.nowrap)return false;opts.nextSlide=els.length-1;}
else if(opts.nextSlide>=els.length){if(opts.nowrap)return false;opts.nextSlide=0;}}
var cb=opts.onPrevNextEvent||opts.prevNextClick;if($.isFunction(cb))
cb(val>0,opts.nextSlide,els[opts.nextSlide]);go(els,opts,1,moveForward);return false;};function buildPager(els,opts){var $p=$(opts.pager);$.each(els,function(i,o){$.fn.cycle.createPagerAnchor(i,o,$p,els,opts);});opts.updateActivePagerLink(opts.pager,opts.startingSlide,opts.activePagerClass);};$.fn.cycle.createPagerAnchor=function(i,el,$p,els,opts){var a;if($.isFunction(opts.pagerAnchorBuilder)){a=opts.pagerAnchorBuilder(i,el);debug('pagerAnchorBuilder('+i+', el) returned: '+a);}
else
a='<a href="#"><span>'+(i+1)+'</span></a>';if(!a)
return;var $a=$(a);if($a.parents('body').length===0){var arr=[];if($p.length>1){$p.each(function(){var $clone=$a.clone(true);$(this).append($clone);arr.push($clone[0]);});$a=$(arr);}
else{$a.appendTo($p);}}
opts.pagerAnchors=opts.pagerAnchors||[];opts.pagerAnchors.push($a);var pagerFn=function(e){e.preventDefault();opts.nextSlide=i;var p=opts.$cont[0],timeout=p.cycleTimeout;if(timeout){clearTimeout(timeout);p.cycleTimeout=0;}
var cb=opts.onPagerEvent||opts.pagerClick;if($.isFunction(cb))
cb(opts.nextSlide,els[opts.nextSlide]);go(els,opts,1,opts.currSlide<i);}
if(/mouseenter|mouseover/i.test(opts.pagerEvent)){$a.hover(pagerFn,function(){});}
else{$a.bind(opts.pagerEvent,pagerFn);}
if(!/^click/.test(opts.pagerEvent)&&!opts.allowPagerClickBubble)
$a.bind('click.cycle',function(){return false;});var cont=opts.$cont[0];var pauseFlag=false;if(opts.pauseOnPagerHover){$a.hover(function(){pauseFlag=true;cont.cyclePause++;triggerPause(cont,true,true);},function(){pauseFlag&&cont.cyclePause--;triggerPause(cont,true,true);});}};$.fn.cycle.hopsFromLast=function(opts,fwd){var hops,l=opts.lastSlide,c=opts.currSlide;if(fwd)
hops=c>l?c-l:opts.slideCount-l;else
hops=c<l?l-c:l+opts.slideCount-c;return hops;};function clearTypeFix($slides){debug('applying clearType background-color hack');function hex(s){s=parseInt(s,10).toString(16);return s.length<2?'0'+s:s;};function getBg(e){for(;e&&e.nodeName.toLowerCase()!='html';e=e.parentNode){var v=$.css(e,'background-color');if(v&&v.indexOf('rgb')>=0){var rgb=v.match(/\d+/g);return'#'+hex(rgb[0])+hex(rgb[1])+hex(rgb[2]);}
if(v&&v!='transparent')
return v;}
return'#ffffff';};$slides.each(function(){$(this).css('background-color',getBg(this));});};$.fn.cycle.commonReset=function(curr,next,opts,w,h,rev){$(opts.elements).not(curr).hide();if(typeof opts.cssBefore.opacity=='undefined')
opts.cssBefore.opacity=1;opts.cssBefore.display='block';if(opts.slideResize&&w!==false&&next.cycleW>0)
opts.cssBefore.width=next.cycleW;if(opts.slideResize&&h!==false&&next.cycleH>0)
opts.cssBefore.height=next.cycleH;opts.cssAfter=opts.cssAfter||{};opts.cssAfter.display='none';$(curr).css('zIndex',opts.slideCount+(rev===true?1:0));$(next).css('zIndex',opts.slideCount+(rev===true?0:1));};$.fn.cycle.custom=function(curr,next,opts,cb,fwd,speedOverride){var $l=$(curr),$n=$(next);var speedIn=opts.speedIn,speedOut=opts.speedOut,easeIn=opts.easeIn,easeOut=opts.easeOut;$n.css(opts.cssBefore);if(speedOverride){if(typeof speedOverride=='number')
speedIn=speedOut=speedOverride;else
speedIn=speedOut=1;easeIn=easeOut=null;}
var fn=function(){$n.animate(opts.animIn,speedIn,easeIn,function(){cb();});};$l.animate(opts.animOut,speedOut,easeOut,function(){$l.css(opts.cssAfter);if(!opts.sync)
fn();});if(opts.sync)fn();};$.fn.cycle.transitions={fade:function($cont,$slides,opts){$slides.not(':eq('+opts.currSlide+')').css('opacity',0);opts.before.push(function(curr,next,opts){$.fn.cycle.commonReset(curr,next,opts);opts.cssBefore.opacity=0;});opts.animIn={opacity:1};opts.animOut={opacity:0};opts.cssBefore={top:0,left:0};}};$.fn.cycle.ver=function(){return ver;};$.fn.cycle.defaults={activePagerClass:'activeSlide',after:null,allowPagerClickBubble:false,animIn:null,animOut:null,aspect:false,autostop:0,autostopCount:0,backwards:false,before:null,center:null,cleartype:!$.support.opacity,cleartypeNoBg:false,containerResize:1,continuous:0,cssAfter:null,cssBefore:null,delay:0,easeIn:null,easeOut:null,easing:null,end:null,fastOnEvent:0,fit:0,fx:'fade',fxFn:null,height:'auto',manualTrump:true,metaAttr:'cycle',next:null,nowrap:0,onPagerEvent:null,onPrevNextEvent:null,pager:null,pagerAnchorBuilder:null,pagerEvent:'click.cycle',pause:0,pauseOnPagerHover:0,prev:null,prevNextEvent:'click.cycle',random:0,randomizeEffects:1,requeueOnImageNotLoaded:true,requeueTimeout:250,rev:0,shuffle:null,skipInitializationCallbacks:false,slideExpr:null,slideResize:1,speed:1000,speedIn:null,speedOut:null,startingSlide:0,sync:1,timeout:4000,timeoutFn:null,updateActivePagerLink:null,width:null};})(jQuery);(function($){$.fn.cycle.transitions.none=function($cont,$slides,opts){opts.fxFn=function(curr,next,opts,after){$(next).show();$(curr).hide();after();};};$.fn.cycle.transitions.fadeout=function($cont,$slides,opts){$slides.not(':eq('+opts.currSlide+')').css({display:'block','opacity':1});opts.before.push(function(curr,next,opts,w,h,rev){$(curr).css('zIndex',opts.slideCount+(!rev===true?1:0));$(next).css('zIndex',opts.slideCount+(!rev===true?0:1));});opts.animIn.opacity=1;opts.animOut.opacity=0;opts.cssBefore.opacity=1;opts.cssBefore.display='block';opts.cssAfter.zIndex=0;};$.fn.cycle.transitions.scrollUp=function($cont,$slides,opts){$cont.css('overflow','hidden');opts.before.push($.fn.cycle.commonReset);var h=$cont.height();opts.cssBefore.top=h;opts.cssBefore.left=0;opts.cssFirst.top=0;opts.animIn.top=0;opts.animOut.top=-h;};$.fn.cycle.transitions.scrollDown=function($cont,$slides,opts){$cont.css('overflow','hidden');opts.before.push($.fn.cycle.commonReset);var h=$cont.height();opts.cssFirst.top=0;opts.cssBefore.top=-h;opts.cssBefore.left=0;opts.animIn.top=0;opts.animOut.top=h;};$.fn.cycle.transitions.scrollLeft=function($cont,$slides,opts){$cont.css('overflow','hidden');opts.before.push($.fn.cycle.commonReset);var w=$cont.width();opts.cssFirst.left=0;opts.cssBefore.left=w;opts.cssBefore.top=0;opts.animIn.left=0;opts.animOut.left=0-w;};$.fn.cycle.transitions.scrollRight=function($cont,$slides,opts){$cont.css('overflow','hidden');opts.before.push($.fn.cycle.commonReset);var w=$cont.width();opts.cssFirst.left=0;opts.cssBefore.left=-w;opts.cssBefore.top=0;opts.animIn.left=0;opts.animOut.left=w;};$.fn.cycle.transitions.scrollHorz=function($cont,$slides,opts){$cont.css('overflow','hidden').width();opts.before.push(function(curr,next,opts,fwd){if(opts.rev)
fwd=!fwd;$.fn.cycle.commonReset(curr,next,opts);opts.cssBefore.left=fwd?(next.cycleW-1):(1-next.cycleW);opts.animOut.left=fwd?-curr.cycleW:curr.cycleW;});opts.cssFirst.left=0;opts.cssBefore.top=0;opts.animIn.left=0;opts.animOut.top=0;};$.fn.cycle.transitions.scrollVert=function($cont,$slides,opts){$cont.css('overflow','hidden');opts.before.push(function(curr,next,opts,fwd){if(opts.rev)
fwd=!fwd;$.fn.cycle.commonReset(curr,next,opts);opts.cssBefore.top=fwd?(1-next.cycleH):(next.cycleH-1);opts.animOut.top=fwd?curr.cycleH:-curr.cycleH;});opts.cssFirst.top=0;opts.cssBefore.left=0;opts.animIn.top=0;opts.animOut.left=0;};$.fn.cycle.transitions.slideX=function($cont,$slides,opts){opts.before.push(function(curr,next,opts){$(opts.elements).not(curr).hide();$.fn.cycle.commonReset(curr,next,opts,false,true);opts.animIn.width=next.cycleW;});opts.cssBefore.left=0;opts.cssBefore.top=0;opts.cssBefore.width=0;opts.animIn.width='show';opts.animOut.width=0;};$.fn.cycle.transitions.slideY=function($cont,$slides,opts){opts.before.push(function(curr,next,opts){$(opts.elements).not(curr).hide();$.fn.cycle.commonReset(curr,next,opts,true,false);opts.animIn.height=next.cycleH;});opts.cssBefore.left=0;opts.cssBefore.top=0;opts.cssBefore.height=0;opts.animIn.height='show';opts.animOut.height=0;};$.fn.cycle.transitions.shuffle=function($cont,$slides,opts){var i,w=$cont.css('overflow','visible').width();$slides.css({left:0,top:0});opts.before.push(function(curr,next,opts){$.fn.cycle.commonReset(curr,next,opts,true,true,true);});if(!opts.speedAdjusted){opts.speed=opts.speed/2;opts.speedAdjusted=true;}
opts.random=0;opts.shuffle=opts.shuffle||{left:-w,top:15};opts.els=[];for(i=0;i<$slides.length;i++)
opts.els.push($slides[i]);for(i=0;i<opts.currSlide;i++)
opts.els.push(opts.els.shift());opts.fxFn=function(curr,next,opts,cb,fwd){if(opts.rev)
fwd=!fwd;var $el=fwd?$(curr):$(next);$(next).css(opts.cssBefore);var count=opts.slideCount;$el.animate(opts.shuffle,opts.speedIn,opts.easeIn,function(){var hops=$.fn.cycle.hopsFromLast(opts,fwd);for(var k=0;k<hops;k++)
fwd?opts.els.push(opts.els.shift()):opts.els.unshift(opts.els.pop());if(fwd){for(var i=0,len=opts.els.length;i<len;i++)
$(opts.els[i]).css('z-index',len-i+count);}
else{var z=$(curr).css('z-index');$el.css('z-index',parseInt(z,10)+1+count);}
$el.animate({left:0,top:0},opts.speedOut,opts.easeOut,function(){$(fwd?this:curr).hide();if(cb)cb();});});};$.extend(opts.cssBefore,{display:'block',opacity:1,top:0,left:0});};$.fn.cycle.transitions.turnUp=function($cont,$slides,opts){opts.before.push(function(curr,next,opts){$.fn.cycle.commonReset(curr,next,opts,true,false);opts.cssBefore.top=next.cycleH;opts.animIn.height=next.cycleH;opts.animOut.width=next.cycleW;});opts.cssFirst.top=0;opts.cssBefore.left=0;opts.cssBefore.height=0;opts.animIn.top=0;opts.animOut.height=0;};$.fn.cycle.transitions.turnDown=function($cont,$slides,opts){opts.before.push(function(curr,next,opts){$.fn.cycle.commonReset(curr,next,opts,true,false);opts.animIn.height=next.cycleH;opts.animOut.top=curr.cycleH;});opts.cssFirst.top=0;opts.cssBefore.left=0;opts.cssBefore.top=0;opts.cssBefore.height=0;opts.animOut.height=0;};$.fn.cycle.transitions.turnLeft=function($cont,$slides,opts){opts.before.push(function(curr,next,opts){$.fn.cycle.commonReset(curr,next,opts,false,true);opts.cssBefore.left=next.cycleW;opts.animIn.width=next.cycleW;});opts.cssBefore.top=0;opts.cssBefore.width=0;opts.animIn.left=0;opts.animOut.width=0;};$.fn.cycle.transitions.turnRight=function($cont,$slides,opts){opts.before.push(function(curr,next,opts){$.fn.cycle.commonReset(curr,next,opts,false,true);opts.animIn.width=next.cycleW;opts.animOut.left=curr.cycleW;});$.extend(opts.cssBefore,{top:0,left:0,width:0});opts.animIn.left=0;opts.animOut.width=0;};$.fn.cycle.transitions.zoom=function($cont,$slides,opts){opts.before.push(function(curr,next,opts){$.fn.cycle.commonReset(curr,next,opts,false,false,true);opts.cssBefore.top=next.cycleH/2;opts.cssBefore.left=next.cycleW/2;$.extend(opts.animIn,{top:0,left:0,width:next.cycleW,height:next.cycleH});$.extend(opts.animOut,{width:0,height:0,top:curr.cycleH/2,left:curr.cycleW/2});});opts.cssFirst.top=0;opts.cssFirst.left=0;opts.cssBefore.width=0;opts.cssBefore.height=0;};$.fn.cycle.transitions.fadeZoom=function($cont,$slides,opts){opts.before.push(function(curr,next,opts){$.fn.cycle.commonReset(curr,next,opts,false,false);opts.cssBefore.left=next.cycleW/2;opts.cssBefore.top=next.cycleH/2;$.extend(opts.animIn,{top:0,left:0,width:next.cycleW,height:next.cycleH});});opts.cssBefore.width=0;opts.cssBefore.height=0;opts.animOut.opacity=0;};$.fn.cycle.transitions.blindX=function($cont,$slides,opts){var w=$cont.css('overflow','hidden').width();opts.before.push(function(curr,next,opts){$.fn.cycle.commonReset(curr,next,opts);opts.animIn.width=next.cycleW;opts.animOut.left=curr.cycleW;});opts.cssBefore.left=w;opts.cssBefore.top=0;opts.animIn.left=0;opts.animOut.left=w;};$.fn.cycle.transitions.blindY=function($cont,$slides,opts){var h=$cont.css('overflow','hidden').height();opts.before.push(function(curr,next,opts){$.fn.cycle.commonReset(curr,next,opts);opts.animIn.height=next.cycleH;opts.animOut.top=curr.cycleH;});opts.cssBefore.top=h;opts.cssBefore.left=0;opts.animIn.top=0;opts.animOut.top=h;};$.fn.cycle.transitions.blindZ=function($cont,$slides,opts){var h=$cont.css('overflow','hidden').height();var w=$cont.width();opts.before.push(function(curr,next,opts){$.fn.cycle.commonReset(curr,next,opts);opts.animIn.height=next.cycleH;opts.animOut.top=curr.cycleH;});opts.cssBefore.top=h;opts.cssBefore.left=w;opts.animIn.top=0;opts.animIn.left=0;opts.animOut.top=h;opts.animOut.left=w;};$.fn.cycle.transitions.growX=function($cont,$slides,opts){opts.before.push(function(curr,next,opts){$.fn.cycle.commonReset(curr,next,opts,false,true);opts.cssBefore.left=this.cycleW/2;opts.animIn.left=0;opts.animIn.width=this.cycleW;opts.animOut.left=0;});opts.cssBefore.top=0;opts.cssBefore.width=0;};$.fn.cycle.transitions.growY=function($cont,$slides,opts){opts.before.push(function(curr,next,opts){$.fn.cycle.commonReset(curr,next,opts,true,false);opts.cssBefore.top=this.cycleH/2;opts.animIn.top=0;opts.animIn.height=this.cycleH;opts.animOut.top=0;});opts.cssBefore.height=0;opts.cssBefore.left=0;};$.fn.cycle.transitions.curtainX=function($cont,$slides,opts){opts.before.push(function(curr,next,opts){$.fn.cycle.commonReset(curr,next,opts,false,true,true);opts.cssBefore.left=next.cycleW/2;opts.animIn.left=0;opts.animIn.width=this.cycleW;opts.animOut.left=curr.cycleW/2;opts.animOut.width=0;});opts.cssBefore.top=0;opts.cssBefore.width=0;};$.fn.cycle.transitions.curtainY=function($cont,$slides,opts){opts.before.push(function(curr,next,opts){$.fn.cycle.commonReset(curr,next,opts,true,false,true);opts.cssBefore.top=next.cycleH/2;opts.animIn.top=0;opts.animIn.height=next.cycleH;opts.animOut.top=curr.cycleH/2;opts.animOut.height=0;});opts.cssBefore.height=0;opts.cssBefore.left=0;};$.fn.cycle.transitions.cover=function($cont,$slides,opts){var d=opts.direction||'left';var w=$cont.css('overflow','hidden').width();var h=$cont.height();opts.before.push(function(curr,next,opts){$.fn.cycle.commonReset(curr,next,opts);if(d=='right')
opts.cssBefore.left=-w;else if(d=='up')
opts.cssBefore.top=h;else if(d=='down')
opts.cssBefore.top=-h;else
opts.cssBefore.left=w;});opts.animIn.left=0;opts.animIn.top=0;opts.cssBefore.top=0;opts.cssBefore.left=0;};$.fn.cycle.transitions.uncover=function($cont,$slides,opts){var d=opts.direction||'left';var w=$cont.css('overflow','hidden').width();var h=$cont.height();opts.before.push(function(curr,next,opts){$.fn.cycle.commonReset(curr,next,opts,true,true,true);if(d=='right')
opts.animOut.left=w;else if(d=='up')
opts.animOut.top=-h;else if(d=='down')
opts.animOut.top=h;else
opts.animOut.left=-w;});opts.animIn.left=0;opts.animIn.top=0;opts.cssBefore.top=0;opts.cssBefore.left=0;};$.fn.cycle.transitions.toss=function($cont,$slides,opts){var w=$cont.css('overflow','visible').width();var h=$cont.height();opts.before.push(function(curr,next,opts){$.fn.cycle.commonReset(curr,next,opts,true,true,true);if(!opts.animOut.left&&!opts.animOut.top)
$.extend(opts.animOut,{left:w*2,top:-h/2,opacity:0});else
opts.animOut.opacity=0;});opts.cssBefore.left=0;opts.cssBefore.top=0;opts.animIn.left=0;};$.fn.cycle.transitions.wipe=function($cont,$slides,opts){var w=$cont.css('overflow','hidden').width();var h=$cont.height();opts.cssBefore=opts.cssBefore||{};var clip;if(opts.clip){if(/l2r/.test(opts.clip))
clip='rect(0px 0px '+h+'px 0px)';else if(/r2l/.test(opts.clip))
clip='rect(0px '+w+'px '+h+'px '+w+'px)';else if(/t2b/.test(opts.clip))
clip='rect(0px '+w+'px 0px 0px)';else if(/b2t/.test(opts.clip))
clip='rect('+h+'px '+w+'px '+h+'px 0px)';else if(/zoom/.test(opts.clip)){var top=parseInt(h/2,10);var left=parseInt(w/2,10);clip='rect('+top+'px '+left+'px '+top+'px '+left+'px)';}}
opts.cssBefore.clip=opts.cssBefore.clip||clip||'rect(0px 0px 0px 0px)';var d=opts.cssBefore.clip.match(/(\d+)/g);var t=parseInt(d[0],10),r=parseInt(d[1],10),b=parseInt(d[2],10),l=parseInt(d[3],10);opts.before.push(function(curr,next,opts){if(curr==next)return;var $curr=$(curr),$next=$(next);$.fn.cycle.commonReset(curr,next,opts,true,true,false);opts.cssAfter.display='block';var step=1,count=parseInt((opts.speedIn/13),10)-1;(function f(){var tt=t?t-parseInt(step*(t/count),10):0;var ll=l?l-parseInt(step*(l/count),10):0;var bb=b<h?b+parseInt(step*((h-b)/count||1),10):h;var rr=r<w?r+parseInt(step*((w-r)/count||1),10):w;$next.css({clip:'rect('+tt+'px '+rr+'px '+bb+'px '+ll+'px)'});(step++<=count)?setTimeout(f,13):$curr.css('display','none');})();});$.extend(opts.cssBefore,{display:'block',opacity:1,top:0,left:0});opts.animIn={left:0};opts.animOut={left:0};};})(jQuery);var sendemail;var decodeEmail;var paging;var pagingCalendario;var autoPostSelect;var SelezionaMeseCalendario;var votaArticolo;var CaricaMonoSlideShow;var regUtente_sistemaElencoServizi;var pubblicaCommento;var spubblicaCommento;var eliminaCommento;var ButtonImage;var ShowHideAnimated;var thisMovie;var PFGoLeft;var PFGoRight;var PRSetSearchFilter;var initPictureFlow=function(id,arr){var player=document.getElementById(id);if(!player||!player.refeed)
setTimeout("initPictureFlow('"+id+"','"+arr+"')",500);else{var iShow=Math.floor(eval(arr).length/2)+1;player.refeed(eval(arr),iShow);}};(function($){var ____regUtente_dipendeDa=new Array();sendemail=function(encodedEmail){location.href="mailto:"+decodeEmail(encodedEmail);};decodeEmail=function(encodedEmail){var email="";for(i=0;i<encodedEmail.length;){var letter="";letter=encodedEmail.charAt(i)+encodedEmail.charAt(i+1)
email+=String.fromCharCode(parseInt(letter,16));i+=2;}
return email;};paging=function(id,i){$('#SubmitPaging').val('1');$('#PaginaCorrente').val(i);$('#'+id).submit();};pagingCalendario=function(id,i){$('#SubmitPagingCal').val('1');$('#PagingCorrenteCal').val(i);$('#'+id).submit();};autoPostSelect=function(oSelect){if(oSelect){var oForm=oSelect.form;if(oForm){var oHidden=document.getElementById(oSelect.id+'_autopost');if(oHidden)oHidden.value='1';oForm.submit();}}};SelezionaMeseCalendario=function(id,value){if(!document.getElementsByTagName)return;var tbf=document.getElementById(id);if(!tbf)return;for(var i=0;i<tbf.getElementsByTagName('span').length;i++){var spa=tbf.getElementsByTagName('span')[i];if(spa.className=='mesecorrente'){for(var k=0;k<spa.getElementsByTagName('input').length;k++){var inp=spa.getElementsByTagName('input')[k];if(inp)inp.checked=value;}}}};votaArticolo=function(shRef){$.ajax({url:shRef,success:function(data){if(data.length>0){var aData=data.split(',');var sSel='';if(parseInt(aData[1])==-1)alert('E\' possibile votare solamente una volta al giorno.');else if(parseInt(aData[1])>=0)alert('Grazie per aver votato.');var ulVoti=document.getElementById('votaarticoloul');if(ulVoti)ulVoti.className='sel'+data[0];for(i=1;i<=5;i++){var liVoto=document.getElementById('votaarticolo'+i);if(liVoto){sSel='';if(data[0]==i)sSel=' sel';liVoto.className='mediavoti'+i+sSel;}}}}});};CaricaMonoSlideShow=function(xmlurl,container,width,height){var flashvars={showLogo:'false',dataFile:xmlurl};var params={allowScriptAccess:'sameDomain',allowfullscreen:'true',allowNetworking:'all'};var attributes={id:'monoslideshow',name:'monoslideshow',bgColor:'FFFFFF'};swfobject.embedSWF(defaultPath+'swf/monoslideshow.swf',container,(width||"532"),(height||"502"),"9",false,flashvars,params,attributes);};pubblicaCommento=function(sUrl,sGuid){$.post(sUrl,{azione:'pubblica',guid:sGuid},function(data){if(data=='1'){$('#pubblica-'+sGuid).hide();$('#spubblica-'+sGuid).show();alert('Il commento e\' stato pubblicato');}});};spubblicaCommento=function(sUrl,sGuid){$.post(sUrl,{azione:'spubblica',guid:sGuid},function(data){if(data=='1'){$('#spubblica-'+sGuid).hide();$('#pubblica-'+sGuid).show();alert('Il commento e\' stato spubblicato');}});};eliminaCommento=function(sUrl,sGuid){if(confirm('Cancellare il commento?')){$.post(sUrl,{azione:'elimina',guid:sGuid},function(data){if(data!='0'){$('#commento-'+sGuid).remove();$('#quanti-commenti').html(data);alert('Commento cancellato')}});}};regUtente_sistemaElencoServizi=function(){$('#elencoservizi').find(':input').each(function(i){if((this.type!='hidden')&&(this.name.indexOf('-disabled')<0)&&(!this.checked))$('#servizio-'+this.value).hide();});$('#elencoservizi input:checkbox').click(function(){if((____regUtente_dipendeDa[$(this).val()])&&($(this).get(0).checked)){if(!($('#elencoservizi input:checkbox[value='+____regUtente_dipendeDa[$(this).val()][0]+']').get(0).checked)){alert('E\' necessario iscriversi anche al servizio '+____regUtente_dipendeDa[$(this).val()][1]);return false;}}
if(!($(this).get(0).checked)){for(sKey in ____regUtente_dipendeDa){if(____regUtente_dipendeDa[sKey][0]==$(this).val()){$('#elencoservizi input:checkbox[value='+sKey+']').attr('checked','');$("#servizio-"+sKey).hide('fast');}}}
$("#servizio-"+$(this).val()).toggle('fast');});};ButtonImage=function(id,quale){var tbf=$('#'+id);if(tbf.length){tbf.find('input[type="submit"],input[type="button"]').each(function(i,v){$(v).addClass('be-gone').parent().append($('<a/>',{'title':$(v).val(),'href':'#'}).append($('<img/>',{'src':defaultPath+'img/buttons/application_'+$(v).val().toLowerCase()+'.gif','alt':$(v).val()})).click(function(){$(v).click()}))})}};history.navigationMode='compatible';$(function(){ShowHideAnimated=function(){$("li.menuconsorzio").toggle("blind",{direction:"horizontal"},500);return false;};PFGoLeft=function(movieName){document.getElementById(movieName).navig(-1);return false;};PFGoRight=function(movieName){document.getElementById(movieName).navig(+1);return false;};var setClassDisabled=function(o,set){if(o.is('input'))o=o.closest('li.radio');set?o.addClass('disabled'):o.removeClass('disabled');};var setFilter=function(sel,arr,col){setClassDisabled($(sel+'[value!="0"]').attr('disabled','disabled'),true);$.each(arr,function(i,v){setClassDisabled($(sel+'[value="'+v.charAt(col)+'"]').removeAttr('disabled'),false)});};var filterSearch=function(){var portata=$('#frmRicercaRicettaParmigiano .portata select').val();var stagionatura=$('#frmRicercaRicettaParmigiano .stagionatura input:checked').val();var difficolta=$('#frmRicercaRicettaParmigiano .difficolta input:checked').val();var tmp=$.grep(PRSearchFilter.elem,function(v,i){return((v.charAt(PRSearchFilter.charindex.portata)==portata||portata=='0')&&(v.charAt(PRSearchFilter.charindex.stagionatura)==stagionatura||stagionatura=='0')&&(v.charAt(PRSearchFilter.charindex.difficolta)==difficolta||difficolta=='0'))});if(portata=='0')setFilter('#frmRicercaRicettaParmigiano .portata select option',tmp,PRSearchFilter.charindex.portata);if(stagionatura=='0')setFilter('#frmRicercaRicettaParmigiano .stagionatura input',tmp,PRSearchFilter.charindex.stagionatura);if(difficolta=='0')setFilter('#frmRicercaRicettaParmigiano .difficolta input',tmp,PRSearchFilter.charindex.difficolta);};var shadowBoxMimeMap={img:['png','jpg','jpeg','gif','bmp','aspx'],swf:['swf'],flv:['flv','m4v','mp4'],qt:['dv','mov','moov','movie','mp4'],wmp:['asf','wm','wmv'],qtwmp:['avi','mpg','mpeg'],iframe:['asp','aspx','cgi','cfm','htm','html','pl','php','php3','php4','php5','phtml','rb','rhtml','shtml','txt','vbs','java']};Shadowbox.init({language:'it',continuous:true,players:['img','iframe'],ext:shadowBoxMimeMap});Shadowbox.setup("#areainternational #cinese",{gallery:'international'});$("tr").mouseover(function(){$(this).addClass("over");}).mouseout(function(){$(this).removeClass("over");});$("tr:odd").addClass("odd");$("#contenttext .risultato_ricerca ul.elencorisultati li").mouseover(function(){$(this).addClass("over");}).mouseout(function(){$(this).removeClass("over");});$("#menutopwrap ul li").mouseover(function(){$(this).addClass("over");}).mouseout(function(){$(this).removeClass("over");});$('#menutopparmigiano ul.categorie').superfish({delay:1000,animation:{opacity:'show',height:'show'},speed:'fast',autoArrows:false,dropShadows:false});$('#frmRicercaRicettaParmigiano #txtParolaChiave').attr('placeholder',(codLingua=='it'?'parole chiave':'keywords')).addPlaceholder();if($('#newsflash ul').length)$('#newsflash ul').after('<div id="cyclepager">').cycle({fx:'scrollLeft',speed:1000,timeout:8000,pager:'#cyclepager'});$('#frmRicercaRicettaParmigiano .portata select').change(function(){filterSearch()});$('#frmRicercaRicettaParmigiano .stagionatura input').click(function(){filterSearch()});$('#frmRicercaRicettaParmigiano .difficolta input').click(function(){filterSearch()});$('#frmRicercaRicettaParmigiano li.submit').append($('<button/>',{'id':'reset','class':'reset','type':'button'}).text('Vuota la ricerca').click(function(){$('#frmRicercaRicettaParmigiano .portata select option[value="0"]').attr('selected','selected');$('#frmRicercaRicettaParmigiano .stagionatura input[value="0"],#frmRicercaRicettaParmigiano .difficolta input[value="0"]').attr('checked','checked');filterSearch();}));});})(jQuery);var validatePrepareControl;var validate;var parseValidateElement;var SetSelezioneAutomaticaCheckBox;var validatePrepareMultiControl;var ParentIsDisplayNone;(function($){var MSGTIMER=40;var MSGSPEED=5;var MSGOFFSET=3;var MSGHIDE=3;var multiControlValidate=new Array();validatePrepareMultiControl=function(sArrayID,sControlID){if(!multiControlValidate[sArrayID])multiControlValidate[sArrayID]=new Array();multiControlValidate[sArrayID].push(sControlID);}
validatePrepareControl=function(sControlID,bIsRequired,sCompareTo,sRegExpression){var oControl=document.getElementById(sControlID);if(oControl){if(bIsRequired)oControl.setAttribute('IsRequired','1');if(sCompareTo>'')oControl.setAttribute('CompareTo',sCompareTo);if(sRegExpression>'')oControl.setAttribute('RegExpression',sRegExpression);}};validate=function(oForm){$.each(multiControlValidate,function(i,v){var bReturn=false;$.each(multiControlValidate[v],function(ii,vv){if($('#'+vv).attr('checked')||($('#'+vv).parents('fieldset:eq(0)').css('display')=='none'))bReturn=true;});if(!bReturn){if(multiControlValidate[v][0]){inlineMsg(multiControlValidate[v][0],'E\' necessario selezionare almeno un valore.',2);return false;};};});for(var x=0;x<oForm.length;x++){var oChild=oForm[x];if($(oChild).is(':visible')){if(oChild.attributes['IsRequired']&&(oChild.attributes['IsRequired'].value='1')){if(GetControlValue(oChild)==''){inlineMsg(oChild.id,'Campo richiesto.',2);return false;}}
if(oChild.attributes['RegExpression']&&(oChild.attributes['RegExpression'].value>'')){var re=new RegExp(oChild.attributes['RegExpression'].value);bReturn=GetControlValue(oChild).match(re);if(!bReturn){inlineMsg(oChild.id,'Campo non valido.'+(($(oChild).parents('li').find('.descrizionecampo span').text()>'')?' <span style="color:#F00">'+$(oChild).parents('li').find('.descrizionecampo span').text()+'</span>':''),2);return false}}
if((oChild.attributes['CompareTo'])&&(oChild.attributes['CompareTo'].value>'')){var oCompareObject=document.getElementById(oChild.attributes['CompareTo'].value);if((oCompareObject)&&(!(GetControlValue(oCompareObject)==GetControlValue(oChild)))){inlineMsg(oChild.id,'I campi non coincidono.',2);return false;}}}}
return true;};ParentIsDisplayNone=function(obj){var bReturn=false;return(bReturn||(obj.css('display')=='none'))}
GetControlValue=function(oControl){var sReturn='';if(oControl.type=='file')sReturn=oControl.value;if((oControl.type=='text')||(oControl.type=='password')||(oControl.type=='textarea'))sReturn=$.trim(oControl.value);if((oControl.type=='radio')&&(oControl.checked))sReturn=oControl.value;return sReturn;};parseValidateElement=function(oForm,tagName){var bReturn=true;var oChilds=oForm.getElementsByTagName(tagName);for(var x=0;x<oChilds.length;x++){var oChild=oChilds[x];if(oChild.className>'')bReturn=checkValidateElement(oChild);if(!bReturn)break;}
return bReturn;};checkValidateElement=function(oElement){var bReturn=true;if((oElement.type=='text')||(oElement.type=='password')||(oElement.type=='textarea')){if(oElement.className.indexOf('IsRequired')!=-1){bReturn=(oElement.value!='');if(!bReturn)inlineMsg(oElement.id,'Campo richiesto.',2);}}
return bReturn;};SetSelezioneAutomaticaCheckBox=function(sId,sIdCheck,sIdVisible,sValue,sValueVisible){var oControl=document.getElementById(sIdCheck);var oSource=document.getElementById(sId);var oVisible=document.getElementById(sIdVisible);sValue+=',';sValueVisible+=',';if(oControl)oControl.onchange=function(){var bForzaCheck=false;var bVisible=false;if((oControl.type=='text')||(oControl.type=='password')||(oControl.type=='textarea')){bForzaCheck=((sValue.indexOf(oControl.value+',')>=0)&&(oControl.value>''));bVisible=((sValueVisible.indexOf(oControl.value+',')>=0)&&(oControl.value>''));}
else if(oControl.type=='select-one'){bForzaCheck=((sValue.indexOf(oControl[oControl.selectedIndex].value+',')>=0)&&(oControl.value>''));bVisible=((sValueVisible.indexOf(oControl[oControl.selectedIndex].value+',')>=0)&&(oControl.value>''));}
else if((oControl.type=='checkbox')||(oControl.type=='radio')){bForzaCheck=(oControl.checked);bVisible=(oControl.checked);}
if(oVisible){if(bVisible)oVisible.style.display='';else oVisible.style.display='none';}
if(oSource){oSource.disabled=bForzaCheck;oSource.checked=bForzaCheck;}}
oControl.onchange();};inlineMsg=function(target,string,autohide){var msg;var msgcontent;if(!document.getElementById('msg')){msg=document.createElement('div');msg.id='msg';msgcontent=document.createElement('div');msgcontent.id='msgcontent';document.body.appendChild(msg);msg.appendChild(msgcontent);msg.style.filter='alpha(opacity=0)';msg.style.opacity=0;msg.alpha=0;}else{msg=document.getElementById('msg');msgcontent=document.getElementById('msgcontent');}
msgcontent.innerHTML=string;msg.style.display='block';var msgheight=msg.offsetHeight;var targetdiv=document.getElementById(target);targetdiv.focus();var targetheight=targetdiv.offsetHeight;var targetwidth=targetdiv.offsetWidth;var topposition=topPosition(targetdiv)-((msgheight-targetheight)/2);var leftposition=leftPosition(targetdiv)+targetwidth+MSGOFFSET;msg.style.top=topposition+'px';msg.style.left=leftposition+'px';clearInterval(msg.timer);msg.timer=setInterval("fadeMsg(1)",MSGTIMER);if(!autohide)autohide=MSGHIDE;window.setTimeout("hideMsg()",(autohide*1000));};hideMsg=function(msg){var msg=document.getElementById('msg');if(!msg.timer)msg.timer=setInterval("fadeMsg(0)",MSGTIMER);};fadeMsg=function(flag){if(flag==null)flag=1;var msg=document.getElementById('msg');var val;if(flag==1)val=msg.alpha+MSGSPEED;else val=msg.alpha-MSGSPEED;msg.alpha=val;msg.style.opacity=(val/100);msg.style.filter='alpha(opacity='+val+')';if(val>=99){clearInterval(msg.timer);msg.timer=null;}else if(val<=1){msg.style.display="none";clearInterval(msg.timer);}};leftPosition=function(target){var left=0;if(target.offsetParent){while(1){left+=target.offsetLeft;if(!target.offsetParent)break;target=target.offsetParent;}}else if(target.x)left+=target.x;return left;};topPosition=function(target){var top=0;if(target.offsetParent){while(1){top+=target.offsetTop;if(!target.offsetParent)break;target=target.offsetParent;}}else if(target.y)top+=target.y;return top;};if(document.images){arrow=new Image(7,80);arrow.src=defaultPath+'img/msg_arrow.gif';}})(jQuery);var initGMaps;(function($){initGMaps=function(sDivMap,config){var map;var gmarkers={};var imageCache;var bWithCB;var infoWindowGMap=new google.maps.InfoWindow({content:''});var sideBarContainer;var markerClusterer=null;var markersclustered=[];var showhideMarker=function(o,nID,father){if(father){$.each(gmarkers[nID].markers,function(i,v){($(o).attr('checked')?v.marker.setMap(map):v.marker.setMap(null));found=true});$.each(gmarkers[nID].submarkers,function(i,v){if(v)$.each(v.markers,function(i,v){($(o).attr('checked')?v.marker.setMap(map):v.marker.setMap(null))})});}else $.each(gmarkers,function(i,v){if(v&&v.submarkers[nID])$.each(v.submarkers[nID].markers,function(i,v){(v.marker.getMap()?v.marker.setMap(null):v.marker.setMap(map))})});}
var showhideList=function(o){$(o).parent().next().toggle('blind',{},200,function(){$(o).children().text(($(o).parent().next().is(":visible")?'-':'+'))});}
var checkUncheckCheckboxes=function(o){if(o.checked)$(o).parent().parent().find('ul li input').not(':checked').click();else $(o).parent().parent().find('ul li input:checked').click();}
var setCustomGMapPoints=function(j){var bounds=new google.maps.LatLngBounds();$.each(j,function(i,v){var point=new google.maps.LatLng(v.Latitude,v.Longitude);var icon=null;if(v.UrlIcona)icon=new google.maps.MarkerImage(v.UrlIcona);var marker=new google.maps.Marker({'position':point,'icon':icon});if(v.PopUpHtml)google.maps.event.addListener(marker,"click",function(){infoWindowGMap.setContent(v.PopUpHtml);infoWindowGMap.open(map,this);});marker.setMap(map);bounds.extend(new google.maps.LatLng(v.Latitude,v.Longitude));});map.fitBounds(bounds);}
var isChecked=function(id){return true;}
var isWithCB=function(b){if(b&&b==false)return false;return true;}
var getHTMLElementList=function(id,label,imgsrc,grpcb,withmnu){return $('<div/>').append(imgsrc>''?$('<img/>',{'src':imgsrc}):'').append($('<input/>',{'id':'chk'+id,'name':'chk'+id,'type':'checkbox'}).attr('checked',isChecked(id)).click(function(){if(grpcb)checkUncheckCheckboxes(this);showhideMarker(this,id,grpcb>'');$(this).parents('li').find('ul.list').toggleClass('show')})).append($('<label/>',{'for':'chk'+id}).append($('<span/>').text(label))).append(withmnu?$('<a/>',{'href':'#','title':'Mostra altri elementi'}).click(function(e){showhideList(this);e.preventDefault()}).append($('<span/>').text('+')):'');}
var createElementsList=function(){var html=$('<ul/>',{'class':'nav'});$.each(gmarkers,function(ii,vv){if(vv){var tmp=$('<ul/>').hide();var hasChildrens=false;$.each(vv.submarkers,function(i,v){hasChildrens=true;tmp.append($('<li/>',{'id':'li-gicon-'+v.id}).append(getHTMLElementList(v.id,v.label,v.url)))});html.append($('<li/>',{'id':'li-gicon-'+vv.id}).append(getHTMLElementList(vv.id,vv.label,vv.url,true,hasChildrens)).append(hasChildrens?tmp:''));}});return html;}
var refreshGmap=function(sUrl,data){$.post(sUrl,data,function(r){initGMaps(null,r)});}
var clearOverlays=function(){$.each(gmarkers,function(i,v){if(v.markers)$.each(v.markers,function(ii,vv){vv.setMap(null);});if(v.submarkers)$.each(v.submarkers,function(ii,vv){if(vv.markers)$.each(v.markers,function(iii,vvv){vvv.setMap(null)})});});gmarkers=[];}
var loadMarker=function(jsonData){if($(sideBarContainer)){var bounds=new google.maps.LatLngBounds();$.each(jsonData.icontype,function(i,vv){var idicona=vv.id;var icon=null;if(vv.url){icon=new google.maps.MarkerImage(vv.url);if((vv.width>0)&&(vv.height>0)){icon.size=new google.maps.Size(vv.width,vv.height);icon.anchor=new google.maps.Point((vv.width/2),(vv.height/2));}}
$.each(jsonData.markers,function(i,v){if(v.idicona==idicona&&v.show){var marker=new google.maps.Marker({'position':new google.maps.LatLng(v.lat,v.lng),'icon':icon});if(v.html)google.maps.event.addListener(marker,"click",function(){var s=v.html.match(/<\s*img[^>]+src\s*=\s*("(.*?)"|'(.*?)')/i);var t;if(s)t=(s[2])?s[2]:s[3];if(t){if(imageCache)imageCache=$('body').append($('<img/>',{'id':'img-cache'}).hide()).children('#img-cache');$('<img/>',{'src':t}).appendTo(imageCache);}
infoWindowGMap.setContent(v.html);infoWindowGMap.open(map,this);});if(config.clusterConfig)markersclustered.push(marker);else{bounds.extend(new google.maps.LatLng(v.lat,v.lng));if(!isChecked(v.idicona)&&isWithCB(bWithCB))marker.setMap(null);else marker.setMap(map);var id=idicona;if(v.idpadre){id=v.idpadre;if(!gmarkers[id].submarkers[v.idicona]){gmarkers[id].submarkers[v.idicona]={};gmarkers[id].submarkers[v.idicona].markers=[];gmarkers[id].submarkers[v.idicona].id=idicona;gmarkers[id].submarkers[v.idicona].label=vv.label;gmarkers[id].submarkers[v.idicona].url=vv.url;}
gmarkers[id].submarkers[v.idicona].markers.push({'marker':marker,'id':v.idicona,'html':v.html,'label':v.label});}else{if(!gmarkers[id]){gmarkers[id]={};gmarkers[id].markers=[];gmarkers[id].id=idicona;gmarkers[id].label=vv.label;gmarkers[id].url=vv.url;gmarkers[id].submarkers={};}
gmarkers[id].markers.push({'marker':marker,'id':v.idicona,'html':v.html,'label':v.label});}}}});});if(config.clusterConfig)initClusterer(markersclustered);else{map.fitBounds(bounds);$(sideBarContainer).append($('<ul/>').append($('<li/>').append(createElementsList())));}}}
var initClusterer=function(markers){if(markerClusterer!=null)markerClusterer.clearMarkers();markerClusterer=new MarkerClusterer(map,markers,config.clusterConfig);markerClusterer.fitMapToMarkers();};if(sDivMap&&config.mapstyles)$('#'+sDivMap).css(config.mapstyles);if(!map&&sDivMap)map=new google.maps.Map(document.getElementById(sDivMap),{zoom:config.zoom,maxZoom:(config.limiteMassimoZoom?config.limiteMassimoZoom:null),minZoom:(config.limiteMinimoZoom?config.limiteMinimoZoom:null),mapTypeId:google.maps.MapTypeId.ROADMAP,center:new google.maps.LatLng(config.lat,config.lng)});else clearOverlays();bWithCB=config.withcb;sideBarContainer='#'+config.sidebarid;if(config.json>'')$.ajax({type:"GET",url:config.json,dataType:"json",success:loadMarker})
else if(config.custompoints)setCustomGMapPoints(config.custompoints)
else{var point=new google.maps.LatLng(config.lat,config.lng);var icon=null;if(config.urlicona)icon=new google.maps.MarkerImage(config.urlicona);var marker=new google.maps.Marker({position:point,icon:icon});marker.setMap(map);}
$(function(){$('.frmMappaCartografica').submit(function(){refreshGmap($(this).attr('action'),$(this).serialize());return false;});});}})(jQuery);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 F(b,a){b.18().Z(F,o.n.2V);3.H=b;3.O=a;3.w=q;3.p=q;3.1H=q;3.1k=v;3.K(b.A())}F.5.2G=4(){6 c=3;3.p=46.3W("1N");8(3.1k){3.1M()}3.3p().3i.54(3.p);o.n.z.25(3.p,"30",4(e){6 a;6 b=c.H.18();o.n.z.19(b,"30",c.H);o.n.z.19(b,"4q",c.H);8(b.2O()){a=b.1A();b.A().2K(c.H.1w());8(a!==q&&(b.A().1V()>a)){b.A().4f(a+1)}}e.4e=I;8(e.2B){e.2B()}});o.n.z.25(3.p,"2z",4(){6 a=c.H.18();o.n.z.19(a,"2z",c.H)});o.n.z.25(3.p,"2w",4(){6 a=c.H.18();o.n.z.19(a,"2w",c.H)})};F.5.2s=4(){8(3.p&&3.p.2q){3.1p();o.n.z.3O(3.p);3.p.2q.3G(3.p);3.p=q}};F.5.2g=4(){8(3.1k){6 a=3.1L(3.w);3.p.U.1s=a.y+"s";3.p.U.1o=a.x+"s"}};F.5.1p=4(){8(3.p){3.p.U.3a="38"}3.1k=v};F.5.1M=4(){8(3.p){6 a=3.1L(3.w);3.p.U.4U=3.35(a);8(3.H.X){3.p.2P="<4H 4E=\'"+3.21+"\'><1N U=\'24: 2T; 1s: 32; 1o: 32; 1b: "+3.N+"s;\'>"+3.1H.17+"</1N>"}E{3.p.2P=3.1H.17}3.p.2N=3.H.18().2L();3.p.U.3a=""}3.1k=I};F.5.2J=4(a){3.1H=a;6 b=t.4g(0,a.2H-1);b=t.1U(3.O.k-1,b);6 c=3.O[b];3.21=c.1Z;3.L=c.Y;3.N=c.1b;3.G=c.4d;3.1T=c.49||[1R(3.L/2,10),1R(3.N/2,10)];3.2x=c.45||"43";3.2b=c.3Z||11;3.2o=c.3S||"38";3.2m=c.3L||"3I";3.2j=c.3D||"3B";3.2e=c.3z||"3x,3w-3t";3.2l=c.3q||"0 0"};F.5.2c=4(a){3.w=a};F.5.35=4(b){6 a=[];8(!3.H.X){a.D(\'1O-3j:1Z(\'+3.21+\');\');a.D(\'1O-14:\'+3.N+\'s \'+3.L+\'s;\');a.D(\'1O-24:\'+3.2l+\';\')}8(1G 3.G===\'3e\'){8(1G 3.G[0]===\'2t\'&&3.G[0]>0&&3.G[0]<3.L){a.D(\'Y:\'+(3.L-3.G[0])+\'s; 3b-1s:\'+3.G[0]+\'s;\')}E{a.D(\'Y:\'+3.L+\'s; 39-Y:\'+3.L+\'s;\')}8(1G 3.G[1]===\'2t\'&&3.G[1]>0&&3.G[1]<3.N){a.D(\'1b:\'+(3.N-3.G[1])+\'s; 3b-1o:\'+3.G[1]+\'s;\')}E{a.D(\'1b:\'+3.N+\'s; 17-37:1c;\')}}E{a.D(\'Y:\'+3.L+\'s; 39-Y:\'+3.L+\'s; 1b:\'+3.N+\'s; 17-37:1c;\')}a.D(\'4T:4P; 1s:\'+b.y+\'s; 1o:\'+b.x+\'s; 4O:\'+3.2x+\'; 24:2T; 1C-14:\'+3.2b+\'s; 1C-4M:\'+3.2e+\'; 1C-4L:\'+3.2m+\'; 1C-U:\'+3.2j+\'; 17-4K:\'+3.2o+\';\');9 a.4G("")};F.5.1L=4(b){6 a=3.2S().20(b);a.x-=3.1T[1];a.y-=3.1T[0];9 a};4 B(a){3.W=a;3.S=a.A();3.T=a.2X();3.12=a.2Y();3.15=a.31();3.X=a.2Q();3.j=[];3.w=q;3.28=q;3.13=M F(3,a.29())}B.5.4h=4(){9 3.j.k};B.5.1B=4(){9 3.j};B.5.2M=4(){9 3.w};B.5.A=4(){9 3.S};B.5.18=4(){9 3.W};B.5.1w=4(){6 i;6 b=M o.n.1z(3.w,3.w);6 a=3.1B();u(i=0;i<a.k;i++){b.Z(a[i].P())}9 b};B.5.1y=4(){3.13.K(q);3.j=[];1X 3.j};B.5.1x=4(e){6 i;6 c;6 b;8(3.2I(e)){9 v}8(!3.w){3.w=e.P();3.1W()}E{8(3.15){6 l=3.j.k+1;6 a=(3.w.Q()*(l-1)+e.P().Q())/l;6 d=(3.w.1a()*(l-1)+e.P().1a())/l;3.w=M o.n.23(a,d);3.1W()}}e.1i=I;3.j.D(e);c=3.j.k;b=3.W.1A();8(b!==q&&3.S.1V()>b){8(e.A()!==3.S){e.K(3.S)}}E 8(c<3.12){8(e.A()!==3.S){e.K(3.S)}}E 8(c===3.12){u(i=0;i<c;i++){3.j[i].K(q)}}E{e.K(q)}3.2F();9 I};B.5.2E=4(a){9 3.28.2D(a.P())};B.5.1W=4(){6 a=M o.n.1z(3.w,3.w);3.28=3.W.22(a)};B.5.2F=4(){6 c=3.j.k;6 a=3.W.1A();8(a!==q&&3.S.1V()>a){3.13.1p();9}8(c<3.12){3.13.1p();9}6 b=3.W.29().k;6 d=3.W.2C()(3.j,b);3.13.2c(3.w);3.13.2J(d);3.13.1M()};B.5.2I=4(a){6 i;8(3.j.1h){9 3.j.1h(a)!==-1}E{u(i=0;i<3.j.k;i++){8(a===3.j[i]){9 I}}}9 v};4 7(a,c,b){3.Z(7,o.n.2V);c=c||[];b=b||{};3.j=[];3.C=[];3.1g=[];3.1v=q;3.1f=v;3.T=b.4c||4b;3.12=b.4a||2;3.1S=b.48||q;3.O=b.47||[];3.1Q=b.2N||"";3.1u=I;8(b.2A!==1l){3.1u=b.2A}3.15=v;8(b.2y!==1l){3.15=b.2y}3.16=v;8(b.2h!==1l){3.16=b.2h}3.X=v;8(b.2v!==1l){3.X=b.2v}3.1t=b.41||7.2u;3.1n=b.40||7.2r;3.1d=b.3U||7.2p;3.1J=b.3T||7.2n;3.1K=b.3P||7.2d;3.1q=b.3K||7.2k;8(3H.3F.3E().1h("3C")!==-1){3.1K=3.1q}3.2i();3.2f(c,I);3.K(a)}7.5.2G=4(){6 a=3;3.1v=3.A();3.1f=I;3.1m();3.1g=[o.n.z.1P(3.A(),"3A",4(){a.1r(v)}),o.n.z.1P(3.A(),"3y",4(){a.1e()})]};7.5.2s=4(){6 i;u(i=0;i<3.j.k;i++){3.j[i].K(3.1v)}u(i=0;i<3.C.k;i++){3.C[i].1y()}3.C=[];u(i=0;i<3.1g.k;i++){o.n.z.3J(3.1g[i])}3.1g=[];3.1v=q;3.1f=v};7.5.2g=4(){};7.5.2i=4(){6 i,14;8(3.O.k>0){9}u(i=0;i<3.1d.k;i++){14=3.1d[i];3.O.D({1Z:3.1t+(i+1)+"."+3.1n,Y:14,1b:14})}};7.5.3v=4(){6 i;6 a=3.1B();6 b=M o.n.1z();u(i=0;i<a.k;i++){b.Z(a[i].P())}3.A().2K(b)};7.5.2X=4(){9 3.T};7.5.3u=4(a){3.T=a};7.5.2Y=4(){9 3.12};7.5.3M=4(a){3.12=a};7.5.1A=4(){9 3.1S};7.5.3N=4(a){3.1S=a};7.5.29=4(){9 3.O};7.5.3s=4(a){3.O=a};7.5.2L=4(){9 3.1Q};7.5.3r=4(a){3.1Q=a};7.5.2O=4(){9 3.1u};7.5.3Q=4(a){3.1u=a};7.5.31=4(){9 3.15};7.5.3R=4(a){3.15=a};7.5.3o=4(){9 3.16};7.5.3n=4(a){3.16=a};7.5.3m=4(){9 3.1n};7.5.3V=4(a){3.1n=a};7.5.3l=4(){9 3.1t};7.5.3k=4(a){3.1t=a};7.5.3X=4(){9 3.1d};7.5.3Y=4(a){3.1d=a};7.5.2C=4(){9 3.1J};7.5.3h=4(a){3.1J=a};7.5.2Q=4(){9 3.X};7.5.3g=4(a){3.X=a};7.5.3f=4(){9 3.1q};7.5.42=4(a){3.1q=a};7.5.1B=4(){9 3.j};7.5.3d=4(){9 3.j.k};7.5.44=4(){9 3.C};7.5.3c=4(){9 3.C.k};7.5.1x=4(b,a){3.1I(b);8(!a){3.1e()}};7.5.2f=4(b,a){6 i;u(i=0;i<b.k;i++){3.1I(b[i])}8(!a){3.1e()}};7.5.1I=4(b){8(b.51()){6 a=3;o.n.z.1P(b,"50",4(){8(a.1f){3.1i=v;a.1m()}})}b.1i=v;3.j.D(b)};7.5.4Z=4(c,a){6 b=3.2a(c);8(!a&&b){3.1m()}9 b};7.5.4Y=4(a,c){6 i,r;6 b=v;u(i=0;i<a.k;i++){r=3.2a(a[i]);b=b||r}8(!c&&b){3.1m()}9 b};7.5.2a=4(b){6 i;6 a=-1;8(3.j.1h){a=3.j.1h(b)}E{u(i=0;i<3.j.k;i++){8(b===3.j[i]){a=i;4X}}}8(a===-1){9 v}b.K(q);3.j.4W(a,1);9 I};7.5.4S=4(){3.1r(I);3.j=[]};7.5.1m=4(){6 a=3.C.4Q();3.C=[];3.1r(v);3.1e();36(4(){6 i;u(i=0;i<a.k;i++){a[i].1y()}},0)};7.5.22=4(d){6 f=3.2S();6 c=M o.n.23(d.27().Q(),d.27().1a());6 a=M o.n.23(d.1Y().Q(),d.1Y().1a());6 e=f.20(c);e.x+=3.T;e.y-=3.T;6 g=f.20(a);g.x-=3.T;g.y+=3.T;6 b=f.34(e);6 h=f.34(g);d.Z(b);d.Z(h);9 d};7.5.1e=4(){3.26(0)};7.5.1r=4(a){6 i,J;u(i=0;i<3.C.k;i++){3.C[i].1y()}3.C=[];u(i=0;i<3.j.k;i++){J=3.j[i];J.1i=v;8(a){J.K(q)}}};7.5.33=4(b,e){6 R=4I;6 g=(e.Q()-b.Q())*t.1F/1D;6 f=(e.1a()-b.1a())*t.1F/1D;6 a=t.1E(g/2)*t.1E(g/2)+t.2Z(b.Q()*t.1F/1D)*t.2Z(e.Q()*t.1F/1D)*t.1E(f/2)*t.1E(f/2);6 c=2*t.4F(t.2R(a),t.2R(1-a));6 d=R*c;9 d};7.5.2W=4(b,a){9 a.2D(b.P())};7.5.2U=4(c){6 i,d,V,1c;6 a=4D;6 b=q;u(i=0;i<3.C.k;i++){V=3.C[i];1c=V.2M();8(1c){d=3.33(1c,c.P());8(d<a){a=d;b=V}}}8(b&&b.2E(c)){b.1x(c)}E{V=M B(3);V.1x(c);3.C.D(V)}};7.5.26=4(e){6 i,J;6 c=3;8(!3.1f){9}8(e===0){o.n.z.19(3,"4C",3);8(1G 3.1j!=="1l"){4B(3.1j);1X 3.1j}}6 d=M o.n.1z(3.A().1w().1Y(),3.A().1w().27());6 a=3.22(d);6 b=t.1U(e+3.1K,3.j.k);u(i=e;i<b;i++){J=3.j[i];8(!J.1i&&3.2W(J,a)){8(!3.16||(3.16&&J.4A())){3.2U(J)}}}8(b<3.j.k){3.1j=36(4(){c.26(b)},0)}E{1X 3.1j;o.n.z.19(3,"4z",3)}};7.5.Z=4(d,c){9(4(b){6 a;u(a 4y b.5){3.5[a]=b.5[a]}9 3}).4x(d,[c])};7.2n=4(a,b){6 e=0;6 c=a.k.4J();6 d=c;4w(d!==0){d=1R(d/10,10);e++}e=t.1U(e,b);9{17:c,2H:e}};7.2d=4v;7.2k=4u;7.2u="4N://o-n-4t-4s-4r.4R.4p/4o/4n/4V/4m/m";7.2r="4l";7.2p=[53,4k,4j,4i,52];',62,315,'|||this|function|prototype|var|MarkerClusterer|if|return||||||||||markers_|length|||maps|google|div_|null||px|Math|for|false|center_|||event|getMap|Cluster|clusters_|push|else|ClusterIcon|anchor_|cluster_|true|marker|setMap|height_|new|width_|styles_|getPosition|lat||map_|gridSize_|style|cluster|markerClusterer_|printable_|height|extend|||minClusterSize_|clusterIcon_|size|averageCenter_|ignoreHidden_|text|getMarkerClusterer|trigger|lng|width|center|imageSizes_|redraw_|ready_|listeners_|indexOf|isAdded|timerRefStatic|visible_|undefined|repaint|imageExtension_|left|hide|batchSizeIE_|resetViewport_|top|imagePath_|zoomOnClick_|activeMap_|getBounds|addMarker|remove|LatLngBounds|getMaxZoom|getMarkers|font|180|sin|PI|typeof|sums_|pushMarkerTo_|calculator_|batchSize_|getPosFromLatLng_|show|div|background|addListener|title_|parseInt|maxZoom_|anchorIcon_|min|getZoom|calculateBounds_|delete|getSouthWest|url|fromLatLngToDivPixel|url_|getExtendedBounds|LatLng|position|addDomListener|createClusters_|getNorthEast|bounds_|getStyles|removeMarker_|textSize_|setCenter|BATCH_SIZE|fontFamily_|addMarkers|draw|ignoreHidden|setupStyles_|fontStyle_|BATCH_SIZE_IE|backgroundPosition_|fontWeight_|CALCULATOR|textDecoration_|IMAGE_SIZES|parentNode|IMAGE_EXTENSION|onRemove|number|IMAGE_PATH|printable|mouseout|textColor_|averageCenter|mouseover|zoomOnClick|stopPropagation|getCalculator|contains|isMarkerInClusterBounds|updateIcon_|onAdd|index|isMarkerAlreadyAdded_|useStyle|fitBounds|getTitle|getCenter|title|getZoomOnClick|innerHTML|getPrintable|sqrt|getProjection|absolute|addToClosestCluster_|OverlayView|isMarkerInBounds_|getGridSize|getMinimumClusterSize|cos|click|getAverageCenter|0px|distanceBetweenPoints_|fromDivPixelToLatLng|createCss|setTimeout|align|none|line|display|padding|getTotalClusters|getTotalMarkers|object|getBatchSizeIE|setPrintable|setCalculator|overlayMouseTarget|image|setImagePath|getImagePath|getImageExtension|setIgnoreHidden|getIgnoreHidden|getPanes|backgroundPosition|setTitle|setStyles|serif|setGridSize|fitMapToMarkers|sans|Arial|idle|fontFamily|zoom_changed|normal|msie|fontStyle|toLowerCase|userAgent|removeChild|navigator|bold|removeListener|batchSizeIE|fontWeight|setMinimumClusterSize|setMaxZoom|clearInstanceListeners|batchSize|setZoomOnClick|setAverageCenter|textDecoration|calculator|imageSizes|setImageExtension|createElement|getImageSizes|setImageSizes|textSize|imageExtension|imagePath|setBatchSizeIE|black|getClusters|textColor|document|styles|maxZoom|anchorIcon|minimumClusterSize|60|gridSize|anchor|cancelBubble|setZoom|max|getSize|78|66|56|png|images|trunk|svn|com|clusterclick|v3|library|utility|500|2000|while|apply|in|clusteringend|getVisible|clearTimeout|clusteringbegin|40000|src|atan2|join|img|6371|toString|decoration|weight|family|http|color|pointer|slice|googlecode|clearMarkers|cursor|cssText|markerclustererplus|splice|break|removeMarkers|removeMarker|dragend|getDraggable|90||appendChild'.split('|'),0,{}));
