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 importXML(filename,type){
	if (document.implementation && document.implementation.createDocument)
	{
		xmlDoc = document.implementation.createDocument("", "", null);
		xmlDoc.onload = aShowCategories;			
	}
	else if (window.ActiveXObject)
	{
		xmlDoc = new ActiveXObject("Microsoft.XMLDOM");
		xmlDoc.onreadystatechange = function () {
			if (xmlDoc.readyState == 4){
				aShowCategories();
			};
			}
 	}
	else
	{
		return;
	}
	xmlDoc.load(filename);
}

function importXML2(filename,type){
	if (document.implementation && document.implementation.createDocument)
	{
		xmlDoc2 = document.implementation.createDocument("", "", null);
		xmlDoc2.onload = ShowCategories;			
	}
	else if (window.ActiveXObject)
	{
		xmlDoc2 = new ActiveXObject("Microsoft.XMLDOM");
		xmlDoc2.onreadystatechange = function () {
			if (xmlDoc2.readyState == 4){
				ShowCategories();				
			};
			}
 	}
	else
	{
		return;
	}
	xmlDoc2.load(filename);
}

function ahiddencat() {
	if (document.all){
		document.all.article.style.visibility='hidden';
	} else {
		if(document.layers){
			document.layers['article'].visibility='hidden';
		} else {
			if(document.getElementById('article')) {
				document.getElementById('article').style.visibility='hidden';	
			}
		}
 	}
}

function hiddencat() {
	if (document.all){
		document.all.shopping.style.visibility='hidden';
	} else {
		if(document.layers){
			document.layers['shopping'].visibility='hidden';
		} else {
			if(document.getElementById('shopping')) {
				document.getElementById('shopping').style.visibility='hidden';	
			}
		}
 	}
}

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;
}