function window_pop_up (location, name, width, height) {
	winPop = window.open(location, name, 'width=' + width + ', height=' + height + ', toolbar=0, resizable=0, status=0, location=0, scrollbars=1');
	winPop.focus();
}

function setSWFDimensions (objID,width,height) {
	if (objID && width && height) {

		var fObj = document.getElementById(objID);
		var fEmb = document.getElementById(objID+'-embed');
		var ie   = navigator.appName.toUpperCase().match(/MICROSOFT INTERNET EXPLORER/);
		
		if (fObj && fObj.style) {
			fObj.setAttribute('width',width);
			fObj.setAttribute('height',height);
			
			if ( ie ) {
				fObj.style.width = width;
				fObj.style.height = height;
			}
			else{
				fObj.style.width = width+'px';
				fObj.style.height = height+'px';
			}
		}
		
		if (fEmb != null) {
			fEmb.width = width;
			fEmb.height = height;
			
			if (fEmb.style) {
				if ( ie ) {
					fEmb.style.width = width;
					fEmb.style.height = height;
				}
				else{
					fEmb.style.width = width+'px';
					fEmb.style.height = height+'px';
				}
			}
		}
	}
}

function scrollTop(){
	self.scrollTo( 0, 0 );
}

// DISABLE WHEEL SCROLLING ON HTML WHEN MOUSE IS OVER FLASH.

function hookMouseWheel()
{
	if (window.addEventListener)
		window.addEventListener('DOMMouseScroll', onMouseWheel, false);
	window.onmousewheel = document.onmousewheel = onMouseWheel;
}

function isOverSwf(mEvent){
	var elem;
	if (mEvent.srcElement) { elem = mEvent.srcElement;} 
	else if (mEvent.target) { elem = mEvent.target;	}
	
	if ((elem.nodeName.toLowerCase() == "object" &&
			 elem.getAttribute("classid") == "clsid:D27CDB6E-AE6D-11cf-96B8-444553540000") ||
		(elem.nodeName.toLowerCase() == "embed" &&
			 elem.getAttribute("type") == "application/x-shockwave-flash") ||
		(elem.nodeName.toLowerCase() == "object" &&
			 elem.getAttribute("type") == "application/x-shockwave-flash")) {
		return true;
	}
	return false;
}

function onMouseWheel(event){
	if (!event){ event = window.event; }
	if (isOverSwf(event)) {	return cancelEvent(event); }
	return true;
}

function cancelEvent(e){
	e = e ? e : window.event;
	if (e.stopPropagation){ e.stopPropagation(); }
	if (e.preventDefault) { e.preventDefault(); }
	e.cancelBubble = true;
	e.cancel = true;
	e.returnValue = false;
	return false;
}
// Un-Comment if you want to disable mouse wheel scrolling on html while mouse is over the flash
//hookMouseWheel();

