// IXF1.11 :: Image cross-fade // *****************************************************// DOM scripting by brothercake -- http://www.brothercake.com///******************************************************//global objectvar ixA = { 'clock' : null, 'count' : 1 }var ixB = { 'clock' : null, 'count' : 1 }var ixC = { 'clock' : null, 'count' : 1 }var ixD = { 'clock' : null, 'count' : 1 }var ixE = { 'clock' : null, 'count' : 1 }/*******************************************************/***************************************************************************** List the images that need to be cached*****************************************************************************/ixA.imgs = [	'../images/blank.gif',	'../images/3.gif'	];//cache the imagesixA.imgsLen = ixA.imgs.length;ixA.cache = [];for(var i=0; i<ixA.imgsLen; i++){	ixA.cache[i] = new Image;	ixA.cache[i].src = ixA.imgs[i];	}/**********************************************************************************************************************************************************///crossfade setup function AAAAfunction crossfadeA(){//if the timer is not already goingif(ixA.clock == null)	{	ixA.obj = arguments[0];	ixA.src = arguments[1];	if(typeof ixA.obj.style.opacity != 'undefined')	{		ixA.type = 'w3c';		}	else if(typeof ixA.obj.style.MozOpacity != 'undefined')	{		ixA.type = 'moz';		}	else if(typeof ixA.obj.style.KhtmlOpacity != 'undefined'){		ixA.type = 'khtml';		}	else if(typeof ixA.obj.filters == 'object'){		ixA.type = (ixA.obj.filters.length > 0 && typeof ixA.obj.filters.alpha == 'object' && typeof ixA.obj.filters.alpha.opacity == 'number') ? 'ie' : 'none';		}	else	{		ixA.type = 'none';		}			if(typeof arguments[3] != 'undefined' && arguments[3] != '')	{		ixA.obj.alt = arguments[3];		}			if(ixA.type != 'none')	{		ixA.newimg = document.getElementsByTagName('body')[0].appendChild((typeof document.createElementNS != 'undefined') ? document.createElementNS('http://www.w3.org/1999/xhtml', 'img') : document.createElement('img'));		ixA.newimg.className = 'idupe';		ixA.newimg.src = ixA.src		ixA.newimg.style.left = ixA.getRealPosition(ixA.obj, 'x') + 'px';		ixA.newimg.style.top = ixA.getRealPosition(ixA.obj, 'y') + 'px';		ixA.length = parseInt(arguments[2], 10) * 100;		ixA.resolution = parseInt(arguments[2], 10) * 10;		ixA.clock = setInterval('ixA.crossfade()', ixA.length/ixA.resolution);		}	else	{		ixA.obj.src = ixA.src;		}	}}//crossfade timer functionixA.crossfade = function() {ixA.count -= (1 / ixA.resolution);if(ixA.count < (1 / ixA.resolution)){	clearInterval(ixA.clock);	ixA.clock = null;	ixA.count = 1;	ixA.obj.src = ixA.src;	}switch(ixA.type){	case 'ie' :		ixA.obj.filters.alpha.opacity = ixA.count * 100;		ixA.newimg.filters.alpha.opacity = (1 - ixA.count) * 100;		break;				case 'khtml' :		ixA.obj.style.KhtmlOpacity = ixA.count;		ixA.newimg.style.KhtmlOpacity = (1 - ixA.count);		break;				case 'moz' : 		//restrict max opacity to prevent a visual popping effect in firefox		ixA.obj.style.MozOpacity = (ixA.count == 1 ? 0.9999999 : ixA.count);		ixA.newimg.style.MozOpacity = (1 - ixA.count);		break;				default : 		//restrict max opacity to prevent a visual popping effect in firefox		ixA.obj.style.opacity = (ixA.count == 1 ? 0.9999999 : ixA.count);		ixA.newimg.style.opacity = (1 - ixA.count);	}ixA.newimg.style.visibility = 'visible';ixA.newimg.style.left = ixA.getRealPosition(ixA.obj, 'x') + 'px';ixA.newimg.style.top = ixA.getRealPosition(ixA.obj, 'y') + 'px';if(ixA.count == 1){	ixA.newimg.parentNode.removeChild(ixA.newimg);	}}ixA.getRealPosition = function() {this.pos = (arguments[1] == 'x') ? arguments[0].offsetLeft : arguments[0].offsetTop;this.tmp = arguments[0].offsetParent;while(this.tmp != null)	{	this.pos += (arguments[1] == 'x') ? this.tmp.offsetLeft : this.tmp.offsetTop;	this.tmp = this.tmp.offsetParent;	}return this.pos;}//crossfade setup function AAAA//crossfade setup function BBBBfunction crossfadeB(){//if the timer is not already goingif(ixB.clock == null)	{	ixB.obj = arguments[0];	ixB.src = arguments[1];	if(typeof ixB.obj.style.opacity != 'undefined')	{		ixB.type = 'w3c';		}	else if(typeof ixB.obj.style.MozOpacity != 'undefined')	{		ixB.type = 'moz';		}	else if(typeof ixB.obj.style.KhtmlOpacity != 'undefined'){		ixB.type = 'khtml';		}	else if(typeof ixB.obj.filters == 'object'){		ixB.type = (ixB.obj.filters.length > 0 && typeof ixB.obj.filters.alpha == 'object' && typeof ixB.obj.filters.alpha.opacity == 'number') ? 'ie' : 'none';		}	else	{		ixB.type = 'none';		}			if(typeof arguments[3] != 'undefined' && arguments[3] != '')	{		ixB.obj.alt = arguments[3];		}			if(ixB.type != 'none')	{		ixB.newimg = document.getElementsByTagName('body')[0].appendChild((typeof document.createElementNS != 'undefined') ? document.createElementNS('http://www.w3.org/1999/xhtml', 'img') : document.createElement('img'));		ixB.newimg.className = 'idupe';		ixB.newimg.src = ixB.src		ixB.newimg.style.left = ixB.getRealPosition(ixB.obj, 'x') + 'px';		ixB.newimg.style.top = ixB.getRealPosition(ixB.obj, 'y') + 'px';		ixB.length = parseInt(arguments[2], 10) * 100;		ixB.resolution = parseInt(arguments[2], 10) * 10;		ixB.clock = setInterval('ixB.crossfade()', ixB.length/ixB.resolution);		}	else	{		ixB.obj.src = ixB.src;		}	}}//crossfade timer functionixB.crossfade = function() {ixB.count -= (1 / ixB.resolution);if(ixB.count < (1 / ixB.resolution)){	clearInterval(ixB.clock);	ixB.clock = null;	ixB.count = 1;	ixB.obj.src = ixB.src;	}switch(ixB.type){	case 'ie' :		ixB.obj.filters.alpha.opacity = ixB.count * 100;		ixB.newimg.filters.alpha.opacity = (1 - ixB.count) * 100;		break;				case 'khtml' :		ixB.obj.style.KhtmlOpacity = ixB.count;		ixB.newimg.style.KhtmlOpacity = (1 - ixB.count);		break;				case 'moz' : 		//restrict max opacity to prevent a visual popping effect in firefox		ixB.obj.style.MozOpacity = (ixB.count == 1 ? 0.9999999 : ixB.count);		ixB.newimg.style.MozOpacity = (1 - ixB.count);		break;				default : 		//restrict max opacity to prevent a visual popping effect in firefox		ixB.obj.style.opacity = (ixB.count == 1 ? 0.9999999 : ixB.count);		ixB.newimg.style.opacity = (1 - ixB.count);	}ixB.newimg.style.visibility = 'visible';ixB.newimg.style.left = ixB.getRealPosition(ixB.obj, 'x') + 'px';ixB.newimg.style.top = ixB.getRealPosition(ixB.obj, 'y') + 'px';if(ixB.count == 1){	ixB.newimg.parentNode.removeChild(ixB.newimg);	}}ixB.getRealPosition = function() {this.pos = (arguments[1] == 'x') ? arguments[0].offsetLeft : arguments[0].offsetTop;this.tmp = arguments[0].offsetParent;while(this.tmp != null)	{	this.pos += (arguments[1] == 'x') ? this.tmp.offsetLeft : this.tmp.offsetTop;	this.tmp = this.tmp.offsetParent;	}return this.pos;}//crossfade setup function BBBBB//crossfade setup function CCCCfunction crossfadeC(){//if the timer is not already goingif(ixC.clock == null)	{	ixC.obj = arguments[0];	ixC.src = arguments[1];	if(typeof ixC.obj.style.opacity != 'undefined')	{		ixC.type = 'w3c';		}	else if(typeof ixC.obj.style.MozOpacity != 'undefined')	{		ixC.type = 'moz';		}	else if(typeof ixC.obj.style.KhtmlOpacity != 'undefined'){		ixC.type = 'khtml';		}	else if(typeof ixC.obj.filters == 'object'){		ixC.type = (ixC.obj.filters.length > 0 && typeof ixC.obj.filters.alpha == 'object' && typeof ixC.obj.filters.alpha.opacity == 'number') ? 'ie' : 'none';		}	else	{		ixC.type = 'none';		}			if(typeof arguments[3] != 'undefined' && arguments[3] != '')	{		ixC.obj.alt = arguments[3];		}			if(ixC.type != 'none')	{		ixC.newimg = document.getElementsByTagName('body')[0].appendChild((typeof document.createElementNS != 'undefined') ? document.createElementNS('http://www.w3.org/1999/xhtml', 'img') : document.createElement('img'));		ixC.newimg.className = 'idupe';		ixC.newimg.src = ixC.src		ixC.newimg.style.left = ixC.getRealPosition(ixC.obj, 'x') + 'px';		ixC.newimg.style.top = ixC.getRealPosition(ixC.obj, 'y') + 'px';		ixC.length = parseInt(arguments[2], 10) * 100;		ixC.resolution = parseInt(arguments[2], 10) * 10;		ixC.clock = setInterval('ixC.crossfade()', ixC.length/ixC.resolution);		}	else	{		ixC.obj.src = ixC.src;		}	}}//crossfade timer functionixC.crossfade = function() {ixC.count -= (1 / ixC.resolution);if(ixC.count < (1 / ixC.resolution)){	clearInterval(ixC.clock);	ixC.clock = null;	ixC.count = 1;	ixC.obj.src = ixC.src;	}switch(ixC.type){	case 'ie' :		ixC.obj.filters.alpha.opacity = ixC.count * 100;		ixC.newimg.filters.alpha.opacity = (1 - ixC.count) * 100;		break;				case 'khtml' :		ixC.obj.style.KhtmlOpacity = ixC.count;		ixC.newimg.style.KhtmlOpacity = (1 - ixC.count);		break;				case 'moz' : 		//restrict max opacity to prevent a visual popping effect in firefox		ixC.obj.style.MozOpacity = (ixC.count == 1 ? 0.9999999 : ixC.count);		ixC.newimg.style.MozOpacity = (1 - ixC.count);		break;				default : 		//restrict max opacity to prevent a visual popping effect in firefox		ixC.obj.style.opacity = (ixC.count == 1 ? 0.9999999 : ixC.count);		ixC.newimg.style.opacity = (1 - ixC.count);	}ixC.newimg.style.visibility = 'visible';ixC.newimg.style.left = ixC.getRealPosition(ixC.obj, 'x') + 'px';ixC.newimg.style.top = ixC.getRealPosition(ixC.obj, 'y') + 'px';if(ixC.count == 1){	ixC.newimg.parentNode.removeChild(ixC.newimg);	}}ixC.getRealPosition = function() {this.pos = (arguments[1] == 'x') ? arguments[0].offsetLeft : arguments[0].offsetTop;this.tmp = arguments[0].offsetParent;while(this.tmp != null)	{	this.pos += (arguments[1] == 'x') ? this.tmp.offsetLeft : this.tmp.offsetTop;	this.tmp = this.tmp.offsetParent;	}return this.pos;}//crossfade setup function CCCCC//crossfade setup function DDDDfunction crossfadeD(){//if the timer is not already goingif(ixD.clock == null)	{	ixD.obj = arguments[0];	ixD.src = arguments[1];	if(typeof ixD.obj.style.opacity != 'undefined')	{		ixD.type = 'w3c';		}	else if(typeof ixD.obj.style.MozOpacity != 'undefined')	{		ixD.type = 'moz';		}	else if(typeof ixD.obj.style.KhtmlOpacity != 'undefined'){		ixD.type = 'khtml';		}	else if(typeof ixD.obj.filters == 'object'){		ixD.type = (ixD.obj.filters.length > 0 && typeof ixD.obj.filters.alpha == 'object' && typeof ixD.obj.filters.alpha.opacity == 'number') ? 'ie' : 'none';		}	else	{		ixD.type = 'none';		}			if(typeof arguments[3] != 'undefined' && arguments[3] != '')	{		ixD.obj.alt = arguments[3];		}			if(ixD.type != 'none')	{		ixD.newimg = document.getElementsByTagName('body')[0].appendChild((typeof document.createElementNS != 'undefined') ? document.createElementNS('http://www.w3.org/1999/xhtml', 'img') : document.createElement('img'));		ixD.newimg.className = 'idupe';		ixD.newimg.src = ixD.src		ixD.newimg.style.left = ixD.getRealPosition(ixD.obj, 'x') + 'px';		ixD.newimg.style.top = ixD.getRealPosition(ixD.obj, 'y') + 'px';		ixD.length = parseInt(arguments[2], 10) * 100;		ixD.resolution = parseInt(arguments[2], 10) * 10;		ixD.clock = setInterval('ixD.crossfade()', ixD.length/ixD.resolution);		}	else	{		ixD.obj.src = ixD.src;		}	}}//crossfade timer functionixD.crossfade = function() {ixD.count -= (1 / ixD.resolution);if(ixD.count < (1 / ixD.resolution)){	clearInterval(ixD.clock);	ixD.clock = null;	ixD.count = 1;	ixD.obj.src = ixD.src;	}switch(ixD.type){	case 'ie' :		ixD.obj.filters.alpha.opacity = ixD.count * 100;		ixD.newimg.filters.alpha.opacity = (1 - ixD.count) * 100;		break;				case 'khtml' :		ixD.obj.style.KhtmlOpacity = ixD.count;		ixD.newimg.style.KhtmlOpacity = (1 - ixD.count);		break;				case 'moz' : 		//restrict max opacity to prevent a visual popping effect in firefox		ixD.obj.style.MozOpacity = (ixD.count == 1 ? 0.9999999 : ixD.count);		ixD.newimg.style.MozOpacity = (1 - ixD.count);		break;				default : 		//restrict max opacity to prevent a visual popping effect in firefox		ixD.obj.style.opacity = (ixD.count == 1 ? 0.9999999 : ixD.count);		ixD.newimg.style.opacity = (1 - ixD.count);	}ixD.newimg.style.visibility = 'visible';ixD.newimg.style.left = ixD.getRealPosition(ixD.obj, 'x') + 'px';ixD.newimg.style.top = ixD.getRealPosition(ixD.obj, 'y') + 'px';if(ixD.count == 1){	ixD.newimg.parentNode.removeChild(ixD.newimg);	}}ixD.getRealPosition = function() {this.pos = (arguments[1] == 'x') ? arguments[0].offsetLeft : arguments[0].offsetTop;this.tmp = arguments[0].offsetParent;while(this.tmp != null)	{	this.pos += (arguments[1] == 'x') ? this.tmp.offsetLeft : this.tmp.offsetTop;	this.tmp = this.tmp.offsetParent;	}return this.pos;}//crossfade setup function DDDDD//crossfade setup function EEEEfunction crossfadeE(){//if the timer is not already goingif(ixE.clock == null)	{	ixE.obj = arguments[0];	ixE.src = arguments[1];	if(typeof ixE.obj.style.opacity != 'undefined')	{		ixE.type = 'w3c';		}	else if(typeof ixE.obj.style.MozOpacity != 'undefined')	{		ixE.type = 'moz';		}	else if(typeof ixE.obj.style.KhtmlOpacity != 'undefined'){		ixE.type = 'khtml';		}	else if(typeof ixE.obj.filters == 'object'){		ixE.type = (ixE.obj.filters.length > 0 && typeof ixE.obj.filters.alpha == 'object' && typeof ixE.obj.filters.alpha.opacity == 'number') ? 'ie' : 'none';		}	else	{		ixE.type = 'none';		}			if(typeof arguments[3] != 'undefined' && arguments[3] != '')	{		ixE.obj.alt = arguments[3];		}			if(ixE.type != 'none')	{		ixE.newimg = document.getElementsByTagName('body')[0].appendChild((typeof document.createElementNS != 'undefined') ? document.createElementNS('http://www.w3.org/1999/xhtml', 'img') : document.createElement('img'));		ixE.newimg.className = 'idupe';		ixE.newimg.src = ixE.src		ixE.newimg.style.left = ixE.getRealPosition(ixE.obj, 'x') + 'px';		ixE.newimg.style.top = ixE.getRealPosition(ixE.obj, 'y') + 'px';		ixE.length = parseInt(arguments[2], 10) * 100;		ixE.resolution = parseInt(arguments[2], 10) * 10;		ixE.clock = setInterval('ixE.crossfade()', ixE.length/ixE.resolution);		}	else	{		ixE.obj.src = ixE.src;		}	}}//crossfade timer functionixE.crossfade = function() {ixE.count -= (1 / ixE.resolution);if(ixE.count < (1 / ixE.resolution)){	clearInterval(ixE.clock);	ixE.clock = null;	ixE.count = 1;	ixE.obj.src = ixE.src;	}switch(ixE.type){	case 'ie' :		ixE.obj.filters.alpha.opacity = ixE.count * 100;		ixE.newimg.filters.alpha.opacity = (1 - ixE.count) * 100;		break;				case 'khtml' :		ixE.obj.style.KhtmlOpacity = ixE.count;		ixE.newimg.style.KhtmlOpacity = (1 - ixE.count);		break;				case 'moz' : 		//restrict max opacity to prevent a visual popping effect in firefox		ixE.obj.style.MozOpacity = (ixE.count == 1 ? 0.9999999 : ixE.count);		ixE.newimg.style.MozOpacity = (1 - ixE.count);		break;				default : 		//restrict max opacity to prevent a visual popping effect in firefox		ixE.obj.style.opacity = (ixE.count == 1 ? 0.9999999 : ixE.count);		ixE.newimg.style.opacity = (1 - ixE.count);	}ixE.newimg.style.visibility = 'visible';ixE.newimg.style.left = ixE.getRealPosition(ixE.obj, 'x') + 'px';ixE.newimg.style.top = ixE.getRealPosition(ixE.obj, 'y') + 'px';if(ixE.count == 1){	ixE.newimg.parentNode.removeChild(ixE.newimg);	}}ixE.getRealPosition = function() {this.pos = (arguments[1] == 'x') ? arguments[0].offsetLeft : arguments[0].offsetTop;this.tmp = arguments[0].offsetParent;while(this.tmp != null)	{	this.pos += (arguments[1] == 'x') ? this.tmp.offsetLeft : this.tmp.offsetTop;	this.tmp = this.tmp.offsetParent;	}return this.pos;}//crossfade setup function EEEEE
