﻿var flashvars = {};
			            flashvars.xmlFile = "/shfm/include/flashslides.ashx";
			            var params = {};
			            params.menu = "false";
			            params.scale = "noscale";
			            params.salign = "tl";
			            params.WMode = "Transparent";
			            var attributes = {};
			            swfobject.embedSWF("/shfm/include/DynamicSlideShow.swf", "mySlideshow", "960", "270", "9.0.0", false, flashvars, params, attributes);
						
						
						$(document).ready(function(){
							var first=$(".vote-item-header").eq(0);
							first.addClass("now");
							$(".vote-item-content").eq(0).show();
							
							$(".vote-item-header").each(function(index){
								var item=$(this);
								
								
								$(this).find("a").hover(function(){
									$(".vote-item-header").removeClass("now");
									$(".vote-item-content").hide();
									item.addClass("now");
									$(".vote-item-content").eq(index).show();
								})
							})
							
							$(".vote-item-content").each(function(index){
								var item=$(this);
								var questionid=item.find(".xx").val();
								$(this).find(".vote-btn").click(function(){
								      var obj;
									  var value=0;
								      var votes=item.find("#vote-id");
									  for(var i=0;i<votes.length;i++)
									  {
										if($(votes[i]).attr("checked"))
											value=$(votes[i]).val();
									  }
									  if(value==0)
										alert("请选择一个选项！");
									  else
										{
											window.open("/shfm/polling.aspx?voteid="+value)
										}
								})
								
								
							})
							
							
							
						})

