function openvideo( artist, video ){
	window.open("videoplayer.php?artist="+artist+"&video="+video,"","width=320,height=275,toolbar=no,scrollbars=no")
}
function openmusic( artist, xml ){
	window.open("musicplayer.php?artist="+artist+"&xml="+xml,"","width=368,height=100,toolbar=no,scrollbars=no")
}

window.onload = function (){ if ( document.getElementById( 'content' ) ){ renderlines() } }
if ( document.all ){	
}else{ window.onresize = renderlines }

function renderlines (){
	
	if( typeof( window.innerWidth ) == 'number' ) {
    	myHeight = window.innerHeight;
  	} else if( document.documentElement && ( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) {
    //IE 6+ in 'standards compliant mode'

    	myHeight = document.documentElement.clientHeight;
  	} else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) {
    	//IE 4 compatible
  		myWidth = document.body.clientWidth;
  	  	myHeight = document.body.clientHeight;
  	}
	
	mycontent  = document.getElementById( 'content' ).offsetHeight
	
	var obj = getElementByClassName ( 'leftside', document.getElementById( 'content' ) )
	
	if ( mycontent < (myHeight-200) ){
		if ( document.all ){
			obj[ 0 ].style.height = (myHeight-274) + "px"
		}else{
			obj[ 0 ].style.height = (myHeight-274) + "px"
		}
	}else{
		if ( document.all ){			
			obj[ 0 ].style.height = (mycontent-0) + "px"
		}else{
			obj[ 0 ].style.height = (mycontent-0) + "px"
		}
	}

}

function getElementByClassName ( sClass, oObject ) {
	var aElements = new Array ();
	var aTotal = oObject.getElementsByTagName ( "div" );
	for ( i = 0; i < aTotal.length; i++ ) 
		if ( aTotal.item ( i ).className == sClass ) aElements [ aElements.length ] = aTotal.item ( i );
	return aElements;
}

