Adding link in rotating javascript banner
===

I have a rotating banner that I need to add links to (http://www.advancedfluids.com/2012/). Below is part of the js code. My problem getting the href to work in the index.php page.

    function change_banner(){
	
	data=xmldata[changenum];					//get current banner XML object 
	
	img=$(data).attr("src");					//retrieve variables
	href=$(data).attr("href");
	target=$(data).attr("target");
	
	$(".banner_img_href").attr("href",href);		//change variables on HTML
	$(".banner_img_href").attr("target",target);
	$("#banner_image").attr("src",img);

This is the html:

    <div class="banner">
         <div class="banner_text"><img src="images/banner_text.png"></div>
            <div class="banner_img"><img   border='0' src="images/banner_gas.png" id='banner_image' alt='Banner Image' /></div>
        </div>     
    

I have tried basic linking but no dice. Not sure where I am going wrong with this.

Thank you,

B Graves