home *** CD-ROM | disk | FTP | other *** search
- // Copyright (c) 1999,Y2K Maris Multimedia Ltd. http://www.maris.com/
- // Thank you for examining our code.
-
- var ns = false;
- var ie = false;
-
- if (document.layers)
- {
- ns = true;
- }
-
- if (document.all)
- {
- ie = true;
- }
-
- function imageObject(name,imageSrc)
- {
- this.name = name;
-
- this.Out = new Image();
- this.Over = new Image();
- this.Down = new Image();
-
- this.Out.src = imageSrc + "out.gif";
- this.Over.src = imageSrc + "over.gif";
- this.Down.src = imageSrc + "down.gif";
-
- this.mOut = mOut;
- this.mOver = mOver;
- this.mDown = mDown;
- }
-
- function mOut()
- {
- eval("document."+this.name+".src="+this.name+"Image.Out.src;")
- }
-
- function mOver()
- {
- eval("document."+this.name+".src="+this.name+"Image.Over.src;")
- }
-
- function mDown()
- {
- eval("document."+this.name+".src="+this.name+"Image.Down.src;")
- }
-
- function imageObjectN(imageSrc)
- {
- this.imageObjectOut = new Image();
- this.imageObjectOver = new Image();
- this.imageObjectDown = new Image();
-
- this.imageObjectOut.src = imageSrc + "out.gif";
- this.imageObjectOver.src = imageSrc + "over.gif";
- this.imageObjectDown.src = imageSrc + "down.gif";
- }
-
- function imageObjectChange(imageName,imageObj,imageState)
- {
- eval("document."+imageName+".src="+imageObj+".imageObject"+imageState+".src;")
- }
-
-
- /*
- function imageCheckObject(imageSrc)
- {
- this.On = new Image();
- this.On.src = imageSrc + "on.gif";
- this.Off = new Image();
- this.Off.src = imageSrc + "off.gif";
- }
-
- function checkGroup(group,On,imageOnOff)
- {
- this.group=group;
- this.On=On;
- this.imageOnOff=imageOnOff;
- this.changeOnOff=changeOnOff;
- this.resizeOnOff=resizeOnOff;
- }
-
- function changeOnOff(in_On)
- {
- if(this.On!=in_On)
- {
- eval("document."+in_On+".src=this.imageOnOff.On.src;");
- eval("document."+this.On+".src=this.imageOnOff.Off.src;");
- this.On=in_On;
- }
- }
-
- function resizeOnOff()
- {
- for (i=0; i<this.group.length; i++)
- {
- if(this.group[i]==this.On)
- {
- eval("document."+this.group[i]+".src=this.imageOnOff.On.src;");
- }
- else
- {
- eval("document."+this.group[i]+".src=this.imageOnOff.Off.src;");
- }
- }
- }
- */