function fResizeImage(asImg) {
var ExcelWidth=[523,788,788,523,523,538,523,788,523,679,523,523];
var ExcelHeight=[788,523,524,788,788,788,788,524,788,707,788,788];
var lasTitles=["<span style='font-weight: bold'>Bored Housewife Throne</span><br  />ironing boards/pairs of boots/leather/pair of mannequin legs/LED","<span style='font-weight: bold'>King Tut</span><br  />wooden coat hangers/ironing board/cable ties","<span style='font-weight: bold'>'Missing' Coffee Table</span><br  />table/remote control/coffee cup/cards/specs case/specs/video tape/cigarette box/video box","<span style='font-weight: bold'>Milk Carton Vase</span><br  />recycled Tetrapak/cement","<span style='font-weight: bold'>The 1960s Coat Stand</span><br  />metal & wooden coat hangers/cardboard cylinder/coat hooks","<span style='font-weight: bold'>Sir Terence Light</span><br  />coffee bean canister/casters/light","<span style='font-weight: bold'>Cola Bottle Stalagtite Chandelier</span><br  />cola bottles/waste pipe/lights","<span style='font-weight: bold'>Dainty Daisy Handbag & Purse</span><br  />Tetrapak cartons/bath plug chains","<span style='font-weight: bold'>Fish Lamp</span><br  />shoe trees/electric fitting","<span style='font-weight: bold'>Delia Lounger</span><br  />ironing board stand/iron/iron rest","<span style='font-weight: bold'>Lord S</span><br  />shopping basket/insulation pipe","<span style='font-weight: bold'>Empty Chair</span><br  />shopping basket/recycled packaging/clothes stand"];
  var liTextHeight = 90;
  var li = 0;
  var liMenuWidth = document.getElementById("DivMenu").style.width.substring(0,document.getElementById("DivMenu").style.width.search('p'));


  var lul   = document.getElementById("ul1"); 
  var lli   = lul.getElementsByTagName("li"); 
  var limg  = lul.getElementsByTagName("img"); 
  if (getW() > 1001) 
  { 	var liDiv2MaxWidth  = getW() - liMenuWidth - 260 + 260 - 20;
	var liDiv2aMaxWidth = getW() - liMenuWidth - 260 - 20;
  } 
  else 											{
 	var liDiv2MaxWidth  = getW() - liMenuWidth - 75 + 75 - 20;
	var liDiv2aMaxWidth = getW() - liMenuWidth - 75 - 20;
//	document.getElementById('Div2b').style.width='185px';
											} 

  document.getElementById("SpanTxt").innerHTML = lasTitles[asImg];  
  lsImgWidth  = document.getElementById("LargeImg").style.width;   lsImgWidth  = ExcelWidth[asImg] + 'px';
  lsImgHeight = document.getElementById("LargeImg").style.height;  lsImgHeight =  ExcelHeight[asImg] + 'px';
  liImgWidth  = lsImgWidth.substring(0,lsImgWidth.search('p'));
  liImgHeight = lsImgHeight.substring(0,lsImgHeight.search('p'));
  liDiv2MaxHeight = getH() - liTextHeight;
  if (liImgHeight > liImgWidth)
    { liLargeImgRealHeight = liDiv2MaxHeight;
      liLargeImgRealWidth =  liImgWidth  * (liLargeImgRealHeight / liImgHeight);
    if ( liLargeImgRealWidth  > liDiv2aMaxWidth )
    { liLargeImgRealHeight = liDiv2MaxHeight * ( liDiv2aMaxWidth / liLargeImgRealWidth );
      liLargeImgRealWidth  = liDiv2aMaxWidth;
  } }
  else
  { liLargeImgRealWidth  = liDiv2aMaxWidth;
    liLargeImgRealHeight = liImgHeight * (liLargeImgRealWidth  / liImgWidth);
    if ( liLargeImgRealHeight > liDiv2MaxHeight )
    { liLargeImgRealWidth  = liDiv2aMaxWidth * ( liDiv2MaxHeight / liLargeImgRealHeight );
      liLargeImgRealHeight = liDiv2MaxHeight;
  } }
  liDiv2MaxHeight = liDiv2MaxHeight + liTextHeight;

  liDiv2MaxWidth  = liDiv2MaxWidth + 20;
//  document.getElementById('Div2').style.width=liDiv2MaxWidth+'px';
//  document.getElementById('div2').style.height=liDiv2MaxHeight+'px';
//  document.getElementById('SpanTxt').style.width=liDiv2aMaxWidth +'px';
  setTimeout("fBackwardCompatible()",50);
 }

function fBackwardCompatible()
{ document.getElementById('LargeImg').style.height=liLargeImgRealHeight +'px';
  document.getElementById('LargeImg').style.width=liLargeImgRealWidth +'px';
//  document.getElementById('SpanTxt').style.height=liTextHeight+'px';
}

function fChangeSize(li)
{  if (getW() < 1002) 							{
//	document.getElementById("li" + li).className='li50';
  	document.getElementById("li" + li).style.width='50px';
  	document.getElementById("li" + li).style.height='50px';
  	document.getElementById("img" + li).style.width='50px';
  	document.getElementById("img" + li).style.height='50px';
}									}
function getW(){ return (typeof window.innerWidth == 'undefined')?document.body.clientWidth:window.innerWidth;}
function getH(){ return (typeof window.innerHeight == 'undefined')?document.body.clientHeight:window.innerHeight; }