function toggle(element, speed) {
if (document.getElementById(element).style.display == 'none') {
$(element). toggle(speed);
} else {
$(element). hide(speed);
}
}
this is suppose to show and hide pictures uploaded from mysql database according to image_id and album_id it works but all it does is toggle through the first image how can i get it to show and hide the rest...