/* FILE ARCHIVED ON 9:27:26 Jan 14, 2009 AND RETRIEVED FROM THE AN OPENWAYBACK INSTANCE ON 0:08:18 Jun 20, 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)). */ var BrowserDetect = { init: function () { this.browser = this.searchString(this.dataBrowser) || "An unknown browser"; this.version = this.searchVersion(navigator.userAgent) || this.searchVersion(navigator.appVersion) || "an unknown version"; this.OS = this.searchString(this.dataOS) || "an unknown OS"; }, searchString: function (data) { for (var i=0;i < data.length;i++) { var dataString = data[i].string; var dataProp = data[i].prop; this.versionSearchString = data[i].versionSearch || data[i].identity; if (dataString) { if (dataString.indexOf(data[i].subString) != -1) return data[i].identity; } else if (dataProp) return data[i].identity; } }, searchVersion: function (dataString) { var index = dataString.indexOf(this.versionSearchString); if (index == -1) return; return parseFloat(dataString.substring(index+this.versionSearchString.length+1)); }, dataBrowser: [ { string: navigator.userAgent, subString: "OmniWeb", versionSearch: "OmniWeb/", identity: "OmniWeb" }, { string: navigator.vendor, subString: "Apple", identity: "Safari" }, { prop: window.opera, identity: "Opera" }, { string: navigator.vendor, subString: "iCab", identity: "iCab" }, { string: navigator.vendor, subString: "KDE", identity: "Konqueror" }, { string: navigator.userAgent, subString: "Firefox", identity: "Firefox" }, { string: navigator.vendor, subString: "Camino", identity: "Camino" }, { // for newer Netscapes (6+) string: navigator.userAgent, subString: "Netscape", identity: "Netscape" }, { string: navigator.userAgent, subString: "MSIE", identity: "Explorer", versionSearch: "MSIE" }, { string: navigator.userAgent, subString: "Gecko", identity: "Mozilla", versionSearch: "rv" }, { // for older Netscapes (4-) string: navigator.userAgent, subString: "Mozilla", identity: "Netscape", versionSearch: "Mozilla" } ], dataOS : [ { string: navigator.platform, subString: "Win", identity: "Windows" }, { string: navigator.platform, subString: "Mac", identity: "Mac" }, { string: navigator.platform, subString: "Linux", identity: "Linux" } ] }; BrowserDetect.init(); /*--------------------------------------------------------------------------------- Retrieves the current mouse position on the screen Provides drag and drop capability ----------------------------------------------------------------------------------*/ // Detect if the browser is IE or not. // If it is not IE, we assume that the browser is NS. var IE = document.all?true:false var FFB = BrowserDetect.browser + '' + BrowserDetect.version; var FFB = FFB=="Firefox2"?true:false; var GAddress = new Array(); function showSearch() { dmSearch_v = ''; dmSearch_v += ''; dmSearch_v += ''; dmSearch_v += ''; dmSearch_v += ''; dmSearch_v += ''; dmSearch_v += ''; dmSearch_v += ''; dmSearch_v += '
Search:
'; document.getElementById("dmsearchdiv").innerHTML = dmSearch_v; } /*------------------------------------------------------------- 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/20090114092726/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; }