var isIE6=(navigator.userAgent.toLowerCase().indexOf("msie 6")!=-1);function cda_getCategoryID(){return cda_getElValue("adsk91-el-id-cat")}function cda_getContentID(){return cda_getElValue("adsk91-el-id-cont")}function cda_getDocumentHeight(){return jQuery(document).height()}function cda_getDocumentWidth(){return jQuery(document).width()}function cda_getElValue(a){return core_getValue(document.getElementById(a))}function cda_getLinkCategoryID(){return cda_getElValue("adsk91-el-id-lc")}function cda_getSiteID(){return cda_getElValue("adsk91-el-id-site")}function cda_getWindowHeight(){return jQuery(window).height()}function cda_getWindowWidth(){return jQuery(window).width()}function cda_isPreview(){return cda_getElValue("adsk91-el-is-preview")=="1"}function cda_lb(g){if(!document.body){return true}function h(l){var n=document.createElement("div");n.setAttribute("id","adsk103-lightbox");n.innerHTML=l;document.body.appendChild(n);var i=document.getElementById("adsk103-lightbox-content");function e(){var o=document.getElementById("adsk103-lightbox").offsetWidth-i.offsetWidth;if(isIE6){o-=27}if(o>0){i.style.marginLeft=-(i.offsetWidth/2)+"px";i.style.left="50%";if(isIE6){document.getElementById("adsk103-lightbox-overlay").style.width="100%"}}else{i.style.marginLeft="0";i.style.left="auto";if(isIE6){document.getElementById("adsk103-lightbox-overlay").style.width=i.offsetWidth+27}}}var m=window.scrollY;if(!m){m=document.documentElement.scrollTop}if(m){i.style.top=(m+75)+"px"}e();window.onresize=e;if(isIE6){jQuery("html, body").css("height","100%");jQuery("#adsk103-lightbox").css("height",cda_getDocumentHeight())}}var a=cda_lbURL();var d=[];var b=g.href.split("?");if(b.length>1){var j=b[1].split("&");for(var f=0;f<j.length;f++){var c=j[f];if(c.indexOf("siteID=")==0||c.indexOf("id=")==0||c.indexOf("imageID=")==0){d.push(c)}}}if(cda_isPreview()){d.push("preview=1")}var k={url:a,params:d.join("&"),onSuccess:h};core_AjaxRequest(k);return false}function cda_lbClose(){window.onresize=null;var a=document.getElementById("adsk103-lightbox");if(!a){return true}a.parentNode.removeChild(a);if(isIE6){jQuery("html, body").css("height","auto")}return false}function cda_lbURL(){return core_getContextPath()+"/servlet/lightboxdata"}function cda_animateElement(b,d,c,e){var a=jQuery(b);switch(d){case"toggle":a.toggle(c,e);break;case"slideToggle":a.slideToggle(c,e);break;case"slideUp":a.slideUp(c,e);break;case"slideDown":a.slideDown(c,e);break;default:break}}function cda_animateAccordion(a,d,m){var b=jQuery(a).next(),j=jQuery(d).next();m=jQuery.extend({duration:300,autoHeight:true,complete:function(){}},m);if(!d){b.animate({height:"show"},m.duration,m.complete);return}var l=b;l.width(parseInt(l.parent().width(),10)-parseInt(l.css("paddingLeft"),10)-parseInt(l.css("paddingRight"),10)-(parseInt(l.css("borderLeftWidth"),10)||0)-(parseInt(l.css("borderRightWidth"),10)||0));var c=(j.height()==0)?"11":j.height(),k=b.height(),e=k/c,i=b.outerHeight()-b.height(),h=b.css("marginBottom"),g=b.css("overflow"),f=b.css("marginTop");b.css({height:0,overflow:"hidden",marginTop:0,marginBottom:-i}).show();j.animate({height:"hide"},{step:function(n){var o=(c-n)*e;if(jQuery.browser.msie||jQuery.browser.opera){o=Math.ceil(o)}b.height(o)},duration:m.duration,complete:function(){b.css({marginTop:f,marginBottom:h,overflow:g});if(!m.autoHeight){b.css("height","auto")}m.complete()}})};
