
function updateImageSource(theImage,theEvent,bDisplay,strImageSource){if(!theImage||theImage==null)
return;theImage.onerror=null;if(!theEvent||theEvent==null)
return;if(theEvent.cancelBubble)
theEvent.cancelBubble=true;if(!bDisplay)
theImage.style.display="none";if(strImageSource&&strImageSource!=null&&strImageSource.length&&strImageSource.length>0)
theImage.src=strImageSource;}
function updateHolidayImageParentBackground(theImage,theEvent,strImageLanguage,strImageCaption){if(!theImage||theImage==null)
return;theImage.onerror=null;if(!theEvent||theEvent==null)
return;if(theEvent.cancelBubble)
theEvent.cancelBubble=true;if(!strImageLanguage||strImageLanguage==null)
return;var strLanguage="en";if(strImageLanguage.length&&strImageLanguage.length>0&&strImageLanguage.toLowerCase()!="gb")
strLanguage=strImageLanguage;var strCaption="";if(strImageCaption&&strImageCaption!=null)
strCaption=strImageCaption;var theParentElement=theImage.parentNode;if(theParentElement!=null&&theParentElement.tagName&&theParentElement.tagName.toLowerCase()=="div"){theParentElement.style.background="url(./img/languages/"+strLanguage+"/noImg2.gif) no-repeat center center";theParentElement.style.width="91px";theParentElement.style.height="91px";theParentElement.innerHTML="<div class=\"holidayPhotoHolderNoImage\">"+strCaption+"</div>";}}
