site_images = [0, 'gif', 'jpg', 'png']

function new_window(theURL,winName,features) {
if ((fer = window.open(theURL,winName,features))==null) 
	alert('Your browser has a popup blocker, please disable it')
else
	fer.focus()
}

function AddRowInputFile(el_id, desc_el, file_el, class_el){
    theTable=document.getElementById(el_id)
    
    newRow = document.createElement("tr")
    
    newTD = document.createElement("td")
    newTD.innerHTML = "<td class=txt_admin><input type=text name="+ desc_el +"[] size=40 class="+ class_el +"></td>"
    newRow.appendChild(newTD)
    
    newTD = document.createElement("td")
    newTD.innerHTML = "<td class="+ class_el +"><input type=file name="+ file_el +"[] class="+ class_el +"></td>"
    newRow.appendChild(newTD)
    
    theTable.firstChild.appendChild(newRow)
}

function RotateImages(el_ids, el_type, el_w, el_h) {
	document.images.img_rotate.src = 'hosts_img/photo_' + el_ids[rotate_current] + '.' + site_images[el_type[rotate_current]]
	document.images.img_rotate.width = document.images.img_rotate.width;
	document.images.img_rotate.height = document.images.img_rotate.height;
	window.setTimeout("RotateImages([" + el_ids + "], [" + el_type + "])", rotate_delay);
	if (rotate_current < (rotate_no-1))	{
		rotate_current += 1;
	}
	else	{
		rotate_current = 0;		
	}
}
/*
img_rotate.src = 'hosts_img/photo_'.el_ids[rotate_current].'.gif';
*/
function getHTTPObject() {
  var xmlhttp = null;
  /*@cc_on
  @if (@_jscript_version >= 5)
    try {
      xmlhttp = new ActiveXObject("Msxml2.XMLHTTP");
    } catch (e) {
      try {
        xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
      } catch (E) {
        xmlhttp = false;
      }
    }
  @else
  xmlhttp = false;
  @end @*/
  if (!xmlhttp && typeof XMLHttpRequest != 'undefined') {
    try {
      xmlhttp = new XMLHttpRequest();
    } catch (e) {
      xmlhttp = false;
    }
  }
  return xmlhttp;
}

function GetXMLValue(obj)	{
	if (obj)	{
		var node = obj;
		if (node[0])	{
			var node_val = node[0].firstChild.nodeValue;	
			return node_val;
		}
		else	{
			//window.location.reload(true);
		}
	}
	return "";
}

function GetUniqueVal()	{
	rand_no = Math.floor(Math.random() * 1000000);
	return rand_no;
}

function FormHasData(frm_obj)	{
	var is_required;
	var form_ok = true;
	for (i=0;i<frm_obj.elements.length;i++)	{
		html_obj = frm_obj.elements[i];
		is_required = html_obj.getAttribute('data_required');
		if (is_required == 1)	{
			var html_val = -999;
			switch (html_obj.type)	{
				case 'hidden':
				case 'text':
				case 'textarea':
					html_val = html_obj.value;
					break;
				case 'select-one':
					if (html_obj.selectedIndex > -1)	{
						html_val = html_obj.options[html_obj.selectedIndex].value;
					}
					break;
			}
			if ((!html_val) || (html_val == 0))	{
				//alert ('Complete mandatory fields ! -- ' + html_obj.name);
				alert ('Complete mandatory fields !');
				form_ok = false;
				break;
			}
		}	
	}
	return form_ok;
}

function ParseFrmVarsToURLStr(frm_name)	{
	if (frm_name == "skip")
		return "";
	var frm_obj = document.getElementById(frm_name);
	var ret_str = '';
	for (i=0;i<frm_obj.elements.length;i++)	{
		var html_obj = frm_obj.elements[i];
		var html_val = -999;
		var html_name = html_obj.name;
		if (html_name)	{
			switch (html_obj.type)	{
				case 'hidden':
				case 'text':
				case 'textarea':
					html_val = html_obj.value;
					break;
				case 'radio':
					if (html_obj.status)	{
						html_val = html_obj.value;
					}
					break;
				case 'select-one':
					if (html_obj.selectedIndex > -1)	{
						html_val = html_obj.options[html_obj.selectedIndex].value;
					}
					break;
				case 'checkbox':		{
					if ((html_obj.status) && (!html_obj.disabled))	{
						html_val = html_obj.value;
					}
				}
			}
			if (html_val != -999)	{
				ret_str += '&' + html_name + '=' + html_val;		
			}
		}
	}
	return ret_str;
}

