//
//(c)Copyright 2008 Nirupam Biswas (AppleGrew)
//
var isInternetExplorer = navigator.appName.indexOf("Microsoft") != -1;

//Gets swf's reference.
var movieName = "PortalHeader";
function thisMovie(movieName) {
        // IE and Netscape refer to the movie object differently.
        // This function returns the appropriate syntax depending on the browser.
        if (isInternetExplorer) {
                return window.top[movieName];
        } else {
                return window.top.document[movieName];
        }
}
// Checks if movie is completely loaded.
// Returns true if yes, false if no.
function movieIsLoaded (theMovie) {
        // First make sure the movie's defined.
        if (typeof(theMovie) != "undefined") {
                // If it is, check how much of it is loaded.
                return theMovie.PercentLoaded() == 100;
        } else {
                // If the movie isn't defined, it's not loaded.
                return false;
        }
}
//Show "Search" title.
function showSearchTitle(){
        if (movieIsLoaded(thisMovie(movieName))) {
                thisMovie(movieName).showTitle("Search");
        }
}
//Shows 'title' title in the PortalHeader
function showTitle(title){
        if (movieIsLoaded(thisMovie(movieName))) {
                thisMovie(movieName).showTitle(title);
        }
}
