var maskActive=false;function importScripts(){var flashUtilsFound=false;var scripts_arr=document.getElementsByTagName("script");for(var i=0;i<scripts_arr.length;i++){var script=scripts_arr[i].src;if(/\/cda\/files\/1989427\/7\/flash-utilities.js/.test(script)){flashUtilsFound=true;}}if(!flashUtilsFound){document.write(unescape("%3Cscript src='/cda/files/1989427/7/flash-utilities.js' type='text/javascript'%3E%3C/script%3E"));}}function loadPopupContent(w,h,file){var n=parseInt(w)+30;document.getElementById("light").style.width=n;document.getElementById("light").style.height=h;document.getElementById("contentHolder").innerHTML='<iframe id="cat_content" width="626" height="480" frameborder="0" scrolling="no" src="'+file+'"></iframe>';showPopup();}function showPopup(w,h,file,flashName){var playerVersionObj=swfobject.getFlashPlayerVersion();var ww=$(window).width();var wh=$(window).height();var flashHolder=document.getElementById("flashHolder");document.getElementById("light").style.width=w;document.getElementById("light").style.height=h;var xpos=(ww/2)-($("#light").width()/2);var ypos=((wh/2)+$("body").scrollTop())-($("#light").height()/2);if(flashHolder.hasChildNodes()){var first=flashHolder.firstChild;flashHolder.removeChild(first);}var targetDiv=document.createElement("div");document.getElementById("flashHolder").appendChild(targetDiv);targetDiv.setAttribute("id",flashName);if(playerVersionObj.major>=flashVerObj.major){swfobject.embedSWF(file,flashName,w,h,flashVerObj.major+"."+flashVerObj.minor+"."+flashVerObj.release,false,{},{wmode:"transparent",salign:"TL"},{id:flashName+"_id",name:flashName+"_id"});}else{document.getElementById(flashName).innerHTML='<p class="noFlashMsg">'+getNoFlashMsg(lang)+"</p>";}document.getElementById("fade").style.width=ww;document.getElementById("fade").style.height=wh+document.body.clientHeight;document.getElementById("light").style.display="block";document.getElementById("fade").style.display="block";document.getElementById("light").style.left=xpos;document.getElementById("light").style.top=ypos;maskActive=true;}function hidePopup(){document.getElementById("light").style.display="none";document.getElementById("fade").style.display="none";maskActive=false;}function resizePopup(){var ww=$(window).width();var wh=$(window).height();var xpos=xpos=(ww/2)-($("#light").width()/2);var ypos=((wh/2)+$("body").scrollTop())-($("#light").height()/2);if(maskActive){document.getElementById("fade").style.width=ww;document.getElementById("fade").style.height=wh+document.body.clientHeight;document.getElementById("light").style.left=xpos;document.getElementById("light").style.top=ypos;}}function createFlashPopup(buttonName,w,h,file,flashName){var html="";var n=parseInt(h)+28;if(buttonName){if(!document.getElementById("flashHolder")){html+='<div id="fade" style="display: none; position: absolute; top: 0%; left: 0%; width: 100%; height: 100%; background-color: black; z-index:1001; -moz-opacity: 0.8; opacity:.40; filter: alpha(opacity=40);"></div>';html+='<div id="light" style="display: none; position: absolute; top: 25%; left: 10%; width: 100px; border: 1px solid grey; background-color: white; z-index:1002; overflow: hidden;">';html+="<style>.buttonClass:hover{text-decoration:underline;}</style>";html+='<p align="right" style="padding:6px; margin:0px; height:16px; background-color:#666666;"><a href="javascript:void(0)" onclick="hidePopup();"><img src="/cda/files/2010991/7/images/close_btn.gif" border="0" /></a></p>';html+='<div id="flashHolder" style="text-align: center; z-index:1003; position:absolute;"></div>';html+="</div>";}html+=createButtonCode(buttonName,{width:w,height:n,flash:file,name:flashName});document.write(html);}else{html+='<div id="fade" style="display: none; position: absolute; top: 0%; left: 0%; width: 100%; height: 100%; background-color: black; z-index:1001; -moz-opacity: 0.8; opacity:.40; filter: alpha(opacity=40);"></div>';html+='<div id="light" style="display: none; position: absolute; top: 25%; left: 10%; width: 100px; border: 1px solid grey; background-color: white; z-index:1002; overflow: hidden; text-align: center;">';html+='<p align="right" style="padding:6px; margin:0px; height:16px; background-color:#666666;"><a href="javascript:void(0)" onclick="hidePopup();"><img src="/cda/files/2010991/7/images/close_btn.gif" border="0" /></a></p>';html+='<div id="contentHolder"></div>';html+="</div>";document.write(html);}}function createComponentButton(buttonName,url){var html=createButtonCode(buttonName,{urlpath:url});document.write(html);}function createButtonCode(name,props){var html="";html+='<div style="padding-left:0px; padding-right:0px;">';html+='<table cellspacing="0" cellpadding="0"><tr>';html+='<td><img src="/cda/files/2010991/7/images/button-left.gif" /></td>';html+='<td valign="middle" bgcolor="FFCC00" style="border-top:4px solid #EABB00; border-bottom:4px solid #EABB00; padding-left:10px; padding-right:5px;">';if(props.hasOwnProperty("urlpath")){html+='<a href="'+props.urlpath+'" class="buttonClass" style="color:black; display:block; vertical-align:middle; line-height:23px; text-transform:uppercase;">'+name;}else{html+='<a href=javascript:void(0) onclick=showPopup("'+props.width+'","'+props.height+'","'+props.flash+'","'+props.name+'"); class=buttonClass style="color:black; display:block; vertical-align:middle; line-height:23px; text-transform:uppercase;">'+name;}html+='&nbsp;&nbsp;<img src="/cda/files/2010991/7/images/arrow-no_border.gif" border="0" style="vertical-align:middle; line-height:23px;" /></a></td>';html+='<td><img src="/cda/files/2010991/7/images/button-right.gif" /></td>';html+="</tr></table></div>";return html;}importScripts();$(window).resize(function(){resizePopup();});
