throw Error('setInterval Error\nInvalid function type');
};
};
+
+ /*Copy the default setTimeout behavior*/
+ var nativeSetTimeout = window.setTimeout;
+ window.setTimeout = function(fn,ms) {
+ var param = [];
+ if(arguments.length <= 2) {
+ return nativeSetTimeout(fn,ms);
+ }
+ else {
+ for(var i=2;i<arguments.length;i+=1) {
+ param[i-2] = arguments[i];
+ }
+ }
+
+ if(typeof(fn)=='function') {
+
+ return (function (fn,ms,param) {
+ var fo = function () {
+ fn.apply(window,param);
+ };
+ return nativeSetTimeout(fo,ms);
+ })(fn,ms,param);
+ }
+ else if(typeof(fn)=='string')
+ {
+ return nativeSetTimeout(fn,ms);
+ }
+ else
+ {
+ throw Error('setTimeout Error\nInvalid function type');
+ };
+ };
+
})()
// var card_pos = RANGE 0 <= x < cards_ea_n
$("esco").innerHTML = "<input name=\"logout\" type=\"button\" value=\"Esco.\" onclick=\"window.onunload = null; act_logout();\" type=\"button\">";
}
+
+function playsound(tag, sound) {
+ // g_withflash is a global var
+ if (g_withflash) {
+ alert("PLAYSOUND "+sound);
+ $(tag).innerHTML = '<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" '+
+'codebase="http://active.macromedia.com/flash2/cabs/swflash.cab#version=4,0,0,0" id="mysound" WIDTH=1 HEIGHT=1>' +
+'<PARAM NAME="movie" VALUE="playsound.swf"><PARAM NAME="PLAY" VALUE="true"><PARAM NAME="LOOP" VALUE="false">' +
+'<PARAM NAME=FlashVars VALUE="streamUrl='+sound+'">' +
+'<EMBED swliveconnect="true" name="mysound" src="playsound.swf" FlashVars="streamUrl='+sound+'" PLAY="true" LOOP="false" '+
+' WIDTH=1 HEIGHT=1 TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash"></OBJECT>';
+ }
+}