function getElementsByClass(searchClass,node,tag) {
	var classElements = new Array();
	if ( node == null )
		node = document;
	if ( tag == null )
		tag = '*';
	var els = node.getElementsByTagName(tag);
	var elsLen = els.length;
	var pattern = new RegExp("(^|\\\\s)"+searchClass+"(\\\\s|$)");
	for (i = 0, j = 0; i < elsLen; i++) {
		if ( pattern.test(els[i].className) ) {
			classElements[j] = els[i];
			j++;
		}
	}
	return classElements;
}


function test(id){
	var l=getElementsByClass('test');
		for($i=0;$i<l.length;$i++){
			l[$i].style.display="none";
		}
	
	document.getElementById(id).style.display='block';
}

var fadeimages=new Array()
//SET IMAGE PATHS. Extend or contract array as needed
fadeimages[0]=["http://dev111.pcminternet.com/img/lounge1.jpg", "", ""] //plain image syntax
fadeimages[1]=["http://dev111.pcminternet.com/img/lounge2.jpg", "", ""] //image with link syntax
fadeimages[2]=["http://dev111.pcminternet.com/img/lounge3.jpg", "", ""] //image with link and target syntax
fadeimages[3]=["http://dev111.pcminternet.com/img/lounge4.jpg", "", ""] //plain image syntax
fadeimages[4]=["http://dev111.pcminternet.com/img/lounge5.jpg", "", ""] //image with link syntax
fadeimages[5]=["http://dev111.pcminternet.com/img/lounge6.jpg", "", ""]
fadeimages[6]=["http://dev111.pcminternet.com/img/lounge7.jpg", "", ""]
fadeimages[7]=["http://dev111.pcminternet.com/img/lounge8.jpg", "", ""]
fadeimages[8]=["http://dev111.pcminternet.com/img/lounge9.jpg", "", ""]
fadeimages[9]=["http://dev111.pcminternet.com/img/lounge10.jpg", "", ""]
fadeimages[10]=["http://dev111.pcminternet.com/img/lounge11.jpg", "", ""]
fadeimages[11]=["http://dev111.pcminternet.com/img/lounge12.jpg", "", ""]

 
var fadeimages2=new Array() //2nd array set example. Remove or add more sets as needed.
//SET IMAGE PATHS. Extend or contract array as needed
fadeimages2[0]=["http://dev111.pcminternet.com/img/TurtleRockCrest/Turtle_001.jpg", "", ""] //plain image syntax
fadeimages2[1]=["http://dev111.pcminternet.com/img/TurtleRockCrest/Turtle_002.jpg", "", ""] //image with link syntax
fadeimages2[2]=["http://dev111.pcminternet.com/img/TurtleRockCrest/Turtle_004.jpg", "", ""]
fadeimages2[3]=["http://dev111.pcminternet.com/img/TurtleRockCrest/Turtle_005.jpg", "", ""]
fadeimages2[4]=["http://dev111.pcminternet.com/img/TurtleRockCrest/Turtle_006.jpg", "", ""]
fadeimages2[5]=["http://dev111.pcminternet.com/img/TurtleRockCrest/Turtle_007.jpg", "", ""]
fadeimages2[6]=["http://dev111.pcminternet.com/img/TurtleRockCrest/Turtle_008.jpg", "", ""]
fadeimages2[7]=["http://dev111.pcminternet.com/img/TurtleRockCrest/Turtle_009.jpg", "", ""]
fadeimages2[8]=["http://dev111.pcminternet.com/img/TurtleRockCrest/Turtle_010.jpg", "", ""]
fadeimages2[9]=["http://dev111.pcminternet.com/img/TurtleRockCrest/Turtle_011.jpg", "", ""]
fadeimages2[10]=["http://dev111.pcminternet.com/img/TurtleRockCrest/Turtle_012.jpg", "", ""]
fadeimages2[11]=["http://dev111.pcminternet.com/img/TurtleRockCrest/Turtle_013.jpg", "", ""]
fadeimages2[12]=["http://dev111.pcminternet.com/img/TurtleRockCrest/Turtle_014.jpg", "", ""]

