// JavaScript Document

function flaAd(intervalTim, focus_width, focus_height, text_height, rootpath){
	var imgUrl1= rootpath + "images/1.jpg"
	var imgtext1="text01"
	var imgLink1=escape("#")
	var imgUrl2= rootpath + "images/certsearch.jpg"
	var imgtext2="text02"
	var imgLink2=escape("#2")
	var imgUrl3= rootpath + "../images/ads03.jpg"
	var imgtext3="text03"
	var imgLink3=escape("#3")
	var imgUrl4= rootpath + "../images/ads04.jpg"
	var imgtext4="text04"
	var imgLink4=escape("#4")
	var imgUrl5= rootpath + "../images/ads05.jpg"
	var imgtext5="text04"
	var imgLink5=escape("#5")
	 var intervalTim=3
	 var focus_width=302
	 var focus_height=225
	 var text_height=0
	 var swf_height = focus_height+text_height
	 
	 var pics=imgUrl1+"|"+imgUrl2
	 var links=imgLink1+"|"+imgLink2+"|"+imgLink3+"|"+imgLink4+"|"+imgLink5
	 var texts=imgtext1+"|"+imgtext2+"|"+imgtext3+"|"+imgtext4+"|"+imgtext5
	 
	 //document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="'+ focus_width +'" height="'+ swf_height +'">');
	 //document.write('<param name="allowScriptAccess" value="sameDomain"><param name="movie" value="images/focus1.swf"><param name="quality" value="high"><param name="bgcolor" value="#F0F0F0">');
	// document.write('<param name="menu" value="false"><param name=wmode value="opaque">');
	// document.write('<param name="FlashVars" value="pics='+pics+'&links='+links+'&texts='+texts+'&borderwidth='+focus_width+'&borderheight='+focus_height+'&textheight='+text_height+'&intervalTim='+intervalTim+'&t=#1">');
 //document.write('</object>');	 
	 document.write('<embed src="images/focus1.swf" wmode="opaque" FlashVars="pics='+pics+'&links='+links+'&texts='+texts+'&borderwidth='+focus_width+'&borderheight='+focus_height+'&textheight='+text_height+'" menu="false" bgcolor="#FFFFFF" quality="high" width="'+ focus_width +'" height="'+ swf_height +'" allowScriptAccess="sameDomain" type="application/x-shockwave-flash"/>');

}
