function logo_box_top(){
 document.write ('<table class="tableExp"><tr><td class="contentborder_corner_size contentborder_corner_tl"></td><td class="contentborder_width contentborder_width_top" style="width:141px;"></td><td class="contentborder_corner_size contentborder_corner_tr"></td></tr></table><table class="tableExp"><tr><td class="contentborder_left"></td><td style="background-color:#ffffff;height:46px;width:141px;" valign="top" align="center">');
}

function logo_box_bot(){
 document.write ('</td><td class="contentborder_right"></td></tr></table><table class="tableExp"><tr><td  class="contentborder_corner_size contentborder_corner_bl"></td><td class="contentborder_width contentborder_width_bot" style="width:141px;"></td><td class="contentborder_corner_size contentborder_corner_br"></td></tr></table>');
}


var lastshowed = null;
var name = '';
var currentchan = '';
function display(name,action){
	if (action == 'show'){
	action = '';
	document.getElementById("main").style.display = "none";
	}
	if (action == 'hide'){
	action = 'none';
	document.getElementById("main").style.display = "";
	}
	document.getElementById(name).style.display = action;
}
function displaychannel(name,action){
	currentchan = name;
	document.getElementById("action").style.display = "none";
	document.getElementById("arts").style.display = "none";
	document.getElementById("music").style.display = "none";
	document.getElementById("female").style.display = "none";
	document.getElementById("tech").style.display = "none";
	document.getElementById("style").style.display = "none";
	
	if (action == 'show'){
		if (lastshowed != null){
			document.getElementById(lastshowed).style.display = "none";
		}
		action = '';
		document.getElementById("main").style.display = "none";

		document.getElementById(currentchan + 'demo').style.display = ""; // bring back the flash charts
	}
	if (action == 'hide'){
		action = 'none';
		document.getElementById("main").style.display = "";
	}
	document.getElementById(name).style.display = action;
}
function displaydemo(name,action){
	if (action == 'show'){
		if (lastshowed != null){
			document.getElementById(lastshowed).style.display = "none";
		}
		lastshowed = name;

		action = '';
		//document.getElementById(name).childNodes[3].childNodes[0].src = '/cms_1_5_0/images/screenshots/thumbs/'+name.slice(0,-4)+'.gif';
		document.getElementById(name).getElementsByTagName('img')[0].src = '/cms_1_5_0/images/screenshots/thumbs/'+name.slice(0,-4)+'.gif';
		//document.getElementById(name+'_img').src = '/cms_1_5_0/images/screenshots/thumbs/'+name.slice(0,-4)+'.gif';

	}
	if (action == 'hide'){
		document.getElementById(currentchan + 'demo').style.display = ""; // bring back the flash charts
		document.getElementById(currentchan).style.display = "";
		action = 'none';
	}
	document.getElementById(name).style.display = action;

}
function displayfull(name,action){
	if (action == 'show'){
		action = '';
	}
	if (action == 'hide'){
		document.getElementById(name.slice(0,-4) + "demo").style.display = ""; 
		action = 'none';
	}
	document.getElementById(name).style.display = action;
	document.getElementById(name).getElementsByTagName('img')[0].src = '/cms_1_5_0/images/screenshots/full/'+name.slice(0,-4)+'.jpg';
	//document.getElementById(name+'_img').src = '/cms_1_5_0/images/screenshots/full/'+name.slice(0,-4)+'.jpg';
}

