var imgUrl=new Array(); 
var imgLink=new Array();
var imgtext=new Array();
var imgAlt=new Array();

var oImgId = document.getElementById('swapimglist2');
var aImg = oImgId.getElementsByTagName("a");
for(var i=0; i<aImg.length; i++){
	imgUrl[i] = aImg[i].childNodes[0].src;
	imgtext[i]= aImg[i].nextSibling.nodeValue;
	imgLink[i]= aImg[i].href;
	imgAlt[i] = aImg[i].nextSibling.nodeValue;
}

var focus_width=970;
var focus_height=239;
var text_height=0;
var swf_height=239; 

var pics="";
var links="";
var texts="";

for(var i=0; i<imgUrl.length; i++){
	if(i != imgUrl.length-1){
		pics += imgUrl[i]+"|";
	}else{
		pics += imgUrl[i];
	}
}

for(var i=0; i<imgLink.length; i++){
	if(i != imgLink.length-1){
		links += imgLink[i]+"|";
	}else{
		links += imgLink[i];
	}
}

for(var i=0; i<imgtext.length; i++){
	if(i != imgtext.length-1){
		texts += imgtext[i]+"|";
	}else{
		texts += imgtext[i];
	}
}

document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width="'+ focus_width +'" height="'+ swf_height +'">');
document.write('<param name="allowScriptAccess" value="sameDomain"><param name="movie" value="/focus.swf"><param name="quality" value="high"><param name="bgcolor" value="#f8dda5">');
document.write('<param name="menu" value="false"><param name=wmode value="opaque"><PARAM NAME="WMode" VALUE="Transparent">');
document.write('<param name="FlashVars" value="pics='+pics+'&links='+links+'&texts='+texts+'&borderwidth='+focus_width+'&borderheight='+focus_height+'&textheight='+text_height+'">');
document.write('<embed src="/focus.swf" wmode="opaque" FlashVars="pics='+pics+'&links='+links+'&texts='+texts+'&borderwidth='+focus_width+'&borderheight='+focus_height+'&textheight='+text_height+'" menu="false" bgcolor="#f8dda5" quality="high" width="'+ focus_width +'" height="'+ focus_height +'" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />');
document.write('</object>');
