jQuery(function(){if(Liferay.Browser.isIe()&&Liferay.Browser.getMajorVersion()<7){jQuery("#navigation > ul > li").hover(function(a){jQuery(this).addClass("hover")},function(a){jQuery(this).removeClass("hover")})}});jQuery(document).ready(function(){jQuery(".dropdown-wrapper>ul#env_select>li").each(function(){var d=jQuery(this);var e=jQuery(this).find("ul");jQuery(this).bind("click focus",function(f){if(f.type=="focus"){jQuery(e).data("focus-opened",true)}if(f.type=="click"){if(jQuery(e).css("display")=="none"){a(e)}else{if(!jQuery(e).data("focus-opened")){b(e)}}jQuery(e).data("focus-opened",false)}return false});jQuery(this).find("ul li a").click(function(){var g=jQuery(this).html();var f=jQuery(this).attr("value");jQuery(d).find("span").html(g);jQuery("#result").html(g);jQuery("#valueResult").html(f);jQuery(e).hide();return false})});jQuery(document).bind("click",function(f){var d=jQuery(f.target);if(!d.parents().hasClass("dropdown")){jQuery(".dropdown-wrapper>ul#env_select>li ul").hide()}});function a(d){c(d);jQuery(d).show()}function b(d){c(d);jQuery(d).hide();jQuery(d).data("focus-opened",false)}function c(d){jQuery(".dropdown-wrapper>ul#env_select>li ul").each(function(){if(jQuery(this).parent().attr("id")!=jQuery(d).parent().attr("id")){jQuery(this).hide()}})}});Liferay.Portlet.ready(function(b,a){});jQuery(document).last(function(){});function compareView(a){window.open("/compare","_parent")}function imageView(d,c,i,e){var a=unescape(d);var h=unescape(c);var f=i-20;var g="<div id='viewImage' style='background: url("+a+") no-repeat;width:"+i+"px;height:"+e+"px;'>	<div class='viewCopy' style='z-index:2'><p class='reg-text'>"+h+"</p></div><div class='viewOverlay' style='width:"+i+"px;z-index:1;'></div></div>";var b=new Liferay.Popup({fixedcenter:true,width:i,height:e,message:g,modal:true,handles:"",resizeable:true});jQuery(b).addClass("image-popup")}function videoView(f,c,e,d,a){var b=new Liferay.Popup({position:["center",200],fixedcenter:false,width:f,height:c,modal:true,handles:"",resizeable:true,url:"/html/presenter/presenter_popup.jsp",urlData:{width:f,height:c,vid:d,img:e,swf:a}});jQuery(b).addClass("video-popup")}function presenterPopup(b,d,c){var a=new Liferay.Popup({position:["center",116],fixedcenter:false,width:b,height:d,modal:true,handles:"",resizeable:true,url:"/html/presenter/presenter_popup2.jsp",urlData:{xml:c,width:b,height:d}});jQuery(a).addClass("presenter-popup")};