/**
 *
 * @package Jquery Survey system													
 * @version 1.0 Final $Aneeshtan  4:18 PM 2/10/2010	
 * @copyright (c)Nukelearn Group  http://www.nukelearn.com	Copyright (c) 2009 Anant Garg (anantgarg.com | inscripts.com)										
 * @license http://opensource.org/licenses/gpl-license.php GNU Public License
 *
 */
$(function(){var b=$("#loader");var c=$("#pollcontainer");b.fadeIn();$.get("modules.php?app=mod&name=poll","",function(e,d){c.html(e);a(c);c.find("#viewresult").click(function(){b.fadeIn();$.get("modules.php?app=mod&name=poll","result=1",function(g,f){c.fadeOut(1000,function(){$(this).html(g);a(this)});b.fadeOut()});return false}).end().find("#pollform").submit(function(){var f=$(this).find("input[name=poll]:checked").val();if(f!=""){b.fadeIn();$.post("modules.php?app=mod&name=poll",$(this).serialize(),function(h,g){$("#formcontainer").fadeOut(100,function(){$(this).html(h);a(this);b.fadeOut()})})}return false});b.fadeOut()});function a(d){$(d).find(".bar").hide().end().fadeIn("slow",function(){$(this).find(".bar").each(function(){var e=$(this).css("width");$(this).css("width","0").animate({width:e},1000)})})}});

