
/*** BEGIN GOOGLE ANALYTICS ***********************************************/
	  var _gaq = _gaq || [];

	  _gaq.push(['_setAccount', 'UA-12843370-1']);
	  _gaq.push(['_setDomainName', 'none']);
	  _gaq.push(['_setAllowLinker', true]);
	  _gaq.push(['_setAllowHash', false]);
	  _gaq.push(['_trackPageview']);
 
	  (function() {
	    var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
	    ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
	    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
	  })();

/*** END GOOGLE ANALYTICS *************************************************/

// create "namespaces" if they don't already exist
if(!I1) var I1 = {};
if(!I1.Store) I1.Store = {};
if(!I1.Store.KCI) I1.Store.KCI = {};

// customizations
I1.Store.KCI.Plackers = {

	initialize: function() {

		// after DOM loads (before Window loads)
		document.observe('dom:loaded', this.change_category_links.bind(this));
		document.observe('dom:loaded', this.hide_all_categories_link.bind(this));
		document.observe('dom:loaded', this.replace_thumbnail_with_full_image.bind(this));
		// document.observe('dom:loaded', this.get_tab_navigation.bind(this));
		document.observe('dom:loaded', this.get_product_description.bind(this));
		document.observe('dom:loaded', this.hide_coming_soon_category_links.bind(this));
		document.observe('dom:loaded', this.hide_credit_card_logos.bind(this));
		document.observe('dom:loaded', this.hide_foreign_countries.bind(this));
		document.observe('dom:loaded', this.override_home_button.bind(this));
		document.observe('dom:loaded', this.override_continue_button.bind(this));
		document.observe('dom:loaded', this.override_page_title.bind(this));
		document.observe('dom:loaded', this.add_authorize_net_logo.bind(this));
		document.observe('dom:loaded', this.text_changes.bind(this));
		document.observe('dom:loaded', this.add_custom_steps.bind(this));
	},

	text_changes: function(){

		// add Home link over logo
		$('banner').insert({
			top: new Element('a', {
				id: 'logo-link',
				href: 'http://www.plackers.com/'
			})
		});

		if(this._isCartPage()) {
			$('cart-header').update('Your Shopping Cart');

			document.title = 'Plackers Online Store ~ Your Shopping Cart';

			var rowNum = $('cart-body').select('tr.row-odd td')[0];
			rowNum.addClassName('row-num');
			rowNum.next().addClassName('row-num-next');
		}

		if(this._isCheckoutPage()) {
			$('checkout-header').update('Shipping & Payment Information');
			$('payment').update('Payment Information');
			$$('button.checkout > span')[0].update('Continue');

			$('shopping-cart-information').select('tbody')[0].insert({
				top: '<tr><td colspan="5"><h2 id="summary">Order Summary</h2></td></tr>'
			});

			$$('.tooltips').each(function(element){
				element.observe('click', function(e){
					e.stop();
					return false;
				});
			});

			$('grand-total').insert({
				top: '<a href="cart-view.asp" class="edit-order">Edit Order</a>'
			});

			$('shipping-information').select('tbody td.label')[0].addClassName('optional');

			$('checkout-form').select('td.label').each(function(label){
				label.update(label.innerHTML.replace('*', ''));

                		if(label.innerHTML.substring(label.innerHTML.length - 1) != ':') {
		                    label.update(label.innerHTML + ':');
				}
			});

			var rowNum = $('shopping-cart-information').select('tbody tr.row-odd td')[0];
			rowNum.addClassName('row-num');
			rowNum.next().addClassName('row-num-next');
		}

		if(this._isOrderConfirmationPage()) {
			$('confirmation-header').update('Thank You');

			document.title = 'Thank You ~ Your Plackers Online Order is Complete';

			$('shopping-cart-information').select('tbody')[0].insert({
				top: '<tr><td colspan="5"><h2 id="summary">Order Summary</h2></td></tr>'
			});

			$('conf-wrap').select('p').invoke('hide');

			$('conf-wrap').insert({
				top:	'<h3 id="thanks-subheader">Thanks for your order!</h3>'
					+ '<p>Thank you for shopping with Plackers. We appreciate your business and are certain you will be happy with your purchase today.</p>'
					+ '<p>Please take note of your order number below.</p>',

				bottom:	'<p>An automated email with a full receipt of your order has been deleivered to the email address you provided.</p>'
					+ '<p>If you ever have any questions or concerns about your order, or about any of our Plackers products, please contact Customer Service at 1.877.PLACKER (752-2537).</p>'
			});

			var rowNum = $('shopping-cart-information').select('tbody tr.row-odd td')[0];
			rowNum.addClassName('row-num');
			rowNum.next().addClassName('row-num-next');

			/*** BEGIN GOOGLE ANALYTICS ***********************************************/

				var orderNoID = this.location().split("&ordernoid=")[1];
				new Ajax.Request('/kci/udr/ranpl/storefront/javascripts/GoogleAnalyticsThankYou.js.asp?OrderNoID=' + orderNoID, {
					onComplete: function(response){
						response.responseText.evalScripts();
					}
				});

			/*** END GOOGLE ANALYTICS *************************************************/

		}

		if(this._isLoginPage()) {
			$('login-header').update('Sign In');
			$('login-form').select('legend')[0].update('Yes, retrieve my Account Information');

			document.title = 'Shop Plackers ~ Step #1) Sign In';

			$('login-form').insert(''
				+ '<div id="or">(or)</div>\n'
				+ '<fieldset>\n'
				+ '<legend>No, I do not have an Account</legend>\n'
				+ '<p>You will have the opportunity to save your information and create an account at the next step of checkout.</p>\n'
				+ '</fieldset>\n'
			);

			if(Prototype.Browser.IE) {
				$('login-form').select('legend').invoke('addClassName', 'ie');
				$('login-form').select('a.button').invoke('addClassName', 'ie');
			}
		}

		if(this._isRegisterPage()) {
			$('contact-middlename-label').up().hide();
			$('contact-cell-phone-label').up().hide();

			$$('button > span')[0].update('Continue');

			document.title = 'Shop Plackers ~ Step #2) Create an Account';

			$('name').insert({
				top: '<h2 id="contact-header">Contact Information</h2>'
			});

			$('username').insert({
				top: '<h2 id="username-header">Select An Account Name And Password</h2>'
			});

			$('contacts').select('label[for=contact-company]')[0].addClassName('optional');

			$('container').select('label').each(function(label){
				label.update(label.innerHTML.replace('*', ''));

                		if(label.innerHTML.substring(label.innerHTML.length-1) != ':') {
		                    label.update(label.innerHTML + ':');
				}
			});

			$('CountryID').up().hide();

			$('rep-account-name-label').update('Enter a Username');
			$('address').select('label[for=contact-zip]')[0].update('ZIP Code');
		}



		if(this._isCheckoutPostPage()) {
			var errWrap = new Element('div', { id: 'err-wrap' });
			$('container').insert({ top: errWrap });

			var messages = $('container').select('div[id=message-box]');
			messages.each(function(message){
				message.remove();
				errWrap.insert(message);
			});
			
			var backs = $('container').select('a.button.back');
			backs.invoke('hide');

			var lastBack = backs[backs.length - 1];
			lastBack.remove();
			errWrap.insert(lastBack.show());

			$('container').insert({
				top: '<h1 id="err-header">Error</h1>'
			});
		}

		var toolbar = $('tool-bar');
		if(this._isCartPage() || this._isOrderConfirmationPage()) {
			toolbar.insert(
				'<ul id="nav">'
				+ '<li><a href="http://plackers.com/about-plackers-dental-flossers.asp" onclick="_gaq.push([\'_link\', \'http://plackers.com/about-plackers-dental-flossers.asp\']); return false;" id="about-us">about us</a></li>'
				+ '<li id="product-drop">'
				+ '<a href="http://plackers.com/Flossers/index-dental-flossers.asp" onclick="_gaq.push([\'_link\', \'http://plackers.com/Flossers/index-dental-flossers.asp\']); return false;" id="products">products</a>'
				+ '<ul>'
				+ '<li>'
				+ '<a href="http://plackers.com/Flossers/index-dental-flossers.asp" onclick="_gaq.push([\'_link\', \'http://plackers.com/Flossers/index-dental-flossers.asp\']); return false;">Dental Flossers</a>'
				+ '<ul>'
				+ '<li><a href="http://plackers.com/Flossers/floss-micro-mint-flossers.asp" onclick="_gaq.push([\'_link\', \'http://plackers.com/Flossers/floss-micro-mint-flossers.asp\']); return false;">Micro Mint Flossers</a></li>'
				+ '<li><a href="http://plackers.com/Flossers/floss-gentle-fine-flossers.asp" onclick="_gaq.push([\'_link\', \'http://plackers.com/Flossers/floss-gentle-fine-flossers.asp\']); return false;">Gentle Fine Flossers</a></li>'
				+ '<li><a href="http://plackers.com/Flossers/floss-twin-line-whitening-flossers.asp" onclick="_gaq.push([\'_link\', \'http://plackers.com/Flossers/floss-twin-line-whitening-flossers.asp\']); return false;">Twin-Line Whitening</a></li>'
				+ '<li><a href="http://plackers.com/Flossers/floss-right-angle-whitening-flossers.asp" onclick="_gaq.push([\'_link\', \'http://plackers.com/Flossers/floss-right-angle-whitening-flossers.asp\']); return false;">Whitening Right Angle</a></li>'
				+ '<li><a href="http://plackers.com/Flossers/floss-kids-flossers.asp" onclick="_gaq.push([\'_link\', \'http://plackers.com/Flossers/floss-kids-flossers.asp\']); return false;">Kids Flossers</a></li>'
				+ '</ul>'
				+ '</li>'
				+ '<li>'
				+ '<a href="http://plackers.com/Flossers/prod-dental-pics-accessories.asp" onclick="_gaq.push([\'_link\', \'http://plackers.com/Flossers/prod-dental-pics-accessories.asp\']); return false;">Dental Accessories</a>'
				+ '<ul>'
				+ '<li><a href="http://plackers.com/Flossers/accs-dental-brushes.asp" onclick="_gaq.push([\'_link\', \'http://plackers.com/Flossers/accs-dental-brushes.asp\']); return false;">Dental Brushes</a></li>'
				+ '<li><a href="http://plackers.com/Flossers/accs-angle-dental-brushes.asp" onclick="_gaq.push([\'_link\', \'http://plackers.com/Flossers/accs-angle-dental-brushes.asp\']); return false;">Angle Brushes</a></li>'
				+ '<li><a href="http://plackers.com/Flossers/accs-tongue-cleaner.asp onclick="_gaq.push([\'_link\', \'http://plackers.com/Flossers/accs-tongue-cleaner.asp\']); return false;">Tongue Cleaner</a></li>'
				+ '<li><a href="http://plackers.com/Flossers/accs-floss-threaders.asp" onclick="_gaq.push([\'_link\', \'http://plackers.com/Flossers/accs-floss-threaders.asp\']); return false;">Floss Threaders</a></li>'
				+ '<li><a href="http://plackers.com/Flossers/accs-dental-picks-tools.asp" onclick="_gaq.push([\'_link\', \'http://plackers.com/Flossers/accs-dental-picks-tools.asp\']); return false;">Dental Tools</a></li>'
				+ '</ul>'
				+ '</li>'
				+ '<li><a href="http://plackers.com/Flossers/prod-teeth-grinding-guards.asp" onclick="_gaq.push([\'_link\', \'http://plackers.com/Flossers/prod-teeth-grinding-guards.asp\']); return false;">Teeth Grinding Guards</a></li>'
				+ '</ul>'
				+ '</li>'
				+ '<li><a href="http://plackers.com/oral-health-dental-hygiene-tips.asp" onclick="_gaq.push([\'_link\', \'http://plackers.com/oral-health-dental-hygiene-tips.asp\']); return false;" id="oral-health-tips">oral health tips</a></li>'
				+ '<li><a href="http://plackers.com/faqs-why-floss-use-flossers.asp" onclick="_gaq.push([\'_link\', \'http://plackers.com/faqs-why-floss-use-flossers.asp\']); return false;" id="faqs">faqs</a></li>'
//				+ '<li><a href="http://plackers.com/kids-dental-health-flosser-safety.asp" onclick="_gaq.push([\'_link\', \'http://plackers.com/kids-dental-health-flosser-safety.asp\']); return false;" id="kid-safe">kid-safe</a></li>'
				+ '<li><a href="http://plackers.com/contact-us.asp" onclick="_gaq.push([\'_link\', \'http://plackers.com/contact-us.asp\']); return false;" id="contact-us">contact us</a></li>'
				+ '</ul>'
			);
		}

		var footer = $('footer');
		if(footer) footer.update('<span class="inner-footer">' + footer.innerHTML + '</span>');

		var altnav = $('alt-nav');
		if(altnav) altnav.update('<span class="inner-alt-nav">' + altnav.innerHTML + '</span>');

//		altnav.insert(
//			'<div class="row-1">'
//			+ 'Follow us | '
//			+ '<a href="#"><img src="../../UDR/ranpl/storefront/images/icon-facebook.gif" alt="Facebook" /></a> | '
//			+ '<a href="#"><img src="../../UDR/ranpl/storefront/images/icon-twitter.gif" alt="Twitter" /></a> | '
//			+ '</div>'
//		);

		if(this._isCartPage() || this._isOrderConfirmationPage()) {
			altnav.insert(
				'<div class="row-2">'
				+ '<a href="http://plackers.com/about-plackers-dental-flossers.asp" onclick="_gaq.push([\'_link\', \'http://plackers.com/about-plackers-dental-flossers.asp\']); return false;">About Plackers</a> | '
				+ '<a href="http://plackers.com/Flossers/index-dental-flossers.asp" onclick="_gaq.push([\'_link\', \'http://plackers.com/Flossers/index-dental-flossers.asp\']); return false;">Dental Flossers &amp; Accessories</a> | '
				+ '<a href="http://plackers.com/oral-health-dental-hygiene-tips.asp" onclick="_gaq.push([\'_link\', \'http://plackers.com/oral-health-dental-hygiene-tips.asp\']); return false;">Oral Health Tips</a> | '
				+ '<a href="http://plackers.com/faqs-why-floss-use-flossers.asp" onclick="_gaq.push([\'_link\', \'http://plackers.com/faqs-why-floss-use-flossers.asp\']); return false;">Flossers FAQs</a> | '
//				+ '<a href="http://plackers.com/kids-dental-health-flosser-safety.asp" onclick="_gaq.push([\'_link\', \'http://plackers.com/kids-dental-health-flosser-safety.asp\']); return false;" class="last">Kids Safe Flossers</a> | '
				+ '</div>'
			);
		}

		altnav.insert(
			'<div class="row-3">'
			+ '<a href="http://plackers.com/contact-us.asp" onclick="_gaq.push([\'_link\', \'http://plackers.com/contact-us.asp\']); return false;">Contact Us</a> | '
//			+ '<a href="http://plackers.com/customer-support.asp" onclick="_gaq.push([\'_link\', \'http://plackers.com/customer-support.asp\']); return false;">Customer Support</a> | '
			+ '<a href="http://plackers.com/privacy-policy.asp" onclick="_gaq.push([\'_link\', \'http://plackers.com/privacy-policy.asp\']); return false;">Privacy Policy</a> | '
			+ '<a href="http://plackers.com/Dental-Professionals/default.asp" onclick="_gaq.push([\'_link\', \'http://plackers.com/Dental-Professionals/default.asp\']); return false;">Dental Professionals</a> | '
			+ '<a href="http://plackers.com/site-map-plackers-flossers.asp" onclick="_gaq.push([\'_link\', \'http://plackers.com/site-map-plackers-flossers.asp\']); return false;">Site Map</a> | '
			+ '<a href="http://plackers.com/" onclick="_gaq.push([\'_link\', \'http://plackers.com/\']); return false;">Home</a> | '
			+ '</div>'
		);

		altnav.insert(
			'<div class="row-4">'
			+ '&copy; Ranir LLC ' + new Date().getFullYear()
			+ '</div>'
		);

		altnav.insert(
			'<div class="row-5">'
			+ '<a href="#"><img src="../../UDR/ranpl/storefront/images/verisign-logo.gif" alt="Verisign"></a>'
			+ '</div>'
		);

		var h1 = $$('#container h1')[0];
		if(h1) h1.update('<span class="inner-header">' + h1.innerHTML + '</span>');

		var h2register = $$('#container h2#register')[0];
		if(h2register) h2register.update('<span class="inner-header">' + h2register.innerHTML + '</span>');

		var h2forgot = $$('#container h2#forgot-password')[0];
		if(h2forgot) h2forgot.update('<span class="inner-header">' + h2forgot.innerHTML + '</span>');

		var h2msgbox = $$('#container #message-box h2')[0];
		if(h2msgbox) h2msgbox.update('<span class="inner-header">' + h2msgbox.innerHTML + '</span>');

		$('banner').insert(
			'<a href="/kci/storefront/user/cart-view.asp" id="view-cart-button">Shopping Cart</a>'
		);

		if(this._isOrderConfirmationPage()) {
			$('view-cart-button').addClassName('thanks');
		}
	},

	add_custom_steps: function(){
		if(this._isRegisterPage() || this._isForgotPasswordPage() || this._isCheckoutPage() || this._isLoginPage() || this._isOrderConfirmationPage()) {
			var steps = [
				'../../UDR/ranpl/storefront/images/steps/01-cart-sign-in-',
				'../../UDR/ranpl/storefront/images/steps/02-cart-account-info-',
				'../../UDR/ranpl/storefront/images/steps/03-cart-sign-shipping-',
				'../../UDR/ranpl/storefront/images/steps/04-cart-thank-you-'
			];

			$('container').insert({
				top: '<div id="steps-custom"></div>'
			});

			for(var s = 0; s < steps.length; s++) {
				var toggle = 'off';
				if(s == 0 && this._isLoginPage()) toggle = 'on';
				if(s == 0 && this._isForgotPasswordPage()) toggle = 'on';
				if(s == 1 && this._isRegisterPage()) toggle = 'on';
				if(s == 2 && this._isCheckoutPage()) toggle = 'on';
				if(s == 3 && this._isOrderConfirmationPage()) toggle = 'on';

				$('steps-custom').insert('<img src="' + steps[s] + toggle + '.gif" />');
			}
		}
	},

	change_category_links: function() {
		var categories = $$('#category a');
		if(categories.length == 0) return;

		categories[1].href = '/kci/udr/ranpl/storefront/consumer.asp';
		categories[2].href = '/kci/udr/ranpl/storefront/dentist.asp';
	},

	hide_all_categories_link: function() {
		$$('#category ol li:first-child').invoke('hide');
	},

	replace_thumbnail_with_full_image: function() {
		if(!this._isProductPage()) return;

		var area = $('product-image');
		area.setStyle({ 'width' : 'auto', 'border' : '0' });
		area.down('span').setStyle({ 'display' : 'inline' });
		area.down('img').src = $('zoom').remove().readAttribute('href');
	},

	get_tab_navigation: function() {
		new Ajax.Updater('banner', '/kci/udr/ranpl/storefront/tabs.asp?dt=' + escape(new Date().toString()), {
			method: 'POST',
			insertion: 'top',
			onComplete: this.add_dentist_stylesheet.bind(this)
		});
	},

	get_product_description: function() {
		if(!this._isProductPage()) return;

		var productID = document.forms['product-add'].ProductID.value; // because this hidden field doesn't have an ID

		// instead of Updater, use Request + Success in case the url doesn't exist
		new Ajax.Request('/kci/udr/ranpl/storefront/descriptions/' + productID + '.html', {
			method: 'GET',
			onSuccess: function(response){

				// replace existing P tag with a DIV because Plackers uses "rich text" for the description
				var desc = new Element('div', { id: 'product-description' }).update(response.responseText);
				$('product-description').replace(desc);
				$('product-description').setStyle({ clear: 'both' });
	
			}
		});
	},

	hide_coming_soon_category_links: function() {
		if(!this._isCategoryPage()) return;

		var soon = $$('#content h3').find(function(element){
			return element.innerHTML.toLowerCase() == 'coming soon';
		});

		if(!soon) return;

		soon.next().select('a').each(function(link){
			link.writeAttribute('href', '#');
			link.setStyle({ cursor: 'default' });
		});
	},

	hide_credit_card_logos: function() {
		if(!this._isCheckoutPage()) return;

		// loop through credit card images
		$$('#accepted-cc img').each(function(img){

			// hide cards based on their alt attribute
			var company = img.alt.toLowerCase();
			if(company == 'american express' || company == 'discover card') img.remove();
		});
		
		$('ShipMethodServiceID').value = 158;
	},

	hide_foreign_countries: function() {
		if(!this._isCheckoutPage()) return;

		// loop through Country fields
		['billing-CountryID', 'shipping-CountryID'].each(function(field){

			// get dropdown and find usa
			var drop = $(field);
			var usa = drop.select('option[value=0]')[0];

			// clear dropdown and add only usa
			drop.options.length = 0;
			drop.options[0] = new Option(usa.text, usa.value, true);
		});
	},

	add_dentist_stylesheet: function() {
		var tabs = $('tabs');
		if(!tabs || !tabs.hasClassName('dentist')) return;

		var css = '/kci/udr/ranpl/storefront/stylesheets/client_d.css';
		if(document.createStyleSheet) {
			document.createStyleSheet(css); // for IE
		} else {
			var sheet = new Element('link', { rel: 'stylesheet', href: css });
			$$('head')[0].insert(sheet);
		}
	},

	override_home_button: function() {
		var btn = $('home-submit-button');
		if(!btn) return;

		btn.observe('click', function(e){
			document.location.href = $$('#tabs a')[1].href;
			e.stop();
		});
	},

	override_continue_button: function() {
		if(!this._isCartPage()) return;

		var btns = $$('a.button.link');
		if(btns.length == 0) return;
btns.invoke('remove');
		[btns[0]].each(function(btn){
			btn.writeAttribute('href', 'http://plackers.com/Flossers/index-dental-flossers.asp?_s=' + new Date().getTime());

			// btn.removeClassName('button');
			Event.observe(window, 'load', function(){
				// btn.addClassName('button');
				var a = new Element('a', { href: btn.href, className: btn.className }).update('Continue Shopping');

				a.observe('click', function(e){
					document.location.href = 'http://plackers.com/Flossers/index-dental-flossers.asp?_s=' + new Date().getTime();
					e.stop();
				});

				$('cart-form').insert(a);
			});

			// btn.observe('click', function(e){
			//	//document.location.href = $$('#cart-details-information a.link')[1].href;
			//	document.location.href = 'http://plackers.com/Flossers/index-dental-flossers.asp?_s=' + new Date().getTime();
			//	e.stop();
			// });
		});
	},

	override_page_title: function() {
		document.title = 'Plackers';
	},
	
	add_authorize_net_logo: function() {
	    $('alt-nav').innerHTML = $('alt-nav').innerHTML + 
	        '<!-- (c) 2005, 2009. Authorize.Net is a registered trademark of CyberSource Corporation --> ' +
            '<div class="AuthorizeNetSeal"> ' +
                '<script type="text/javascript" language="javascript">' +
                    'var ANS_customer_id="f753f687-aea0-4d84-8778-4c8a5d78e470";' +
                '</script> ' +
                '<script type="text/javascript" language="javascript" src="https://verify.authorize.net/anetseal/seal.js" ></script> ' +
                '<a href="http://www.authorize.net/" id="AuthorizeNetText" target="_blank">Credit Card Processing</a> ' +
            '</div>';
	},

	location: function() {
		return document.location.href.toLowerCase();
	},

	_isCartPage: function() {
		return this.location().indexOf('/storefront/user/cart-view.asp') >= 0;
	},

	_isCheckoutPage: function() {
		return this.location().indexOf('/storefront/user/checkout.asp') >= 0;
	},

	_isCheckoutPostPage: function() {
		return this.location().indexOf('/storefront/user/checkout-post.asp') >= 0;
	},

	_isProductPage: function() {
		return this.location().indexOf('/storefront/product.asp') >= 0;
	},

	_isCategoryPage: function() {
		return this.location().indexOf('/storefront/category.asp') >= 0;
	},

	_isLoginPage: function() {
		return this.location().indexOf('/storefront/user/login.asp') >= 0;
	},

	_isRegisterPage: function() {
		return this.location().indexOf('/storefront/user/register.asp') >= 0;
	},

	_isRegisterPostPage: function() {
		return this.location().indexOf('/storefront/user/register-post.asp') >= 0;
	},

	_isForgotPasswordPage: function() {
		return this.location().indexOf('/storefront/user/forgot-password.asp') >= 0;
	},

	_isOrderConfirmationPage: function() {
		return this.location().indexOf('/storefront/user/order-confirmation.asp') >= 0;
	}
}

I1.Store.KCI.Plackers.initialize();

startList = function() {
if (document.all) {
//navRoot = getElementsByClassName(document, "*", "splash_nav")[0];
 navRoot = document.getElementById("nav");
if(!navRoot) return;

for (i=0; i<navRoot.childNodes.length; i++) {
node = navRoot.childNodes[i];
if (node.nodeName=="LI") {
node.onmouseover=function() {
this.className+=" over";
  }
  node.onmouseout=function() {
  this.className=this.className.replace
	(" over", "");
   }
   }
  }
 }
}
window.onload=startList;
