//APPLICATION LOGIC
jQuery(document).ready(function() {

//Set the div zones for content
var contextualZones = new Array('#primary');
//Get the rendered html code from the div 
var x = jQuery('#contextual1 object').html();
if (x == null) x = jQuery('#contextual1').html();

//If OBJECT exists then continue
if (x != null) {
  
  //replace all keys with span 
  
   for ( j=0; j<contextualZones.length; j++ ) 
   jQuery(contextualZones[j]).highlightArray(keywords,'highlight_first');
    

  //put some bling into it  
  jQuery(".highlight_first").css("border-bottom","1px solid #0F497C");
  jQuery(".highlight_first").css("color","#009900");
  jQuery(".highlight_first").css("padding-bottom","1px");
  
  //disable links only for the keyword
  jQuery("a .highlight_first").click(function(){return false; });

  //activate the power bubble
  jQuery().SetBubblePopup({cssClass: [ ".highlight_first" ],innerHtml: x});
  
}

});

