
	// -----------------------------------------------------------------------------

		//Get Version of IE or Netscape
		NS4 = (document.layers) ? 1 : 0;
		IE4 = (document.all) ? 1 : 0;
		ver4 = (NS4 || IE4) ? 1 : 0;

	// -----------------------------------------------------------------------------
		
		function ChangeMedia(id, tTitle, tDesc) {
			ChangeImage(id);
			ChangeText(tTitle, tDesc);
		}
		
	// -----------------------------------------------------------------------------		
		
		function ChangeImage (id) {
			var new_image = "images/medium/" + id + ".jpg";
			document['bigImage'].src = new_image;
			
			//str = id + " - <a href='contact.asp?id=" + id + "'>Submit Enquiry</a>"
			
			if (NS4) {
				whichEl = eval("window.document.bridecode.document");
				with (whichEl) {
					open();
					write(str);
					close();
				}
			}
			else {
				//whichEl = eval("window.document.all.bridecode");
				//whichEl.innerHTML = str;
			}
		}

	// -----------------------------------------------------------------------------
		
		function ChangeText(tTitle, tDesc) {
		
			var elmA = document.getElementById('tTitle');
			var elmB = document.getElementById('tDesc');
			
	        if(document.all){
	            //alert('this should display "innerText"');
	            elmA.innerText = tTitle;
	            elmB.innerText = tDesc;
	        } else{
	            //alert('this should display "textContent"');
	            elmA.textContent = tTitle;
	            elmB.textContent = tDesc;
	        }
		}

	// -----------------------------------------------------------------------------
		
		function OpenWindow (id) {
			winId = window.open("images/large/" + id + '.jpg')
			//,'status=yes,scrollbars=yes,toolbar=yes,location=yes,menu=yes,maximum=yes,resizable=yes,left=0,top=0,width=700,height=500');
			winId.focus();
		}
