/* cached (type 2) @ Thu, 09 Feb 2012 20:48:34 GMT, sid=13  */
			//JS object: objectid=11660516 datasource=icHuddersfield method=reg_footer
document.write('<!-- SiteCatalyst code version: H.17.\nCopyright 1997-2009 Omniture, Inc. More info available at\nhttp://www.omniture.com -->\n\n\n<script type=\"text/javascript\"><!--\n\nvar OMNI_DEBUG_LEVEL = 33; \n\n\n\nfunction GetURLVars()\n{\n\t\n\tvar args = new Object();\n\ta_pairs = document.location.search.split(/[?&]/);\n\tfor (i = 0; i < a_pairs.length; i ++) {\n\t\t\n\t\ta_bits = a_pairs[i].split(\'=\');\n\t\tif ((a_bits.length == 2) && (a_bits[0].length)) {\n\t\t\tif (args[a_bits[0]] == undefined) {\n\t\t\t\t\n\t\t\t\targs[a_bits[0]] = unescape(a_bits[1]);\n\t\t\t} else {\n\t\t\t\t\n\t\t\t\targs[a_bits[0]] = args[a_bits[0]] + \',\' + unescape(a_bits[1]);\n\t\t\t}\n\t\t}\n\t}\n\n\treturn args;\n}\n\nfunction GetCampaign()\n{\n\tvar urlvars = GetURLVars();\n\tvar campaignSrc;\n\tif (typeof(urlvars.campaign) != \'undefined\') {\n\t\tcampaignSrc = urlvars.campaign;\n\t} else {\n\t\tcampaignSrc =\"\";\n\t}\n\treturn campaignSrc;\n}\n\n\nvar s_account;\ns_account = s_account || \"mgntrinitymirroraggregate,tmr-ichuddersfield\";\n//--></script>\n\n<script type=\"text/javascript\"\n\tsrc=\"http://images.icnetwork.co.uk/js/stats/omniture_network_wide_code.js\"></script>\n\n<script type=\"text/javascript\" defer=\"true\"><!--\n\nvar pageName = \"\"\n\nvar _waitForSCode = function()\n{\tif (typeof s != \'undefined\')\n\t{\tdoOmniture ();\n\t} else\n\t{\tsetTimeout(\'_waitForSCode()\',100);\n\t}\n}\n_waitForSCode();\n\nfunction doOmniture ()\n\t{\n\n\n\n\nif (typeof startLoadTime != \'undefined\') {\n\tvar endLoadTime = (new Date()).getTime();\n\tvar totalLoadTime = Math.round((endLoadTime - startLoadTime) / 100) /10;\n}\nelse {\n\tvar totalLoadTime = 0;\n}\n\n\ns.channel=\"\";\ns.pageType=\"\";\ns.prop1=\"\";\ns.prop2=\"\";\ns.prop3=\"\";\ns.prop4=\"\";\n\n\ns.prop5 = \"icHuddersfield\";\ntry {\n\tvar omnitureSitename = (\n\t\t(typeof getCookieVal == \'undefined\')?getCookie:getCookieVal\n\t)(\'brandingheader_site_name\');\n\tif (omnitureSitename) s.prop5 = omnitureSitename;\n} catch(e) {\n\t\n}\n\ns.prop9=\"\"\ns.prop10=\"\"\ns.prop11=\"\"\ns.prop12=\"\"\ns.prop13=\"\"\ns.prop14=GetCampaign();\ns.prop16=\"NW\"\ns.prop18=\"\"\ns.prop19=\"\"\ns.prop21=\"NW-huddersfield\"\ns.prop24=\"\"\ns.prop27 = totalLoadTime\ns.prop30=\"\"\n\ns.hier1=\"icHuddersfield\"\n\n\ns.campaign=s.prop14\ns.state=\"\"\ns.zip=\"\"\ns.products=\"\"\ns.purchaseID=\"\"\nvar eVar1Val=\"\"\nvar eVar2Val=\"\"\nvar eVar3Val=\"\"\nvar eVar4Val=\"\"\nvar eventsList=\"\"\n\ns.prop15=\"\"\ns.prop22=s.prop23=\"\"\nif (typeof(statsPageProps)!=\'undefined\'){\n\tif (typeof(statsPageProps.productCode)!=\'undefined\')s.products=\';\'+statsPageProps.productCode\n\tif (typeof(statsPageProps.jobSearchLocation)!=\'undefined\')eVar3Val=statsPageProps.jobSearchLocation\n\tif (typeof(statsPageProps.jobSearchIndustry)!=\'undefined\')eVar4Val=statsPageProps.jobSearchIndustry\n\teventsList=statsPageProps.eventsList\n\tif (typeof(statsPageProps.videoTitle)!=\'undefined\'){\n\t\teVar2Val=s.prop23=statsPageProps.videoTitle;\n\t\n\t}\n\t/* override props if defined from header var statsPageProps */\n\tif (typeof(statsPageProps.path1) != \'undefined\') {\n\t\t\ts.prop1 = statsPageProps.path1;\n\t}\n\tif (typeof(statsPageProps.path2) != \'undefined\') {\n\t\t\ts.prop2 = statsPageProps.path2;\n\t}\n\tif (typeof(statsPageProps.path3) != \'undefined\') {\n\t\t\ts.prop3 = statsPageProps.path3;\n\t}\n\tif (typeof(statsPageProps.siteName) != \'undefined\') {\n\t\t\ts.prop5 = statsPageProps.siteName;\n\t}\n\tif (typeof(statsPageProps.region) != \'undefined\') {\n\t\ts.prop16 = statsPageProps.region;\n\t}\n\tif (typeof(statsPageProps.itemTitle) != \'undefined\') {\n\t\ts.prop19 = statsPageProps.itemTitle;\n\t}\n\tif (typeof(statsPageProps.publishingGroup) != \'undefined\') {\n\t\ts.prop21 = statsPageProps.publishingGroup;\n\t}\n\tif (typeof(statsPageProps.channel) != \'undefined\') {\n\t\ts.channel = statsPageProps.channel;\n\t}\n\tif (typeof(statsPageProps.classifiedCategory) != \'undefined\') {\n\t\tstatsClassifiedCategory = statsPageProps.classifiedCategory;\n\t}\n\tif (typeof(statsPageProps.contentCategory) != \'undefined\') {\n\t\tstatsContentCategory = statsPageProps.contentCategory;\n\t}\n\n\t\n\tif (typeof(statsPageProps.moleBusinessName) != \'undefined\') {\n\t\ts.prop26=\'Mole-Enquiry\';\n\t\ts.eVar7=statsPageProps.moleBusinessName;\n\t}\n\n\t// in case the kyte video starts playing before s is defined, then the event will be sent here\n\tif (typeof(statsPageProps.kyteEvent) != \'undefined\') {\n\t\teventsList += (eventsList ? \',\' : \'\') + statsPageProps.kyteEvent;\n\t}\n\n\t// for image gallery kyte shows\n\tif (typeof(statsPageProps.galleryName) != \'undefined\') {\n\t\ts.prop35=statsPageProps.galleryName;\n\t\ts.eVar12=statsPageProps.galleryName;\n\t}\n\t\n\t// for offers flyout\n\tif (typeof(statsPageProps.flyout) != \'undefined\') {\n\t\ts.prop36 = statsPageProps.flyout;\n\t}\n}\n\n\n\n\n\ns.events=eventsList\ns.eVar1=eVar1Val\ns.eVar2=eVar2Val\ns.eVar3=eVar3Val\ns.eVar4=eVar4Val\ns.eVar5=\"\"\n\n\ns.pageName = setOmniturePageName(pageName);\nif (typeof(statsPageProps)!=\'undefined\' && typeof(statsPageProps.pageNameSuffix)!=\'undefined\') {\n\ts.pageName += statsPageProps.pageNameSuffix; // adds a suffix if present on page.\n}\n\nif (typeof(statsClassifiedCategory) != \"undefined\") {\n\t\n\ts.prop4 = statsClassifiedCategory;\n\t\n\ts.prop18 = s.prop18 || statsClassifiedCategory;\n}\nif (typeof(statsContentCategory) != \"undefined\") {\n\ts.prop18 = statsContentCategory;\n}\n\nif (s.prop4 != \"\" && s.prop5 != \"\") s.prop12 = s.prop5 + \"_\" + s.prop4;\nif (s.prop4 != \"\" && s.prop16 != \"\") s.prop17 = s.prop16 + \"_\" + s.prop4;\nvar s_code=s.t();if(s_code)document.write(s_code);\n\n\nvar puffLinks = $(\'*[type=puff] a\');\n//Add click event\npuffLinks.click(function(){\n\t//get object id\n\tvar parentEl = $(this);\n\tvar objectId = \"\";\n\tvar containerName = \"\";\n\t\n\t//We want to find the content object on the page.\n\tdo {\n\t\tparentEl = parentEl.parent();\n\t} while (parentEl && \n\t\t\t!parentEl.attr(\'tagName\').toLowerCase().match(/(tm:)?contentobject/));\n\n\tif (!parentEl) {\n\t\ttm.logger.error([\'Puff Tracking:\', \'No parent tm:contentobject tag\'], OMNI_DEBUG_LEVEL);\n\t\treturn !tm.logger.enabled; //if debug mode don\'t follow link\n\t} else {\n\t\tobjectId = parentEl.attr(\'objectid\');\n\t}\n\t\n\t// So we now have the content object we are looking for - we continue on up the tree\n\t// to get the name of the container holding it.\n\tdo {\n\t\tparentEl = parentEl.parent();\n\t} while (parentEl && \n\t\t\t!parentEl.attr(\'tagName\').toLowerCase().match(/(tm:)?container/) );\n\n\tif (!parentEl) {\n\t\ttm.logger.error([\'Puff Tracking:\', \'no parent tm:container tag\'], OMNI_DEBUG_LEVEL);\n\t\treturn !tm.logger.enabled; //if debug mode don\'t follow link\n\t} else {\n\t\tcontainerName = parentEl.attr(\'name\');\n\t}\n\n\ttm.logger.debug([\'Puff Tracking:\', \'objectId:\', objectId, \n\t\t\t\'containerName:\', containerName, parentEl ], OMNI_DEBUG_LEVEL);\n\n\ts.eVar13 = s.pageName + \'-\' + containerName + \'-\' + objectId;\n\ts.events = \'event17\';\n\ts.t();\n\t\n\ttm.logger.info([\'Puff Tracking:\', \'Omniture event sent\' ], OMNI_DEBUG_LEVEL);\n\n\treturn tm.logger.debugLevel != OMNI_DEBUG_LEVEL; //if debug mode don\'t follow link\n});\n//Log to console if required.\ntm.logger.debug( [ \'Puff Tracking: Links\', puffLinks ], OMNI_DEBUG_LEVEL );\n\n\n}\n\n//--></script>\n<script type=\"text/javascript\"><!--\nif(navigator.appVersion.indexOf(\'MSIE\')>=0)document.write(unescape(\'%3C\')+\'\\!-\'+\'-\')\n//--></script>\n<!-- End SiteCatalyst code version: H.17. -->');