var fadeimages3=new Array() //2nd array set example. Remove or add more sets as needed.
//SET IMAGE PATHS. Extend or contract array as needed
fadeimages3[0]=["http://dev111.pcminternet.com/img/Less_World/bird1.jpg", "", ""] //plain image syntax
fadeimages3[1]=["http://dev111.pcminternet.com/img/Less_World/bird2.jpg", "", ""] //image with link syntax
fadeimages3[2]=["http://dev111.pcminternet.com/img/Less_World/bird3.jpg", "", ""]
fadeimages3[3]=["http://dev111.pcminternet.com/img/Less_World/bird4.jpg", "", ""]
fadeimages3[4]=["http://dev111.pcminternet.com/img/Less_World/bird5.jpg", "", ""]

var fadeimages4=new Array() //2nd array set example. Remove or add more sets as needed.
//SET IMAGE PATHS. Extend or contract array as needed
fadeimages4[0]=["http://dev111.pcminternet.com/img/TheColony/colony1.jpg", "", ""] //plain image syntax
fadeimages4[1]=["http://dev111.pcminternet.com/img/TheColony/colony2.jpg", "", ""] //image with link syntax
fadeimages4[2]=["http://dev111.pcminternet.com/img/TheColony/colony3.jpg", "", ""]
fadeimages4[3]=["http://dev111.pcminternet.com/img/TheColony/colony4.jpg", "", ""]
fadeimages4[4]=["http://dev111.pcminternet.com/img/TheColony/colony5.jpg", "", ""]
fadeimages4[5]=["http://dev111.pcminternet.com/img/TheColony/colony6.jpg", "", ""]
fadeimages4[6]=["http://dev111.pcminternet.com/img/TheColony/colony7.jpg", "", ""]
fadeimages4[7]=["http://dev111.pcminternet.com/img/TheColony/colony8.jpg", "", ""]
fadeimages4[8]=["http://dev111.pcminternet.com/img/TheColony/colony9.jpg", "", ""]
fadeimages4[9]=["http://dev111.pcminternet.com/img/TheColony/colony10.jpg", "", ""]
fadeimages4[10]=["http://dev111.pcminternet.com/img/TheColony/colony11.jpg", "", ""]
fadeimages4[11]=["http://dev111.pcminternet.com/img/TheColony/colony12.jpg", "", ""]
fadeimages4[12]=["http://dev111.pcminternet.com/img/TheColony/colony13.jpg", "", ""]
fadeimages4[13]=["http://dev111.pcminternet.com/img/TheColony/colony14.jpg", "", ""]
fadeimages4[14]=["http://dev111.pcminternet.com/img/TheColony/colony15.jpg", "", ""]
fadeimages4[15]=["http://dev111.pcminternet.com/img/TheColony/colony16.jpg", "", ""]
fadeimages4[16]=["http://dev111.pcminternet.com/img/TheColony/colony17.jpg", "", ""]

var fadeimages5=new Array() //2nd array set example. Remove or add more sets as needed.
//SET IMAGE PATHS. Extend or contract array as needed
fadeimages5[0]=["http://dev111.pcminternet.com/img/LosRanchos/losranchos1.jpg", "", ""] //plain image syntax
fadeimages5[1]=["http://dev111.pcminternet.com/img/LosRanchos/losranchos2.jpg", "", ""] //image with link syntax
fadeimages5[2]=["http://dev111.pcminternet.com/img/LosRanchos/losranchos3.jpg", "", ""]
fadeimages5[3]=["http://dev111.pcminternet.com/img/LosRanchos/losranchos4.jpg", "", ""]
fadeimages5[4]=["http://dev111.pcminternet.com/img/LosRanchos/losranchos5.jpg", "", ""]
fadeimages5[5]=["http://dev111.pcminternet.com/img/LosRanchos/losranchos6.jpg", "", ""]
fadeimages5[6]=["http://dev111.pcminternet.com/img/LosRanchos/losranchos7.jpg", "", ""]
fadeimages5[7]=["http://dev111.pcminternet.com/img/LosRanchos/losranchos8.jpg", "", ""]

