var flashVars ="";

function _IG_EmbedFlash(swfUrl, swfContainer, opt_params) 
{
 var  obj = document.getElementById(swfContainer);
 
// document.write("<object height='100%' width='100%'>");
// document.write("<param name='obj' value='"+ swfUrl +"' />");
// //document.write("<param name='wmode' value='opaque' />");
// //document.write("<param name='wmode' value='opaque' />");
// document.write("<embed src='"+ swfUrl +"' height='100%' width='100%'>");
// document.write("</embed></object><br>");

 document.write("<object>");
 document.write("<param name='obj' value='"+ swfUrl +"'>");
 document.write("<embed src='"+ swfUrl +"' height='100%' width='100%' flashvars='"+flashVars+"' wmode='transparent'>");
 document.write("</embed></object><br>");
}

function _gel(el) {
  return document.getElementById ? document.getElementById(el) : null;
}

function _IG_GetCachedUrl(url) {
  return url;
}

function _IG_RegisterOnloadHandler(a){
if (window.addEventListener)
	window.addEventListener("load", a, false);
else if (window.attachEvent)
	window.attachEvent("onload", a);
else
	window.onload= a;
}

/***********************************************************************/
function _IG_Prefs(a)
{
  this.getString = function(a)
                   {
                     var value = checkValuePrefs(a);
                     return value;
                   };
  this.getInt = function(ab)
                   {
                     var value = checkValuePrefs(ab);
                     return parseInt(value);
                   }; 
  this.getBool = function(ac)
                   {
                     var value = checkValuePrefs(ac);
                     if (value == 'true')
                       return true;
                     else
                       return false;
                   };
  this.getMsg = function(ar)
                    {
                        return ar;
                    }
  //this.set = function(){return false};            // edit
}

function _IG_AddDOMEventHandler(a,b,c)
{
  if (window.addEventListener)
	a.addEventListener(b, c, false);
  else if (window.attachEvent)
	a.attachEvent(("on"+b), c);
}

function _IG_SetTitle(title)
{
   return false;
}

function checkValuePrefs(name)  // overided when generate html
{
  return name;
}

//***Add by Mui***
function _IG_Analytics()
{
}
//function _IG_MiniMessage()
//{
//  prototype = function {
//      createDismissableMessage: function(msg, opt_callback) { },
//      createTimerMessage: function(msg, seconds, opt_callback) {},
//      createStaticMessage: function(msg) {},
//      dismissMessage: function(msg) {},
//  }
//}
function _IG_AdjustIFrameHeight(){
}

//_IG_MiniMessage = function(modid, opt_container) {
//}

//_IG_MiniMessage.prototype = {
//  createDismissableMessage: function(msg, opt_callback) { },
//  createTimerMessage: function(msg, seconds, opt_callback) {},
//  createStaticMessage: function(msg) {},
//  dismissMessage: function(msg) {},
//}
//***