toggle

toggle

Hi,
I want to have the toggle to call my new pop up page and passing id into this page so I an do my query to display all details.  My code below isn't do what I want, can you pls help?
 
<script>

//toggle
$(function(){
    $('.myClass').hide();
    $('.show').toggle(function(){
        var showdiv = $(this).attr("id");
        $('.' + showdiv).slideDown("fast");
        $(this).attr("src","images/minus.jpg" );
    },function(){
        var showdiv = $(this).attr("id");
        $('.' + showdiv).slideUp("fast");
        $(this).attr("src", "images/plus.jpg" );
    });
 
 
});













//pop up
 function openWin(id) {
    window.open("details.cfm?id=" + id, "_blank","toolbar=yes, scrollbars=yes, resizable=yes, top=300, left=600, width=500, height=600");
}


</script>
<cfloop query="qList">
<a href="javascript: void(0);" onclick="openWin(#id#);"><img id="show1" class="show" src="images/plus.jpg" border="0"></a>#nam#
</cfloop>