var fadeimages6=new Array() 
fadeimages6[0]=["http://dev111.pcminternet.com/img/Vantis/vantis1.jpg", "", ""] 
fadeimages6[1]=["http://dev111.pcminternet.com/img/Vantis/vantis2.jpg", "", ""] 
fadeimages6[2]=["http://dev111.pcminternet.com/img/Vantis/vantis3.jpg", "", ""]
fadeimages6[3]=["http://dev111.pcminternet.com/img/Vantis/vantis4.jpg", "", ""]
fadeimages6[4]=["http://dev111.pcminternet.com/img/Vantis/vantis5.jpg", "", ""]
fadeimages6[5]=["http://dev111.pcminternet.com/img/Vantis/vantis6.jpg", "", ""]

var fadeimages7=new Array() 
fadeimages7[0]=["http://dev111.pcminternet.com/img/WestHighlandsPacific/west1.jpg", "", ""] 
fadeimages7[1]=["http://dev111.pcminternet.com/img/WestHighlandsPacific/west2.jpg", "", ""]
fadeimages7[2]=["http://dev111.pcminternet.com/img/WestHighlandsPacific/west3.jpg", "", ""]
fadeimages7[3]=["http://dev111.pcminternet.com/img/WestHighlandsPacific/west4.jpg", "", ""]
fadeimages7[4]=["http://dev111.pcminternet.com/img/WestHighlandsPacific/west5.jpg", "", ""]
fadeimages7[5]=["http://dev111.pcminternet.com/img/WestHighlandsPacific/west6.jpg", "", ""]
fadeimages7[6]=["http://dev111.pcminternet.com/img/WestHighlandsPacific/west7.jpg", "", ""]
fadeimages7[7]=["http://dev111.pcminternet.com/img/WestHighlandsPacific/west8.jpg", "", ""]
fadeimages7[8]=["http://dev111.pcminternet.com/img/WestHighlandsPacific/west9.jpg", "", ""]
fadeimages7[9]=["http://dev111.pcminternet.com/img/WestHighlandsPacific/west10.jpg", "", ""]

var fadeimages8=new Array() 
fadeimages8[0]=["http://dev111.pcminternet.com/img/LaCostaMeadowridge/lacostam_1.jpg", "", ""] 
fadeimages8[1]=["http://dev111.pcminternet.com/img/LaCostaMeadowridge/lacostam_2.jpg", "", ""]
fadeimages8[2]=["http://dev111.pcminternet.com/img/LaCostaMeadowridge/lacostam_3.jpg", "", ""]
fadeimages8[3]=["http://dev111.pcminternet.com/img/LaCostaMeadowridge/lacostam_4.jpg", "", ""]
fadeimages8[4]=["http://dev111.pcminternet.com/img/LaCostaMeadowridge/lacostam_5.jpg", "", ""]
fadeimages8[5]=["http://dev111.pcminternet.com/img/LaCostaMeadowridge/lacostam_6.jpg", "", ""]
fadeimages8[6]=["http://dev111.pcminternet.com/img/LaCostaMeadowridge/lacostam_7.jpg", "", ""]

var fadeimages9=new Array() 
fadeimages9[0]=["http://dev111.pcminternet.com/img/Belcourt/master/master_1.jpg", "", ""] 
fadeimages9[1]=["http://dev111.pcminternet.com/img/Belcourt/master/master_2.jpg", "", ""]
fadeimages9[2]=["http://dev111.pcminternet.com/img/Belcourt/master/master_3.jpg", "", ""]
fadeimages9[3]=["http://dev111.pcminternet.com/img/Belcourt/master/master_4.jpg", "", ""]
fadeimages9[4]=["http://dev111.pcminternet.com/img/Belcourt/master/master_5.jpg", "", ""]
fadeimages9[5]=["http://dev111.pcminternet.com/img/Belcourt/master/master_6.jpg", "", ""]

var fadeimages10=new Array() 
fadeimages10[0]=["http://dev111.pcminternet.com/img/Belcourt/park/park_1.jpg", "", ""] 
fadeimages10[1]=["http://dev111.pcminternet.com/img/Belcourt/park/park_2.jpg", "", ""]
fadeimages10[2]=["http://dev111.pcminternet.com/img/Belcourt/park/park_3.jpg", "", ""]
fadeimages10[3]=["http://dev111.pcminternet.com/img/Belcourt/park/park_4.jpg", "", ""]
fadeimages10[4]=["http://dev111.pcminternet.com/img/Belcourt/park/park_5.jpg", "", ""]

