window.onresize = function()
{
	changeStyleSheet();
};

window.onload = function()
{
	changeStyleSheet();
}

function changeStyleSheet()
{
	fixed			= 'Fixed';
	clientHeight	= document.documentElement.clientHeight;
	clientWidth		= document.documentElement.clientWidth;
	leftDivId		= 'columnA';
	rightDivId		= 'columnB';
	leftDiv			= document.getElementById(leftDivId);
	rightDiv		= document.getElementById(rightDivId);
	if(leftDiv == null && rightDiv == null) //these divs could have switched id's thats why we try to find them the next time with the fixed var.
	{
		leftDiv		= document.getElementById(leftDivId+fixed);
		rightDiv	= document.getElementById(rightDivId+fixed);
	}
	minHeight		= 585;

	if(leftDiv != null && rightDiv != null)
	{
		if(clientHeight >= minHeight)
		{
			leftDiv.id = leftDivId+fixed;
			rightDiv.id = rightDivId+fixed;
		}
		else
		{
			leftDiv.id = leftDivId;
			rightDiv.id = rightDivId;
		}
	}
}

function activatePic(id)
{
	$$('div.highlight').each(
		function(item) {
			item.hide();
		}
	);
	$(id).show();
}

function updateElements(a_url, description)
{
	var videoUrl 	= a_url;
	var description = description;
	//var so = new SWFObject(videoUrl, "sotester", "474", "267", "9", "#2D2D2D"); 
	//so.addVariable("flashVarText", "this is passed in via FlashVars for example only"); // this line is optional, but this example uses the variable and displays this text inside the flash movie 
	//so.write("flashcontent"); 
	swfobject.embedSWF(videoUrl, "flashcontent", "474", "267", "9.0.0", "/flash/expressInstall.swf");
	$('videotitle').replace('<p id="videotitle">'+description+'</p>');
}

<!--
IE4plus = (document.all) ? true : false;
NS4 = (document.layers) ? true : false;

function clickIE()
{
return false;
}

function clickNS(e)
{
if (e.which==2 || e.which==3)
{
return false;
}
}
if (!IE4plus)
{
document.captureEvents(Event.MOUSEDOWN || Event.MOUSEUP);
document.onmousedown=clickNS;
document.onmouseup= clickNS;
document.oncontextmenu=clickIE; // For NS 6+
}
else
{
document.onmouseup= clickIE;
document.oncontextmenu=clickIE;
}

function hidden()
{document.body.style.overflow='hidden';}
function unhidden()
{document.body.style.overflow='';}
//-->



