var menuArrLasers=[["NuQ: Marking Laser","/nuQ.php",null],["NuTx: LIDAR Source","/nutx.php",null]];var menuArrProds=[["Fibers","/fibers.php",null],["Modules","/modules.php",null],["Laser Systems","/lasers.php","menuArrLasers"],["Kilowatt Amplifier","/kilowatt-amp.php",null],["Services","/services.php",null]];var menuArrLib=[["Articles","/articles.php",null],["White Papers","/whitepapers.php",null],["Brochures &amp; Flyers","/brochures.php",null],["Advertising","/ads.php",null],["NuLabs: Video Clips","/nulabs.php",null]];var menuArrCompany=[["Management Team","/mgmt.php",null],["Quality","/quality.php",null],["Investor Info","/investors.php",null],["Careers","/careers.php",null]];var menuArrNews=[["News","/news.php",null],["Events","/events.php",null]];function stm(B,A){showTopMenu(B,A)}function menusGone(){if((document.getElementById("menu1").style.visibility=="hidden")&&(document.getElementById("menu2").style.visibility=="hidden")&&(document.getElementById("menu3").style.visibility=="hidden")&&(document.getElementById("menu4").style.visibility=="hidden")){return true}else{return false}}function dhm(A){delayHideMenu(A)}var IE_4=document.all;var NS_6=document.getElementById&&!document.all;var MAX_MENUS=5;var HIDE_MENU_DELAY=1000;var TOP_MENU_LEFT_OFFSET=0;var menuFocus=new Array();for(i=1;i<=MAX_MENUS;i++){menuFocus["menu"+i]=false}var activeRootMenuId;var curItemHasChildren=false;var hideMenuCounter=0;function getPosOffset(D,B){var A=(B=="left")?D.offsetLeft:D.offsetTop;var C=D.offsetParent;while(C!=null){A=(B=="left")?A+C.offsetLeft:A+C.offsetTop;C=C.offsetParent}return A}function stripPx(x){if(x.length<=2){return x}return eval(x.substr(0,x.length-2))}function addDimensions(B,A){return(stripPx(B)+stripPx(A))+"px"}function enableRootMenus(){var A=1;while((rootMenu=document.getElementById("rootMenu"+(A++)))){rootMenu.disabled=false}}function focusMenu(A){menuFocus[A.id]=true}function initGMenu(){}function getHighlightedClass(A){if(A.substr(0,12)=="subMenuItemL"){return"subMenuItemLeafHighlight"}else{return"subMenuItemHighlight"}}function getNotHighlightedClass(A){if(A.substr(0,12)=="subMenuItemL"){return"subMenuItemLeaf"}else{return"subMenuItem"}}function setHighlighting(B){for(i=0;i<(B.parentNode).childNodes.length-1;i++){var A=(B.parentNode).childNodes[i];if(A.id==B.id){if(A.className!=getHighlightedClass(A.className)){A.className=getHighlightedClass(A.className)}}else{if(A.className!=getNotHighlightedClass(A.className)){A.className=getNotHighlightedClass(A.className)}}}}function createLink(C,B,A){if(B==null){return C}return C}function drawSubMenu(D,A){var C=document.getElementById(D);var B="";for(i=0;i<A.length;i++){B+='<div id="'+D+"-"+i+'" class="'+(A[i][2]==null?"subMenuItemLeaf":'subMenuItem"')+'" onmouseover="'+(A[i][2]==null?"":"showMenu('"+D+"', "+A[i][2]+", this);")+'highlightIfNeeded(this);"'+(A[i][1]!=null?' style="cursor:pointer;" onclick="window.location=\''+A[i][1]+"';\"":"")+">"+createLink(A[i][0],A[i][1],"subMenuItem")+"</div>"}B+='<div class="menuBottom"></div>';C.innerHTML=B;return C}function showTopMenu(B,A){B.className=B.id+"Highlight";if(menuFocus["menu1"]){subMenu=document.getElementById("menu1")}else{subMenu=drawSubMenu("menu1",A)}subMenu.style.top=getPosOffset(B,"top")+B.offsetHeight+"px";subMenu.style.left=getPosOffset(B,"left")+TOP_MENU_LEFT_OFFSET+"px";subMenu.style.visibility="visible";menuFocus[B.id]=true;activeRootMenuId=B.id;curItemHasChildren=true;hideMenus2()}function highlightIfNeeded(A){if(A.className!="subMenuItemHighlight"){setHighlighting(A)}curItemHasChildren=!(A.className.substr(0,15)=="subMenuItemLeaf")}function showMenu(curMenuId,menuArray,curItem){if(curItem.className=="subMenuItemHighlight"){return }var curMenu=document.getElementById(curMenuId);var subMenuId="menu"+(eval((curMenuId).substr(4,1))+1);var subMenu;if(menuFocus[subMenuId]){subMenu=document.getElementById(subMenuId)}else{subMenu=drawSubMenu(subMenuId,menuArray)}subMenu.style.top=getPosOffset(curMenu,"top")+curItem.offsetTop+"px";subMenu.style.left=getPosOffset(curMenu,"left")+curMenu.offsetWidth+"px";subMenu.style.visibility="visible";var subSubMenuId="menu"+(eval((curMenuId).substr(4,1))+2);hideMenu(subSubMenuId,subMenuId)}function hideMenu(curMenuId,parentId){var curMenu=document.getElementById(curMenuId);var hideChild=true;var childId="menu"+(eval((curMenu.id).substr(4,1))+1);var child=document.getElementById(childId);if(child!=null){hideChild=hideMenu(child.id,curMenu.id)}if(!menuFocus[curMenuId]&&hideChild&&(!menuFocus[parentId]||!curItemHasChildren)){curMenu.style.visibility="hidden";return true}else{return false}}function hideMenus(){if(--hideMenuCounter>0){return }hideMenus2()}function hideMenus2(){var A=1;var B=hideMenu("menu1",activeRootMenuId);while((rootMenu=document.getElementById("rootMenu"+(A++)))){if((!menuFocus[rootMenu.id]&&activeRootMenuId==rootMenu.id&&B)||(activeRootMenuId!=rootMenu.id&&rootMenu.className==rootMenu.id+"Highlight")){rootMenu.className=rootMenu.id}}}function delayHideMenu(A){menuFocus[A.id]=false;hideMenuCounter++;setTimeout("hideMenus()",HIDE_MENU_DELAY)}if(!window.Modalbox){var Modalbox=new Object()}Modalbox.Methods={overrideAlert:false,focusableElements:new Array,currFocused:0,initialized:false,active:true,options:{title:"ModalBox Window",overlayClose:true,width:500,height:90,overlayOpacity:0.65,overlayDuration:0.25,slideDownDuration:0.5,slideUpDuration:0.5,resizeDuration:0.25,inactiveFade:true,transitions:true,loadingString:"Please wait. Loading...",closeString:"Close window",closeValue:"&times;",params:{},method:"get",autoFocusing:true,aspnet:false},_options:new Object,setOptions:function(A){Object.extend(this.options,A||{})},_init:function(B){Object.extend(this._options,this.options);this.setOptions(B);this.MBoverlay=new Element("div",{id:"MB_overlay",opacity:"0"});this.MBwindow=new Element("div",{id:"MB_window",style:"display: none"}).update(this.MBframe=new Element("div",{id:"MB_frame"}).update(this.MBheader=new Element("div",{id:"MB_header"}).update(this.MBcaption=new Element("div",{id:"MB_caption"}))));this.MBclose=new Element("a",{id:"MB_close",title:this.options.closeString,href:"#"}).update("<span>"+this.options.closeValue+"</span>");this.MBheader.insert({"bottom":this.MBclose});this.MBcontent=new Element("div",{id:"MB_content"}).update(this.MBloading=new Element("div",{id:"MB_loading"}).update(this.options.loadingString));this.MBframe.insert({"bottom":this.MBcontent});var A=this.options.aspnet?$(document.body).down("form"):$(document.body);A.insert({"top":this.MBwindow});A.insert({"top":this.MBoverlay});this.initScrollX=window.pageXOffset||document.body.scrollLeft||document.documentElement.scrollLeft;this.initScrollY=window.pageYOffset||document.body.scrollTop||document.documentElement.scrollTop;this.hideObserver=this._hide.bindAsEventListener(this);this.kbdObserver=this._kbdHandler.bindAsEventListener(this);this._initObservers();this.initialized=true},show:function(B,A){if(!this.initialized){this._init(A)}this.content=B;this.setOptions(A);if(this.options.title){$(this.MBcaption).update(this.options.title)}else{$(this.MBheader).hide();$(this.MBcaption).hide()}if(this.MBwindow.style.display=="none"){this._appear();this.event("onShow")}else{this._update();this.event("onUpdate")}},hide:function(A){if(this.initialized){if(A&&typeof A.element!="function"){Object.extend(this.options,A)}this.event("beforeHide");if(this.options.transitions){Effect.SlideUp(this.MBwindow,{duration:this.options.slideUpDuration,transition:Effect.Transitions.sinoidal,afterFinish:this._deinit.bind(this)})}else{$(this.MBwindow).hide();this._deinit()}}else{throw ("Modalbox is not initialized.")}},_hide:function(A){A.stop();if(A.element().id=="MB_overlay"&&!this.options.overlayClose){return false}this.hide()},alert:function(B){var A='<div class="MB_alert"><p>'+B+'</p><input type="button" onclick="Modalbox.hide()" value="OK" /></div>';Modalbox.show(A,{title:"Alert: "+document.title,width:300})},_appear:function(){if(Prototype.Browser.IE&&!navigator.appVersion.match(/\b7.0\b/)){window.scrollTo(0,0);this._prepareIE("100%","hidden")}this._setWidth();this._setPosition();if(this.options.transitions){$(this.MBoverlay).setStyle({opacity:0});new Effect.Fade(this.MBoverlay,{from:0,to:this.options.overlayOpacity,duration:this.options.overlayDuration,afterFinish:function(){new Effect.SlideDown(this.MBwindow,{duration:this.options.slideDownDuration,transition:Effect.Transitions.sinoidal,afterFinish:function(){this._setPosition();this.loadContent()}.bind(this)})}.bind(this)})}else{$(this.MBoverlay).setStyle({opacity:this.options.overlayOpacity});$(this.MBwindow).show();this._setPosition();this.loadContent()}this._setWidthAndPosition=this._setWidthAndPosition.bindAsEventListener(this);Event.observe(window,"resize",this._setWidthAndPosition)},resize:function(G,H,C){var F=$(this.MBwindow).getHeight();var D=$(this.MBwindow).getWidth();var E=$(this.MBheader).getHeight();var B=$(this.MBcontent).getHeight();var A=((F-E+H)<B)?(B+E-F):H;if(C){this.setOptions(C)}if(this.options.transitions){new Effect.ScaleBy(this.MBwindow,G,A,{duration:this.options.resizeDuration,afterFinish:function(){this.event("_afterResize");this.event("afterResize")}.bind(this)})}else{this.MBwindow.setStyle({width:D+G+"px",height:F+A+"px"});setTimeout(function(){this.event("_afterResize");this.event("afterResize")}.bind(this),1)}},resizeToContent:function(A){var B=this.options.height-this.MBwindow.offsetHeight;if(B!=0){if(A){this.setOptions(A)}Modalbox.resize(0,B)}},resizeToInclude:function(C,B){var D=$(C);var A=D.getHeight()+parseInt(D.getStyle("margin-top"))+parseInt(D.getStyle("margin-bottom"))+parseInt(D.getStyle("border-top-width"))+parseInt(D.getStyle("border-bottom-width"));if(A>0){if(B){this.setOptions(B)}Modalbox.resize(0,A)}},_update:function(){$(this.MBcontent).update("");this.MBcontent.appendChild(this.MBloading);$(this.MBloading).update(this.options.loadingString);this.currentDims=[this.MBwindow.offsetWidth,this.MBwindow.offsetHeight];Modalbox.resize((this.options.width-this.currentDims[0]),(this.options.height-this.currentDims[1]),{_afterResize:this._loadAfterResize.bind(this)})},loadContent:function(){if(this.event("beforeLoad")!=false){if(typeof this.content=="string"){var htmlRegExp=new RegExp(/<\/?[^>]+>/gi);if(htmlRegExp.test(this.content)){this._insertContent(this.content.stripScripts());this._putContent(function(){this.content.extractScripts().map(function(script){return eval(script.replace("<!--","").replace("// -->",""))}.bind(window))}.bind(this))}else{new Ajax.Request(this.content,{method:this.options.method.toLowerCase(),parameters:this.options.params,onSuccess:function(transport){var response=new String(transport.responseText);this._insertContent(transport.responseText.stripScripts());this._putContent(function(){response.extractScripts().map(function(script){return eval(script.replace("<!--","").replace("// -->",""))}.bind(window))})}.bind(this),onException:function(instance,exception){Modalbox.hide();throw ("Modalbox Loading Error: "+exception)}})}}else{if(typeof this.content=="object"){this._insertContent(this.content);this._putContent()}else{Modalbox.hide();throw ("Modalbox Parameters Error: Please specify correct URL or HTML element (plain HTML or object)")}}}},_insertContent:function(B){$(this.MBcontent).hide().update("");if(typeof B=="string"){setTimeout(function(){this.MBcontent.update(B)}.bind(this),1)}else{if(typeof B=="object"){var A=B.cloneNode(true);if(B.id){B.id="MB_"+B.id}$(B).select("*[id]").each(function(C){C.id="MB_"+C.id});this.MBcontent.appendChild(A);this.MBcontent.down().show();if(Prototype.Browser.IE){$$("#MB_content select").invoke("setStyle",{"visibility":""})}}}},_putContent:function(A){if(this.options.height==this._options.height){setTimeout(function(){Modalbox.resize(0,$(this.MBcontent).getHeight()-$(this.MBwindow).getHeight()+$(this.MBheader).getHeight(),{afterResize:function(){this.MBcontent.show().makePositioned();this.focusableElements=this._findFocusableElements();this._setFocus();setTimeout(function(){if(A!=undefined){A()}this.event("afterLoad")}.bind(this),1)}.bind(this)})}.bind(this),1)}else{this._setWidth();this.MBcontent.setStyle({overflow:"auto",height:$(this.MBwindow).getHeight()-$(this.MBheader).getHeight()-13+"px"});this.MBcontent.show();this.focusableElements=this._findFocusableElements();this._setFocus();setTimeout(function(){if(A!=undefined){A()}this.event("afterLoad")}.bind(this),1)}},activate:function(A){this.setOptions(A);this.active=true;$(this.MBclose).observe("click",this.hideObserver);if(this.options.overlayClose){$(this.MBoverlay).observe("click",this.hideObserver)}$(this.MBclose).show();if(this.options.transitions&&this.options.inactiveFade){new Effect.Appear(this.MBwindow,{duration:this.options.slideUpDuration})}},deactivate:function(A){this.setOptions(A);this.active=false;$(this.MBclose).stopObserving("click",this.hideObserver);if(this.options.overlayClose){$(this.MBoverlay).stopObserving("click",this.hideObserver)}$(this.MBclose).hide();if(this.options.transitions&&this.options.inactiveFade){new Effect.Fade(this.MBwindow,{duration:this.options.slideUpDuration,to:0.75})}},_initObservers:function(){$(this.MBclose).observe("click",this.hideObserver);if(this.options.overlayClose){$(this.MBoverlay).observe("click",this.hideObserver)}if(Prototype.Browser.IE){Event.observe(document,"keydown",this.kbdObserver)}else{Event.observe(document,"keypress",this.kbdObserver)}},_removeObservers:function(){$(this.MBclose).stopObserving("click",this.hideObserver);if(this.options.overlayClose){$(this.MBoverlay).stopObserving("click",this.hideObserver)}if(Prototype.Browser.IE){Event.stopObserving(document,"keydown",this.kbdObserver)}else{Event.stopObserving(document,"keypress",this.kbdObserver)}},_loadAfterResize:function(){this._setWidth();this._setPosition();this.loadContent()},_setFocus:function(){if(this.focusableElements.length>0&&this.options.autoFocusing==true){var A=this.focusableElements.find(function(B){return B.tabIndex==1})||this.focusableElements.first();this.currFocused=this.focusableElements.toArray().indexOf(A);A.focus()}else{if($(this.MBclose).visible()){$(this.MBclose).focus()}}},_findFocusableElements:function(){this.MBcontent.select("input:not([type~=hidden]), select, textarea, button, a[href]").invoke("addClassName","MB_focusable");return this.MBcontent.select(".MB_focusable")},_kbdHandler:function(B){var A=B.element();switch(B.keyCode){case Event.KEY_TAB:B.stop();if(A!=this.focusableElements[this.currFocused]){this.currFocused=this.focusableElements.toArray().indexOf(A)}if(!B.shiftKey){if(this.currFocused==this.focusableElements.length-1){this.focusableElements.first().focus();this.currFocused=0}else{this.currFocused++;this.focusableElements[this.currFocused].focus()}}else{if(this.currFocused==0){this.focusableElements.last().focus();this.currFocused=this.focusableElements.length-1}else{this.currFocused--;this.focusableElements[this.currFocused].focus()}}break;case Event.KEY_ESC:if(this.active){this._hide(B)}break;case 32:this._preventScroll(B);break;case 0:if(B.which==32){this._preventScroll(B)}break;case Event.KEY_UP:case Event.KEY_DOWN:case Event.KEY_PAGEDOWN:case Event.KEY_PAGEUP:case Event.KEY_HOME:case Event.KEY_END:if(Prototype.Browser.WebKit&&!["textarea","select"].include(A.tagName.toLowerCase())){B.stop()}else{if((A.tagName.toLowerCase()=="input"&&["submit","button"].include(A.type))||(A.tagName.toLowerCase()=="a")){B.stop()}}break}},_preventScroll:function(A){if(!["input","textarea","select","button"].include(A.element().tagName.toLowerCase())){A.stop()}},_deinit:function(){this._removeObservers();Event.stopObserving(window,"resize",this._setWidthAndPosition);if(this.options.transitions){Effect.toggle(this.MBoverlay,"appear",{duration:this.options.overlayDuration,afterFinish:this._removeElements.bind(this)})}else{this.MBoverlay.hide();this._removeElements()}$(this.MBcontent).setStyle({overflow:"",height:""})},_removeElements:function(){$(this.MBoverlay).remove();$(this.MBwindow).remove();if(Prototype.Browser.IE&&!navigator.appVersion.match(/\b7.0\b/)){this._prepareIE("","");window.scrollTo(this.initScrollX,this.initScrollY)}if(typeof this.content=="object"){if(this.content.id&&this.content.id.match(/MB_/)){this.content.id=this.content.id.replace(/MB_/,"")}this.content.select("*[id]").each(function(A){A.id=A.id.replace(/MB_/,"")})}this.initialized=false;this.event("afterHide");this.setOptions(this._options)},_setWidth:function(){$(this.MBwindow).setStyle({width:this.options.width+"px",height:this.options.height+"px"})},_setPosition:function(){$(this.MBwindow).setStyle({left:Math.round((Element.getWidth(document.body)-Element.getWidth(this.MBwindow))/2)+"px"})},_setWidthAndPosition:function(){$(this.MBwindow).setStyle({width:this.options.width+"px"});this._setPosition()},_getScrollTop:function(){var A;if(document.documentElement&&document.documentElement.scrollTop){A=document.documentElement.scrollTop}else{if(document.body){A=document.body.scrollTop}}return A},_prepareIE:function(A,B){$$("html, body").invoke("setStyle",{width:A,height:A,overflow:B});$$("select").invoke("setStyle",{"visibility":B})},event:function(A){if(this.options[A]){var B=this.options[A]();this.options[A]=null;if(B!=undefined){return B}else{return true}}return true}};Object.extend(Modalbox,Modalbox.Methods);if(Modalbox.overrideAlert){window.alert=Modalbox.alert}Effect.ScaleBy=Class.create();Object.extend(Object.extend(Effect.ScaleBy.prototype,Effect.Base.prototype),{initialize:function(B,C,D,A){this.element=$(B);var A=Object.extend({scaleFromTop:true,scaleMode:"box",scaleByWidth:C,scaleByHeight:D},arguments[3]||{});this.start(A)},setup:function(){this.elementPositioning=this.element.getStyle("position");this.originalTop=this.element.offsetTop;this.originalLeft=this.element.offsetLeft;this.dims=null;if(this.options.scaleMode=="box"){this.dims=[this.element.offsetHeight,this.element.offsetWidth]}if(/^content/.test(this.options.scaleMode)){this.dims=[this.element.scrollHeight,this.element.scrollWidth]}if(!this.dims){this.dims=[this.options.scaleMode.originalHeight,this.options.scaleMode.originalWidth]}this.deltaY=this.options.scaleByHeight;this.deltaX=this.options.scaleByWidth},update:function(A){var C=this.dims[0]+(this.deltaY*A);var B=this.dims[1]+(this.deltaX*A);C=(C>0)?C:0;B=(B>0)?B:0;this.setDimensions(C,B)},setDimensions:function(A,D){var E={};E.width=D+"px";E.height=A+"px";var C=Math.round((A-this.dims[0])/2);var B=Math.round((D-this.dims[1])/2);if(this.elementPositioning=="absolute"||this.elementPositioning=="fixed"){if(!this.options.scaleFromTop){E.top=this.originalTop-C+"px"}E.left=this.originalLeft-B+"px"}else{if(!this.options.scaleFromTop){E.top=-C+"px"}E.left=-B+"px"}this.element.setStyle(E)}});NuGlobal={};NuGlobal.BASE_URL="http://www.nufern.com/";if(!window.console||!console.firebug){var names=["log","debug","info","warn","error","assert","dir","dirxml","group","groupEnd","time","timeEnd","count","trace","profile","profileEnd"];window.console={};for(var i=0;i<names.length;++i){window.console[names[i]]=function(){}}}function get_radio_value(B,A){return Form.getInputs(B,"radio",A).find(function(C){return C.checked}).value}function show_login_form(){$("pre_loginform").style.display="none";$("bar_loginform").style.display="block";$("barLoginField").focus()}function equalize_cols(){if(document.getElementById("rt_sidebar")){mch=Element.getHeight("mainContent");sbh=Element.getHeight("rt_sidebar");if(sbh>mch){$("mainContent").style.height=""+sbh+"px"}}}function findPos(A){var B=curtop=0;if(A.offsetParent){B=A.offsetLeft;curtop=A.offsetTop;while(A=A.offsetParent){B+=A.offsetLeft;curtop+=A.offsetTop}}return[B,curtop]}function reg_benefits(){Modalbox.show(NuGlobal.BASE_URL+"reg_benefits.html",{title:"Benefits of Registration"})}function search_tips(){Modalbox.show(NuGlobal.BASE_URL+"search_hints.html",{title:"Advanced Search Tips"})}function reg_tc(){Modalbox.show(NuGlobal.BASE_URL+"visitor_TC.html",{title:"Terms &amp; Conditions",height:360,afterLoad:mb_goToTop});$("MB_content").style.overflow="scroll"}function loginerr(A){var B="";if(A.length>0){B+="<p><strong>"+A+"</strong></p>"}B+='<p>Forgotten password? Click to <a href="/pw-reset.php">recover your forgotten password</a>.</p>';B+='<center><p><input type="button" value="Close Message" onclick="Modalbox.hide();"></p></center>';Modalbox.show(B,{title:"Login Error"})}function modal_vid(A){Modalbox.show("vidclip.php?vid="+A,{title:"Video Clip",width:600,height:400})}function contact_changeCat(B){var A=B[B.selectedIndex].value;document.location.href="contact.php?cat="+A}function contact_changeSubcat(A){if($F("category_menu")=="gen"){if($F("topic_menu")=="career"){new Effect.Appear("job_listing_field",{afterFinish:hlCallback});new Effect.Appear("resume_field",{afterFinish:hlCallback})}else{new Effect.Fade("job_listing_field");new Effect.Fade("resume_field")}}if($F("category_menu")=="help"){if($F("topic_menu")=="bill"){new Effect.Appear("invoice_field",{afterFinish:hlCallback})}else{new Effect.Fade("invoice_field")}}if($F("category_menu")=="purch"){if($F("topic_menu")=="sample"){new Effect.Appear("application_field");new Effect.Appear("sample_length_note",{afterFinish:hlCallback})}else{new Effect.Fade("application_field");new Effect.Fade("sample_length_note")}if($F("topic_menu")=="discuss"){new Effect.Fade("product_fields")}else{new Effect.Appear("product_fields")}if($F("topic_menu")=="purch"){}else{}}}function same_shipaddr(){$("use_same_shipaddr").value="true";$("shipaddr_notice").innerHTML="Will ship to same address shown above.";new Effect.Appear("shipaddr_notice");new Effect.Fade("shipaddr_fields")}function show_postal(){if(Element.visible("addr_fields")==false){new Effect.BlindDown("addr_fields",{afterFinish:sp_callback})}else{new Effect.Shake("addr_fields",{afterFinish:sp_callback})}}function sp_callback(){$("addr1").focus()}function hide_postal(){if(Element.visible("addr_fields")==false){new Effect.Squish("addr_box")}else{new Effect.BlindUp("addr_fields")}}function incart(F,E,A,C){if((F!="p")&&(F!="q")){return false}if((E!="q")&&(E!="l")){return false}var H;var D;var B;if(E=="q"){H="Please enter quantity desired:";B="qty"}else{H="Please enter length desired, in meters:";B="length"}if(F=="q"){D="cart-quote"}else{D="cart"}var G=prompt(H);if(G==null){return false}if(isNaN(G)||(G<1)){alert("Sorry: You must enter a number and nothing else.");return false}window.location.href=NuGlobal.BASE_URL+D+".php?partnum="+C+"&"+B+"="+G+"&unit_price="+A}function modal_resize(A){Modalbox.resizeToContent()}function modalAddNotice(A){$("modal_notice").innerHTML=A;new Effect.Appear("modal_notice",{afterFinish:modal_resize})}function incart_new(B,A){if(B=="f"){incart_fiber(A)}else{incart_laser(A)}}function incart_fiber(A){pnupdate=function(){$("modal_pn").value=A};Modalbox.show(NuGlobal.BASE_URL+"fiber_add_popup.html",{title:"Add Fiber to Cart",width:600,afterLoad:pnupdate})}function incart_laser(A){if(A==false){alert("Error: Could not determine part number.");return false}var B=NuGlobal.BASE_URL+"cart-quote.php?prodtype=2&partnum="+A+"&qty=1";console.info("carturl = "+B);window.location.href=B}function fiberAddSubmit(){var B=$F("length");var A=get_radio_value("addFiberModalForm","spooling");if(B.empty()){modalAddNotice("Sorry, you must enter a length in meters.");return false}if(isNaN(B)||B<1){modalAddNotice("Sorry, you must enter a positive number and nothing else in the Length field.");return false}var C=NuGlobal.BASE_URL+"cart-quote.php?prodtype=1&partnum="+$F("modal_pn")+"&qty="+B+"&spooling="+A;console.info("carturl = "+C);window.location.href=C}function modalAddCancel(){Modalbox.hide()}function mb_goToTop(){$("MB_content").scrollTop=0}function hlCallback(B){var A=B.element.id;new Effect.Highlight(A)}function scroll_hl(A){new Effect.ScrollTo(A,{afterFinish:hlCallback})}function read_cookie(C){var D=""+document.cookie;var B=D.indexOf(C);if(B==-1||C==""){return""}var A=D.indexOf(";",B);if(A==-1){A=D.length}return unescape(D.substring(B+C.length+1,A))}function gatu(E){var D=read_cookie("__utmv");if(D==""){pageTracker._setVar("/"+E+"/");return true}if(D.indexOf(E)>-1){return true}var C=(D.indexOf("f")>-1);var A=(D.indexOf("s")>-1);var B=(D.indexOf("l")>-1);if(E=="f"){if(A==true&&B==true){pageTracker._setVar("/fsl/");return true}if(A==true){pageTracker._setVar("/fs/");return true}if(B==true){pageTracker._setVar("/fl/");return true}}if(E=="s"){if(C==true&&B==true){pageTracker._setVar("/fsl/");return true}if(C==true){pageTracker._setVar("/fs/");return true}if(B==true){pageTracker._setVar("/sl/");return true}}if(E=="l"){if(C==true&&A==true){pageTracker._setVar("/fsl/");return true}if(C==true){pageTracker._setVar("/fl/");return true}if(A==true){pageTracker._setVar("/sl/");return true}}return false}Event.observe(window,"load",equalize_cols)