
        // credits: bugimus.com
        function showPic(imgName, imgCaption, imgWidth, imgHeight, textColor, bgColor )
        {
        	if(imgWidth<=100)imgWidth=100
        	if(imgHeight<=100)imgHeight=100
        	winHeight=imgHeight+20;
        	w = window.open('','Demo','toolbar=no,location=no,directories=no,status=no,scrollbars=no,resizable=yes,copyhistory=no,width='+imgWidth+',height='+winHeight);
        	w.document.write( "<html><head><title>"+imgCaption+"</title>" );
        	w.document.write( "<script language='JavaScript'>\n");
        	w.document.write( "IE5=NN4=NN6=false\n");
        	w.document.write( "if(document.all)IE5=true;\n");
        	w.document.write( "else if(document.getElementById)NN6=true\n");
        	w.document.write( "else if(document.layers)NN4=true\n");
        	w.document.write( "function autoSize() {\n");
        	w.document.write( "	if(IE5) self.resizeTo(document.images[0].width+10,document.images[0].height+31+20)\n");
        	w.document.write( "	else if(NN6) self.sizeToContent()\n");
        	w.document.write( "	else top.window.resizeTo(document.images[0].width,document.images[0].height+20)\n");
        	w.document.write( "	self.focus()\n");
        	w.document.write( "}\n</scr");
        	w.document.write( "ipt>\n");
        	w.document.write( "</head><body leftmargin=0 topmargin=0 marginwidth=0 marginheight=0 onLoad=" );
        	w.document.write( "'javascript:autoSize();'>" );
        	w.document.write( "<table cellpadding=0 cellspacing=0 border=0><tr><td colspan=3><img src='"+imgName+"' border=0 alt='"+imgCaption+"'></td></tr>" );
        	w.document.write( "<tr><td align='left'>&nbsp;&nbsp;<a>&copy; </a></td>" );
        	w.document.write( "<td align='center'><a>(ctrl-p to print)</a></td>" );
        	w.document.write( "<td align='right'><a href='javascript:top.window.close();'>close window</a>&nbsp;&nbsp;</td></tr>" );
        	w.document.write( "</table></body></html>" );
        	w.document.close();
        }
        
    	function popUpPlans(URL, name, width ,scroll)
    	{
    		if (scroll == "yes")
    		{
    			scrollvalue = 1;
    		}
    		else
    		{
    			scrollvalue = 0;
    		}

    		popid = window.open(URL, name, 'toolbars=0, scrollbars=1, location=1, statusbars=1, menubars=0, resizable=1, width=800, height=610, left = 50, top = 50');
    		popid.focus();
    	}
		

			
			function MapPopUp(URL, map, width ,scroll)
    	{
    		if (scroll == "yes")
    		{
    			scrollvalue = 1;
    		}
    		else
    		{
    			scrollvalue = 0;
    		}

    		popid = window.open(URL, map, 'toolbars=0, scrollbars=0, location=0, statusbars=0, menubars=0, resizable=1, width=600, height=640, left = 250, top = 200');
    		popid.focus();
    	}
		
		
function SqFtPopUp(sLink)
{
openSqFt=window.open(sLink, "openSqFt", "width=600,height=650,scrollbars=no,toolbar=no,location=no,statusbar=no,menubar=no,resizable=no,left=25,top=25");
}		


function BrochPopUp(sLink)
{
BrochWin=window.open(sLink, "openBroch", "width=800,scrollbars=yes,toolbar=no,location=no,statusbar=no,menubar=no,resizable=yes,left=25,top=25");
}
		
   
function showEditor()
{
var oFCKeditor = new FCKeditor( 'description' ) ;
oFCKeditor.BasePath = "../editor/" ;
oFCKeditor.ReplaceTextarea() ;
}


function openhelp(sLink)
{
PicWin=window.open(sLink, "openhelp", "width=760,height=560,scrollbars=yes,toolbar=no,location=no,statusbar=yes,menubar=no,resizable=yes,left=25,top=25");
}


function OpenCalc(sLink)
{
   {
   w = screen.availWidth;
   h = screen.availHeight;
   }
var popW = 640, popH = 500;
var leftPos = (w-popW)/2, topPos = (h-popH-150)/2;

PicWin=window.open(sLink, "OpenCalc",'width=' + popW + ' height=' + popH + ' top=' + topPos + ' left=' + leftPos + 
'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=1');
}

function OpenLargePhoto(sLink)
{
   {
   w = screen.availWidth;
   h = screen.availHeight;
   }
var popW = 960, popH = 700;
var leftPos = (w-popW)/2, topPos = (h-popH-150)/2;

PicWin=window.open(sLink, "LargePhoto",'width=' + popW + ' height=' + popH + ' top=' + topPos + ' left=' + leftPos + 
'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0');
}

function popUpEdit(URL, edit, width ,scroll)
    	{
    		if (scroll == "yes")
    		{
    			scrollvalue = 1;
    		}
    		else
    		{
    			scrollvalue = 0;
    		}

    		popid = window.open(URL, edit, 'toolbars=0, scrollbars=0, location=1, statusbars=1, menubars=0, resizable=1, width=550, height=540, left = 250, top = 200');
    		popid.focus();
    	}
			
			
			function popUp(URL, popup, width ,scroll)
    	{
    		if (scroll == "yes")
    		{
    			scrollvalue = 1;
    		}
    		else
    		{
    			scrollvalue = 0;
    		}

    		popid = window.open(URL, popup, 'toolbars=0, scrollbars=1, location=0, statusbars=0, menubars=0, resizable=1, width=650, height=600, left = 150, top = 100');
    		popid.focus();
    	}
			

function goBack()
{
  history.back()
}
function OpenPrintPage(URL)
 {
  window.open(URL);
 } 

function popUpFriend(URL, friend, width ,scroll)
    	{
    		if (scroll == "yes")
    		{
    			scrollvalue = 1;
    		}
    		else
    		{
    			scrollvalue = 0;
    		}

    		popid = window.open(URL, friend, 'toolbars=0, scrollbars=0, location=0, statusbars=0, menubars=0, resizable=0, width=454, height=460, left = 250, top = 200');
    		popid.focus();
    	}
