/*

//fixing for all IE versions the "click here to activate control" annoiance
//displaying the flash object with documet.write should had fixed this but it doesn't
objects = document.getElementsByTagName("object");
for (var i = 0; i < objects.length; i++) {  
	objects[i].outerHTML = objects[i].outerHTML;
}
*/

/*
//hack for fixing IE 5 and some versions of IE 6 to stop streaming after closing window/popup
//basicaly making sure we've deleted all js internal functions initiated by the flash plugin

//making sure we're not looping indefitely, overwriting the original flash unload handler found in IE
var externalProbSet = false;

__flash_unloadHandler = function() {
	if (externalProbSet) return;
	externalProbSet = true;
	
	var objects = document.getElementsByTagName("OBJECT");
	for (var i=0; i < objects.length; i++) {
		objects[i].style.display = 'none';
		for (var x in objects[i]) {
			if (typeof objects[i][x] == 'function') {
				objects[i][x] = function(){};
			}
		}
	}
	
	if (__flash_savedUnloadHandler != null) {
		__flash_savedUnloadHandler();
	}
}

if (window.onunload != __flash_unloadHandler) {
	__flash_savedUnloadHandler = window.onunload;
	window.onunload = __flash_unloadHandler;
}

*/





//disable right click flash contextmenu
message = "Copyright Point Marketing";
function NoRightClick(b) {
   if(((navigator.appName=="Microsoft Internet Explorer")&&(event.button > 1))
   ||((navigator.appName=="Netscape")&&(b.which > 1))){
   alert(message);
   return false;
   }
}
document.onmousedown = NoRightClick;


/*
//fixing the audio bug by efectively stopping the movie when window is closed
//doesn't work it's causing the IE browser to crash     

window.onbeforeunload  = function() {  
	//alert("closing");
	//setFlashVariables('demostage','action=stop');  	
}
*/
