<!-- js Layer Script Builder by jsLayerUtility.com, abqconnect.com -->
<!-- Timestamp:9/14/2009 10:51:21 AM-->

var name = (document.layers)?"NS4":"Not supported";
if (name=="Not supported"){
name = (document.all)?"Microsoft Internet Explorer":"Not supported";
}
if (name=="Microsoft Internet Explorer"){
name = (document.charset)?"Microsoft Internet Explorer":"Opera";
}
if (name=="Not supported"){
name = (document.getElementById && !document.all && !document.layers)?"NS6":"Not supported";
}

DIVcount =1; 
DIV_name = new Array(1);
DIV_type = new Array(1);
DIV_value_image = new Array(1);
DIVlength = new Array(1);
DIV_MouseOver_function = new Array(1);
DIV_MouseClick_function = new Array(1);
DIV_OnMouseOut_function = new Array(1);
DIV_OnMouseDown_function = new Array(1);
DIV_OnMouseUp_function = new Array(1);
DIV_Absolute = new Array(1);
imageInitialSize = new Array(1);
 
var framescount =1001; 
vp = new Array(1001);
hp = new Array(1001);
ka = new Array(1001);
is = new Array(1001);
iv = new Array(1001);

DIV_name[1] = "SOL_ClickOnTheDoor";
DIV_type[1] = "h";
DIVlength[1] = 14;
DIV_Absolute[1] = 0;
if (name=="NS4" || name=="Opera" || name=="NS6"){
if (name=="NS4"){
document.write('<layer name="SOL_ClickOnTheDoor" >','<html><head><title>Click the door to enter --</title></head><body><table border="1" width="35%" cellpadding="10" bgcolor="#800000" id="table1">	<tr>		<td><font face="Hobo Std" size="5" color="#FFFF00">Click the door to enter --&gt;</font></td>	</tr></table></body></html></layer>');


}else{
document.write('<DIV id="SOL_ClickOnTheDoor" STYLE="position:absolute;visibility:visible;top:1;left:-2000;">', '<html><head><title>Click the door to enter --</title></head><body><table border="1" width="35%" cellpadding="10" bgcolor="#800000" id="table1">	<tr>		<td><font face="Hobo Std" size="5" color="#FFFF00">Click the door to enter --&gt;</font></td>	</tr></table></body></html></DIV>');
}
}else{
document.write('<DIV id="SOL_ClickOnTheDoor" STYLE="position:absolute;visibility:visible;top:1;left:-2000;"><html><head><title>Click the door to enter --</title></head><body><table border="1" width="35%" cellpadding="10" bgcolor="#800000" id="table1">	<tr>		<td><font face="Hobo Std" size="5" color="#FFFF00">Click the door to enter --&gt;</font></td>	</tr></table></body></html> </DIV>');
}

vp[1] = 44; hp[1]= -41.73; ka[1]= ""; 
vp[2] = 44; hp[2]= -35; ka[2]= ""; 
vp[3] = 44; hp[3]= -25.5; ka[3]= ""; 
vp[4] = 44; hp[4]= -15.99; ka[4]= ""; 
vp[5] = 44; hp[5]= -8.66; ka[5]= ""; 
vp[6] = 44; hp[6]= -0.94; ka[6]= ""; 
vp[7] = 44; hp[7]= 1.44; ka[7]= ""; 
vp[8] = 44; hp[8]= 3.22; ka[8]= ""; 
vp[9] = 44; hp[9]= -2.33; ka[9]= ""; 
vp[10] = 44; hp[10]= -8.47; ka[10]= ""; 
vp[11] = 44; hp[11]= -6.09; ka[11]= ""; 
vp[12] = 44; hp[12]= -2.13; ka[12]= ""; 
vp[13] = 44; hp[13]= 1.04; ka[13]= ""; 
vp[14] = 44; hp[14]= 2.82; ka[14]= "p"; 
<!-- core-script Name: Basic -->
<!-- core-script: Scott Phillips - abqconnect (for more information visit abqconnect.com, jslayerutility.com, layerutility.com) -->
<!-- Last updated: 4:00 am September 8, 2009 -->

