Hover() and position() Function to Multiple Different By ID DIVS but Same CLASS

Hover() and position() Function to Multiple Different By ID DIVS but Same CLASS

Hi, i have another question. This code:
var a = $('p a').hover(function() {
        $('#div1').toggle();
    });
$('#div1').position({my: 'left top', at: 'left bottom', of: 'a', collision: 'fit flip'}).hide();

});


shows / hides and positions a specific DIV ( by ID ) to the text link.

If i have more than one DIV , how can i globalise the hover and position function to apply for ALL DIVS with the SAME CLASS, but DIfferent ID's?

For ex. i have 2 DIVS:
<div id="div1" class="ThisDIV"> and <div id="div2" class="ThisDIV"> , and two links: link1 and link2. Is there a code for positioning and hovering the 2 DIVS one time, not writing separate lines for those DIVs? How do i diferentiate the class from the id in the hover and position functions?