// igl_Prototype 2.0 - igLoader Javascript Comms
// All code copyright (c)2005-2006 Indiepath Ltd All rights reserved.
// Steal this and we'll publically humiliate you.
// Global Variables
var igVersion_Required = "3004";
var Plugin_Object = null;
var ig_Width;
var ig_Height;
// Initialise the Plugin
function initLoader()
{
document.write("
hello
");
var replace = document.getElementById( "igL" );
var output = "";
output = output + "\n";
replace.innerHTML = output;
Plugin_Object = document.igl_embed;
setTimeout("igl_VersionValid()",50);
return;
}
// *************************************************************************************************************************
// igLoader Specific Functions, these are called by the plugin - the function names must remain, the content can be changed
// *************************************************************************************************************************
function igl_DownloadPercent(percent)
{
return 4;
}
// *************************************************************************************************************************
function igl_DownloadComplete(arg)
{
return 4;
}
// *************************************************************************************************************************
function igl_AppLaunched()
{
return 4;
}
// *************************************************************************************************************************
function igl_AppTerminated()
{
return 4;
}
// *************************************************************************************************************************
function igl_LaunchApplication()
{
//Plugin_Object.Launch();
}
// *************************************************************************************************************************
function igl_Debug(message, alt)
{
return 4;
}
// *************************************************************************************************************************
function igl_VersionValid()
{
if (navigator.appVersion.indexOf("MSIE")!=-1)
{
return;
}
//alert(Plugin_Object.Version());
if ( igVersion_Required == Plugin_Object.Version() )
{
return;
}
else
{
document.getElementById( "igL" ).innerHTML = "";
alert("The GameLoader requires an update, you will now be prompted to download and run the update application.");
window.location.href = "http://www.pjio.com/download/pjio_gamelauncher.xpi";
}
}
var ig_location = "http://www.pjio.com/xml2/PlayDetective Heartbreakers";
var ig_Width = 800;
var ig_Height = 600;
initLoader();