function MM_preloadImages() { var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array(); var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i0&&parent.frames.length) { d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);} if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&iTrapped in a frame? Click here to break out of it.'); } } /******** loadParent: makes sure that some pages that are designed to be viewed within iframes are not mistakenly called as standalone pages, which would cause them to display incorrectly (missing stylesheet of the parent, et. al.). The exception is NN4 browsers, which cannot display iframes. *******/ function loadParent(parent) { if ( (top == window) && (! document.layers) && parent ) { //method 1: // use method one if you need to know which page loaded the parent //var name = "" + self.document.location; //location.href = parent + '?if=' + name.match(/[^\/]+$/); //method 2: //location.href = parent; //method 3: // use method three to avoid that irritating browser back-button problem; this gives the smoothest experience to the user document.write('\n'); } }