if(!MM_contentVersion) var MM_contentVersion = 4;
var plugin = (navigator.mimeTypes && navigator.mimeTypes["application/x-shockwave-flash"]) ? navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin : 0;
if ( plugin ) {
		var words = navigator.plugins["Shockwave Flash"].description.split(" ");
	    for (var i = 0; i < words.length; ++i)
	    {
		if (isNaN(parseInt(words[i])))
		continue;
		var MM_PluginVersion = words[i]; 
	    }
	var MM_FlashCanPlay = MM_PluginVersion >= MM_contentVersion;
}
else if (navigator.userAgent && navigator.userAgent.indexOf("MSIE")>=0 
   && (navigator.appVersion.indexOf("Win") != -1)) {
	document.write('<SCR' + 'IPT LANGUAGE=VBScript\> \n'); 
	document.write('on error resume next \n');
	document.write('MM_FlashCanPlay = ( IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash." & MM_contentVersion)))\n');
	document.write('</SCR' + 'IPT\> \n');
}

function EnlargeImage(id,paths) {
	var MyWidth;
	var MyHeight;	
	MyWidth = (window.screen.width/2) - (350 + 10);
	MyHeight = (window.screen.height/2) - (300 + 50); 
	var PSPWindow = window.open("http://www.website4realty.com/RE-ShoppingEnlarge.cfm?productID="+id,"ENLARGEIMAGE","height=550,width=500,resizable=no,left=" + MyWidth + ",top=" + MyHeight + ",screenX=" + MyWidth + ",screenY=" + MyHeight + ",scrollbars=auto");
	PSPWindow.focus();
}

function ShoppingCart(ac,id){
document.Shopping.ACTION.value=ac;
document.Shopping.ID.value=id;
document.Shopping.submit();
}

function SameShipping(){
forma = document.Checkout;
forma.s_first_name.value = forma.first_name.value;
forma.s_last_name.value = forma.last_name.value;
forma.s_address.value = forma.address.value;
forma.s_city.value = forma.city.value;
forma.s_zip.value = forma.zip.value;
forma.s_state.options[forma.state.selectedIndex].selected=true;
forma.s_country.options[forma.country.selectedIndex].selected=true;
}

function importXML(filename,type){
	if (document.implementation && document.implementation.createDocument)
	{
		xmlDoc = document.implementation.createDocument("", "", null);
		if(type=='categories') xmlDoc.onload = ShowCategories;
		else xmlDoc.onload = ShowHeader;			
	}
	else if (window.ActiveXObject)
	{
		xmlDoc = new ActiveXObject("Microsoft.XMLDOM");
		xmlDoc.onreadystatechange = function () {
			if (xmlDoc.readyState == 4){
				if(type=='categories') ShowCategories();
				else ShowHeader();
			};
			}
 	}
	else
	{
		return;
	}
	xmlDoc.load(filename);
}

function cutLine(str,len){if(str && str.length > len) str = str.substring(0,len) + '..'; return str;}