timestamp_last_activation = new Array(DIVcount); <!-- august 21,2009 these two variables are used to prevent firefoxes from missfiring onmouseover events when the image is being resized.  each image has its own onmouseover -->


currentDIVpoint = new Array(DIVcount); 	<!--  As each layer cycles through it's array, this value records each layers current point. (0-1001) -->
DIVstatus = new Array(DIVcount); 	<!--  This holds each layers status.  -->
DIVNewContent = new Array(DIVcount);	<!--  This temporarily holds each layers new content data until it can be switch out at the opportune moment; which, is at the next location of a'c' trigger.  -->
move = new Array(DIVcount);		<!--  This value is not used for this core-script -->
HAlignStatus=new Array(DIVcount);


var xPos = 0;			<!--  Set just prior to repositioning a layer and is used for repositioning a layer horizontally -->
var delay = 50;			<!--  This is used by the 'PerpetuatingFunction' function below to set the cycle speed for your layers.  It is set at this line but you can be overwrite this value by adding additional JavaScript to your project (see projects property window in js Layer Utility)   -->
var yPos = 0;			<!--  Set just prior to repositioning a layer and is used for repositioning a layer vertically -->
var current;				<!--  this is set and used by the PositionDIV function.   It is calculated using the currentDIVpoint to identify to actual location of data within the whole array -->
var window_height = 0;			<!--  Evaluated each time the PositionDIV function runs.  This assures the layers are adjusted when the user changes the window size. -->
var window_width = 0;

<!-- get window size info -->
if(name == "Microsoft Internet Explorer"){
	window_height = document.body.clientHeight;
	window_width = document.body.clientWidth;
}else{
	window_height = window.innerHeight;
	window_width = window.innerWidth;
}
<!-- Set up each layers starting values -->
for (var j = 1; j <= DIVcount; j++) {
	current = j * 1001 - 1000;
	DIVNewContent[j] = "";
	move[j] = 1;
	currentDIVpoint[j]=1;
	HAlignStatus[j]="l";
	if (ka[current].indexOf("m")>-1 && ka[current].indexOf("m")<2){HAlignStatus[j]="m"}

	<!-- Sets the starting DIV status -->
	DIVstatus[j]="";
	if (ka[current].indexOf("p")>-1){DIVstatus[j]="p"}
	if (ka[current].indexOf("h")>-1){DIVstatus[j]="h"}
	if (DIVstatus[j]==""){DIVstatus[j]="a"}
}


<!-- This is first called from the window.onload function below.  At each delay interval it calls the PositionDIV function.  This continues in a perpetuating manner for the life of the page. -->
function PerpetuatingFunction(){
PositionDIV();
setTimeout('PerpetuatingFunction()',delay);
}


<!-- Call this function for on-the-fly status changing.  You call this function to activate, pause, hold, finish or restart a layer sequence -->
<!-- Available layer statuses 'p'= pause, 'a'= activate, 'f'= finish, 'r'=restart 'h'=hold-->
function DIVaction(DIVname, Status, NewContent){
	if (Status =="p" || Status =="a" || Status =="f" || Status =="r" || Status =="h" || Status =="m" || Status =="l"){
		var pos;
		var StringToFind;
		var ListOfDIVsToActivate=DIVname;

		if (name=="NS6" || name=="Opera"){
			var dt = new Date()
			var yyy = dt.getMilliseconds()
			var iii = dt.getSeconds()

			var m_minute = dt.getMinutes()
			var ms_min = m_minute * 60000;

			var h_hour = dt.getHours()
			var ms_hour = h_hour * 3600000;		

			var ggg = (iii*1000) + yyy + ms_min + ms_hour;
		}
		for (var j = 1; j <= DIVcount; j++) {
			StringToFind=DIV_name[j];
				if (ListOfDIVsToActivate.indexOf(StringToFind) > -1){

					var NotAllowActivation='false';
					if (Status =='f' && DIVstatus[j]=='p' && currentDIVpoint[j]==1){NotAllowActivation='true'}
					if (Status =='f' && DIVstatus[j]=='h' && currentDIVpoint[j]==1){NotAllowActivation='true'}

					<!-- the following 10 lines were added august 19, 2009 to prevent firefox from missfiring onmouseover event for each and every changed size element-->
					if (name=="NS6" || name=="Opera"){
						<!-- if(currentDIVpoint[j]>1){ -->
							jjj = timestamp_last_activation[j] + 20;
							if (ggg < jjj && Status !='p'){
								NotAllowActivation='true'
							}
						<!-- } -->
					}

					if (NotAllowActivation=='true'){

					}else{
						if (Status =="c" || Status =="l"){
							HAlignStatus[j]=Status;
						}else{
							DIVstatus[j]=Status;
						}
						DIVNewContent[j]=NewContent;
						if(name=="NS6" || name=="Opera"){
							timestamp_last_activation[j] = ggg;
						}
					}

				}
		}
	}else{
	alert ("Invalid status")
	}
}

