﻿function swfMovie(movieName) {
    return document.getElementById(movieName);
}
function getIndex(link) {
    for (i=0;i<worldRegionCodes.length;i++){
        if (worldRegionCodes[i]==link)
            return i;
    }
    return -1;
}
function callOver(param, clientId) {
    swfMovie(clientId).over(param);
}

function callOut(param, clientId) {
    swfMovie(clientId).out(param);
}

function callPage(param){
    
	if (document.all||document.getElementById) {
	    document.location.href = worldRegionUrls[getIndex(param)];
	}
}