var fadeimages11=new Array() 
fadeimages11[0]=["http://dev111.pcminternet.com/img/Belcourt/terrace/terrace_1.jpg", "", ""] 
fadeimages11[1]=["http://dev111.pcminternet.com/img/Belcourt/terrace/terrace_2.jpg", "", ""]
fadeimages11[2]=["http://dev111.pcminternet.com/img/Belcourt/terrace/terrace_3.jpg", "", ""]
fadeimages11[3]=["http://dev111.pcminternet.com/img/Belcourt/terrace/terrace_4.jpg", "", ""]
fadeimages11[4]=["http://dev111.pcminternet.com/img/Belcourt/terrace/terrace_5.jpg", "", ""]

var fadeimages12=new Array() 
fadeimages12[0]=["http://dev111.pcminternet.com/img/AVCA/avca_1.jpg", "", ""] 
fadeimages12[1]=["http://dev111.pcminternet.com/img/AVCA/avca_2.jpg", "", ""]
fadeimages12[2]=["http://dev111.pcminternet.com/img/AVCA/avca_3.jpg", "", ""]
fadeimages12[3]=["http://dev111.pcminternet.com/img/AVCA/avca_4.jpg", "", ""]
fadeimages12[4]=["http://dev111.pcminternet.com/img/AVCA/avca_5.jpg", "", ""]
fadeimages12[5]=["http://dev111.pcminternet.com/img/AVCA/avca_6.jpg", "", ""]
fadeimages12[6]=["http://dev111.pcminternet.com/img/AVCA/avca_7.jpg", "", ""]

var fadeimages13=new Array() 
fadeimages13[0]=["http://dev111.pcminternet.com/img/ForsterHighlands/forster_1.jpg", "", ""]
fadeimages13[1]=["http://dev111.pcminternet.com/img/ForsterHighlands/forster_2.jpg", "", ""]
fadeimages13[2]=["http://dev111.pcminternet.com/img/ForsterHighlands/forster_3.jpg", "", ""]
fadeimages13[3]=["http://dev111.pcminternet.com/img/ForsterHighlands/forster_4.jpg", "", ""]
fadeimages13[4]=["http://dev111.pcminternet.com/img/ForsterHighlands/forster_5.jpg", "", ""]
fadeimages13[5]=["http://dev111.pcminternet.com/img/ForsterHighlands/forster_6.jpg", "", ""]
fadeimages13[6]=["http://dev111.pcminternet.com/img/ForsterHighlands/forster_7.jpg", "", ""]
fadeimages13[7]=["http://dev111.pcminternet.com/img/ForsterHighlands/forster_8.jpg", "", ""]
fadeimages13[8]=["http://dev111.pcminternet.com/img/ForsterHighlands/forster_9.jpg", "", ""]
fadeimages13[9]=["http://dev111.pcminternet.com/img/ForsterHighlands/forster_10.jpg", "", ""]
fadeimages13[10]=["http://dev111.pcminternet.com/img/ForsterHighlands/forster_11.jpg", "", ""]

var fadeimages14=new Array() 
fadeimages14[0]=["http://dev111.pcminternet.com/img/WoodburyEast/1.jpg", "", ""]
fadeimages14[1]=["http://dev111.pcminternet.com/img/WoodburyEast/2.jpg", "", ""]
fadeimages14[2]=["http://dev111.pcminternet.com/img/WoodburyEast/3.jpg", "", ""]
fadeimages14[3]=["http://dev111.pcminternet.com/img/WoodburyEast/4.jpg", "", ""]
fadeimages14[4]=["http://dev111.pcminternet.com/img/WoodburyEast/5.jpg", "", ""]
fadeimages14[5]=["http://dev111.pcminternet.com/img/WoodburyEast/6.jpg", "", ""]
fadeimages14[6]=["http://dev111.pcminternet.com/img/WoodburyEast/7.jpg", "", ""]
fadeimages14[7]=["http://dev111.pcminternet.com/img/WoodburyEast/8.jpg", "", ""]
fadeimages14[8]=["http://dev111.pcminternet.com/img/WoodburyEast/9.jpg", "", ""]
fadeimages14[9]=["http://dev111.pcminternet.com/img/WoodburyEast/10.jpg", "", ""]
fadeimages14[10]=["http://dev111.pcminternet.com/img/WoodburyEast/11.jpg", "", ""]
fadeimages14[11]=["http://dev111.pcminternet.com/img/WoodburyEast/12.jpg", "", ""]
fadeimages14[12]=["http://dev111.pcminternet.com/img/WoodburyEast/13.jpg", "", ""]
fadeimages14[13]=["http://dev111.pcminternet.com/img/WoodburyEast/14.jpg", "", ""]
fadeimages14[14]=["http://dev111.pcminternet.com/img/WoodburyEast/15.jpg", "", ""]
fadeimages14[15]=["http://dev111.pcminternet.com/img/WoodburyEast/16.jpg", "", ""]

