Put two sets of codes into your web page. The FIRST set is exactly as I have shown in the sample with: loadTwo as the function name.
<script language="javascript">
function loadTwo(iframe1URL, iframe2URL)
{
parent.FRAME1.location.href=iframe1URL
parent.FRAME2.location.href=iframe2URL
}
</script>
The second set will use a different function name and definition: loadTwoB
And the code would look like this:
<script language="javascript">
function loadTwoB(iframe3URL, iframe4URL)
{
parent.GALLERY1.location.href=iframe3URL
parent.GALLERY2.location.href=iframe4URL
}
</script>
And your links would look like this:
<a href="javascript:loadTwoB('special3.htm','special4.htm')">special link</a>