emergency: how to get the value ?

emergency: how to get the value ?



Hi, 

I am pretty new with jQuery and i am building a 3 reel slots machine. I have got the animation working but
now i can't get the value of the reels to determine wheter or not the person has win

i am trying to get the value off the div by the top offset


var k = document.getElementById("slots1").offsetTop("200").value ;


here is my js :

// JavaScript Document
//note parseInt
//note stop




//var opts = ['cherie', 'banana', 'star', 'seven,' 'bar', 'hclogo', 'cslogo'];
var slot = ['cherie','banana','star','seven','bar','hclogo','cslogo','cerie','banana','star', 'seven','bar'];




function go(){
//alert("Good luck");
addSlots($("#slots1 .wrapper"));
moveSlots1($("#slots1 .wrapper"));
addSlots($("#slots2 .wrapper"));
moveSlots2($("#slots2 .wrapper"));
addSlots($("#slots3 .wrapper"));
moveSlots3($("#slots3 .wrapper"));
win();
}

$(document).ready(
function(){
addSlots($("#slots1 .wrapper"));
addSlots($("#slots2 .wrapper"));
addSlots($("#slots3 .wrapper"));
}
);


function addSlots(jqo){
for(var i = 0; i < 15; i++){
var item = Math.floor(Math.random()*slot.length);
jqo.append("<div class='slot'>"+slot[item]+"</div>");

}
}

function moveSlots1(jqo){
var time = 6500;
time += Math.round(Math.random()*1000);
jqo.stop(true,true);

var marginTop = parseInt(jqo.css("margin-top"), 10)
marginTop -= (7 * 100)
jqo.animate(
{"margin-top":marginTop+"px"},
{'duration' : time, 'easing' : "easeOutElastic"});

}


function moveSlots2(jqo){
var time = 6500;
time += Math.round(Math.random()*2000);
jqo.stop(true,true);

var marginTop = parseInt(jqo.css("margin-top"), 16)
marginTop -= (7 * 100)
jqo.animate(
{"margin-top":marginTop+"px"},
{'duration' : time, 'easing' : "easeOutElastic"});

}


function moveSlots3(jqo){
var time = 6500;
time += Math.round(Math.random()*3000);
jqo.stop(true,true);

var marginTop = parseInt(jqo.css("margin-top"), 16)
marginTop -= (7 * 100)
jqo.animate(
{"margin-top":marginTop+"px"},
{'duration' : time, 'easing' : "easeOutElastic"});

}

function win()
{




}