<!--

var browser = {
	dom:(document.getElementById != null),
	ie:(document.all && parseInt(navigator.appVersion) >= 4),
	ns:(document.layers && parseInt(navigator.appVersion) >= 4)
}

function getLayer(name) {
	if (browser.dom) return document.getElementById(name);
	else if (browser.ie) return document.all[name];
	else if (browser.ns) return document.layers[name];
}

function swapBlocks(name, blocks, suffix) {

	var i;
	
	for (i = 0; i < blocks.length; i++) {
		_box = getLayer(suffix + blocks[i]);
		
		if (_box != null) {
			if (name == blocks[i]) _box.style.display = "block";
				else _box.style.display = "none";
		}
		
	}

}

function openW(urlW, width_w, height_w, scroll_bar) {
	
	center_x = Math.round((window.screen.availWidth - width_w) / 2);
	center_y = Math.round((window.screen.availHeight - height_w) / 2);
	
	window.open(urlW,'_blank','top=' + center_y + ',left=' + center_x + ',width=' + width_w + ',height=' + height_w + ',status=no,titlebar=no,toolbar=no,menubar=no,location=no,resizable=no,directories=no,scrollbars=' + scroll_bar);
	
}

function mp3Play(iid, base) {
	
	if (base == null) base = "";
	
	var _flashvars = {
		_xmlpath: base + "content/sound_xml.php?id=" + iid,
		_id: iid
	};
	
	var _flashparams = {
		bgcolor: "#ffffff",
		wmode: "transparent"
	};

	swfobject.embedSWF(base + "images/mp3.swf", "mp3Player", "515", "30", "9.0.0", "inc/expressInstall.swf", _flashvars, _flashparams);
	
	
	/*
	var so = new SWFObject(base + "images/mp3.swf", "flash", "515", "30", "9", "#ffffff");
	so.addVariable('_xmlpath', base + 'content/sound_xml.php?id=' + iid);
	so.addVariable('_id', iid);
	so.addParam('wmode', 'transparent');
	so.write('mp3Player');
	*/
	
}

//-->
