 var w=3;
function  timer()
{
	if(w <= 0)
	{
				if ($("#div1").is(":hidden")) 
	 {
	show_hide_div('div1','img1');
	}
	
	}
	else
	{
	 
	w-=1;
	setTimeout("timer()",1000);
}}
 

  
  
  
  function show_hide_div(id,img,imgpath)
  {
		var count=0;
var text = document.getElementsByTagName('div');
		for(i=1;i<=text.length;i++)
		{
if(eval(document.getElementById("div"+i)))
{
count++;
	 }
else
break;
}
//alert(text);
//alert(count);

	for(i=1;i<=count;i++)
		{
if (!$("#div"+i).is(":hidden")) 
	 {
			 			//alert("1") 

	 	 //	   $("#div"+i).slideUp();
								$("#img"+i).replaceWith('<img src="'+imgpath+'blog_arwexpand.gif" border="0" class="img" id="img'+i+'" onClick="show_hide_div(\'div'+i+'\',\'img'+i+'\',\''+imgpath+'\')" >');
	 }
		
}
	if ($("#"+id).is(":hidden")) {
	 
		$("#"+id).slideDown("slow");
		$("#"+img).replaceWith('<img src="'+imgpath+'blog_arwmin.gif" border="0" class="img" id="'+img+'"onClick="show_hide_div(\''+id+'\',\''+img+'\',\''+imgpath+'\')" >');
	}
	else
	{
 	  $("#"+id).slideUp();
	  $("#"+img).replaceWith('<img src="'+imgpath+'blog_arwexpand.gif" border="0" class="img" id="'+img+'" onClick="show_hide_div(\''+id+'\',\''+img+'\',\''+imgpath+'\')" >');
	}
	
	
  
  }
  
  
  
  
  
  ///////////////////////////////////////////////////////////////////////////////////
   function show_hide_div_sub(id,img,imgpath)
  {
		var count=0;
var text = document.getElementsByTagName('divv');
		for(i=1;i<=text.length;i++)
		{
if(eval(document.getElementById("divv"+i)))
{
count++;
	 }
else
break;
}
	for(i=1;i<=count;i++)
		{
if (!$("#div"+i).is(":hidden")) 
	 {
			 			//alert("1") 

	 	 	  // $("#divv"+i).slideUp();
								$("#img"+i).replaceWith('<img src="'+imgpath+'blog_arwexpand.gif" border="0" class="img" id="img'+i+'" onClick="show_hide_div_sub(\'divv'+i+'\',\'img'+i+'\',\''+imgpath+'\')" >');
	 }
		
}
	if ($("#"+id).is(":hidden")) {
	 
		$("#"+id).slideDown("slow");
		$("#"+img).replaceWith('<img src="'+imgpath+'blog_arwmin.gif" border="0" class="img" id="'+img+'"onClick="show_hide_div_sub(\''+id+'\',\''+img+'\',\''+imgpath+'\')" >');
	}
	else
	{
 	  $("#"+id).slideUp();
	  $("#"+img).replaceWith('<img src="'+imgpath+'blog_arwexpand.gif" border="0" class="img" id="'+img+'" onClick="show_hide_div_sub(\''+id+'\',\''+img+'\',\''+imgpath+'\')" >');
	}
	
	
  
  }

	
		function move_up() 
		{
    scroll_clipper.scrollTop = 0;
  }

