window.addEvent('domready', function() {
var myAccordion = new Accordion($('widgets'), 'h2.widgetheader', 'div.widgetcontent', {
opacity:true,
display: -1,
duration: 800,
alwaysHide: true,

		onActive: function(widgetheader, widgetcontent){
			widgetheader.setStyle('font-weight', 'bold');
			widgetcontent.setStyle('margin-bottom', '20px');
			widgetheader.setStyle('margin-top', '15px');
		},
		onBackground: function(widgetheader, widgetcontent){
			widgetheader.setStyle('font-weight', 'bold');
			widgetcontent.setStyle('margin-bottom', '0');
			widgetheader.setStyle('margin-top', '0');
		}
});
});

window.addEvent('domready', function() {
var myAccordion = new Accordion($('maincol'), 'h2.contentheader', 'div.content', {
opacity:true,
display: -1,
duration: 800,
alwaysHide: true,


		onActive: function(contentheader, content){
			contentheader.setStyle('font-weight', 'bold');
			content.setStyle('margin-bottom', '20px');
			contentheader.setStyle('margin-top', '15px');
			//alert(contentheader);
			//window.location.hash = 'top';
			//var contentid = contentheader.id;
			//window.location.hash = "anchor_" + contentid.substr(contentid.lastIndexOf("_") + 1);
		},
		onBackground: function(contentheader, content){
			contentheader.setStyle('font-weight', 'bold');
			content.setStyle('margin-bottom', '0');
			contentheader.setStyle('margin-top', '0');
		}
});
});


/*function initXMLHttpClient() {
  var xmlhttp;
  if (window.XMLHttpRequest)
  {// code for IE7+, Firefox, Chrome, Opera, Safari
    xmlhttp=new XMLHttpRequest();
  }
  else
  {// code for IE6, IE5
    xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
  }
  
  return xmlhttp;
}


function getTwitter()
{
  var xmlhttp=initXMLHttpClient();
  //xmlhttp.open("GET","http://localhost/wordpress/wp-content/themes/abhay/sidebar.php",false);
  xmlhttp.open("GET","wp-content/themes/abhay/twitter.php",false);
  xmlhttp.send();
  xmlDoc=xmlhttp.responseText;
  $('twitter').innerHTML=xmlDoc;
}*/


