function showGallery(path) {
 window.open(path, 'FlashGallery', 'width=750,height=690,left=90,top=30,scrollbars=no,resizable=no,status=no,location=no'); 
}

function showCommentForm(path) {
 window.open(path, 'PostComment', 'width=750,height=690,left=90,top=30,scrollbars=no,resizable=no,status=no,location=no'); 
}


function showContact(path) {
 window.open(path, 'Contact', 'width=563,height=518,left=90,top=30,scrollbars=no,resizable=no,status=no,location=no'); 
}

function blogImgOver() {
 alert(this.parent);
 this.style.display = 'none';
}

function SwitchContent(DivID,DivNr,NrofDivs) {
 if (document.getElementById) {
  var Property;  
  var LinkClass; 
  for (i = 1; i <= NrofDivs; i++) { 
   if (i == DivNr && document.getElementById(DivID+i).style.display == 'none') {
    Property = 'block';
	LinkClass = 'opened';
   }
   else {
    Property = 'none';
	LinkClass = 'closed';
   }
   document.getElementById(DivID+i).style.display = Property;
   document.getElementById(DivID+'Link'+i).className = LinkClass;
  }
 }
}

function ShowContent(DivID,DivNr,NrofDivs) {
 if (document.getElementById) {
  var Property;  
  var LinkClass; 
  for (i = 1; i <= NrofDivs; i++) { 
   if (i == DivNr) {
    Property = 'block';
	LinkClass = 'opened';
   }
   else {
    Property = 'none';
	LinkClass = 'closed';
   }
   document.getElementById(DivID+i).style.display = Property;
   document.getElementById(DivID+'Link'+i).className = LinkClass;
  }
 }
}