function newwin(sUrl,iWidth,iHeight,scroll){
	window.open(sUrl,'','toolbar=no,location=no,status=no,directories=no,menubar=no,scrollbars='+scroll+',resizable=no,height='+iHeight+',width='+iWidth);
}

function EvalSound(soundpath){
  if((soundpath) && (soundpath!="")){
    document.getElementById("sound1").src = soundpath;
    document.getElementById("sound").src = soundpath;
  }
  var soundInterval = setInterval("playSound()", 1000);  
}

function playSound(){
  var thissound = document.sound1;
  try{
    thissound.Play();
    clearInterval(soundInterval);
  }catch(e){
  }
}

function stopSound(){
  var thissound = document.sound1;
  //alert(thissound);
  thissound.Stop();
}

function slideimages(){
  if (document.all){
      document.images.bandimg.style.filter="blendTrans(duration=2)"
      document.images.bandimg.style.filter="blendTrans(duration=crossFadeDuration)"
      document.images.bandimg.filters.blendTrans.Apply()      
   }
   document.images.bandimg.src = SlideShowImages[j];

   if (document.all){
      document.images.bandimg.filters.blendTrans.Play()
   }
   j = j + 1
   if (j > (p-1)) j=0
   t = setTimeout('slideimages()', slideShowSpeed)
}

function resizeBg(){
	document.getElementById("content_bg").style.height = document.getElementById("content").offsetHeight;
}


function checkAttributeExists(passedelement,attribute){
	try{
		(eval[passedelement + "." + attribute]);
	}catch(e){
		var noerror = "false";
	}
	if (noerror != "false"){
		return true;
	}else{
		return false
	}
}
function changeGroup(groupId){
	var arrTags = document.getElementsByTagName("DIV");
	for(tagcounter1=0;tagcounter1<arrTags.length;tagcounter1++){
		if(arrTags[tagcounter1].id){
			var tagelement = document.getElementById(arrTags[tagcounter1].id);
			if(checkAttributeExists(tagelement,"className")){
				var clsName = tagelement.className;
				if(clsName =="groupcontainer"){
					document.getElementById(arrTags[tagcounter1].id).style.display = 'none';
					document.getElementById(arrTags[tagcounter1].id + "_arrow").style.visibility = 'hidden';
				}
			}
		}
	}
	document.getElementById(groupId).style.display = 'inline';
	document.getElementById(groupId + "_arrow").style.visibility = 'visible';
}

