function openPicture(WinHeightVal, WinWidthVal, PicHeightVal, PicWidthVal, PicName){
	strURL = "/HomeBuilder/Testimonial_HomeImage.aspx?PicHeightVal=" + PicHeightVal +"&PicWidthVal=" + PicWidthVal + "&PicName=" + PicName;
	strWin = window.open(strURL, "", "height=" + WinHeightVal + ",width=" + WinWidthVal + ", left=0,top=0, resizable=yes, center=yes, status=yes,location=no,toolbar=no,menubar=no" );
	}
	
function openWindow_flash(UID) { 
	popupWin = window.open('/HomeBuilder/eBrochure/FloorPlanFlash.aspx?ItemType=FloorPlan&ItemID=' + UID,'remote','width=800,height=600,resizable=no,scrollbars=no')
  }
  
function openVideoPromo() { 
	popupWin = window.open('/HomeBuilder/Images/Flash/Video/videoPromo.htm','VideoPromo','width=330,height=270,resizable=no,scrollbars=no,toolbar=no')
  }
  
 function openFloorPlan(UID) { 
	//var winHeight  = window.innerHeight != null? window.innerHeight: document.body != null? document.body.clientHeight:null;
	var screenHeight = screen.height;

	screenHeight = screenHeight - 70;
	
	popupWin = window.open('/site/Floorplan.aspx?UID=' + UID,'FloorPlan','width=798,height=' + screenHeight + ',resizable=yes,scrollbars=yes,toolbar=no,status=no,top=5,left=20')
	if(popupWin)
		popupWin.focus();
  }

 function openPrintableDirections(UID) { 
	popupWin = window.open('/site/PrintableDirections.aspx?UID=' + UID,'FloorPlan','width=550,height=500,resizable=yes,scrollbars=yes,toolbar=no,status=no')
  }
  
 function openLot(UID) { 
	var screenHeight = screen.height;
	screenHeight = screenHeight - 70;
	
	popupWin = window.open('/site/Lot.aspx?UID=' + UID,'Lot','width=798,height=' + screenHeight + ',resizable=yes,scrollbars=yes,toolbar=no,status=no')
	if(popupWin)
		popupWin.focus();  
  }
  
 function openEmail(UID) { 
	popupWin = window.open('/site/SendEmail.aspx?UID=' + UID,'Lot','width=500,height=400,resizable=no,scrollbars=no,toolbar=no,status=no')
	}
  
 function openFlashViewer(UID) { 
	popupWin = window.open('/site/FlashViewer.aspx?UID=' + UID,'Lot','width=800,height=620,resizable=yes,scrollbars=yes,toolbar=no,status=no')
  }
  
   function openGreenFlashViewer(VID) { 
	popupWin = window.open('/site/FlashViewerGreen.aspx?VID=' + VID,'Video','width=800,height=620,resizable=yes,scrollbars=yes,toolbar=no,status=no')
  }
  
 function findImagePath(path) {
		var imgPath = path.split("?")[1].split("&")[0].split("=")[1];
		imgPath += path.split("?")[1].split("&")[1].split("=")[1];
		window.open(imgPath);
	}