							// function by amita 30/11/2007   vinod
								// function facebook(base_path)
								// {
									// document.form1.action=base_path+"facebook";
									//alert(document.form1.action);
									// document.form1.target="_self";
									// document.form1.submit();
								
								// }
								function submitRating(value){
												        document.getElementById('rate').value=value;
														document.form1.action="modules.php?name=soko_slideshow&op=save_rating";
														//alert('hi');
														document.form1.submit();
														}
								function digg(base_path)
								{
									document.form1.action=base_path+"digg";
									//alert(document.form1.action);
									document.form1.target="_self";
									document.form1.submit();
								
								}
								// function by amita 30/11/2007   vinod
									function hide_arrow1()
									{
									document.getElementById('showarrow_1').style.display='none';
									document.getElementById('all_comment').style.display='block';
									document.getElementById('showarrow_2').style.display='block';
									}
									function hide_arrow2()
									{
									document.getElementById('showarrow_1').style.display='block';
									document.getElementById('all_comment').style.display='none';
									document.getElementById('showarrow_2').style.display='none';
									}
									function deletebox(url,fn,id)
									{
										var str="admin.php?op=delete_story_ss&amp;id="+id;					
										
										document.getElementById('jquery_fn'+id).innerHTML="<table align=left width=150 cellpadding=5 style='BORDER: #FFC0CB 1px solid;' bgcolor='#fff0f5' ><tr><td valign=top width=126><font size=2 color=black face='Arial,Helvetica,Geneva,Swiss,SunSans-Regular'>Are you sure want to delete this story?</font></td></tr><tr><td style='BORDER-TOP: #FFC0CB 1px solid;' valign=top width=126><div  align=left><font size=2 face='Arial,Helvetica,Geneva,Swiss,SunSans-Regular'><table width='100%'><tr><td><a  href='javascript:void(null);'><font size=2 face='Arial,Helvetica,Geneva,Swiss,SunSans-Regular'  onclick='hide("+id+")'><b>No</b></font></td><td><div align=right><a href='"+str+"'><font size=2  face='Arial,Helvetica,Geneva,Swiss,SunSans-Regular'><b>Yes</b></font></a></div></td></tr></table></font></div></td></tr></table>";
										$("#jquery_fn"+id).slideDown("slow");
									
									}
									function hide(id)
									{
										$("#jquery_fn"+id).slideUp("slow",function(){
										$("#jquery_fn"+id).hide("slow");});
									
									}
									
									
									
									
									String.prototype.trim = function() {
									a = this.replace(/^\s+/, '');
									return a.replace(/\s+$/, '');
									};
									

									
		
		
		function save_poll()
		{
		document.form1.action="modules.php?name=soko_slideshow&op=save_poll";
		document.form1.submit();
		}
		function check_arrow(t,c)
		{
		if(c==1)
		{
		document.getElementById('right_arrow').style.display='block';
		document.getElementById('left_arrow').style.display='none';		
		}
		else
		{
		document.getElementById('right_arrow').style.display='block';
		document.getElementById('left_arrow').style.display='block';	
		}
		document.getElementById('slieds_of').innerHTML=c+' of '+t;
		}
		
		
		function check(t,c)
		{
		// only For comments
		document.getElementById('slieds_of').innerHTML=c+' of '+t;
		if(t==c)
		{
		//document.getElementById('colon').innerHTML=':';	
		//document.getElementById('result_name').innerHTML='RESULTS';			
		document.getElementById('show_result').style.display='block';
		document.getElementById('right_arrow').style.display='none';
		document.getElementById('left_arrow').style.display='block';
		document.getElementById('content').style.display='block';
		$("#content").SlideInLeft(500);		
		}
		else
		{
		//document.getElementById('result_name').innerHTML='';
		document.getElementById('left_arrow').style.display='block';
		document.getElementById('right_arrow').style.display='block';
		document.getElementById('content').style.display='none';
		}
		
		}
		

		function nextslide()
		{		
		
		var curr=document.getElementById('slide_no').value;				
		var b=parseInt(curr)+1;
		document.getElementById('slide_no').value=b;		
		var story_id=document.getElementById('story_id').value;
		window.location='slideshow'+story_id+'.html'+b;	
		
		}
		function prevslide()
		{
		
		var curr=document.getElementById('slide_no').value;		
		var b=parseInt(curr)-1;
		document.getElementById('slide_no').value=b;
		
		var story_id=document.getElementById('story_id').value;
		window.location='slideshow'+story_id+'.html'+b;	
		}
		
					
						function show_comment()			
						{
						document.getElementById('comment_box').style.display='block';
						document.getElementById('post_comment').style.display='none';
						
						document.getElementById('comment1').value="";
						document.getElementById('comment1').focus();
						//return true;
						
						}
						function block_comment()
						{
						var val=parseInt(document.getElementById('count').value);
						if(val>0)
						{
						document.getElementById('with_comment').style.display='block';
						if(document.getElementById('post_comment'))
						document.getElementById('post_comment').style.display='none';
						}
						else
						{
						document.getElementById('post_comment').style.display='block';
						if(document.getElementById('with_comment'))
						document.getElementById('with_comment').style.display='none';
						}
						document.getElementById('comment_box').style.display='none';
						return true;
						
						}
						
					


		function check_comment()
		{
		//alert('hi');
		var name=(document.getElementById('name123').value);
		var name1=(document.getElementById('comment1').value);
		//alert(name1);
		name=name.trim();
		name1=name1.trim();
		//comment=trimAll(comment);
		if(name=="" || name1=="")
		{
		document.getElementById('div1234').style.display='block';
		//document.getElementById('name').value="";
		//document.getElementById('comment1').value="";
		document.getElementById('comment1').focus();
		
		return false;
		}
		else
		{
		document.getElementById('comment_box').style.display='none';
		document.getElementById('name123').value=name;
		document.getElementById('comment1').value=name1;
		document.getElementById('div1234').style.display='none';
		document.form1.action='../comment_save';
		document.form1.submit();
		
		}
		
		
		
		}	
		function blinkIt() {
 if (!document.all) return;
 else {
   for(i=0;i<document.all.tags('blink').length;i++){
      s=document.all.tags('blink')[i];
      s.style.visibility=(s.style.visibility=='visible')?'hidden':'visible';
   }
 }
}
