var obj;
var intPictureWidth = "";
var adLeft;
var adTop = 39;
var intWindowWidth = getWindowWidth() ;
if (intWindowWidth > 800) { 
  intPictureWidth = 185;
  adLeft = intWindowWidth - intPictureWidth;
}
if (intPictureWidth != "" && !isMinNS4) {
  document.write('<div id="AdPicture" style="Z-INDEX: 1; WIDTH: '+intPictureWidth +'px HEIGHT: 500px; ' 
 + 'VISIBILITY: hidden; LEFT: '+adLeft+'px; POSITION: absolute; TOP: '+adTop+'px"> '
	+ '<img src="/images/standard/adwindow.gif" width='+intPictureWidth +' height=270 alt="" border=0>'
	+ '</div>'
	+ '<div id="AdPictureText" style="Z-INDEX: 1; WIDTH=120px; HEIGHT: 200px; '
	+ 'VISIBILITY: hidden; LEFT: '+(adLeft+35)+'px; POSITION: absolute; TOP: '+(adTop+50)+'px">'
	+ '<B>Featured Advert</b><BR>'
	+ '2005 Suzuki SV650S.<BR>'
 + 'Excellent condition, recently serviced. Genuine low mileage of 4400. Rides great. Only selling as ne'
	+ '<BR><BR><a href="AdDetails.asp?PADVERT_ID=108278">Click here to view</a>'
	+ '</div>');
  if((obj=getLayer("AdPicture"))!=null) 
         showLayer(obj);
  if((obj=getLayer("AdPictureText"))!=null) 
         showLayer(obj);
}
