var allTables = document.getElementsByTagName("table");
for (var i=0; i<allTables.length; i++)
if (allTables[i].className == "svlinks")
var linkTable = allTables[i];
var galleryLinks = linkTable.getElementsByTagName("a");
for (var i=0; i<galleryLinks.length; i++)
galleryLinks[i].target = "_blank";
window.onload = setTarget;
It could be more elegant no doubt but I've tried to keep it simple. It just looks for the (first) table with the class "svlinks" and sets the target attribute of all the links inside the table. I'm assuming that you are using the default table layout for the page not the optional div layout.
You could also set the target attribute to a window name instead of _blank if you want all your galleries to open in the same window:
galleryLinks[i].target = "mywindow";
SimpleViewer Support Team.