if(window.location == window.parent.location) { jQuery('head').append(''); jQuery('body').prepend(''); jQuery("#stickynav ul a").each(function () { m = jQuery(this).attr('href').match(/^https?:\/\/([^/]+)/); if(m[1] == top.location.hostname) { jQuery(this).closest('li').addClass('navthis'); } }); }