function show_printable(link,name) {
	window.open(link,name)

}

function playmp3(type,url,testo,imgPath) {
        parent.divstop();
        parent.call_player(type, url, testo, imgPath);
	parent.bwbScrollUp();
}






/*** Added to scroll music_library widgets ***/

function populateItems(id, itemText, itemLink) {
	var el = document.getElementById(id);

	var html = "";
	for (var i=0; i<itemText.length; i++) {
		if (itemLink.length > 0 && itemLink[i] != "nolink") {
			html  += '<div style="height:2px;"><img src="/img/spacer.gif" border="0" height="2"></div><div style="padding:1px 5px 1px 5px; background:url(/img/music_library/ml_w_bg_list_item.png);"><a href="' + itemLink[i] + '" class="verdanaRegular10b">' + itemText[i] + '</a></div>'
		} else if (itemLink.length > 0 && itemLink[i] == "nolink") {
			html  += '<div style="height:2px;"><img src="/img/spacer.gif" border="0" height="2"></div><div style="padding:1px 5px 1px 5px; background:url(/img/music_library/ml_w_bg_list_item.png);"><span class="verdana10regularGRchia">' + itemText[i] + '</span></div>'			
		} else {
			html  += '<div style="height:2px;"><img src="/img/spacer.gif" border="0" height="2"></div><div style="padding:1px 5px 1px 5px; background:url(/img/music_library/ml_w_bg_list_item.png);"><span class="verdanaRegular10b">' + itemText[i] + '</span></div>'
		}
	}

	el.innerHTML = html;
}


function ScrollDownDiv(id) {
	var el = document.getElementById(id);
	el.scrollTop=(el.scrollTop + 10);
}

function ScrollUpDiv(id) {
	var el = document.getElementById(id);
	el.scrollTop=(el.scrollTop - 10);
}
