var movieName = "myFlash";
function thisMovie(movieName) {
  // IE and Netscape refer to the movie object differently.
  // This function returns the appropriate syntax depending on the browser.
  if (navigator.appName.indexOf ("Microsoft") !=-1) {
	//return window[movieName]
	return parent[movieName]
	//return parent.contentpage[movieName]
  }	else {
    //return document[movieName]
	return parent.document[movieName]
  }
}

// Checks if movie is completely loaded.
// Returns true if yes, false if no.
function movieIsLoaded (theMovie) {
  if (typeof(theMovie) != "undefined") {
    return theMovie.PercentLoaded() == 100;
  } else {
    return false;
  }
}

function showFlash(f_type,f_obj,f_path,text_mode){
	type(f_type);
	obj(f_obj,'');
	path(f_path);
	
}


function type(bell) {
	var type = bell
	//window.document.myFlash.SetVariable("type", type);
	parent.document.myFlash.SetVariable("type", type);
	//parent.contentpage.myFlash.SetVariable("type", type);
}

function path(args){
   var pathee = args
   //window.document.myFlash.SetVariable("myVar", pathee);
  parent.document.myFlash.SetVariable("myVar", pathee);
   //parent.contentpage.myFlash.SetVariable("myVar", pathee);
}

function obj(theFrame) {
	thisMovie(movieName).Play();
	var frameno = theFrame
	
	//window.document.myFlash.SetVariable("frameno", frameno);
	parent.document.myFlash.SetVariable("frameno", frameno);
	//parent.contentpage.myFlash.SetVariable("frameno", frameno);
 }
 