/*
 * History:
 * 
 *    - 2004.07.21 - v.o. - if there were too much genres, the left column was intersection with footer, now it is sorted out.
 */
 
/*js. functions of trax.asp;*/
function adjustLayout() {
	
	var intRCHeight = 0, intMCHeight = 0;
	intRCHeight = getHeight("LMenu");
	
	intMCHeight = getHeight("Content");

	var intMax = Math.max( intRCHeight, intMCHeight );
	
	setHeight( "LMenu", intMax );
	setHeight( "Content", intMax );
	
	showLayer("Footer");
}
function init() {
	addListener(window, "resize", adjustLayout, false);
	adjustLayout();
	FrmPaging = document.FrmPaging;//document.forms[3];
}
/*add listener before doing anyting else*/

addListener(window,"load",init,false);

var playerForm=null;
function playAllChart(intMediaType){
	if(!playerForm)playerForm=document.forms[2];
	if(!playerForm)return;
	var objForm=playerForm;
	/*zeroeth form is the login form in header.*/
	var objTrackID=objForm.lngTrackID;
	if(objTrackID.length) {
		var strParam="";
		for(var i=0;i<objTrackID.length;i++) {
			if(i==(objTrackID.length-1))
				strParam+=objTrackID[i].value;
			else
				strParam+=objTrackID[i].value+";"
		}
		/* v.o.: @20040709 - last parameter is blnSampleLibrary and it should be set false for this case. */
		play(strParam,intMediaType,false);
	} else {
		play(objTrackID.value,intMediaType,false);
	}
}