summaryrefslogtreecommitdiffstats
path: root/o3d/samples/interactive_sampler_assets
diff options
context:
space:
mode:
Diffstat (limited to 'o3d/samples/interactive_sampler_assets')
-rw-r--r--o3d/samples/interactive_sampler_assets/images/bl.gifbin0 -> 157 bytes
-rw-r--r--o3d/samples/interactive_sampler_assets/images/br.gifbin0 -> 158 bytes
-rw-r--r--o3d/samples/interactive_sampler_assets/images/cleardot.gifbin0 -> 43 bytes
-rw-r--r--o3d/samples/interactive_sampler_assets/images/corner.pngbin0 -> 1140 bytes
-rw-r--r--o3d/samples/interactive_sampler_assets/images/db_tl.pngbin0 -> 126 bytes
-rw-r--r--o3d/samples/interactive_sampler_assets/images/db_tr.pngbin0 -> 124 bytes
-rw-r--r--o3d/samples/interactive_sampler_assets/images/google-small.pngbin0 -> 2445 bytes
-rw-r--r--o3d/samples/interactive_sampler_assets/images/lb_tl.pngbin0 -> 123 bytes
-rw-r--r--o3d/samples/interactive_sampler_assets/images/lb_tr.pngbin0 -> 124 bytes
-rw-r--r--o3d/samples/interactive_sampler_assets/images/sprites.gifbin0 -> 6229 bytes
-rw-r--r--o3d/samples/interactive_sampler_assets/images/sprites08132008.pngbin0 -> 4179 bytes
-rw-r--r--o3d/samples/interactive_sampler_assets/images/sprites2.jpgbin0 -> 1087 bytes
-rw-r--r--o3d/samples/interactive_sampler_assets/images/tl.gifbin0 -> 1185 bytes
-rw-r--r--o3d/samples/interactive_sampler_assets/images/tr.gifbin0 -> 158 bytes
-rw-r--r--o3d/samples/interactive_sampler_assets/styles.css282
-rw-r--r--o3d/samples/interactive_sampler_assets/styles_ie.css301
-rw-r--r--o3d/samples/interactive_sampler_assets/utils.js200
17 files changed, 783 insertions, 0 deletions
diff --git a/o3d/samples/interactive_sampler_assets/images/bl.gif b/o3d/samples/interactive_sampler_assets/images/bl.gif
new file mode 100644
index 0000000..244627d
--- /dev/null
+++ b/o3d/samples/interactive_sampler_assets/images/bl.gif
Binary files differ
diff --git a/o3d/samples/interactive_sampler_assets/images/br.gif b/o3d/samples/interactive_sampler_assets/images/br.gif
new file mode 100644
index 0000000..a63a18e
--- /dev/null
+++ b/o3d/samples/interactive_sampler_assets/images/br.gif
Binary files differ
diff --git a/o3d/samples/interactive_sampler_assets/images/cleardot.gif b/o3d/samples/interactive_sampler_assets/images/cleardot.gif
new file mode 100644
index 0000000..1d11fa9
--- /dev/null
+++ b/o3d/samples/interactive_sampler_assets/images/cleardot.gif
Binary files differ
diff --git a/o3d/samples/interactive_sampler_assets/images/corner.png b/o3d/samples/interactive_sampler_assets/images/corner.png
new file mode 100644
index 0000000..51aa458
--- /dev/null
+++ b/o3d/samples/interactive_sampler_assets/images/corner.png
Binary files differ
diff --git a/o3d/samples/interactive_sampler_assets/images/db_tl.png b/o3d/samples/interactive_sampler_assets/images/db_tl.png
new file mode 100644
index 0000000..381883f
--- /dev/null
+++ b/o3d/samples/interactive_sampler_assets/images/db_tl.png
Binary files differ
diff --git a/o3d/samples/interactive_sampler_assets/images/db_tr.png b/o3d/samples/interactive_sampler_assets/images/db_tr.png
new file mode 100644
index 0000000..230205f
--- /dev/null
+++ b/o3d/samples/interactive_sampler_assets/images/db_tr.png
Binary files differ
diff --git a/o3d/samples/interactive_sampler_assets/images/google-small.png b/o3d/samples/interactive_sampler_assets/images/google-small.png
new file mode 100644
index 0000000..e62b8b8
--- /dev/null
+++ b/o3d/samples/interactive_sampler_assets/images/google-small.png
Binary files differ
diff --git a/o3d/samples/interactive_sampler_assets/images/lb_tl.png b/o3d/samples/interactive_sampler_assets/images/lb_tl.png
new file mode 100644
index 0000000..5de27abc
--- /dev/null
+++ b/o3d/samples/interactive_sampler_assets/images/lb_tl.png
Binary files differ
diff --git a/o3d/samples/interactive_sampler_assets/images/lb_tr.png b/o3d/samples/interactive_sampler_assets/images/lb_tr.png
new file mode 100644
index 0000000..d29e333
--- /dev/null
+++ b/o3d/samples/interactive_sampler_assets/images/lb_tr.png
Binary files differ
diff --git a/o3d/samples/interactive_sampler_assets/images/sprites.gif b/o3d/samples/interactive_sampler_assets/images/sprites.gif
new file mode 100644
index 0000000..8132129
--- /dev/null
+++ b/o3d/samples/interactive_sampler_assets/images/sprites.gif
Binary files differ
diff --git a/o3d/samples/interactive_sampler_assets/images/sprites08132008.png b/o3d/samples/interactive_sampler_assets/images/sprites08132008.png
new file mode 100644
index 0000000..64f70f2
--- /dev/null
+++ b/o3d/samples/interactive_sampler_assets/images/sprites08132008.png
Binary files differ
diff --git a/o3d/samples/interactive_sampler_assets/images/sprites2.jpg b/o3d/samples/interactive_sampler_assets/images/sprites2.jpg
new file mode 100644
index 0000000..5cf26f3
--- /dev/null
+++ b/o3d/samples/interactive_sampler_assets/images/sprites2.jpg
Binary files differ
diff --git a/o3d/samples/interactive_sampler_assets/images/tl.gif b/o3d/samples/interactive_sampler_assets/images/tl.gif
new file mode 100644
index 0000000..5eb8006
--- /dev/null
+++ b/o3d/samples/interactive_sampler_assets/images/tl.gif
Binary files differ
diff --git a/o3d/samples/interactive_sampler_assets/images/tr.gif b/o3d/samples/interactive_sampler_assets/images/tr.gif
new file mode 100644
index 0000000..f88810f
--- /dev/null
+++ b/o3d/samples/interactive_sampler_assets/images/tr.gif
Binary files differ
diff --git a/o3d/samples/interactive_sampler_assets/styles.css b/o3d/samples/interactive_sampler_assets/styles.css
new file mode 100644
index 0000000..18d6645
--- /dev/null
+++ b/o3d/samples/interactive_sampler_assets/styles.css
@@ -0,0 +1,282 @@
+body {
+ font-family: Arial, sans-serif;
+}
+
+#container {
+ width: 100%;
+ margin:0pt auto;
+ max-width:1024px;
+}
+
+tr {
+ vertical-align: top;
+}
+
+div {
+/* border: 1px solid #999;*/
+}
+
+#header {
+ height: 50px;
+}
+
+/*#footer {
+ width: 100%;
+
+}*/
+
+#selectSample {
+ width: 30%;
+ display: inline;
+}
+
+#code {
+ width: 70%;
+ display: inline;
+}
+
+.codepress {
+ width:100%;
+ height:550px;
+/* overflow-x: hidden;*/
+}
+
+#codeContainer {
+ width:80%;
+ height:500px;
+ padding-left: 9px;
+ padding-right: 9px;
+
+}
+
+#selectContainer {
+ width:20%;
+ height:100%;
+ padding-bottom: 3px;
+}
+
+#selectCode {
+ width:100%;
+ height: auto;
+ overflow: auto;
+ overflow-x: hidden;
+ margin-bottom: 3px;
+ margin-top: 20px;
+}
+
+.category {
+ font-size: 85%;
+ font-family: Arial, sans-serif;
+ font-weight: bold;
+ display: block;
+}
+
+.categoryItems {
+ margin-top: 0px;
+ margin-bottom: 0px;
+ list-style-type: none;
+ font-size: 80%;
+ font-family: Arial, sans-serif;
+ padding-left: 0px;
+}
+
+#outputContainer {
+ /* width: 400px;*/
+ /* height: 400px;*/
+ /* width: 70%;*/
+}
+
+#consoleContainer {
+ height: 300px;
+ width: 30%;
+ border: 1px solid #999;
+}
+
+iframe {
+/* overflow-x: hidden;*/
+}
+
+.contentTable {
+ width: 100%;
+ height: 100%;
+}
+
+#header {
+ margin: 0px;
+ display: inline;
+}
+
+.bluehr {
+ background-color:transparent;
+ border:0pt none;
+ float:left;
+ font-size:1.5em;
+ font-weight:bold;
+ line-height:1.3em;
+ margin:0pt;
+ padding:0pt 0pt 0pt 0.3em;
+}
+
+h2 {
+ border-bottom:1px solid #CCCCCC;
+ font-size:1.3em;
+ margin-bottom:0pt;
+ font-family:Helvetica,Arial,sans-serif;
+}
+
+.bluediv {
+ background-color:#E5ECF9;
+ border-top:1px solid #3366CC;
+ font-size:1em;
+ margin:0pt;
+ padding:0.1em 0pt;
+ white-space:nowrap;
+ width:100%;
+}
+
+li.selected {
+ padding:0.2em 0pt 0.2em 15px;
+ background-color:#E5ECF9;
+ color:#000000;
+ position:relative;
+ text-decoration:none;
+ z-index:2;
+ list-style-image:none;
+ list-style-position:outside;
+ list-style-type:none;
+ margin:0pt;
+ vertical-align:middle;
+ line-height:100%;
+ cursor: default;
+}
+
+li {
+ padding-left: 15px;
+ cursor: pointer;
+ text-decoration: underline;
+ color: blue;
+}
+
+img.expand, img.collapse {
+ border:medium none;
+ height:inherit;
+ margin-bottom: 4px;
+ margin-right: 5px;
+ padding:0pt;
+ position:relative;
+ width:9px;
+ background-image:url(interactive_sampler_assets/images/sprites.gif);
+ vertical-align:middle;
+ cursor: pointer;
+}
+
+img.collapse {
+ background-position: -28px -310px; /* The empty Plus */
+}
+
+img.collapse:hover {
+ background-position:-28px -508px; /* The filled Plus */
+}
+
+img.expand {
+ background-position: -28px -246px; /* The empty Plus */
+}
+
+img.expand:hover {
+ background-position:-28px -444px; /* The filled Plus */
+}
+
+/*.separator {
+ height: 100%;
+ background:#E5ECF9 none repeat scroll 0% 0%;
+ border-color:-moz-use-text-color #FFFFFF;
+ border-style:1px solid;
+ border-width:medium 2px;
+ cursor:pointer;
+ left:-5px;
+ overflow:hidden;
+/* position:absolute;*/
+/* top:0pt;
+ margin-top: 63px;
+ width:4px;
+}*/
+
+#gc-footer-img {
+ background-image:url(interactive_sampler_assets/images/sprites.gif);
+ background-position:-28px -28px;
+ display:inline;
+ float:left;
+ height:53px;
+ margin:12px 0pt;
+ width:143px;
+}
+
+#gc-footer .text {
+ margin:0pt 0pt 0pt 170px;
+ padding:30px 0pt;
+ text-align:center;
+}
+
+#gc-footer {
+ color:#666666;
+ margin:0pt;
+ width:100%;
+}
+
+td.footer {
+ padding-top: 60px;
+}
+
+#googleLogoTD {
+ text-align:right;
+ vertical-align:middle;
+ padding-right: 7px;
+}
+
+#tab_bar {
+ margin-top:20px;
+ cursor: pointer;
+}
+
+#button_bar {
+ text-align: right;
+}
+
+.roundedcornr_box {
+ float:left;
+ margin: 0px 4px;
+}
+
+.db_top div {
+ background: url(interactive_sampler_assets/images/db_tl.png) no-repeat top left;
+}
+.db_top {
+ background: #92c1f0 url(interactive_sampler_assets/images/db_tr.png) no-repeat top right;
+}
+
+.lb_top div {
+ background: url(interactive_sampler_assets/images/lb_tl.png) no-repeat top left;
+}
+
+.lb_top {
+ background: #D0E4F6 url(interactive_sampler_assets/images/lb_tr.png) no-repeat top right;
+}
+
+.db_top div, .db_top,
+.lb_top div, .lb_top {
+ height: 5px;
+ font-size: 1px;
+}
+.lb_roundedcornr_content,
+.db_roundedcornr_content {
+ padding: 0px 10px;
+ font-size: 80%;
+}
+
+.lb_roundedcornr_content {
+ background-color: #D0E4F6;
+}
+
+.db_roundedcornr_content {
+ background-color: #92c1f0;
+}
diff --git a/o3d/samples/interactive_sampler_assets/styles_ie.css b/o3d/samples/interactive_sampler_assets/styles_ie.css
new file mode 100644
index 0000000..9fe30ab
--- /dev/null
+++ b/o3d/samples/interactive_sampler_assets/styles_ie.css
@@ -0,0 +1,301 @@
+body {
+ font-family: Arial, sans-serif;
+}
+
+#container {
+ width: 100%;
+ margin:0pt auto;
+ max-width:1024px;
+ width:expression(
+ document.body.clientWidth > 1024 ?
+ "1024px":
+ "auto" );
+}
+
+tr {
+ vertical-align: top;
+}
+
+div {
+/* border: 1px solid #999;*/
+}
+
+#header {
+ height: 50px;
+}
+
+/*#footer {
+ width: 100%;
+
+}*/
+
+#selectSample {
+ width: 30%;
+ display: inline;
+}
+
+#code {
+ width: 70%;
+ display: inline;
+}
+
+.codepress {
+ width:100%;
+ height:550px;
+/* overflow-x: hidden;*/
+}
+
+#codeContainer {
+ width:80%;
+ height:500px;
+ padding-left: 9px;
+ padding-right: 9px;
+
+}
+
+#selectContainer {
+ width:20%;
+ height:100%;
+ padding-bottom: 3px;
+}
+
+#selectCode {
+ width:100%;
+ height: auto;
+ overflow: auto;
+ overflow-x: hidden;
+ margin-bottom: 3px;
+ margin-top: 20px;
+}
+
+.category {
+ font-size: 85%;
+ font-family: Arial, sans-serif;
+ font-weight: bold;
+ display: block;
+}
+
+.categoryItems {
+ margin-top: 0px;
+ margin-bottom: 0px;
+ list-style-type: none;
+ font-size: 80%;
+ font-family: Arial, sans-serif;
+ padding-left: 0px;
+}
+
+#outputContainer {
+ /* width: 400px;*/
+ /* height: 400px;*/
+ /* width: 70%;*/
+}
+
+#consoleContainer {
+ height: 300px;
+ width: 30%;
+ border: 1px solid #999;
+}
+
+iframe {
+/* overflow-x: hidden;*/
+}
+
+.contentTable {
+ width: 100%;
+ height: 100%;
+}
+
+#header {
+ margin: 0px;
+ display: inline;
+}
+
+.bluehr {
+ background-color:transparent;
+ border:0pt none;
+ float:left;
+ font-size:1.5em;
+ font-weight:bold;
+ line-height:1.3em;
+ margin:0pt;
+ padding:0pt 0pt 0pt 0.3em;
+}
+
+h2 {
+ border-bottom:1px solid #CCCCCC;
+ font-size:1.3em;
+ margin-bottom:0pt;
+ font-family:Helvetica,Arial,sans-serif;
+}
+
+.bluediv {
+ background-color:#E5ECF9;
+ border-top:1px solid #3366CC;
+ font-size:1em;
+ margin:0pt;
+ padding:0.1em 0pt;
+ white-space:nowrap;
+ width:100%;
+}
+
+li.selected {
+ padding:0.2em 0pt 0.2em 15px;
+ background-color:#E5ECF9;
+ color:#000000;
+ position:relative;
+ text-decoration:none;
+ z-index:2;
+ list-style-image:none;
+ list-style-position:outside;
+ list-style-type:none;
+ margin:0pt;
+ vertical-align:middle;
+ line-height:100%;
+ cursor: default;
+}
+
+li {
+ padding-left: 15px;
+ cursor: pointer;
+ text-decoration: underline;
+ color: blue;
+}
+
+img.expand, img.collapse {
+ border:medium none;
+ height:inherit;
+ margin-bottom: 4px;
+ margin-right: 5px;
+ padding:0pt;
+ position:relative;
+ width:9px;
+ background-image:url(interactive_sampler_assets/images/sprites.gif);
+ vertical-align:middle;
+ cursor: pointer;
+}
+
+img.collapse {
+ background-position: -28px -310px; /* The empty Plus */
+}
+
+img.collapse:hover {
+ background-position:-28px -508px; /* The filled Plus */
+}
+
+img.expand {
+ background-position: -28px -246px; /* The empty Plus */
+}
+
+img.expand:hover {
+ background-position:-28px -444px; /* The filled Plus */
+}
+
+/*.separator {
+ height: 100%;
+ background:#E5ECF9 none repeat scroll 0% 0%;
+ border-color:-moz-use-text-color #FFFFFF;
+ border-style:1px solid;
+ border-width:medium 2px;
+ cursor:pointer;
+ left:-5px;
+ overflow:hidden;
+/* position:absolute;*/
+/* top:0pt;
+ margin-top: 63px;
+ width:4px;
+}*/
+
+#gc-footer-img {
+ background-image:url(interactive_sampler_assets/images/sprites.gif);
+ background-position:-28px -28px;
+ display:inline;
+ float:left;
+ height:53px;
+ margin:12px 0pt;
+ width:143px;
+}
+
+#gc-footer .text {
+ margin:0pt 0pt 0pt 170px;
+ padding:30px 0pt;
+ text-align:center;
+}
+
+#gc-footer {
+ color:#666666;
+ margin:0pt;
+ width:100%;
+}
+
+td.footer {
+ padding-top: 60px;
+}
+
+#lbinner {
+ width:expression(
+ document.body.clientWidth > 1100 ?
+ "1100px":
+ "auto" );
+}
+
+#lightbox {
+ position: absolute;
+}
+
+#overlay {
+ width: 1000%;
+}
+
+#googleLogoTD {
+ text-align:right;
+ vertical-align:middle;
+}
+
+#tab_bar {
+ margin-top:20px;
+ margin-bottom: -2px;
+ cursor: pointer;
+}
+
+#button_bar {
+ text-align: right;
+}
+
+.roundedcornr_box {
+ float:left;
+ margin: 0px 4px;
+}
+
+.db_top div {
+ background: url(interactive_sampler_assets/images/db_tl.png) no-repeat top left;
+}
+.db_top {
+ background: #92c1f0 url(interactive_sampler_assets/images/db_tr.png) no-repeat top right;
+}
+
+.lb_top div {
+ background: url(interactive_sampler_assets/images/lb_tl.png) no-repeat top left;
+}
+
+.lb_top {
+ background: #D0E4F6 url(interactive_sampler_assets/images/lb_tr.png) no-repeat top right;
+}
+
+.db_top div, .db_top,
+.lb_top div, .lb_top {
+ height: 5px;
+ font-size: 1px;
+}
+.lb_roundedcornr_content,
+.db_roundedcornr_content {
+ padding: 0px 10px;
+ font-size: 80%;
+}
+
+.lb_roundedcornr_content {
+ background-color: #D0E4F6;
+}
+
+.db_roundedcornr_content {
+ background-color: #92c1f0;
+}
diff --git a/o3d/samples/interactive_sampler_assets/utils.js b/o3d/samples/interactive_sampler_assets/utils.js
new file mode 100644
index 0000000..8132df1
--- /dev/null
+++ b/o3d/samples/interactive_sampler_assets/utils.js
@@ -0,0 +1,200 @@
+/*
+ * Copyright 2009, Google Inc.
+ * All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions are
+ * met:
+ *
+ * * Redistributions of source code must retain the above copyright
+ * notice, this list of conditions and the following disclaimer.
+ * * Redistributions in binary form must reproduce the above
+ * copyright notice, this list of conditions and the following disclaimer
+ * in the documentation and/or other materials provided with the
+ * distribution.
+ * * Neither the name of Google Inc. nor the names of its
+ * contributors may be used to endorse or promote products derived from
+ * this software without specific prior written permission.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+ * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+ * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
+ * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
+ * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+ * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+ * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+ * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
+ * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+ * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
+
+
+/**
+ * @fileoverview This file contains utility functions for the interactive
+ * sample runner.
+ *
+ */
+
+var ie;
+var opera;
+var safari;
+var gecko;
+
+
+if (typeof console == 'undefined') {
+ var console = {
+ log : function() {}
+ };
+}
+
+function readFile(relativePathToFile) {
+ var curPath = location.href;
+ var fileLoc = curPath.indexOf('file:///');
+ var lastSlash = curPath.lastIndexOf('/');
+ curPath = curPath.substring(0, lastSlash + 1);
+ if (fileLoc != -1) {
+ curPath = curPath.substring(fileLoc + 8);
+ }
+ var filepath = curPath + relativePathToFile;
+ filepath = filepath.replace(/\//g, '\\');
+ filepath = filepath.replace(/%20/g, ' ');
+
+ try {
+ netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect");
+ } catch (e) {
+ return null;
+ }
+ var file = Components.classes["@mozilla.org/file/local;1"].createInstance(
+ Components.interfaces.nsILocalFile);
+ file.initWithPath( filepath );
+ if ( file.exists() == false ) {
+ alert("File does not exist");
+ }
+ var is = Components.classes["@mozilla.org/network/file-input-stream;1"].
+ createInstance(Components.interfaces.nsIFileInputStream);
+ is.init( file,0x01, 00004, null);
+ var sis = Components.classes["@mozilla.org/scriptableinputstream;1"].
+ createInstance(Components.interfaces.nsIScriptableInputStream);
+ sis.init(is);
+ var output = sis.read( sis.available() );
+ return output;
+}
+
+/**
+* Returns an XMLHttp instance to use for asynchronous
+* downloading. This method will never throw an exception, but will
+* return NULL if the browser does not support XmlHttp for any reason.
+* @return {XMLHttpRequest|Null}
+*/
+function createXmlHttpRequest() {
+ try {
+ if (typeof ActiveXObject != 'undefined') {
+ return new ActiveXObject('Microsoft.XMLHTTP');
+ } else if (window["XMLHttpRequest"]) {
+ return new XMLHttpRequest();
+ }
+ } catch (e) {
+ changeStatus(e);
+ }
+ return null;
+};
+
+/**
+* This functions wraps XMLHttpRequest open/send function.
+* It lets you specify a URL and will call the callback if
+* it gets a status code of 200.
+* @param {String} url The URL to retrieve
+* @param {Function} callback The function to call once retrieved.
+*/
+function downloadUrl(url, callback) {
+ var status = -1;
+ var request = createXmlHttpRequest();
+ if (!request) {
+ return false;
+ }
+
+ request.onreadystatechange = function() {
+ if (request.readyState == 4) {
+ try {
+ status = request.status;
+ } catch (e) {
+ // Usually indicates request timed out in FF.
+ }
+ if (status == 200) {
+ callback(request.responseText, request.status);
+ request.onreadystatechange = function() {};
+ }
+ }
+ };
+
+ request.open('GET', url, true);
+ try {
+ request.send(null);
+ } catch (e) {
+ changeStatus(e);
+ }
+}
+
+
+function deepObjCopy(dupeObj) {
+ var retObj = new Object();
+ if (typeof(dupeObj) == 'object') {
+ if (typeof(dupeObj.length) != 'undefined')
+ var retObj = new Array();
+ for (var objInd in dupeObj) {
+ if (typeof(dupeObj[objInd]) == 'object') {
+ retObj[objInd] = deepObjCopy(dupeObj[objInd]);
+ } else if (typeof(dupeObj[objInd]) == 'string') {
+ retObj[objInd] = dupeObj[objInd];
+ } else if (typeof(dupeObj[objInd]) == 'number') {
+ retObj[objInd] = dupeObj[objInd];
+ } else if (typeof(dupeObj[objInd]) == 'boolean') {
+ ((dupeObj[objInd] == true) ?
+ retObj[objInd] = true : retObj[objInd] = false);
+ }
+ }
+ }
+ return retObj;
+}
+
+function singleLevelKeyCopy(dupeObj) {
+ var retObj = new Object();
+ for (var objInd in dupeObj) {
+ retObj[objInd] = true;
+ }
+ return retObj;
+}
+
+function browserFun() {
+ // Browser fun.
+ if (window.ActiveXObject) {
+ ie = this[window.XMLHttpRequest ? 'ie7' : 'ie6'] = true;
+ } else if (window.opera) {
+ opera = true;
+ } else if (document.childNodes && !document.all && !navigator.taintEnabled) {
+ safari = true;
+ } else if (document.getBoxObjectFor != null) {
+ gecko = true;
+ }
+}
+
+function _cel(name) {
+ return document.createElement(name);
+}
+
+function _gel(name) {
+ return document.getElementById(name);
+}
+
+function addEvent(a,b,c,d) {
+ if (a.addEventListener) {
+ a.addEventListener(b,c,d?true:false);
+ } else if(a.attachEvent) {
+ a.attachEvent('on'+b,c);
+ } else{
+ a['on'+b]=c;
+ }
+}
+
+browserFun();