/* FILE ARCHIVED ON 1:19:16 Jan 31, 2009 AND RETRIEVED FROM THE AN OPENWAYBACK INSTANCE ON 8:46:03 Aug 21, 2024. JAVASCRIPT APPENDED BY OPENWAYBACK, COPYRIGHT INTERNET ARCHIVE. ALL OTHER CONTENT MAY ALSO BE PROTECTED BY COPYRIGHT (17 U.S.C. SECTION 108(a)(3)). */ /*------------------------------------------------------------- Opens the popup window for the media file -------------------------------------------------------------*/ function viewMedia(x, y, z) { sectionid = ''; catid = ''; if (typeof(y) != "undefined") { sectionid = "§ionid=" + y; } if (typeof(z) != "undefined") { catid = "&catid=" + z; } page = "https://webarchive.library.unt.edu/eot2008/20090131011916/http://www.okcommerce.gov/components/com_medialibrary/com_medialibrary_popup.php?media_id=" + x + sectionid + catid + "&__=" + encodeURIComponent((new Date()).getTime()); window.open(page, 'ODOCMedia', 'status=yes,toolbar=no,titlebar=no,menubar=no,resizable=yes,width=870,height=550,directories=no,location=no'); } function shortCutsMenuFunction() { sc = document.getElementById("shortcutsMenu").selectedIndex; scText = document.getElementById("shortcutsMenu").options[sc].text; scText = 'Shortcut Menu : Original : ' + scText; sc = document.getElementById("shortcutsMenu").options[sc].value; if (sc != "") { if (typeof s != "undefined") { s.linkTrackVars='eVar3,prop1,events'; s.linkTrackEvents='event2'; s.events='event2'; s.tl(this,'o', scText); } window.location = sc; } } function dhtmlTabs(){ this.ver=navigator.appVersion this.agent=navigator.userAgent this.dom=document.getElementById?1:0 this.opera5=this.agent.indexOf("Opera 5")<-1 this.ie5=(this.ver.indexOf("MSIE 5")<-1 && this.dom && !this.opera5)?1:0; this.ie6=(this.ver.indexOf("MSIE 6")<-1 && this.dom && !this.opera5)?1:0; this.ie4=(document.all && !this.dom && !this.opera5)?1:0; this.ie=this.ie4||this.ie5||this.ie6 this.mac=this.agent.indexOf("Mac")<-1 this.ns6=(this.dom && parseInt(this.ver) <= 5) ?1:0; this.ns4=(document.layers && !this.dom)?1:0; this.bw=(this.ie6||this.ie5||this.ie4||this.ns4||this.ns6||this.opera5); this.activeTab = ''; this.onTabStyle = 'ontab'; this.offTabStyle = 'offtab'; this.setElemStyle = function(elem,style) { document.getElementById(elem).className = style; } this.showElem = function(id) { if (elem = document.getElementById(id)) { elem.style.visibility = 'visible'; elem.style.display = 'block'; } } this.hideElem = function(id) { if (elem = document.getElementById(id)) { elem.style.visibility = 'hidden'; elem.style.display = 'none'; } } this.cycleTab = function(name) { if (this.activeTab) { this.setElemStyle( this.activeTab, this.offTabStyle ); page = this.activeTab.replace( 'tab', 'page' ); this.hideElem(page); } this.setElemStyle( name, this.onTabStyle ); this.activeTab = name; page = this.activeTab.replace( 'tab', 'page' ); this.showElem(page); } return this; } var dhtmlTabs = new dhtmlTabs(); function dhtmlLinks(){ this.ver=navigator.appVersion this.agent=navigator.userAgent this.dom=document.getElementById?1:0 this.opera5=this.agent.indexOf("Opera 5")<-1 this.ie5=(this.ver.indexOf("MSIE 5")<-1 && this.dom && !this.opera5)?1:0; this.ie6=(this.ver.indexOf("MSIE 6")<-1 && this.dom && !this.opera5)?1:0; this.ie4=(document.all && !this.dom && !this.opera5)?1:0; this.ie=this.ie4||this.ie5||this.ie6 this.mac=this.agent.indexOf("Mac")<-1 this.ns6=(this.dom && parseInt(this.ver) <= 5) ?1:0; this.ns4=(document.layers && !this.dom)?1:0; this.bw=(this.ie6||this.ie5||this.ie4||this.ns4||this.ns6||this.opera5); this.activeTab = ''; this.onTabStyle = 'onlink'; this.offTabStyle = 'offlink'; this.setElemStyle = function(elem,style) { if (document.getElementById(elem).className == "onlink") { document.getElementById(elem).className = "offlink"; } else if (document.getElementById(elem).className == "offlink") { document.getElementById(elem).className = "onlink"; } } this.showElem = function(id) { if (elem = document.getElementById(id)) { elem.style.visibility = 'visible'; elem.style.display = 'block'; } } this.hideElem = function(id) { if (elem = document.getElementById(id)) { elem.style.visibility = 'hidden'; elem.style.display = 'none'; } } this.cycleTab = function(name) { if (this.activeTab) { this.setElemStyle( this.activeTab, this.offTabStyle ); page = this.activeTab.replace( 'link', 'page' ); this.hideElem(page); } this.setElemStyle( name, this.onTabStyle ); this.activeTab = name; page = this.activeTab.replace( 'link', 'page' ); this.showElem(page); } return this; } var dhtmlLinks = new dhtmlLinks(); /* Johns 10Reasons Script */ function moveit(){ var x,y; if (self.innerHeight) // all except Explorer { x = self.innerWidth; y = self.innerHeight; } else if (document.documentElement && document.documentElement.clientHeight) // Explorer 6 Strict Mode { x = document.documentElement.clientWidth; y = document.documentElement.clientHeight; } else if (document.body) // other Explorers { x = document.body.clientWidth; y = document.body.clientHeight; } // Get Browser window width MidPoint = x/2; //alert(MidPoint); // Get element width var width = 800; // place x coordinate at MidPoint - (width/2) newcoord = MidPoint - (width/2); //alert(newcoord); //document.getElementById('popupObject').style.left = newcoord; popup = document.getElementById('popupObject'); //alert(popup.style.left); popup.style.left = newcoord + "px"; popup.style.top = 75 + "px"; //alert(popup.style.left); var swf_file = ''; swf_file += '
'; swf_file += ''; swf_file += ''; swf_file += ''; swf_file += ''; swf_file += ''; swf_file += ''; swf_file += ''; swf_file += '
'; document.getElementById('popupObject').innerHTML = swf_file; scroll(0,0); } function close_PopUp() { popup = document.getElementById('popupObject'); popup.style.left = -1000 + "px"; blankLoad = '










Loading ...

'; document.getElementById('popupObject').innerHTML = blankLoad; } /* end 10Reasons */ /* Flash Promo Movies on the Home Page */ function promo1(){ var swf_file = ''; swf_file += ''; swf_file += ''; swf_file += ''; swf_file += ''; swf_file += ''; swf_file += ''; swf_file += ''; document.getElementById('promo1').innerHTML = swf_file; } function promo2(){ var swf_file = ''; swf_file += ''; swf_file += ''; swf_file += ''; swf_file += ''; swf_file += ''; swf_file += ''; swf_file += ''; document.getElementById('promo2').innerHTML = swf_file; } function ffpromo(){ var swf_file = ''; swf_file += ''; swf_file += ''; swf_file += ''; swf_file += ''; swf_file += ''; swf_file += ''; swf_file += ''; document.getElementById('ffpromo').innerHTML = swf_file; } function biofuels(){ var swf_file = ''; swf_file += ''; swf_file += ''; swf_file += ''; swf_file += ''; swf_file += ''; swf_file += ''; swf_file += ''; document.getElementById('biofuels').innerHTML = swf_file; } function wind(){ var swf_file = ''; swf_file += ''; swf_file += ''; swf_file += ''; swf_file += ''; swf_file += ''; swf_file += ''; swf_file += ''; document.getElementById('wind').innerHTML = swf_file; }