/********************************************************************/
// vars
/********************************************************************/

var sExpressInstall = "pix/expressInstall.swf";
var captionDiv = "caption";


/********************************************************************/
// general functions
/********************************************************************/

// address flash movie for external interface in action script
function thisMovie( movieName )
{
    if ( navigator.appName.indexOf("Microsoft") != -1 )
    {
        return window[movieName];
    }
    else
    {
        return document[movieName];
    }
}

window.onload = function() {
	function next(elm) {
		var next = elm.nextSibling;

		while (next) {
			if (next.nodeType === 1) {
				break;
			}
			next = next.nextSibling;
		}

		return next;
	};

	var select = document.getElementById('f-sendto');
	if (!select) return;

	select.onchange = function() {
		var display;

		if (this.value == 'su') {
			display = ['none'];
		}
		else {
			display = ['block', 'table-row'];
		}


		var elm = this.parentNode.parentNode;
		while (elm = next(elm)) {
			for (var i=0, value; value=display[i]; i+=1) {
				elm.style.display = value;
			}
		}
	};

	select.onchange();


};



