document.write(unescape("%3Clink href='/NR/rdonlyres/FEBAF3DD-E012-4645-9EC5-16B7A224EE0A/0/evergreen.css' rel='stylesheet' type='text/css'%3E"));

function __RRSearch(object) { 
var field = document.getElementById("searchbox_rr");
        if (field.value.length != 0) { 
        object.href = object.href + "?q=" + escape(field.value) + "&tp=gs";
        }
}

function __RRSearchText(e) { 
var keynum = 0;
        if(window.event) { 
        keynum = window.event.keyCode 
        } else if(e.which) {
        keynum = e.which 
        }
        
        if (keynum == 13) {
        var field = document.getElementById("link_rr");
        __RRSearch(field);
        window.location = field.href;
        return false;
        }
return true;
}

function __RRCatList(object) { 
var field = document.getElementById("rr_catlist");
        if (field.value.length != 0) { 
        object.href =  field.value;
        }
}

function mycarousel_initCallback(carousel) {
        jQuery('.jcarousel-control a').bind('click', function() { carousel.scroll(jQuery.jcarousel.intval(jQuery(this).text())); return false; } );
        jQuery('.jcarousel-scroll select').bind('change', function() { carousel.options.scroll = jQuery.jcarousel.intval(this.options[this.selectedIndex].value); return false; } );
        jQuery('#mycarousel-next').bind('click', function() { carousel.next(); return false; } );
        jQuery('#mycarousel-prev').bind('click', function() { carousel.prev(); return false; } );
};

jQuery(document).ready( function() { jQuery("#mycarousel").jcarousel({ scroll: 1, initCallback: mycarousel_initCallback, buttonNextHTML: null, buttonPrevHTML: null } ); } );

/*LEFT NAV*/
$(document).ready(function() {
  var url = location.pathname;
  if(url.indexOf('/wpp/marketing/') > -1) {
  
$('#navcontainer').append('<div class="evergreen_div_h"><img src="/images/spacer.gif" alt="-" height="1" width="1"><\/div>');
$('#navcontainer').append('<ul><li><a href="/wpp/marketing/atticus/" id="rr_atticus" title="Atticus Journal">Atticus Journal<\/a><\/li><li><a href="/wpp/marketing/awards/" id="rr_awards" title="Awards">Awards<\/a><\/li><li><a href="/wpp/marketing/blogs/" id="rr_blogs" title="Blogs">Blogs<\/a><\/li><li><a href="/wpp/marketing/books/" id="rr_books" title="Books">Books<\/a><\/li><li><a href="/wpp/marketing/hottopics/" id="rr_hottopics" title="Hot Topics">Hot Topics<\/a><\/li><li><a href="/wpp/marketing/onscreen.htm" id="rr_onscreen" title="OnScreen">OnScreen<\/a><\/li><li><a href="/wpp/marketing/reportsstudies/" id="rr_reportsstudies" title="Reports &amp; Studies">Reports &amp; Studies<\/a><\/li><\/ul>');

  if(url.indexOf('/atticus/') > -1) { $("#rr_atticus").attr("id","current-child"); }
  if(url.indexOf('/awards') > -1) { $("#rr_awards").attr("id","current-child"); }
  if(url.indexOf('/blogs') > -1) { $("#rr_blogs").attr("id","current-child"); }
  if(url.indexOf('/books') > -1) { $("#rr_books").attr("id","current-child"); }
  if(url.indexOf('/hottopics') > -1) { $("#rr_hottopics").attr("id","current-child"); }
  if(url.indexOf('/onscreen.htm') > -1) { $("#rr_onscreen").attr("id","current-child"); }
  if(url.indexOf('/reportsstudies') > -1) { $("#rr_reportsstudies").attr("id","current-child"); }
  
}
  
});
