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(f){if(!document.body){return true}var c=cda_lbURL();var j=[];var a=f.href.split("?");if(a.length>1){var h=a[1].split("&");for(var d=0;d<h.length;d++){var g=h[d];if(g.indexOf("siteID=")==0||g.indexOf("id=")==0||g.indexOf("imageID=")==0){j.push(g)}}}if(cda_isPreview()){j.push("preview=1")}var b={url:c,params:j.join("&"),onSuccess:function(e){cda_lbDisplay(e,null)}};core_AjaxRequest(b);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_lbDisplay(d,c){if(document.getElementById("adsk103-lightbox-content")){return}var f=document.createElement("div");f.setAttribute("id","adsk103-lightbox");f.innerHTML=d;document.body.appendChild(f);var b=document.getElementById("adsk103-lightbox-content");function a(){var g=document.getElementById("adsk103-lightbox").offsetWidth-b.offsetWidth;if(isIE6){g-=27}if(g>0){b.style.marginLeft=-(b.offsetWidth/2)+"px";b.style.left="50%";if(isIE6){document.getElementById("adsk103-lightbox-overlay").style.width="100%"}}else{b.style.marginLeft="0";b.style.left="auto";if(isIE6){document.getElementById("adsk103-lightbox-overlay").style.width=b.offsetWidth+27}}}if(c==null){var e=window.scrollY;if(!e){e=document.documentElement.scrollTop}if(e){c=e+75}}if(c!=null){b.style.top=c+"px"}a();window.onresize=a;if(isIE6){jQuery("html, body").css("height","100%");jQuery("#adsk103-lightbox").css("height",cda_getDocumentHeight())}}function cda_lbURL(){return"/adsk/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()}})};
