/*
  function findeFlash (flash) {
    if (document.all) {
      if (document.all[flash]) {
        return document.all[flash];
      }
      if (window.opera) {
        var movie = eval(window.document + flash);
        if (movie.SetVariable) {
          return movie;
        }
      }
      return;
    }
    if(document.layers) {
      if(document.embeds) {
        var movie = document.embeds[flash];
        if (movie.SetVariable) {
          return movie;
        }
      }
      return;
    }
    if (!document.getElementById) {
      return;
    }
    var movie = document.getElementById(flash);
    if (movie.SetVariable) {
      return movie;
    }
    var movies = movie.getElementsByTagName('embed');
    if (!movies || !movies.length) {
      return;
    }
    movie = movies[0];
    if (movie.SetVariable) {
      return movie;
    }
    return;
  }

*/

function getElementbyClass(classname){
	var partscollect;
	var inc=0
	var alltags=document.all? document.all :
	document.getElementsByTagName("*")
	for (i=0; i<alltags.length; i++){
			if (alltags[i].className==classname)
					partscollect=alltags[i]
	}
} 




function allplayers_stop(nottostop){
	var allplayers = document.getElementsByTagName("embed");
 	if (allplayers.length == 0){ 
		var allplayers = document.getElementsByTagName("object");
	}

	for (var i = 0; i < allplayers.length; i++) {
		if (allplayers[i] == nottostop){
		}else{
			var playerid = allplayers[i].id;
			var currentplayer = document.getElementById(playerid);
			currentplayer.GotoFrame(19);
		}
	}
	if (parent.streamplayer){
		parent.streamplayer.streamplayer_stop(nottostop);
	}
}


function streamplayer_stop(nottostop){
	var allplayers = document.getElementsByTagName("embed");
 	if (allplayers.length == 0){ 
		var allplayers = document.getElementsByTagName("object");
	}
	for (var i = 0; i < allplayers.length; i++) {
		if (allplayers[i] == nottostop){
		}else{
			var playerid = allplayers[i].id;
			var currentplayer = document.getElementById(playerid);
			currentplayer.GotoFrame(19);
		}
	}
}









function field_describe(field, predefined, clear){
	if(clear){
		if(field.value==predefined){
			field.value='';
			field.className='';
		}
	}else{
		if(field.value==''){
			field.value=predefined;
			field.className='describe';
		}
	}
}

function detect(){
	framesetpage='index.html';
	thispage=window.location.href;
	if (thispage.indexOf('://')<0) {
		thispage='://'+thispage;
	};
	prefix=thispage.substring(0,thispage.lastIndexOf('://'));
	suffix=thispage.substring(thispage.lastIndexOf('://')+3,thispage.length);
	// alert('the subpage is:['+prefix+']['+suffix+']');
	if (parent.location.href==window.location.href) {
		parent.location.href=framesetpage+'?'+prefix+'&&&'+suffix};
}



