var isDOM,isIE,isNN4,isOpera,isIE4;

if (navigator.userAgent.indexOf('Opera')!=-1) isOpera=1;
if (document.getElementById) isDOM=1;
if (document.all && !isOpera) isIE=1;
if (document.layers) isNN4=1;
if (!isDOM && document.all) isIE4=1

function getObj(n) {
	if(isDOM) return document.getElementById(n);
	if(isIE) return document.all[n];
	return document.layers[n];
}

function getStyle(n) {
	var obj=getObj(n);
	if(obj) {
		if(isNN4) return obj;
		return obj.style;
	}
}

function placeFlash() {
	if (!isIE) {
		var waterfallStyle = getStyle('waterfall');
		if (waterfallStyle) {
			if (document.body.clientWidth < 992) {
				waterfallStyle.left = isIE ? -42 : 232;
			} else {
				waterfallStyle.left = (isIE ? -109 : 232) + (document.body.clientWidth - 996)/2;
			}
		}
	}
}