function contractPhotos() {
var ptd = undefined;
 var sl = undefined; 
 var hl = undefined; 
 try { //
     //--Get the photo table ----------------------
     if (typeof document.getElementById('photoTableDiv') != 'undefined') {
       // alert('photoTableDiv found');
        ptd = document.getElementById('photoTableDiv')
     }
     if (typeof document.getElementById('ctl00_ContentPlaceHolder1_photoTableDiv') != 'undefined') {
            //alert('cph1.photoTableDiv found');
            ptd = document.getElementById('ctl00_ContentPlaceHolder1_photoTableDiv') 
     }     
     
     //--Get the show link ----------------------
     if (typeof document.getElementById('showLink') != "undefined"){
        sl = document.getElementById('showLink');
     } 
     if (typeof document.getElementById('ctl00_ContentPlaceHolder1_showLink') != "undefined") {
        sl = document.getElementById('ctl00_ContentPlaceHolder1_showLink');
     }
     //--Get the hide link ----------------------
     if (typeof document.getElementById('hideLink') != "undefined") {
        hl = document.getElementById('hideLink')
     }
     if (typeof document.getElementById('ctl00_ContentPlaceHolder1_hideLink') != "undefined") {
        hl = document.getElementById('ctl00_ContentPlaceHolder1_hideLink')
     }//else
     
 }//try
 catch (ex) {
    alert('exception finding object: '+ex);
 }//catch
 
 if (typeof ptd !='undefined') {
	ptd.style.display='none';
	if (typeof sl != "undefined") {
	    sl.style.display='none';
	}
 }//if
 if (typeof hl != 'undefined') {
	hl.style.display='block'; 
 }//if
}//func

function expandPhotos() {
 var ptd = undefined;
 var sl = undefined; 
 var hl = undefined; 
 try { //
     //--Get the photo table ----------------------
     if (typeof document.getElementById('photoTableDiv') != 'undefined') {
       // alert('photoTableDiv found');
        ptd = document.getElementById('photoTableDiv')
     }
     if (typeof document.getElementById('ctl00_ContentPlaceHolder1_photoTableDiv') != 'undefined') {
            //alert('cph1.photoTableDiv found');
            ptd = document.getElementById('ctl00_ContentPlaceHolder1_photoTableDiv') 
     }     
     
     //--Get the show link ----------------------
     if (typeof document.getElementById('showLink') != "undefined"){
        sl = document.getElementById('showLink');
     } 
     if (typeof document.getElementById('ctl00_ContentPlaceHolder1_showLink') != "undefined") {
        sl = document.getElementById('ctl00_ContentPlaceHolder1_showLink');
     }
     //--Get the hide link ----------------------
     if (typeof document.getElementById('hideLink') != "undefined") {
        hl = document.getElementById('hideLink')
     }
     if (typeof document.getElementById('ctl00_ContentPlaceHolder1_hideLink') != "undefined") {
        hl = document.getElementById('ctl00_ContentPlaceHolder1_hideLink')
     }//else
     
 }//try
 catch (ex) {
    alert('exception finding object: '+ex);
 }//catch
 
 try { //try
     if (typeof ptd !='undefined') {
        if (typeof ptd.style != "undefined"){
	        ptd.style.display='block'; 
	    } // if style
	    if (typeof sl != 'undefined') {
	        if (typeof sl.style != "undefined") {
	            sl.style.display='block'; 
	        } // if style
	    }//if sl
     }//if ptd
     if (typeof hl != 'undefined') {
	    hl.style.display='none';
     }//if hl
 
 }//try
 catch (ex) {
 alert('exception setting display: '+ex);
 }//catch
}//func

function propertyPhotoMain(thumb) {
 var mp;
  try { //try
 if (typeof document.images["ctl00_ContentPlaceHolder1_mainPhoto"] != "undefined") {
    mp = document.images["ctl00_ContentPlaceHolder1_mainPhoto"];
 }
 if (typeof document.images["mainPhoto"] != "undefined") {
    mp = document.images["mainPhoto"];
 }
 if (mp) {
	if (thumb != null) { 
		mp.src = thumb
		if (typeof mp != 'undefined') {
			mp.focus();
			scroll(0,200);
		}
		//alert("doing property photo for:"+thumb);
	}
 }//if 
  }//try
  catch (ex) {
    alert('Exception: '+ex);
  };//catch
}//func
function associatePhotoMain(thumb) {
 if (document.images["mainPhoto"]) {
	if (thumb != null) { 
		document.images["mainPhoto"].src = thumb
		//alert("doing associate photo for:"+thumb);
	}
 }//if
}
function officePhotoMain(thumb) {
 if (document.images["mainPhoto"]) {
	if (thumb != null) { 
		document.images["mainPhoto"].src = thumb
		//alert("doing office photo for:"+thumb);
	}
 }//if
}
