var MIVA_css; var MIVA_gradient_css; var MIVA_beginTime; var MIVA_endTime; var MIVA_et; try { MIVA_loadScripts(); } catch (e) { MIVA_exception(e); } // Load the two highlighting scripts. function MIVA_loadScripts() { var MIVA_pageURL = typeof(MIVA_page) != "undefined" ? MIVA_page : document.location.href; var MIVA_js = 'http://v11.mivainline.us.miva.com/MivaLine/HighlightKeywords.js'; var MIVA_aspx = 'http://v11.mivainline.us.miva.com/MivaLine/HighlightKeywords.aspx?url=' + escape(MIVA_pageURL) + '&ip=61.247.241.253&pid=796&sub=1304&cc=us&sa=1&rkwc=10&ft=1'; MIVA_css = 'http://v11.mivainline.us.miva.com/MivaLine/HighlightKeywords.css'; MIVA_gradient_css = 'http://v11.mivainline.us.miva.com/MivaLine/gradient_us.css'; // Add the JavaScript files to the page MIVA_writeScript(MIVA_js); MIVA_writeScript(MIVA_aspx); } // Write the changes directly to the document as text rather than appending nodes to the DOM // because the document may not be fully loaded and there may not be a document.body to append to function MIVA_writeScript(url) { var script = '' + ''; document.write(script); } // Return whether debugging is enabled. function MIVA_isDebugEnabled() { return typeof(MIVA_debug) != "undefined" && MIVA_debug; } // Format and display a message based on an exception. function MIVA_exception(e) { var message = typeof(e.message) != "undefined" ? e.message : e.toString(); MIVA_alert('MIVA Line Exception: ' + message); } // Display a message if debugging is enabled. function MIVA_alert(message) { if (MIVA_isDebugEnabled()) { alert(message); } }