var fadeimages15=new Array() 
fadeimages15[0]=["http://dev111.pcminternet.com/img/Glenwood_Master/glenwood_1.jpg", "", ""]
fadeimages15[1]=["http://dev111.pcminternet.com/img/Glenwood_Master/glenwood_2.jpg", "", ""]
fadeimages15[2]=["http://dev111.pcminternet.com/img/Glenwood_Master/glenwood_3.jpg", "", ""]
fadeimages15[3]=["http://dev111.pcminternet.com/img/Glenwood_Master/glenwood_4.jpg", "", ""]
fadeimages15[4]=["http://dev111.pcminternet.com/img/Glenwood_Master/glenwood_5.jpg", "", ""]

var fadeimages16=new Array() 
fadeimages16[0]=["http://dev111.pcminternet.com/img/VantagePointe/1.jpg", "", ""]
fadeimages16[1]=["http://dev111.pcminternet.com/img/VantagePointe/2.jpg", "", ""]
fadeimages16[2]=["http://dev111.pcminternet.com/img/VantagePointe/3.jpg", "", ""]


var fadebgcolor="white"

////NO need to edit beyond here/////////////
 
var fadearray=new Array() //array to cache fadeshow instances
var fadeclear=new Array() //array to cache corresponding clearinterval pointers
 
var dom=(document.getElementById) //modern dom browsers
var iebrowser=document.all
 
function fadeshow(theimages, fadewidth, fadeheight, borderwidth, delay, pause, displayorder){
this.pausecheck=pause
this.mouseovercheck=0
this.delay=delay
this.degree=10 //initial opacity degree (10%)
this.curimageindex=0
this.nextimageindex=1
fadearray[fadearray.length]=this
this.slideshowid=fadearray.length-1
this.canvasbase="canvas"+this.slideshowid
this.curcanvas=this.canvasbase+"_0"
if (typeof displayorder!="undefined")
theimages.sort(function() {return 0.5 - Math.random();}) //thanks to Mike (aka Mwinter) :)
this.theimages=theimages
this.imageborder=parseInt(borderwidth)
this.postimages=new Array() //preload images
for (p=0;p<theimages.length;p++){
this.postimages[p]=new Image()
this.postimages[p].src=theimages[p][0]
}
 
var fadewidth=fadewidth+this.imageborder*2
var fadeheight=fadeheight+this.imageborder*2
 
if (iebrowser&&dom||dom) //if IE5+ or modern browsers (ie: Firefox)
document.write('<div id="master'+this.slideshowid+'" style="position:relative;width:'+fadewidth+'px;height:'+fadeheight+'px;overflow:hidden;"><div id="'+this.canvasbase+'_0" style="position:absolute;width:'+fadewidth+'px;height:'+fadeheight+'px;top:0;left:0;filter:progid:DXImageTransform.Microsoft.alpha(opacity=10);opacity:0.1;-moz-opacity:0.1;-khtml-opacity:0.1;background-color:'+fadebgcolor+'"></div><div id="'+this.canvasbase+'_1" style="position:absolute;width:'+fadewidth+'px;height:'+fadeheight+'px;top:0;left:0;filter:progid:DXImageTransform.Microsoft.alpha(opacity=10);opacity:0.1;-moz-opacity:0.1;-khtml-opacity:0.1;background-color:'+fadebgcolor+'"></div></div>')
else
document.write('<div><img name="defaultslide'+this.slideshowid+'" src="'+this.postimages[0].src+'"></div>')
 
if (iebrowser&&dom||dom) //if IE5+ or modern browsers such as Firefox
this.startit()
else{
this.curimageindex++
setInterval("fadearray["+this.slideshowid+"].rotateimage()", this.delay)
}
}

