// Align left table

function switchHeight(){


document.getElementById("Left").style.height = (document.getElementById("Right").clientHeight ) + "px"; // 


 }


// Image Rollover Script

 if (document.images) {            // Active Images
            img1on = new Image();      
            img1on.src = "/Images/QS_But_.png"; 
            img2on = new Image();      
            img2on.src = "/Images/Home_.png"; 
            img3on = new Image();      
            img3on.src = "/Images/Apartment_Search_.png"; 
			img4on = new Image();      
            img4on.src = "/Images/View_Favorites_.png"; 
			img5on = new Image();      
            img5on.src = "/Images/Browse_Specials_.png"; 
			img6on = new Image();      
            img6on.src = "/Images/Claim_Rebate_.png"; 
			img7on = new Image();      
            img7on.src = "/Images/Property_Details_.jpg"; 
			img8on = new Image();      
            img8on.src = "/Images/Photos_.jpg"; 
			img9on = new Image();      
            img9on.src = "/Images/FP_.jpg";
			img10on = new Image();      
            img10on.src = "/Images/Video_Tour_.jpg";
         
            img1off = new Image(); 
            img1off.src = "/Images/QS_But.png"; 
			img2off = new Image(); 
            img2off.src = "/Images/Home.png"; 
            img3off = new Image(); 
            img3off.src = "/Images/Apartment_Search.png"; 
			img4off = new Image(); 
            img4off.src = "/Images/View_Favorites.png"; 
			img5off = new Image(); 
            img5off.src = "/Images/Browse_Specials.png"; 
			img6off = new Image(); 
            img6off.src = "/Images/Claim_Rebate.png"; 
			img7off = new Image(); 
            img7off.src = "/Images/Property_Details.jpg"; 
			img8off = new Image(); 
            img8off.src = "/Images/Photos.jpg"; 
			img9off = new Image(); 
            img9off.src = "/Images/FP.jpg"; 
			img10off = new Image();      
            img10off.src = "/Images/Video_Tour.jpg";
         
        }
        
        function imgOn(imgName) {
        if (document.images) {
            document[imgName].src = eval(imgName + "on.src");
        }
}
         
// Function to 'activate' images.
         
function imgOn(imgName) {
        if (document.images) {
            document[imgName].src = eval(imgName + "on.src");
        }
}
         
// Function to 'deactivate' images.
         
function imgOff(imgName) {
        if (document.images) {
            document[imgName].src = eval(imgName + "off.src");
        }
}

// Function to strip out unwanted characters from zip

function validated(string) {
    for (var i=0, output='', valid="1234567890"; i<string.length; i++)
       if (valid.indexOf(string.charAt(i)) != -1)
          output += string.charAt(i)
    return output;
} 

/*
	Compatibile XHTML Flash displayer
	Author 	: Razvan Stanga
	Date 	: 2006-03-07 17:39
*/

function Flash () {
	this._swf = '';
	this._width = 0;
	this._height = 0;
	this._version = 8;
	this._embedid = '';
	this._objectid = '';
	this._return = 0;
	this._movieparam = 0;
	this._params = new Array();
}

Flash.prototype.setSWF = function (_swf, _width, _height, _version) {
	this._swf 		= _swf;
	this._width 	= _width;
	this._height 	= _height;
	if ( isNaN (_version) != false ) {
		this._version 	= _version;
	}
}

Flash.prototype.setParam = function (paramName, paramValue) {
	this._params[this._params.length] = paramName+'|||'+paramValue;
}

Flash.prototype.display = function () {
	var _txt 	= '';
	var params 	= '';
	_txt += '<object';
	if ( this._objectid  ) {
		_txt += ' id="'+this._objectid+'"';
		_txt += ' name="'+this._objectid+'"';
	}
	_txt += ' classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version='+this._version+',0,0,0" width="'+this._width+'" height="'+this._height+'">';
	_txt += '<param width="'+this._width+'" height="'+this._height+'" id="'+this._movieparam+'" name="movie" value="'+this._swf+'" />'
	_txt += '<param name="quality" value="high" />';
	for ( i=0;i<this._params.length;i++ ) {
		_param = this._params[i].split ('|||');
		_txt += '<param name="'+_param[0]+'" value="'+_param[1]+'" />';
		params += _param[0]+'="'+_param[1]+'" ';
	}

	_txt += '<embed';
	if ( this._embedid  ) {
		_txt += ' id="'+this._embedid+'"';
		_txt += ' name="'+this._embedid+'"';
	}
	_txt += ' width="'+this._width+'" height="'+this._height+'" src="'+this._swf+'" '+params+' quality="high" type="application/x-shockwave-flash"></embed>';
	_txt += '</object>';
	if ( this._return == 0 ) {
		document.write (_txt);
	} else {
		return _txt;
	}

}


function NewWindow(mypage, myname, w, h, scroll, menubar, toolbar) {
var winl = (screen.width - w) / 2;
var wint = (screen.height - h) / 2;
winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars='+scroll+',menubar='+menubar+',toolbar='+toolbar+',noresizable'
win = window.open(mypage, myname, winprops)
if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }
}

