Sure, for your onopenclose() event inside the initialization code of the script, remove the part in red:
Code:
onopenclose:function(header, index, state, isuseractivated){ //custom code to run whenever a header is opened or closed
if (state=="block" && isuseractivated==true){ //if header is expanded and as the result of the user initiated action
myiframe.location.replace(header.getAttribute('href'))
}
}
This causes the header to load the designated page inside the IFRAME both when it's expanded and when it's contracted, instead of just the former.
Bookmarks