$(window).resize(function(){		
	});

 $(document).ready(function(){	
		if($(".rotator").length) {
          rotate_show($(".rotator #q1"));
         }
	});
 
 	function rotate_next(obj){	
		ids = $(obj).attr("id");
		ids = ids.replace("q","")*1;
		if(ids<$(".rotator img").length) {
			idn = ids+1;
			rotate_show(".rotator #q"+idn);
			}
		else rotate_show(".rotator #q1");
	}
	
	function rotate_close(obj){	
		setTimeout(function() { $(obj).fadeOut(700, function(){rotate_next(obj);} ); }, 4000);
		}
	function rotate_show(obj){		
		$(obj).fadeIn(700,rotate_close(obj));		
		}
                    
	function action(){
/*	  $(".action").click(function(){
 	    $(this).toggleClass("a_open");
	   });*/
	  $(".action").hover(function(){
 	    $(this).toggleClass("a_open");
	   },function(){
	    $(this).removeClass("a_open");
	   });

	}

