function hlRow (el, bln) {
	if (document.getElementById) {
		el.style.backgroundColor = (bln) ? "#FFF1CE" : "#FFFFFF";
	}
}

function windowOpen (el, name, w, h) {
	var newwindow;
	if (el.getAttribute) {
		if((w == 0 || String(w) == "undefined") || (h == 0 || String(h) == "undefined")) {
			newwindow = window.open(el.getAttribute("href"), name);
		} else {
			newwindow = window.open(el.getAttribute("href"), name, "width=" + w + ",height=" + h + ",toolbar=no,resizable=yes");
		}
	
		if (window.focus) {newwindow.focus()}
		return false;
	} else {
		return true;
	}
}

function renderFlash(id, filename, w, h, flashvars, disclaimer) {
	var s = "";
	s += '<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" id="' + id + '" width="' + w + '" height="' + h + '">\n';
	s += '<param name="movie" value="' + filename + '" />\n';
	s += '<param name="quality" value="high" />\n';
	s += (flashvars != null) ? '<param name="FlashVars" value="' + flashvars + '" />\n' : "";
	s += '<embed src="' + filename + '"' + (flashvars != null ? ' flashvars="' + flashvars + '"' : "") + ' quality="high" name="' + id + '" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" width="' + w + '" height="' + h + '" />\n';
	s += '</object>\n';
	s += (disclaimer) ? '<p id="flashdisclaimer" class="micetype">Prices and availability subject to change without notice. Not all Plans may be available at the time you visit this community due to previous sales, release timing, and other factors. Lot premiums may exist.</p>\n' : "";
	
	document.write(s);
}

function shareOnFB( url ) {
	var newwindow;
	var FBlink = 'http://www.facebook.com/share.php?u=' + url.toString();
	newwindow = window.open( FBlink, name);
}