Welcome! Log In | Register
$.extend(pf, { omniture: { vars : {} } }); s = mdp && mdp.s || {}; s.server="photos.fitnessmagazine.com"; s.prop5="PhotoFaves"; s.prop18="fitnessmagazine"; s.prop19="Other"; s.prop20="http://photos.fitnessmagazine.com/photos/"; s.pageName="PhotoFaves:Main"; s.channel="Main"; s.prop2="PhotoFaves:Main"; s.eVar9="PhotoFaves:Main"; s.eVar14="Main"; pf.omniture.run = function (photoId, type) { var new_vals = {}; if (type) { new_vals.pageName = pf.omniture.vars.originalPageName; switch (type) { case 'captcha': $.each(pf.omniture.vars.captchaVars, function(i, v) { eval("new_vals." + i + " = '" + v + "'"); }); break; case 'confirmation': $.each(pf.omniture.vars.confirmationVars, function(i, v) { eval("new_vals." + i + " = '" + v + "'"); }); break; default: break; } if (typeof new_vals.pageName == 'string') { new_vals.pageName = new_vals.pageName.replace(pf.omniture.vars.originalPhotoId, photoId); } } s_code = s.t(eval(new_vals)); };