function fadepic(obj){
if (obj.degree<100){
obj.degree+=10
if (obj.tempobj.filters&&obj.tempobj.filters[0]){
if (typeof obj.tempobj.filters[0].opacity=="number") //if IE6+
obj.tempobj.filters[0].opacity=obj.degree
else //else if IE5.5-
obj.tempobj.style.filter="alpha(opacity="+obj.degree+")"
}
else if (obj.tempobj.style.MozOpacity)
obj.tempobj.style.MozOpacity=obj.degree/101
else if (obj.tempobj.style.KhtmlOpacity)
obj.tempobj.style.KhtmlOpacity=obj.degree/100
else if (obj.tempobj.style.opacity&&!obj.tempobj.filters)
obj.tempobj.style.opacity=obj.degree/101
}
else{
clearInterval(fadeclear[obj.slideshowid])
obj.nextcanvas=(obj.curcanvas==obj.canvasbase+"_0")? obj.canvasbase+"_0" : obj.canvasbase+"_1"
obj.tempobj=iebrowser? iebrowser[obj.nextcanvas] : document.getElementById(obj.nextcanvas)
obj.populateslide(obj.tempobj, obj.nextimageindex)
obj.nextimageindex=(obj.nextimageindex<obj.postimages.length-1)? obj.nextimageindex+1 : 0
setTimeout("fadearray["+obj.slideshowid+"].rotateimage()", obj.delay)
}
}
 
fadeshow.prototype.populateslide=function(picobj, picindex){
var slideHTML=""
if (this.theimages[picindex][1]!="") //if associated link exists for image
slideHTML='<a href="'+this.theimages[picindex][1]+'" target="'+this.theimages[picindex][2]+'">'
slideHTML+='<img src="'+this.postimages[picindex].src+'" border="'+this.imageborder+'px">'
if (this.theimages[picindex][1]!="") //if associated link exists for image
slideHTML+='</a>'
picobj.innerHTML=slideHTML
}
 
 
fadeshow.prototype.rotateimage=function(){
if (this.pausecheck==1) //if pause onMouseover enabled, cache object
var cacheobj=this
if (this.mouseovercheck==1)
setTimeout(function(){cacheobj.rotateimage()}, 100)
else if (iebrowser&&dom||dom){
this.resetit()
var crossobj=this.tempobj=iebrowser? iebrowser[this.curcanvas] : document.getElementById(this.curcanvas)
crossobj.style.zIndex++
fadeclear[this.slideshowid]=setInterval("fadepic(fadearray["+this.slideshowid+"])",50)
this.curcanvas=(this.curcanvas==this.canvasbase+"_0")? this.canvasbase+"_1" : this.canvasbase+"_0"
}
else{
var ns4imgobj=document.images['defaultslide'+this.slideshowid]
ns4imgobj.src=this.postimages[this.curimageindex].src
}
this.curimageindex=(this.curimageindex<this.postimages.length-1)? this.curimageindex+1 : 0
}
 
fadeshow.prototype.resetit=function(){
this.degree=10
var crossobj=iebrowser? iebrowser[this.curcanvas] : document.getElementById(this.curcanvas)
if (crossobj.filters&&crossobj.filters[0]){
if (typeof crossobj.filters[0].opacity=="number") //if IE6+
crossobj.filters(0).opacity=this.degree
else //else if IE5.5-
crossobj.style.filter="alpha(opacity="+this.degree+")"
}
else if (crossobj.style.MozOpacity)
crossobj.style.MozOpacity=this.degree/101
else if (crossobj.style.KhtmlOpacity)
crossobj.style.KhtmlOpacity=this.degree/100
else if (crossobj.style.opacity&&!crossobj.filters)
crossobj.style.opacity=this.degree/101
}
 
 
fadeshow.prototype.startit=function(){
var crossobj=iebrowser? iebrowser[this.curcanvas] : document.getElementById(this.curcanvas)
this.populateslide(crossobj, this.curimageindex)
if (this.pausecheck==1){ //IF SLIDESHOW SHOULD PAUSE ONMOUSEOVER
var cacheobj=this
var crossobjcontainer=iebrowser? iebrowser["master"+this.slideshowid] : document.getElementById("master"+this.slideshowid)
crossobjcontainer.onmouseover=function(){cacheobj.mouseovercheck=1}
crossobjcontainer.onmouseout=function(){cacheobj.mouseovercheck=0}
}
this.rotateimage()
}