// V8 Mk-4 Version V4.08
// updated by coolnicks 20.6.07
// Radio Buttons
function rdclk(imgid, newimage, radioid){			// called from Radio button or Icon onclick
  if ( newimage )
    {
    document.getElementById('im-' + imgid).src = newimage;	// swap the image
    }	
  if ( radioid )						// if 3rd param we're calling from Icon onclick
    {
    document.getElementById('rd-' + imgid + '_' + radioid).checked = true;	// check the appropriate button
    }
}
// Drop Down Lists 
function selectimage(selthis, imgref){				// called from onchange event in the <SELECT..> statement
  var thisimg = selthis.options[selthis.selectedIndex].id;	// extract the image from option ID
  if ( thisimg != '' ) 
    {
		
    var imgref = 'im-' + imgref;				// SELECT TITLE has the main image id
    var imgref2 = imgref + '-pop';				// SELECT TITLE has the main image id
	
	var thisimg2 = thisimg;
	thisimg2 = thisimg2.replace(/_t.jpg/,'.jpg');
	
    if (document.getElementById(imgref))			// only if main image exists
      {
      document.getElementById(imgref).src = thisimg;		// replace main image with option image
      }
	  
	if (document.getElementById(imgref2))			// only if main image exists
      {
      document.getElementById(imgref2).src = thisimg2;		// replace main image with option image
      }
	  
    }
}
