function addEvent(A,C,B){if(A.addEventListener){A.addEventListener(C,B,false);return true}else{if(A.attachEvent){return A.attachEvent("on"+C,B)}else{return false}}}function getElementById(E,C){if(!C){return document.getElementById(E)}if(typeof (C)=="string"){var A=document.getElementById(C)}else{var A=C}if(A.id==E){return A}var D=A.firstChild;while(D){if(D.id==E){return D}else{var B=getElementById(E,D);if(B){return B}}D=D.nextSibling}return undefined}function getElementAttribute(C,A){var F=C.outerHTML.substring(1,C.outerHTML.length-1);var D=F.split(" ");for(var B=0;B<D.length;B++){var E=D[B].split("=");if(E[0]==A){return E[1]}}}function isElementLoaded(A){if(A.offsetWidth>0&&A.offsetHeight>0){return true}else{if(A.width>0&&A.height>0){return true}else{return false}}}function swapImage(B,C){var A=C.substring(C.length-3,C.length);if(((A=="png")||(A=="PNG"))&&(typeof (swapPNG)!="undefined")){swapPNG(B,C)}else{B.src=C}}function getImageSrc(A){if(A.src){return A.src}else{return A.filters(0).src}}function getWindowWidth(){if(document.body.offsetWidth){return document.body.offsetWidth}else{return window.innerWidth}}function getWindowHeight(){if(document.body.offsetHeight){return document.body.offsetHeight}else{return window.innerHeight}}function setStatus(A){window.status=A}function clearStatus(){window.status=""}function setWindowLocation(A){window.top.location.href=A}function getWindowLocation(){return window.top.location.href}function getBaseLocation(B){var A=B.split("?");return A[0]}function openDialogBox(G,D,A){var F=(screen.width-D)/2;var E=(screen.height-A)/2;var C="resizeable=no, status=no, toolbar=no, menubar=no, location=no, scrollbars=no, directories=no, dialog=yes";var B=window.open(G,"_blank","width="+D+", height="+A+", top="+E+", left="+F+", "+C);if(window.focus){B.focus()}return B}var agt=navigator.userAgent.toLowerCase();var appVer=navigator.appVersion.toLowerCase();var isMinor=parseFloat(appVer);var isMajor=parseInt(isMinor);var iePos=appVer.indexOf("msie");if(iePos!=-1){isMinor=parseFloat(appVer.substring(iePos+5,appVer.indexOf(";",iePos)));isMajor=parseInt(isMinor)}var isKonq=false;var kqPos=agt.indexOf("konqueror");if(kqPos!=-1){isKonq=true;isMinor=parseFloat(agt.substring(kqPos+10,agt.indexOf(";",kqPos)));isMajor=parseInt(isMinor)}var isOpera=(agt.indexOf("opera")!=-1);var isKhtml=(isSafari||isKonq);var isIe=((iePos!=-1)&&(!isOpera)&&(!isKhtml));var isIe6up=(isIe&&isMinor>=6);var isGecko=((!isKhtml)&&(navigator.product)&&(navigator.product.toLowerCase()=="gecko"))?true:false;var isSafari=((agt.indexOf("safari")!=-1)&&(agt.indexOf("mac")!=-1))?true:false;function createIEControl(C,E){var B=document.createElement("object");B.style.width=C.style.width;B.style.height=C.style.height;for(var D in E){B.setAttribute(D,E[D])}if(document.readyState=="complete"){if(C.parentNode){C.parentNode.replaceChild(B,C)}}else{var A=C;document.attachEvent("onreadystatechange",function(){if(document.readyState=="complete"){if(A.parentNode){A.parentNode.replaceChild(B,A)}}})}return B}function createMozillaControl(A,C){if(isSafari){return createSafariControl(A,C)}var D=document.createElement("embed");D.style.width=A.style.width;D.style.height=A.style.height;for(var B in C){D.setAttribute(B,C[B])}self.interval=window.setInterval(function(){if(isElementLoaded(A)){window.clearInterval(self.interval);if(A.parentNode){A.parentNode.replaceChild(D,A)}}},100);return D}function createSafariControl(A,D){var C="<embed";for(var B in D){C+=" "+B+'="'+D[B]+'"'}C+=">";A.innerHTML=C;return document[D.name]}var isWin=((agt.indexOf("win")!=-1)||(agt.indexOf("16bit")!=-1));var isMac=(agt.indexOf("mac")!=-1);if(!isWin&&!isMac){alert("Sorry - Hypercosm is only supported on Windows and the Macintosh");window.top.location="http://www.hypercosm.com/download/player/platform_error.html"}else{if(isIe6up){document.writeln('<script language="VBScript">');document.writeln("On Error Resume Next");document.writeln('Set theObject = CreateObject("HypercosmActivex.HyperX.1")');document.writeln("If IsObject(theObject) Then");document.writeln("hasHypercosm = true");document.writeln("Else");document.writeln("hasHypercosm = false");document.writeln("End If");document.writeln("<\/script>");if(!hasHypercosm){var button=confirm("The Hypercosm Player is needed to view this page.\nWould like to be redirected to the download page?");if(button==true){window.top.location="http://www.hypercosm.com/download/player/index.html"}}}else{if(isGecko||isSafari){hasHypercosm=false;for(i=0;i<navigator.plugins.length;i++){if(navigator.plugins[i].name.substring(0,9)=="Hypercosm"){hasHypercosm=true}}if(!hasHypercosm){var button=confirm("The Hypercosm 3D Player is needed to view this page.\nWould like to be redirected to the  Player's download page?");if(button==true){window.top.location="http://www.hypercosm.com/download/player/index.html"}}}else{window.top.location="http://www.hypercosm.com/download/player/browser_error.html"}}}function component(A,B){if(!A){return this}if(typeof (A)=="string"){if(B){if(B.element){this.element=getElementById(A,B.element)}else{this.element=getElementById(A,B)}}else{this.element=document.getElementById(A)}}else{this.element=A}if(B&&B.addComponent){B.addComponent(this)}this.visible=(this.element!=undefined)&&(this.element.style.display!="none");return this}component.prototype.getTop=function(){var A=this;while(A.parent){A=A.parent}return A};component.prototype.getWidth=function(){if(this.element){if(this.element.offsetWidth!=0){return this.element.offsetWidth}else{if(this.element.width){return this.element.width}else{return this.element.getAttribute("width")}}}else{return 0}};component.prototype.getHeight=function(){if(this.element){if(this.element.offsetHeight!=0){return this.element.offsetHeight}else{if(this.element.height){return this.element.height}else{return this.element.getAttribute("height")}}}else{return 0}};component.prototype.getLeft=function(){var B=0;var A=this.element;if(A.offsetParent){do{B+=A.offsetLeft}while(A=A.offsetParent);return B}};component.prototype.getTop=function(){var B=0;var A=this.element;if(A.offsetParent){do{B+=A.offsetTop}while(A=A.offsetParent);return B}};component.prototype.setElement=function(A){if(this.element.parentNode){this.element.parentNode.replaceChild(A,this.element)}this.element=A};component.prototype.setVisible=function(A){this.visible=A;if(this.element){if(A){this.element.style.display="block"}else{this.element.style.display="none"}}};component.prototype.isVisible=function(){return this.visible&&(!this.parent||!this.parent.isVisible||this.parent.isVisible())};component.prototype.toggleVisible=function(){this.setVisible(!this.isVisible())};function HCApplet(C,B,E,A,D){if(!C){return this}if(A==undefined){A=""}if(D==undefined){D=null}component.call(this,C,D);this.appletSrc=B;this.resources=E;this.commandLine=A;this.plugIn=null;this.index=HCApplet.applets.length;this.id="HCApplet"+this.index;this.commandLine="-id "+this.id+"; "+A;HCApplet.appletIndices[this.id]=HCApplet.applets.length;HCApplet.applets[HCApplet.applets.length]=this;HCApplet.setCurrentApplet(this);this.activate();return this}HCApplet.prototype=new component();HCApplet.prototype.activate=function(){function A(E){var C="";if(E){for(var D=0;D<E.length;D++){C+="'"+E[D]+"'";if(D<E.length){C+="; "}}}return C}if(navigator.appName=="Microsoft Internet Explorer"){var B=new Array();B.id=this.id;B.classid="clsid:34B8892A-9303-4893-9E12-1CEE6C3BF95D";B.AppletSrc=this.appletSrc;B.CommandLine=this.commandLine;B.Resources=A(this.resources);this.plugIn=createIEControl(this.element,B)}else{var B=new Array();B.name=this.id;B.type="application/x-hypercosm";B.width=this.element.style.width;B.height=this.element.style.height;B.appletsrc=this.appletSrc;B.commandline=this.commandLine;B.resources=A(this.resources);B.browser=navigator.userAgent;this.plugIn=createMozillaControl(this.element,B)}};HCApplet.prototype.onActivate=function(){if(this.onload){this.onload()}};HCApplet.prototype.isActivated=function(){return(this.plugIn!=null)};HCApplet.prototype.call=function(script){if(script){eval(script)}};HCApplet.getAppletById=function(A){return this.getAppletByIndex(HCApplet.appletIndices[A])};HCApplet.getAppletByIndex=function(A){return HCApplet.applets[A]};HCApplet.setCurrentApplet=function(A){HCApplet.currentApplet=A};HCApplet.getCurrentApplet=function(){return HCApplet.currentApplet};HCApplet.applets=new Array();HCApplet.appletIndices=new Array();function getTransparencyResources(A){return["transparent0.png, "+A+"/transparency/transparent0.png","transparent10.png, "+A+"/transparency/transparent10.png","transparent20.png, "+A+"/transparency/transparent20.png","transparent30.png, "+A+"/transparency/transparent30.png","transparent40.png, "+A+"/transparency/transparent40.png","transparent50.png, "+A+"/transparency/transparent50.png","transparent60.png, "+A+"/transparency/transparent60.png","transparent70.png, "+A+"/transparency/transparent70.png","transparent80.png, "+A+"/transparency/transparent80.png","transparent90.png, "+A+"/transparency/transparent90.png","transparent100.png, "+A+"/transparency/transparent100.png"]}function getSketchUpIconResources(A){return["about_icon.gif, "+A+"/textures/about_icon.gif","back_arrow_icon.gif, "+A+"/textures/back_arrow_icon.gif","blue_dial_icon.gif, "+A+"/textures/blue_dial_icon.gif","camera_icon.gif, "+A+"/textures/camera_icon.gif","cartoon_icon.gif, "+A+"/textures/cartoon_icon.gif","color_wheel_icon.gif, "+A+"/textures/color_wheel_icon.gif","dial_arrow.gif, "+A+"/textures/dial_arrow.gif","dial_icon.gif, "+A+"/textures/dial_icon.gif","dial_labels.gif, "+A+"/textures/dial_labels.gif","dock_texture.png, "+A+"/textures/dock_texture.png","edges_icon.gif, "+A+"/textures/edges_icon.gif","flat_icon.gif, "+A+"/textures/flat_icon.gif","gauge_icon.gif, "+A+"/textures/gauge_icon.gif","graphics_icon.gif, "+A+"/textures/graphics_icon.gif","green_dial_icon.gif, "+A+"/textures/green_dial_icon.gif","help_icon.gif, "+A+"/textures/help_icon.gif","hide_icon.gif, "+A+"/textures/hide_icon.gif","lighting_icon.gif, "+A+"/textures/lighting_icon.gif","mouse_icon.gif, "+A+"/textures/mouse_icon.gif","object_icon.gif, "+A+"/textures/object_icon.gif","one_button_icon.gif, "+A+"/textures/one_button_icon.gif","outline_icon.gif, "+A+"/textures/outline_icon.gif","pan_icon.gif, "+A+"/textures/pan_icon.gif","red_dial_icon.gif, "+A+"/textures/red_dial_icon.gif","render_modes_icon.gif, "+A+"/textures/render_modes_icon.gif","rotate_icon.gif, "+A+"/textures/rotate_icon.gif","scene_icon.gif, "+A+"/textures/scene_icon.gif","shadow_icon.gif, "+A+"/textures/shadow_icon.gif","smooth_icon.gif, "+A+"/textures/smooth_icon.gif","spin_icon.gif, "+A+"/textures/spin_icon.gif","two_button_icon.gif, "+A+"/textures/two_button_icon.gif","upright_icon.gif, "+A+"/textures/upright_icon.gif","two_button_icon.gif, "+A+"/textures/two_button_icon.gif","wireframe_icon.gif, "+A+"/textures/wireframe_icon.gif","x_ray_icon.gif, "+A+"/textures/x_ray_icon.gif","monochrome_icon.gif, "+A+"/textures/monochrome_icon.gif","monochrome_hidden_line_icon.gif, "+A+"/textures/monochrome_hidden_line_icon.gif","monochrome_edges_icon.gif, "+A+"/textures/monochrome_edges_icon.gif","zoom_icon.gif, "+A+"/textures/zoom_icon.gif"]}function getSketchUpSoundResources(A){return["deselect.wav, "+A+"/sounds/deselect.wav","hide.wav, "+A+"/sounds/hide.wav","select.wav, "+A+"/sounds/select.wav","show.wav, "+A+"/sounds/show.wav"]}function getSketchUpDefaultResources(A){return getTransparencyResources(A).concat(getSketchUpIconResources(A).concat(getSketchUpSoundResources(A)))};
