home *** CD-ROM | disk | FTP | other *** search
- function reloadPage()
- {
- NormalView._visible = false;
- thumbnails.gotoAndPlay(2);
- Next.gotoAndStop(1);
- Previos.gotoAndStop(1);
- Previous.enabled = curPage > 0;
- if(Previous.enabled)
- {
- Previous._alpha = 100;
- }
- else
- {
- Previous._alpha = 50;
- }
- Next.enabled = (curPage + 1) * numperpage < images.length;
- if(Next.enabled)
- {
- Next._alpha = 100;
- }
- else
- {
- Next._alpha = 50;
- }
- TITLE = TITLE.toUpperCase();
- }
- function showImage(n)
- {
- NormalView._visible = true;
- NormalView.Image.loadMovie(images[curPage * 4 + n].src);
- }
- if(!doc.loaded)
- {
- gotoAndPlay(4);
- }
- else
- {
- var images = new Array();
- section = doc.firstChild.firstChild;
- while(section != null)
- {
- if(section.nodeType == 1)
- {
- if(section.nodeName.toUpperCase() == "IMAGES")
- {
- imSection = section.firstChild;
- while(imSection != null)
- {
- if(imSection.nodeType == 1 && imSection.nodeName.toUpperCase() == "IMG")
- {
- i = images.length;
- images[i] = new Object();
- images[i].name = imSection.attributes.name;
- images[i].src = imSection.attributes.src;
- images[i].thm = imSection.attributes.thm;
- images[i].full = imSection.attributes.full;
- images[i].desc = imSection.attributes.description;
- }
- imSection = imSection.nextSibling;
- }
- }
- else if(section.nodeName.toUpperCase() == "PARAMS")
- {
- parSection = section.firstChild;
- while(parSection != null)
- {
- if(parSection.nodeType == 1)
- {
- set(parSection.nodeName,parSection.firstChild.nodeValue);
- }
- parSection = parSection.nextSibling;
- }
- }
- }
- section = section.nextSibling;
- }
- var curPage = 0;
- numperpage = Math.floor(560 / sizex) * Math.floor(400 / sizey);
- zz.gotoAndPlay(1);
- reloadPage();
- }
-