﻿	$(document).ready(function() {
	// do something here

	var focus_width=320;

	var focus_height=200;

	var text_height=25;

	var swf_height = focus_height+text_height;

	var pics="";	var links="";	var texts="";

	
	pics = $('#img1 > a > img')[0].src+"|"+$('#img2 > a > img')[0].src+"|"+$('#img3 > a > img')[0].src+"|"+$('#img4 > a > img')[0].src+"|"+$('#img5 > a > img')[0].src+"|";

	links = $('#pic1 > a').attr("href")+"|"+$('#pic2 > a').attr("href")+"|"+$('#pic3 > a').attr("href")+"|"+$('#pic4 > a').attr("href")+"|"+$('#pic5 > a').attr("href")+"|";

	texts = $('#pic1 > a').text()+"|"+$('#pic2 > a').text()+"|"+$('#pic3 > a').text()+"|"+$('#pic4 > a').text()+"|"+$('#pic5 > a').text()+"|";

	
	pics=pics.substr(0,pics.length-1);

	links=links.substr(0,links.length-1);

	texts=texts.substr(0,texts.length-1);

	var fv="pics="+pics+"&links="+links+"&texts="+texts+"&borderwidth="+focus_width+"&borderheight="+focus_height+"&textheight="+text_height;

	document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0" width="'+focus_width+'" height="'+swf_height+'">');

	document.write('<param name="movie" value="http://www.chinaneast.gov.cn/static/rmedia/pv.swf"> <param name="quality" value="high"><param name="allowScriptAccess" value="sameDomain"><param name="menu" value="false"><param name="bgcolor" value="#ffffff"><param name="wmode" value="opaque">');

	document.write('<param name="flashvars" value="'+fv+'"></object>');


/*
<div>
<p>This is a paragraph.</p>
<p>This is another paragraph.</p>
<p>This is yet another paragraph.</p>
</div>


如果选id，就是$("#uduf1")
如果选class，就是$(".a2")
如果选#uduf1中的.a2，就是$("#uduf1 > .a2") 


	$('#uduf1 > a').click(function() {
		
		alert("Hello world!");
	});
	
	alert($('#pic1 > img')[0].src);
	alert($('#pic1 > a').attr("href"));
	alert($('#pic1 > a').text());

	alert($('#pic2 > img')[0].src);
	alert($('#pic2 > a').attr("href"));
	alert($('#pic2 > a').text());
	
	*/

});
