/* 
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
 var $j = jQuery.noConflict();
    
  var count=0;
  var sval=[];


    function sitehelper_load_bio(articleid){
	ajax_url = 'index.php?option=com_user&task=bio_ajax';
	$j.ajax({
		    type: "GET",
			url: ajax_url,
			data: "&nodeid="+articleid,
                        dataType: "xml",
			async: false,
			beforeSend: function () {

		    },
			success: function(data){
                        lhref = $j(data ).text();
                   
			$j('.leaderRight').html(lhref);
                     

		    },
			error: function(msg, xx, yy){
			alert("connection error. " + msg);
                        alert (xx);
                        alert(yy);
		    }
		});
}

		$j(document).ready(function(){

                        $j(".leaderLeft a").click(function () {
                                    str  = $j(this).attr('class');
                                    $j('.leaderLeft p').css('background', 'none');
                                    $j("p#" +str).css('background', '#F3F3F3');
                                   sitehelper_load_bio(str);
                                    return false;
                                    
                                   
                                  });  
                                  
                                  $j('#pepcid #page .contentheading').html('PEPCID<sup>®</sup>');
                                  $j('#amytal-sodium #page .contentheading').html('AMYTAL<sup>®</sup> SODIUM');
                                   $j('#aopium-tincture #page .contentheading').append('<sup>®</sup>');
                                  
                                  $j('#seconal-sodium #page .contentheading').html('Seconal Sodium<sup>®</sup>');
                                  
                                  $j('li.item90 a').append('<sup>®</sup>');
                                  $j('li.item92 a').append('<sup>®</sup>');
                                  $j('li.item91 a').append('<sup>®</sup>');
                                  $j('li.item89 a').html('AMYTAL<sup>®</sup> SODIUM');
                                 
                        
                        
                });
