\n');
}
// F. Permadi May 2000
function getFlashMovieObject(movieName)
{
if (window.document[movieName])
{
return window.document[movieName];
}
if (navigator.appName.indexOf("Microsoft Internet")==-1)
{
if (document.embeds && document.embeds[movieName])
return document.embeds[movieName];
}
else // if (navigator.appName.indexOf("Microsoft Internet")!=-1)
{
return document.getElementById(movieName);
}
}
function ZoominFlashMovie()
{
var flashMovie=getFlashMovieObject("map");
flashMovie.Zoom(75);
}
function ZoomoutFlashMovie()
{
var flashMovie=getFlashMovieObject("map");
flashMovie.Zoom(125);
}
function ZoomFlashMovie(arg)
{
var flashMovie=getFlashMovieObject("map");
flashMovie.Zoom(arg);
}
function ZoomallFlashMovie()
{
var flashMovie=getFlashMovieObject("map");
flashMovie.Zoom(0);
}
function zoomArea(x1,y1,x2,y2)
{
var flashMovie=getFlashMovieObject("map");
var twip = 20;
flashMovie.SetZoomRect(x1*twip,y1*twip,x2*twip,y2*twip);
}
function zoomTarget(x1,y1,dist)
{
var flashMovie=getFlashMovieObject("map");
var twip = 20;
flashMovie.SetZoomRect(x1*twip-dist*twip,y1*twip-dist*twip,x1*twip+dist*twip,y1*twip+dist*twip);
}
function panMap(x1,y1,mode)
{
var flashMovie=getFlashMovieObject("map");
flashMovie.Pan(x1,y1,mode);
}
var movieName = "map";
var currentPlay = "";
var currentArray = new Array();
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]
} else {
return 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 playmovie(mcName) {
if (movieIsLoaded(thisMovie(movieName))) {
currentPlay = mcName;
currentArray.push(mcName);
thisMovie(movieName).TPlay(mcName);
}
}
function clearPlay(mcName) {
if (movieIsLoaded(thisMovie(movieName))) {
stopPlay();
thisMovie(movieName).TStopPlay(currentPlay);
thisMovie(movieName).TGotoFrame(currentPlay,1);
var movieString = "business_details.php?passed_name=" + mcName;
debug("movieString is " + movieString);
debug("mcName is " + mcName);
playmovie(mcName);
// thisMovie(movieName).TStop(currentPlay);
document.getElementById("business_details").src=movieString;
}
}
function stopPlay() {
if (movieIsLoaded(thisMovie(movieName))) {
var l = currentArray.length;
for (x = 0; x < l; x++)
{
thisMovie(movieName).TStopPlay("_level0/" + currentArray[x]);
thisMovie(movieName).TGotoFrame("_level0/" + currentArray[x],1);
}
document.getElementById("business_details").src="sample.htm";
document.getElementById("enhanced_listing").src="welcome.htm";
}
currentPlay = "";
currentArray = new Array();
}
function playArray(num)
{
stopPlay();
var l = num.length
for (x = 0; x < l; x++)
{
thisMovie(movieName).TPlay("_level0/" + num[x]);
}
currentArray = num;
}
function changeTitle(newTitle) {
var dynamic_title = document.getElementById("dynamic_title");
dynamic_title.firstChild.nodeValue=newTitle;
}
function switchList(switchText)
{
changeTitle(switchText);
if (switchText == "Browse by Category") {
document.getElementById("list").src="list.htm";
}
}
function listBusiness(movieName)
{
var movieString = "business_details.php?passed_name=" + movieName;
stopPlay();
playmovie(movieName);
currentPlay = movieName;
document.getElementById("business_details").src=movieString;
}
function enhancedList(enhancedName,movieName)
{
if (enhancedName == "enhanced") {
var enhancedString = movieName + ".htm";
document.getElementById("enhanced_listing").src=enhancedString;
} else {
document.getElementById("enhanced_listing").src="enhanced_blank.htm";
}
}
function loaded()
{
clearPlay('cecil_gee');
zoomTarget(1687,1468,125);
}
var banner_rand=Math.floor(Math.random()*banner.length);
var brighton_pic_rand=Math.floor(Math.random()*brighton_pic.length);
//-->
 |
|
|