function folTrackingSystem_241_Handler(folTrackingSystemInstanceId) { if(!document.getElementById('jquerydownloaded')) { var _jqueryjs = (("https:" == document.location.protocol) ? "https://" : "http://"); document.write(unescape("%3Cscript src='" + _jqueryjs + "ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js' type='text/javascript'%3E%3C/script%3E")); } if(!document.getElementById('nuconomydownloaded')) { var _nucjs = (("https:" == document.location.protocol) ? "https://sslf" : "http://f"); document.write(unescape("%3Cscript src='" + _nucjs + ".nuconomy.com/n.js' type='text/javascript'%3E%3C/script%3E")); } return function() { jQuery.noConflict(); jQuery(document).ready( function () { try { var pageType=document.getElementById('TrackingSystem_' + folTrackingSystemInstanceId + '_NuconomyPageType').innerHTML; NUCONOMY.ProjectToken = "c38d5f23-b2"; var title = ""; var activityid = 1; var value = 1; var imagesrc=""; var category =""; var tags = ""; var contentid =""; var contenttype = 379; // other pages that we don't know of in case we've hit an unknown page, this shouldn't happen var cookie; if (pageType=="Product Detail Pages"){ title = jQuery("span[class='prodheader']:first").html(); value = jQuery("span[class='priceshown']:first").text().match("[0-9]+.[0-9]+")[0]; contentid = jQuery("span[class='smallgreytext']:first").html(); imagesrc = jQuery("td[colspan=2] > img")[1].src; cookie = new NUCCookie("LastCategory"); if (typeof( cookie.LastCategory ) != "undefined"){ category = cookie.LastCategory; tags = category; } contenttype = 295; activityid = 1057; NUCONOMY.Product = {ContentId: contentid, ContentTitle: title, Price: value, ImageUrl: imagesrc, URL: document.location.href}; } else if (pageType == "Category Index Pages"){ title = jQuery("span[class='catheader']:first").html(); contentid = jQuery("span[class='catheader']:first").html(); contenttype = 309; activityid = 1; category = title; tags = title; cookie = new NUCCookie("LastCategory"); cookie.LastCategory = contentid; cookie.store(null, "/"); } else if (pageType == "Shopping Cart Pages"){ if(jQuery('#TransactionConfirmation').length > 0) { contentid = jQuery('#TransactionOrderID').html();// Order ID value = jQuery('#TransactionTotal').html();// Total NUCONOMY.ContentTitle="Transaction"; NUCONOMY.ContentType= 303; NUCONOMY.Logger.LogActivity("", "", contentid, 1098, value); for(var i=1; i<=jQuery('#TransactionItemCount').html(); i++) { contentid = jQuery('#TransactionItem_' + i + '_ProdID').html();// SKU contenttitle = jQuery('#TransactionItem_' + i + '_ProductName').html();// Product Name category = jQuery('#TransactionItem_' + i + '_Category').html();// Category value = jQuery('#TransactionItem_' + i + '_Total').html();// Price NUCONOMY.ContentTitle=contenttitle; NUCONOMY.ContentType= 295; NUCONOMY.ActivityParameter1 = category; NUCONOMY.Tags = category; NUCONOMY.Logger.LogActivity("", "", contentid, 1062, value); } return; } contenttype = 380; //if this is not the transaction page fall back to Shopping Cart page } else if (pageType=="Home Page"){ contenttype = 376; } else if (pageType=="Account Pages"){ contenttype = 377; } else if (pageType=="Misc. Pages"){ contenttype = 378; } //for all other pages we get the defaults; NUCONOMY.ActivityParameter1 = category; NUCONOMY.Tags = tags; NUCONOMY.ContentType = contenttype; NUCONOMY.ContentTitle = title; NUCONOMY.Logger.LogActivity( "", "", contentid, activityid, value); } catch(err) { } } ) } }