var	imgUrl=new Array();
imgUrl[0]="/templates/blog_2/foreign/quicksummary/JDSJ001.jpg";
imgUrl[1]="/templates/blog_2/foreign/quicksummary/JDSJ002.jpg";
imgUrl[2]="/templates/blog_2/foreign/quicksummary/JDSJ003.jpg";
imgUrl[3]="/templates/blog_2/foreign/quicksummary/JDSJ004.jpg";
imgUrl[4]="/templates/blog_2/foreign/quicksummary/JDSJ005.jpg";

function findObj(theObj, theDoc)
{
  var p, i, foundObj;

  if(!theDoc) theDoc = document;
  if( (p = theObj.indexOf("?")) > 0 && parent.frames.length)
  {
    theDoc = parent.frames[theObj.substring(p+1)].document;
    theObj = theObj.substring(0,p);
  }
  if(!(foundObj = theDoc[theObj]) && theDoc.all) foundObj = theDoc.all[theObj];
  for (i=0; !foundObj && i < theDoc.forms.length; i++) 
    foundObj = theDoc.forms[i][theObj];
  for(i=0; !foundObj && theDoc.layers && i < theDoc.layers.length; i++) 
    foundObj = findObj(theObj,theDoc.layers[i].document);
  if(!foundObj && document.getElementById) foundObj = document.getElementById(theObj);

  return foundObj;
}
function playTran(){
    obj = findObj("imgInit");
	obj.filters.blendTrans.play();
}
var	j=0;
function nextAd() {
    obj = findObj("imgInit");
    obj.filters.blendTrans.duration=3;
	obj.filters.blendTrans.apply();
    playTran();
    obj.src=imgUrl[j];
    obj.height = 191; 
    obj.width = 235;
	j++;
	j = j%5;
	theTimer=setTimeout("nextAd()",5000);
}
nextAd();