<!-- The "PerpetuatingFunction" function handles nothing more than constantly calling this function at a timed interval. -->
<!-- This function handles positioning, sizing and rewriting DIV's based on their DIVstatus valuses -->
function PositionDIV() {
	if (name == "Microsoft Internet Explorer") {
		window_height = document.body.clientHeight;
		window_width = document.body.clientWidth;
	}else {
		window_height = window.innerHeight;
		window_width = window.innerWidth;
	}
	<!-- Cycles through all the DIVs in the project.  -->
	var blnHorW;
	for (var j = 1; j <= DIVcount; j++) {
			var ddt=new Date()
			var dtb=new Date()
			var current;
			current = currentDIVpoint[j] + (j * 1001 - 1001);

			blnHorW=false;
			if (DIVstatus[j] == 'h') {blnHorW = true} 

			if (blnHorW == true && currentDIVpoint[j] > 1) {
				<!-- keep current position while this DIVs status is 'h' (content may be changed below though) -->
			}else{

				if (DIVstatus[j] != 'p' && DIVstatus[j] != 'h'){
						<!-- Otherwise increment to next position and adjust status from the new ka-->
						currentDIVpoint[j] = currentDIVpoint[j] + move[j];
						if(currentDIVpoint[j] < 0){
						currentDIVpoint[j] = DIVlength[j];
							if (DIVstatus[j] == 'f'){
							DIVstatus[j] = 'a';
							}
						}
						current = currentDIVpoint[j] + (j * 1001- 1001);
						if (ka[current]!=null){
							var locOfAFileName = ka[current].indexOf(";");
							if (locOfAFileName>-1){
								templocOfAFileName=locOfAFileName;
							}else{
								if (ka[current] != null){
									templocOfAFileName=ka[current].length;
								}else{
									templocOfAFileName=-1;
								}
							}
						}
						if(currentDIVpoint[j] > DIVlength[j]){
							currentDIVpoint[j] = 1;
							current = j * 1001 - 1000;
							if (ka[current]!=null){
								locOfAFileName = ka[current].indexOf(";");
								if (locOfAFileName>-1){
									templocOfAFileName=locOfAFileName;
								}else{
									if (ka[current]!=null){
										templocOfAFileName=ka[current].length;
									}else{
										templocOfAFileName=-1;
									}
								}
							}
							if (DIVstatus[j] == 'r'){
								DIVstatus[j] = 'a';
							}else{	
								<!-- Sets the starting DIV status -->
								DIVstatus[j]="";
								if (ka[current].indexOf("p")>-1 && ka[current].indexOf("p") < templocOfAFileName){DIVstatus[j]="p"}
								if (ka[current].indexOf("h")>-1 && ka[current].indexOf("h") < templocOfAFileName){DIVstatus[j]="h"}
								if (DIVstatus[j]==""){DIVstatus[j]="a"}
								if (ka[current].indexOf("l")>-1 && ka[current].indexOf("l") < templocOfAFileName){HAlignStatus[j]="l"}
								if (ka[current].indexOf("m")>-1 && ka[current].indexOf("m") < templocOfAFileName){HAlignStatus[j]="m"}
							}					
						}else{
							if (DIVstatus[j] == 'a'){
								if (name=="NS6" || name=="Opera"){
									var eee = dtb.getSeconds()
									var ppp = eee * 1000;
									var m_minute = dtb.getMinutes()
									var ms_min = m_minute * 60000;
									var h_hour = dtb.getHours()
									var ms_hour = h_hour * 3600000;
									timestamp_last_activation[j] = ddt.getMilliseconds() + ppp + ms_min + ms_hour;
								}
								if (ka[current].indexOf("p")>-1 && ka[current].indexOf("p") < templocOfAFileName){DIVstatus[j] = 'p'}
								if (ka[current].indexOf("h")>-1 && ka[current].indexOf("h") < templocOfAFileName){DIVstatus[j] = 'h'}
								if (ka[current].indexOf("l")>-1 && ka[current].indexOf("l") < templocOfAFileName){HAlignStatus[j]="l"}
								if (ka[current].indexOf("m")>-1 && ka[current].indexOf("m") < templocOfAFileName){HAlignStatus[j]="m"}

							}
						}
					}

				<!-- position DIV -->
				if(DIV_Absolute[j] == 1){
					if(HAlignStatus[j]=="l"){
						xPos = hp[current];
					}else{
						halfLayersWidth= .5 * imageInitialSize[j];
						xPos = hp[current] - halfLayersWidth;
					}
					yPos=vp[current];	
				}else{
					if(HAlignStatus[j]=="l"){
						xPos=(hp[current] * .01) * window_width;
					}else{
						halfLayersWidth=.5*imageInitialSize[j];
						xPos=(hp[current]*.01)*window_width;
						xPos=xPos-halfLayersWidth;
					}

					yPos=(vp[current] * .01) * window_height;
					if(name == "Microsoft Internet Explorer") {
						yPos=yPos+document.body.scrollTop;
					}else{
						yPos=yPos+window.pageYOffset;
						<!-- xPos = xPos + window.pageXOffset -->
					}	
				}

<!-- ECMA (compatible for all browsers) code above -->
<!-- ################################################################################################## -->
<!-- start of browser specific coding --><!-- Resized image DIVs-->
				if (name == "Microsoft Internet Explorer") {
						if (DIV_type[j] == "i"){
						var changeImage = document.getElementById(DIV_name[j] + "_img"); 
						changeImage.style.width = imageInitialSize[j] * (is[current] * .01);
						}
						var DIVtoReposition = document.getElementById(DIV_name[j]);
							DIVtoReposition.style.left = xPos;						
							DIVtoReposition.style.top = yPos;
				}else if (name == "Opera" || name == "NS6" ){
				<!-- Why wasn't Opera and NS6 DIVs resized and repositioned the way IE DIVs were above? -->
				<!-- Because; even though you can resize an image and reposition the DIV containing it with these two browsers, -->
				<!-- they are unable to RELIABLY rapidly refresh appearance as required by the js Layer Utility program schema. --> 
				<!-- (During testing neither of them error out, but NS6 just displays a blank DIV and Opera simply kept the image size at 100% -->
				<!-- regardless of what it had been set to.  This almost makes these two browsers unusable for this sort of DHTML layer programming. -->
				<!-- As a work around I had to adapted the a method; which involves writing a separate DIV for each -->
				<!-- possible image size presented by the array.  It really isn't any slower than the preferred method used above by IE. -->
				<!-- In fact, NS6 runs the work around faster than it ran the original IE method.) -->
						if (DIV_type[j] == "i"){
							strdivname = DIV_name[j] + is[current];
							if(currentDIVpoint[j] == 1){
								if (DIVlength[j] + (j * 1001- 1001) != is[current]){
								var lastIndex = DIVlength[j] + (j * 1001 - 1001)
								var OLDstrdivname = DIV_name[j] + is[lastIndex]
								var NSOLDDIVtoReposition = document.getElementById(OLDstrdivname)
									NSOLDDIVtoReposition.style.left = -2000 + "px";
									NSOLDDIVtoReposition.style.top = "0px";	
								}
							}else{
								if (is[current-1] != is[current]){
								OLDstrdivname=DIV_name[j] + is[current-1];
								var NSOLDDIVtoReposition = document.getElementById(OLDstrdivname)
									NSOLDDIVtoReposition.style.left = -2000 + "px";
									NSOLDDIVtoReposition.style.top = "0px";
								}
							}
						}else{
							strdivname = DIV_name[j];
						}
						var NSDIVtoReposition = document.getElementById(strdivname)
						if(DIV_Absolute[j] == 1 || DIVstatus[j] == 'h'){
							NSDIVtoReposition.style.left = xPos + "px";
							NSDIVtoReposition.style.top = yPos + "px";
						}else{
							NSDIVtoReposition.style.left = xPos + window.pageXOffset + "px";
							NSDIVtoReposition.style.top = yPos + window.pageYOffset + "px";
						}
				}
			}	

		
			if (locOfAFileName>-1){
			 	var locOfAFileName = locOfAFileName+1;
				var EndOfFileName = ka[current].length;
				var NewImageName;
				NewImageName = ka[current].substring(locOfAFileName,EndOfFileName);   <!-- Be careful not to add any trailing spaces.  They dont get trimed off at the moment. -->
				
				<!-- switch out content -->
				<!-- Image DIV changing protocol -->
				if (name == "Microsoft Internet Explorer") {						
					var imagetochangeX= document.getElementById(DIV_name[j]+'_img'); 
					imagetochangeX.src = NewImageName;
				}else if (name == "Opera" || name == "NS6" ){
					for (var h = 1; h <= DIVlength[j]; h++) {
					current = h + (j * 1001- 1001);
					strdivname = DIV_name[j] + is[current] + "_img";
					var DIVTomodifyX = document.getElementById(strdivname); 						
						if (DIVTomodifyX !=null){
						DIVTomodifyX.src = NewImageName;
						}
					}
				}else{
					for (var h = 1; h <= DIVlength[j]; h++) {
					current = h + (j * 1001- 1001);
					strdivname = DIV_name[j] + is[current] + "_img";
					DIVTomodifyX = document[strdivname];
						if (DIVTomodifyX !=null){
						DIVTomodifyX.src = NewImageName;
						}
					}
				}
				DIVNewContent[j] = "";
				locOfAFileName=-1;
			}else{
				<!-- Content can be changed regardless of DIVstatus a,f,r,p or h but only where a 'c' key is-->			
				if (ka[current].indexOf("c")>-1){
					<!-- Sets new DIV content -->
					if (DIVNewContent[j] != "") {
						if (DIV_type[j] == "h") {
							<!-- HTML DIV changing protocol -->
							if (name == "Microsoft Internet Explorer" || name == "Opera" || name == "NS6") {						
								var strdivname = DIV_name[j];
								var DIVTomodify = document.getElementById(strdivname); 						
								DIVTomodify.innerHTML = DIVNewContent[j];
							}else{
								DIVTomodify = document.layers[strdivname];
								DIVTomodify.document.open();
								DIVTomodify.document.write(DIVNewContent[j]);
								DIVTomodify.document.close();
							}		
						}else{
							<!-- Image DIV changing protocol -->
							if (name == "Microsoft Internet Explorer") {						
								var imagetochange= document.getElementById(DIV_name[j]+'_img'); 
								imagetochange.src = DIVNewContent[j];
							}else if (name == "Opera" || name == "NS6" ){
								for (var h = 1; h <= DIVlength[j]; h++) {
								current = h + (j * 1001- 1001);
								strdivname = DIV_name[j] + is[current] + "_img";
								var DIVTomodify = document.getElementById(strdivname); 						
									if (DIVTomodify !=null){
										DIVTomodify.src = DIVNewContent[j];
									}
								}
							}else{
								for (var h = 1; h <= DIVlength[j]; h++) {
								current = h + (j * 1001- 1001);
								strdivname = DIV_name[j] + is[current] + "_img";
								DIVTomodify = document[strdivname];
									if (DIVTomodify !=null){
									DIVTomodify.src = DIVNewContent[j];
									}
								}
							}								
						}
						DIVNewContent[j] = "";
					}
				}

			}	
<!-- End of browser specific coding -->
<!-- ################################################################################################## -->

	}
}

<!-- THIS INITIATES THE PERPETUATING FUNCTION (TIMER)  -->	
window.onload=function(){
bolDocumentLoaded=true;
setTimeout('PerpetuatingFunction()',delay);
}


<!--  Additional source added by webmaster -->


<!--  End of webmaster additions   -->



