//function to hide the profilebox
var slideshow = new Array();
var themepath = 'http://test.binayfoundation.org.previewdns.com/wp-content/themes/bipulS_org/img/';
slideshow[0] = new Image();
slideshow[0].src = themepath+"btf1.jpg";
slideshow[1] = new Image();
slideshow[1].src = themepath+"btf2.jpg";
slideshow[2] = new Image();
slideshow[2].src = themepath+"btf3.jpg";
slideshow[3] = new Image();
slideshow[3].src = themepath+"btf4.jpg";
slideshow[4] = new Image();
slideshow[4].src = themepath+"btf5.jpg";
slideshow[5] = new Image();
slideshow[5].src = themepath+"btf6.jpg";
slideshow[6] = new Image();
slideshow[6].src = themepath+"btf.jpg";

function rotate_image(i){
if(!document.getElementById('slide'))
return false;

document.images.slide.src = slideshow[i].src;

if(i<3)
i++;
else
i = 0;

setTimeout('rotate_image('+i+')',10000);
}
/*
//function to hide the profilebox
function hide_box(dest){
var item=document.getElementById(dest);
if(item.style.visibility=="visible"){
item.style.visibility="hidden";
item.innerHTML="&nbsp;";
}
}
//show hidden box
function show_box(me){
var me=document.getElementById(me);
if (me.style.visibility=="hidden"){
me.style.visibility="visible";
}
}
//function to get the content of the page asynchronously
function get_content(page,dest){
var xmlHttp;
try
{  // Firefox, Opera 8.0+, Safari  
  xmlHttp=new XMLHttpRequest();  
}
catch (e)
  {  // Internet Explorer  
  try
	{    xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");    }
  catch (e)
	{    try
	  {      xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");      }
	catch (e)
	  {      alert("Your browser does not support AJAX!"); 
	  return false;      
	  }    
	}  
  }
  xmlHttp.onreadystatechange=function()
	{
	if(xmlHttp.readyState==4)
	  {
	  document.getElementById(dest).innerHTML=xmlHttp.responseText;
	  }
	  else{
	  document.getElementById(dest).innerHTML+='<div style="position:absolute;left:10px;top:10px;width:150px;height:20px;border:1px solid #000000;z-index:100;color:#993300;background-color:#FFFFFF;font-size:13px"><b>Loading......</b></div>';
	  }
	}
  xmlHttp.open("GET",page,true);
  xmlHttp.send(null);  
}
*/
