Well this script wroks perfectly outside of the iframe. but in the iframe shadowbox seems to have trouble. I got this fare and found the error source. I seems that window.parent.Shadowbox.open([a0, a1]); can't stand together at the same time. window.parent.Shadowbox.open(a0); works but then its just one image and i want to have them in a gallery. Shadowbox.open([a0, a1]); works too but this way its inside the iframe and gets cut by the viewport.
So what i want is window.parent.Shadowbox.open([a0, a1]); to work properlly.
Does anyone have a solution or a workaround?