var cf_agt=navigator.userAgent.toLowerCase();
var is_major = parseInt(navigator.appVersion, 10);
var is_ie     = ((cf_agt.indexOf("msie") != -1) && (cf_agt.indexOf("opera") == -1));
var is_ie6    = (is_ie && (is_major == 4) && (cf_agt.indexOf("msie 6.")!=-1) );

function setFlashSize_right(flashFile){
	if (flashFile == 'unavailable') {
		jQuery("#channel-finder-app").css({height: '300px'});
		if(!is_ie6 ){
			// Fix for IE6 that requires width not be set
			jQuery("#channel-finder-app").css({width: '235px'});
		}
	} else {
		jQuery("#channel-finder-app").css({height: '300px', width: '235px'});
	}
}
function setFlashSize_right_close() {
	jQuery("#channel-finder-app").css({height: '37px', width: '127px'});
}
function showOpenState() {
	alert('showOpenState');
	this.f=document.getElementById("cf_open");
	this.f.style.display= "inline";
}
function hideOpenState() {
	this.f=document.getElementById("cf_open");
	this.f.style.display= "none";
}