// This file contains the code from: cookie.js, DHTMLAPI.js, global.js, scrollbars.js and swfobject.js minified.
function createCookie(c,d,e){if(e){var b=new Date();b.setTime(b.getTime()+(e*24*60*60*1000));var a="; expires="+b.toGMTString()}else{var a=""}document.cookie=c+"="+d+a+"; path=/"}function readCookie(b){var e=b+"=";var a=document.cookie.split(";");for(var d=0;d<a.length;d++){var f=a[d];while(f.charAt(0)==" "){f=f.substring(1,f.length)}if(f.indexOf(e)==0){return f.substring(e.length,f.length)}}return null}function eraseCookie(a){createCookie(a,"",-1)}function isMuted(){var a=readCookie("jsMuted");return a}function setMuted(a){createCookie("jsMuted",a,7)}var isCSS,isW3C,isIE4,isNN4,isIE6CSS;function initDHTMLAPI(){if(document.images){isCSS=(document.body&&document.body.style)?true:false;isW3C=(isCSS&&document.getElementById)?true:false;isIE4=(isCSS&&document.all)?true:false;isNN4=(document.layers)?true:false;isIE6CSS=(document.compatMode&&document.compatMode.indexOf("CSS1")>=0)?true:false}}window.onload=initDHTMLAPI;function seekLayer(d,b){var a;for(var c=0;c<d.layers.length;c++){if(d.layers[c].name==b){a=d.layers[c];break}if(d.layers[c].document.layers.length>0){a=seekLayer(document.layers[c].document,b)}}return a}function getRawObject(b){var a;if(typeof b=="string"){if(isW3C){a=document.getElementById(b)}else{if(isIE4){a=document.all(b)}else{if(isNN4){a=seekLayer(document,b)}}}}else{a=b}return a}function getObject(b){var a=getRawObject(b);if(a&&isCSS){a=a.style}return a}function shiftTo(d,a,e){var c=getObject(d);if(c){if(isCSS){var b=(typeof c.left=="string")?"px":0;c.left=a+b;c.top=e+b}else{if(isNN4){c.moveTo(a,e)}}}}function shiftBy(e,b,a){var d=getObject(e);if(d){if(isCSS){var c=(typeof d.left=="string")?"px":0;d.left=getObjectLeft(e)+b+c;d.top=getObjectTop(e)+a+c}else{if(isNN4){d.moveBy(b,a)}}}}function setZIndex(c,b){var a=getObject(c);if(a){a.zIndex=b}}function setBGColor(c,b){var a=getObject(c);if(a){if(isNN4){a.bgColor=b}else{if(isCSS){a.backgroundColor=b}}}}function show(b){var a=getObject(b);if(a){a.visibility="visible"}}function hide(b){var a=getObject(b);if(a){a.visibility="hidden"}}function getObjectLeft(e){var c=getRawObject(e);var a=0;if(document.defaultView){var b=document.defaultView;var d=b.getComputedStyle(c,"");a=d.getPropertyValue("left")}else{if(c.currentStyle){a=c.currentStyle.left}else{if(c.style){a=c.style.left}else{if(isNN4){a=c.left}}}}return parseInt(a)}function getObjectTop(e){var c=getRawObject(e);var a=0;if(document.defaultView){var b=document.defaultView;var d=b.getComputedStyle(c,"");a=d.getPropertyValue("top")}else{if(c.currentStyle){a=c.currentStyle.top}else{if(c.style){a=c.style.top}else{if(isNN4){a=c.top}}}}return parseInt(a)}function getObjectWidth(c){var b=getRawObject(c);var a=0;if(b.offsetWidth){a=b.offsetWidth}else{if(b.clip&&b.clip.width){a=b.clip.width}else{if(b.style&&b.style.pixelWidth){a=b.style.pixelWidth}}}return parseInt(a)}function getObjectHeight(c){var b=getRawObject(c);var a=0;if(b.offsetHeight){a=b.offsetHeight}else{if(b.clip&&b.clip.height){a=b.clip.height}else{if(b.style&&b.style.pixelHeight){a=b.style.pixelHeight}}}return parseInt(a)}function getInsideWindowWidth(){if(window.innerWidth){return window.innerWidth}else{if(isIE6CSS){return document.body.parentElement.clientWidth}else{if(document.body&&document.body.clientWidth){return document.body.clientWidth}}}return 0}function getInsideWindowHeight(){if(window.innerHeight){return window.innerHeight}else{if(isIE6CSS){return document.body.parentElement.clientHeight}else{if(document.body&&document.body.clientHeight){return document.body.clientHeight}}}return 0}var q=location.search;var q_array=new Array();var qp=q.substring(q.indexOf("?")+1,q.length);q_array=qp.split("&");for(var q=0;q<q_array.length;q++){q_array[q]=q_array[q].split("=")}function getParamValue(b){for(var a=0;a<q_array.length;a++){if(b==q_array[a][0]){return q_array[a][1];break}}}var commercialIsPlaying=false;function setOthers(a,d){var c=parseInt(a);var b=parseInt(d);if(c==1){if((!commercialIsPlaying)&&(isMuted()!="true")){if(b==1){window.document.tgif_player.setSound("video","over")}else{window.document.tgif_player.setSound("video","out")}}}else{if(c==2){if(b==1){commercialIsPlaying=true;window.document.tgif_player.setSound("commercial","play")}else{commercialIsPlaying=false;window.document.tgif_player.setSound("commercial","stop")}}}}function topNavShowTab(a){document.getElementById("TopNav"+a+"DropDown").style.visibility="visible";document.getElementById("TopNav"+a+"Rollover").style.visibility="visible";document.getElementById("TopNav"+a+"Category").style.visibility="hidden"}function topNavHideTab(a){document.getElementById("TopNav"+a+"DropDown").style.visibility="hidden";document.getElementById("TopNav"+a+"Rollover").style.visibility="hidden";document.getElementById("TopNav"+a+"Category").style.visibility="visible"}function homeExpand(a){switch(a){case"Caipirinhas":document.getElementById("box2").style.visibility="hidden";document.getElementById("CaipirinhasLargeBox").style.visibility="visible";document.getElementById("homeCaipirinhasExpandGraphic").style.visibility="hidden";document.getElementById("homeCaipirinhasExpandGraphic").style.visibility="hidden";return false;case"CaipirinhasDescription":document.getElementById("homeCaipirinhasTitle").style.visibility="hidden";document.getElementById("homeCaiprinihasUpArrow").style.visibility="hidden";document.getElementById("CaiprinihasDescriptionExpanded").style.visibility="visible";document.getElementById("homeCaipirinhasExpandGraphic").style.top="422px";document.getElementById("homeCaipirinhasExpandGraphic").style.left="634px";document.getElementById("homeCaipirinhasExpandGraphicClick").style.top="422px";document.getElementById("homeCaipirinhasExpandGraphicClick").style.left="634px";break;case"BartendersDescription":document.getElementById("BartendersDescriptionExpanded").style.visibility="visible";document.getElementById("homeBartendersUpArrow").style.visibility="hidden";document.getElementById("homeBartendersLabel").style.visibility="hidden";case"menuPod":document.getElementById("homeMenuPodImage").src="../home/images/menu_step2_ANIM.gif";break;case"gmmsPod":document.getElementById("homeGmmsPodImage").src="../home/images/GMMS_pod_ANIM4.gif";break}}function homeCollapse(a){switch(a){case"Caipirinhas":document.getElementById("box2").style.visibility="visible";document.getElementById("CaipirinhasLargeBox").style.visibility="hidden";document.getElementById("homeCaipirinhasExpandGraphic").style.visibility="visible";document.getElementById("homeCaipirinhasExpandGraphicClick").style.visibility="visible";return false;case"CaipirinhasDescription":document.getElementById("homeCaipirinhasTitle").style.visibility="visible";document.getElementById("homeCaiprinihasUpArrow").style.visibility="visible";document.getElementById("CaiprinihasDescriptionExpanded").style.visibility="hidden";document.getElementById("homeCaipirinhasExpandGraphic").style.top="500px";document.getElementById("homeCaipirinhasExpandGraphic").style.left="634px";document.getElementById("homeCaipirinhasExpandGraphicClick").style.top="500px";document.getElementById("homeCaipirinhasExpandGraphicClick").style.left="634px";break;case"BartendersDescription":document.getElementById("BartendersDescriptionExpanded").style.visibility="hidden";document.getElementById("homeBartendersUpArrow").style.visibility="visible";document.getElementById("homeBartendersLabel").style.visibility="visible";return false;case"menuPod":document.getElementById("homeMenuPodImage").src="../home/images/menu_step1.jpg";break;case"gmmsPod":document.getElementById("homeGmmsPodImage").src="../home/images/GMMS1.jpg";break}}function menuExpand(b,a){switch(b){case"HeroImageOne":document.getElementById("HeroShotTitleOneDiv"+a).style.visibility="hidden";document.getElementById("HeroShotDescriptionOneDiv"+a).style.visibility="visible";return false;case"HeroImageTwo":document.getElementById("HeroShotTitleTwoDiv"+a).style.visibility="hidden";document.getElementById("HeroShotDescriptionTwoDiv"+a).style.visibility="visible";return false;case"HeroImageRPRPOne":document.getElementById("HeroShotRPRPTitleOneDiv"+a).style.visibility="hidden";document.getElementById("HeroShotRPRPDescriptionOneDiv"+a).style.visibility="visible";return false;case"HeroImageRPRPTwo":document.getElementById("HeroShotRPRPTitleTwoDiv"+a).style.visibility="hidden";document.getElementById("HeroShotRPRPDescriptionTwoDiv"+a).style.visibility="visible";return false}}function menuCollapse(b,a){switch(b){case"HeroImageOne":document.getElementById("HeroShotDescriptionOneDiv"+a).style.visibility="hidden";document.getElementById("HeroShotTitleOneDiv"+a).style.visibility="visible";return false;case"HeroImageTwo":document.getElementById("HeroShotDescriptionTwoDiv"+a).style.visibility="hidden";document.getElementById("HeroShotTitleTwoDiv"+a).style.visibility="visible";return false;case"HeroImageRPRPOne":document.getElementById("HeroShotRPRPDescriptionOneDiv"+a).style.visibility="hidden";document.getElementById("HeroShotRPRPTitleOneDiv"+a).style.visibility="visible";return false;case"HeroImageRPRPTwo":document.getElementById("HeroShotRPRPDescriptionTwoDiv"+a).style.visibility="hidden";document.getElementById("HeroShotRPRPTitleTwoDiv"+a).style.visibility="visible";return false}}function showJavascriptObjects(a){switch(a){case"Home":break;case"Menu":document.getElementById("homeCaiprinihasUpArrow").style.visibility="visible";document.getElementById("homeBartendersUpArrow").style.visibility="visible";break}}var scrollEngaged=false;var scrollInterval;var scrollBars=new Array();function getElementStyle(e,b,c){var d=document.getElementById(e);if(d.currentStyle){return d.currentStyle[b]}else{if(window.getComputedStyle){var a=window.getComputedStyle(d,"");return a.getPropertyValue(c)}}return""}function scrollBar(c,b,a){if(navigator.userAgent.indexOf("Macintosh")!=-1){return false}this.rootID=c;this.ownerID=b;this.ownerContentID=a;this.index=scrollBars.length;this.rootElem=document.getElementById(c);this.ownerElem=document.getElementById(b);this.ownerElem.style.overflow="hidden";this.contentElem=document.getElementById(a);this.ownerHeight=parseInt(getElementStyle(b,"height","height"));this.ownerWidth=parseInt(getElementStyle(b,"width","width"))+19;this.ownerBorder=parseInt(getElementStyle(b,"borderTopWidth","border-top-width"))*2;this.contentHeight=Math.abs(parseInt(this.contentElem.style.top));this.contentWidth=this.contentElem.offsetWidth;this.contentFontSize=parseInt(getElementStyle(this.ownerContentID,"fontSize","font-size"));this.contentScrollHeight=this.contentElem.scrollHeight;this.quirks={on:false,ownerBorder:0,scrollBorder:0,contentPadding:0};if(navigator.appName=="Microsoft Internet Explorer"&&navigator.userAgent.indexOf("Win")!=-1&&(typeof document.compatMode=="undefined"||document.compatMode=="BackCompat")){this.quirks.on=true;this.quirks.ownerBorder=this.ownerBorder;this.quirks.contentPadding=parseInt(getElementStyle(a,"padding","padding"))}this.scrollWrapper=null;this.upButton=null;this.dnButton=null;this.thumb=null;this.buttonLength=0;this.thumbLength=0;this.scrollWrapperLength=0;this.dragZone={left:0,top:0,right:0,bottom:0};this.appendScroll=appendScrollBar}function appendScrollBar(e,d){if(navigator.userAgent.indexOf("Macintosh")!=-1){return false}var c=0;var h=13;var f=127;var g=document.createElement("img");g.id="lineup"+(scrollBars.length-1);g.className="lineup";g.index=this.index;g.src="../../images/global/scrollbars/arrow_up.gif";g.height=c;g.width=h;g.style.position="absolute";g.style.top="0px";g.style.left="0px";var b=document.createElement("div");b.id="scrollWrapper"+(scrollBars.length-1);b.className="scrollWrapper";b.index=this.index;b.style.position="absolute";b.style.visibility="hidden";b.style.top=e+"px";b.style.left=this.ownerWidth+this.ownerBorder-this.quirks.ownerBorder+"px";b.style.left=d+"px";b.style.borderTop="0px solid #FFFFFF";b.style.borderLeft="0px solid #FFFFFF";b.style.borderRight="0px solid #FFFFFF";b.style.borderBottom="0px solid #FFFFFF";b.style.backgroundColor="#595757";if(this.quirks.on){this.quirks.scrollBorder=2}b.style.width=g.width+(this.quirks.scrollBorder*2)+"px";b.style.height=this.ownerHeight+(this.ownerBorder-4)-(this.quirks.scrollBorder*2)+"px";var i=document.createElement("img");i.id="linedown"+(scrollBars.length-1);i.className="linedown";i.index=this.index;i.src="../../images/global/scrollbars/arrow_down.gif";i.height=c;i.width=h;i.style.position="absolute";i.style.top=parseInt(this.ownerHeight)+(this.ownerBorder-4)-(this.quirks.ownerBorder)-i.height+"px";i.style.left="0px";var a=document.createElement("img");a.id="thumb"+(scrollBars.length-1);a.index=this.index;a.src="http://localhost/TGIF_Redesign2008/menus/pages/images/_scrollBarThumb.jpg";a.height=f;a.width=h;a.style.position="absolute";a.style.top=g.height+"px";a.style.width=h+"px";a.style.height=f+"px";a.style.left="0px";this.thumb=b.appendChild(a);this.scrollWrapper=this.rootElem.appendChild(b);this.buttonLength=c;this.buttonWidth=h;this.thumbLength=f;this.scrollWrapperLength=parseInt(getElementStyle(this.scrollWrapper.id,"height","height"));if(navigator.appName=="Microsoft Internet Explorer"){}this.dragZone.left=0;this.dragZone.top=this.buttonLength;this.dragZone.right=this.buttonWidth;this.dragZone.bottom=this.scrollWrapperLength-this.buttonLength-(this.quirks.scrollBorder*2);this.scrollWrapper.onmousedown=handleScrollClick;this.scrollWrapper.onmouseup=handleScrollStop;this.scrollWrapper.oncontextmenu=blockEvent;this.scrollWrapper.ondrag=blockEvent;this.scrollWrapper.style.visibility="visible";initScroll()}function handleScrollStop(){scrollEngaged=false}function blockEvent(a){a=(a)?a:event;a.cancelBubble=true;return false}function handleScrollClick(c){var g,f;c=(c)?c:event;var h=(c.target)?c.target:c.srcElement;h=(h.nodeType==3)?h.parentNode:h;var d=h.index;g=scrollBars[d].contentFontSize;switch(h.className){case"lineup":scrollEngaged=true;scrollBy(d,parseInt(g));scrollInterval=setInterval("scrollBy("+d+", "+parseInt(g)+")",100);c.cancelBubble=true;return false;break;case"linedown":scrollEngaged=true;scrollBy(d,-(parseInt(g)));scrollInterval=setInterval("scrollBy("+d+", -"+parseInt(g)+")",100);c.cancelBubble=true;return false;break;case"scrollWrapper":scrollEngaged=true;var e=(c.offsetY)?c.offsetY:((c.layerY)?c.layerY:-1);if(e>=0){var b=scrollBars[d].ownerHeight-g;var a=scrollBars[d].thumb.style;if(e>(parseInt(a.top)+scrollBars[d].thumbLength)){b=-b}scrollBy(d,b);scrollInterval=setInterval("scrollBy("+d+", "+b+")",100);c.cancelBubble=true;return false;break}}return false}function scrollDivRCM(c){var a=scrollBars[0];var b=document.getElementById(a.ownerContentID);shiftTo(b,0,c);updateThumb(0)}function scrollBy(c,d){var b=scrollBars[c];var f=document.getElementById(b.ownerContentID);var g=parseInt(f.style.top);var e=parseInt(f.scrollHeight);var a=b.ownerHeight;if(scrollEngaged&&g+d>=-e+a&&g+d<=0){shiftBy(f,0,d);updateThumb(c)}else{if(g+d<-e+a){shiftTo(f,0,-e+a-b.quirks.contentPadding);updateThumb(c);clearInterval(scrollInterval)}else{if(g+d>0){shiftTo(f,0,0);updateThumb(c);clearInterval(scrollInterval)}else{clearInterval(scrollInterval)}}}}function updateThumb(e){var c=scrollBars[e];var d=c.scrollWrapperLength-(c.quirks.scrollBorder*2);var f=c.buttonLength;d-=f*2;var b=c.contentElem;var a=Math.abs(parseInt(b.style.top));var g=a/(c.contentScrollHeight-c.ownerHeight);shiftTo(c.thumb,0,Math.round((d-c.thumbLength)*g)+f)}function updateScroll(){var g=selectedObj.index;var f=scrollBars[g];var c=f.scrollWrapperLength-(f.quirks.scrollBorder*2);var a=f.buttonLength;var j=f.thumbLength;var h=a;var n=c-a-j;var e=n-h;var b=parseInt(getElementStyle(f.thumb.id,"top","top"));var i=(b-a)/e;var d=f.contentElem;var m=Math.abs(parseInt(d.style.top));var l=f.contentScrollHeight;var k=f.ownerHeight;shiftTo(f.ownerContentID,0,-(Math.round((l-k)*i)))}function initScroll(){var f=scrollBars[0];var c=f.scrollWrapperLength-(f.quirks.scrollBorder*2);var a=f.buttonLength;var i=f.thumbLength;var g=a;var m=c-a-i;var e=m-g;var b=parseInt(getElementStyle(f.thumb.id,"top","top"));var h=(b-a)/e;var d=f.contentElem;var l=Math.abs(parseInt(d.style.top));var k=f.contentScrollHeight;var j=f.ownerHeight;shiftTo(f.ownerContentID,0,-(Math.round((k-j)*h)))}var selectedObj;var offsetX,offsetY;var zone={left:0,top:16,right:16,bottom:88};var thumbOffset=0;function setSelectedElem(b){var c=(b.target)?b.target:b.srcElement;c=(c.nodeType&&c.nodeType==3)?c.parentNode:c;var a=(c.id.indexOf("thumb")!=-1)?c.id:"";if(a){if(document.layers){selectedObj=document.layers[a]}else{if(document.all){selectedObj=document.all(a)}else{if(document.getElementById){selectedObj=document.getElementById(a)}}}setZIndex(selectedObj,100);return}selectedObj=null;return}function dragIt(e){e=(e)?e:event;var c,h,g,b;if(selectedObj){if(e.pageX){c=e.pageX-offsetX;h=e.pageY-offsetY}else{if(e.clientX||e.clientY){c=e.clientX-offsetX;h=e.clientY-offsetY}}var f=selectedObj.index;var a=scrollBars[f];var d=a.dragZone;g=a.thumb.width;b=a.thumb.height-thumbOffset;c=(c<d.left)?d.left:((c+g>d.right)?d.right-g:c);h=(h<d.top)?d.top:((h+b>d.bottom)?d.bottom-b:h);shiftTo(selectedObj,c,h);updateScroll();e.cancelBubble=true;return false}}function engage(a){a=(a)?a:event;setSelectedElem(a);if(selectedObj){if(document.body&&document.body.setCapture){document.body.setCapture()}if(a.pageX){offsetX=a.pageX-((typeof selectedObj.offsetLeft!="undefined")?selectedObj.offsetLeft:selectedObj.left);offsetY=a.pageY-((selectedObj.offsetTop)?selectedObj.offsetTop:selectedObj.top)}else{if(typeof a.clientX!="undefined"){offsetX=a.clientX-((selectedObj.offsetLeft)?selectedObj.offsetLeft:0);offsetY=a.clientY-((selectedObj.offsetTop)?selectedObj.offsetTop:0)}}return false}}function release(a){if(selectedObj){setZIndex(selectedObj,0);if(document.body&&document.body.releaseCapture){document.body.releaseCapture()}selectedObj=null}}function initDrag(){if(document.layers){document.captureEvents(Event.MOUSEDOWN|Event.MOUSEMOVE|Event.MOUSEUP);return}else{if(document.body&document.body.addEventListener){document.addEventListener("mousedown",engage,true);document.addEventListener("mousemove",dragIt,true);document.addEventListener("mouseup",release,true);return}}document.onmousedown=engage;document.onmousemove=dragIt;document.onmouseup=release;if(window.addEventListener){return}}var swfobject=function(){var Z="undefined",P="object",B="Shockwave Flash",h="ShockwaveFlash.ShockwaveFlash",W="application/x-shockwave-flash",K="SWFObjectExprInst",G=window,g=document,N=navigator,f=[],H=[],Q=null,L=null,T=null,S=false,C=false;var a=function(){var l=typeof g.getElementById!=Z&&typeof g.getElementsByTagName!=Z&&typeof g.createElement!=Z&&typeof g.appendChild!=Z&&typeof g.replaceChild!=Z&&typeof g.removeChild!=Z&&typeof g.cloneNode!=Z,t=[0,0,0],n=null;if(typeof N.plugins!=Z&&typeof N.plugins[B]==P){n=N.plugins[B].description;if(n){n=n.replace(/^.*\s+(\S+\s+\S+$)/,"$1");t[0]=parseInt(n.replace(/^(.*)\..*$/,"$1"),10);t[1]=parseInt(n.replace(/^.*\.(.*)\s.*$/,"$1"),10);t[2]=/r/.test(n)?parseInt(n.replace(/^.*r(.*)$/,"$1"),10):0}}else{if(typeof G.ActiveXObject!=Z){var o=null,s=false;try{o=new ActiveXObject(h+".7")}catch(k){try{o=new ActiveXObject(h+".6");t=[6,0,21];o.AllowScriptAccess="always"}catch(k){if(t[0]==6){s=true}}if(!s){try{o=new ActiveXObject(h)}catch(k){}}}if(!s&&o){try{n=o.GetVariable("$version");if(n){n=n.split(" ")[1].split(",");t=[parseInt(n[0],10),parseInt(n[1],10),parseInt(n[2],10)]}}catch(k){}}}}var v=N.userAgent.toLowerCase(),j=N.platform.toLowerCase(),r=/webkit/.test(v)?parseFloat(v.replace(/^.*webkit\/(\d+(\.\d+)?).*$/,"$1")):false,i=false,q=j?/win/.test(j):/win/.test(v),m=j?/mac/.test(j):/mac/.test(v);
/*@cc_on i=true;@if(@_win32)q=true;@elif(@_mac)m=true;@end@*/
return{w3cdom:l,pv:t,webkit:r,ie:i,win:q,mac:m}}();var e=function(){if(!a.w3cdom){return}J(I);if(a.ie&&a.win){try{g.write("<script id=__ie_ondomload defer=true src=//:><\/script>");var i=c("__ie_ondomload");if(i){i.onreadystatechange=function(){if(this.readyState=="complete"){this.parentNode.removeChild(this);V()}}}}catch(j){}}if(a.webkit&&typeof g.readyState!=Z){Q=setInterval(function(){if(/loaded|complete/.test(g.readyState)){V()}},10)}if(typeof g.addEventListener!=Z){g.addEventListener("DOMContentLoaded",V,null)}M(V)}();function V(){if(S){return}if(a.ie&&a.win){var m=Y("span");try{var l=g.getElementsByTagName("body")[0].appendChild(m);l.parentNode.removeChild(l)}catch(n){return}}S=true;if(Q){clearInterval(Q);Q=null}var j=f.length;for(var k=0;k<j;k++){f[k]()}}function J(i){if(S){i()}else{f[f.length]=i}}function M(j){if(typeof G.addEventListener!=Z){G.addEventListener("load",j,false)}else{if(typeof g.addEventListener!=Z){g.addEventListener("load",j,false)}else{if(typeof G.attachEvent!=Z){G.attachEvent("onload",j)}else{if(typeof G.onload=="function"){var i=G.onload;G.onload=function(){i();j()}}else{G.onload=j}}}}}function I(){var l=H.length;for(var j=0;j<l;j++){var m=H[j].id;if(a.pv[0]>0){var k=c(m);if(k){H[j].width=k.getAttribute("width")?k.getAttribute("width"):"0";H[j].height=k.getAttribute("height")?k.getAttribute("height"):"0";if(O(H[j].swfVersion)){if(a.webkit&&a.webkit<312){U(k)}X(m,true)}else{if(H[j].expressInstall&&!C&&O("6.0.65")&&(a.win||a.mac)){D(H[j])}else{d(k)}}}}else{X(m,true)}}}function U(m){var k=m.getElementsByTagName(P)[0];if(k){var p=Y("embed"),r=k.attributes;if(r){var o=r.length;for(var n=0;n<o;n++){if(r[n].nodeName.toLowerCase()=="data"){p.setAttribute("src",r[n].nodeValue)}else{p.setAttribute(r[n].nodeName,r[n].nodeValue)}}}var q=k.childNodes;if(q){var s=q.length;for(var l=0;l<s;l++){if(q[l].nodeType==1&&q[l].nodeName.toLowerCase()=="param"){p.setAttribute(q[l].getAttribute("name"),q[l].getAttribute("value"))}}}m.parentNode.replaceChild(p,m)}}function F(i){if(a.ie&&a.win&&O("8.0.0")){G.attachEvent("onunload",function(){var k=c(i);if(k){for(var j in k){if(typeof k[j]=="function"){k[j]=function(){}}}k.parentNode.removeChild(k)}})}}function D(j){C=true;var o=c(j.id);if(o){if(j.altContentId){var l=c(j.altContentId);if(l){L=l;T=j.altContentId}}else{L=b(o)}if(!(/%$/.test(j.width))&&parseInt(j.width,10)<310){j.width="310"}if(!(/%$/.test(j.height))&&parseInt(j.height,10)<137){j.height="137"}g.title=g.title.slice(0,47)+" - Flash Player Installation";var n=a.ie&&a.win?"ActiveX":"PlugIn",k=g.title,m="MMredirectURL="+G.location+"&MMplayerType="+n+"&MMdoctitle="+k,p=j.id;if(a.ie&&a.win&&o.readyState!=4){var i=Y("div");p+="SWFObjectNew";i.setAttribute("id",p);o.parentNode.insertBefore(i,o);o.style.display="none";G.attachEvent("onload",function(){o.parentNode.removeChild(o)})}R({data:j.expressInstall,id:K,width:j.width,height:j.height},{flashvars:m},p)}}function d(j){if(a.ie&&a.win&&j.readyState!=4){var i=Y("div");j.parentNode.insertBefore(i,j);i.parentNode.replaceChild(b(j),i);j.style.display="none";G.attachEvent("onload",function(){j.parentNode.removeChild(j)})}else{j.parentNode.replaceChild(b(j),j)}}function b(n){var m=Y("div");if(a.win&&a.ie){m.innerHTML=n.innerHTML}else{var k=n.getElementsByTagName(P)[0];if(k){var o=k.childNodes;if(o){var j=o.length;for(var l=0;l<j;l++){if(!(o[l].nodeType==1&&o[l].nodeName.toLowerCase()=="param")&&!(o[l].nodeType==8)){m.appendChild(o[l].cloneNode(true))}}}}}return m}function R(AE,AC,q){var p,t=c(q);if(typeof AE.id==Z){AE.id=q}if(a.ie&&a.win){var AD="";for(var z in AE){if(AE[z]!=Object.prototype[z]){if(z=="data"){AC.movie=AE[z]}else{if(z.toLowerCase()=="styleclass"){AD+=' class="'+AE[z]+'"'}else{if(z!="classid"){AD+=" "+z+'="'+AE[z]+'"'}}}}}var AB="";for(var y in AC){if(AC[y]!=Object.prototype[y]){AB+='<param name="'+y+'" value="'+AC[y]+'" />'}}t.outerHTML='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"'+AD+">"+AB+"</object>";F(AE.id);p=c(AE.id)}else{if(a.webkit&&a.webkit<312){var AA=Y("embed");AA.setAttribute("type",W);for(var x in AE){if(AE[x]!=Object.prototype[x]){if(x=="data"){AA.setAttribute("src",AE[x])}else{if(x.toLowerCase()=="styleclass"){AA.setAttribute("class",AE[x])}else{if(x!="classid"){AA.setAttribute(x,AE[x])}}}}}for(var w in AC){if(AC[w]!=Object.prototype[w]){if(w!="movie"){AA.setAttribute(w,AC[w])}}}t.parentNode.replaceChild(AA,t);p=AA}else{var s=Y(P);s.setAttribute("type",W);for(var v in AE){if(AE[v]!=Object.prototype[v]){if(v.toLowerCase()=="styleclass"){s.setAttribute("class",AE[v])}else{if(v!="classid"){s.setAttribute(v,AE[v])}}}}for(var u in AC){if(AC[u]!=Object.prototype[u]&&u!="movie"){E(s,u,AC[u])}}t.parentNode.replaceChild(s,t);p=s}}return p}function E(k,i,j){var l=Y("param");l.setAttribute("name",i);l.setAttribute("value",j);k.appendChild(l)}function c(i){return g.getElementById(i)}function Y(i){return g.createElement(i)}function O(k){var j=a.pv,i=k.split(".");i[0]=parseInt(i[0],10);i[1]=parseInt(i[1],10);i[2]=parseInt(i[2],10);return(j[0]>i[0]||(j[0]==i[0]&&j[1]>i[1])||(j[0]==i[0]&&j[1]==i[1]&&j[2]>=i[2]))?true:false}function A(m,j){if(a.ie&&a.mac){return}var l=g.getElementsByTagName("head")[0],k=Y("style");k.setAttribute("type","text/css");k.setAttribute("media","screen");if(!(a.ie&&a.win)&&typeof g.createTextNode!=Z){k.appendChild(g.createTextNode(m+" {"+j+"}"))}l.appendChild(k);if(a.ie&&a.win&&typeof g.styleSheets!=Z&&g.styleSheets.length>0){var i=g.styleSheets[g.styleSheets.length-1];if(typeof i.addRule==P){i.addRule(m,j)}}}function X(k,i){var j=i?"visible":"hidden";if(S){c(k).style.visibility=j}else{A("#"+k,"visibility:"+j)}}return{registerObject:function(l,i,k){if(!a.w3cdom||!l||!i){return}var j={};j.id=l;j.swfVersion=i;j.expressInstall=k?k:false;H[H.length]=j;X(l,false)},getObjectById:function(l){var i=null;if(a.w3cdom&&S){var j=c(l);if(j){var k=j.getElementsByTagName(P)[0];if(!k||(k&&typeof j.SetVariable!=Z)){i=j}else{if(typeof k.SetVariable!=Z){i=k}}}}return i},embedSWF:function(n,u,r,t,j,m,k,p,s){if(!a.w3cdom||!n||!u||!r||!t||!j){return}r+="";t+="";if(O(j)){X(u,false);var q=(typeof s==P)?s:{};q.data=n;q.width=r;q.height=t;var o=(typeof p==P)?p:{};if(typeof k==P){for(var l in k){if(k[l]!=Object.prototype[l]){if(typeof o.flashvars!=Z){o.flashvars+="&"+l+"="+k[l]}else{o.flashvars=l+"="+k[l]}}}}J(function(){R(q,o,u);if(q.id==u){X(u,true)}})}else{if(m&&!C&&O("6.0.65")&&(a.win||a.mac)){X(u,false);J(function(){var i={};i.id=i.altContentId=u;i.width=r;i.height=t;i.expressInstall=m;D(i)})}}},getFlashPlayerVersion:function(){return{major:a.pv[0],minor:a.pv[1],release:a.pv[2]}},hasFlashPlayerVersion:O,createSWF:function(k,j,i){if(a.w3cdom&&S){return R(k,j,i)}else{return undefined}},createCSS:function(j,i){if(a.w3cdom){A(j,i)}},addDomLoadEvent:J,addLoadEvent:M,getQueryParamValue:function(m){var l=g.location.search||g.location.hash;if(m==null){return l}if(l){var k=l.substring(1).split("&");for(var j=0;j<k.length;j++){if(k[j].substring(0,k[j].indexOf("="))==m){return k[j].substring((k[j].indexOf("=")+1))}}}return""},expressInstallCallback:function(){if(C&&L){var i=c(K);if(i){i.parentNode.replaceChild(L,i);if(T){X(T,true);if(a.ie&&a.win){L.style.display="block"}}L=null;T=null;C=false}}}}}();
