// encoded 06/07/2006 16:06:29 by nexencoder
var JSRC_CALLBACK_NONE=0;var JSRC_CALLBACK_IFRAME=0x01;var JSRC_CALLBACK_XMLHTTP=0x02;var JSRC_CALLBACK_ENABLED=0x02;var jsrc_request_timeout=30;var jsrc_slots_pool=[];var jsrc_slots_count=0;var jsrc_slot_image;function jsrc(v3, v4, v5, v6){if(!window.bw||(v4&&(!bw.dhtml||(bw.opera&&bw.vendver<7))))return null;if(!v4){jsrc_slot_image=new Image();jsrc_slot_image.src=v3;return null;}if(v4===true)v4=JSRC_CALLBACK_XMLHTTP;var v1=f65_4(v4);var v2=typeof(v5)=='string'?new Function('v',v5.replace(/\(.*\)/,'')+'(v);'):v5;v1.interval=v6;v1.sessionizer_ignore=jsrc.sessionizer_ignore;f65_3(v1);v1.load(v3,v2);jsrc.sessionizer_ignore=null;return v1;}function jsrc_post(v3, v4){if(!window.bw||(!bw.dhtml||(bw.opera&&bw.vendver<7))||!v3.action)return null;var v1=f65_4(JSRC_CALLBACK_XMLHTTP);var v2=typeof(v4)=='string'?new Function('v',v4.replace(/\(.*\)/,'')+'(v);'):v4;v1.sessionizer_ignore=jsrc.sessionizer_ignore;f65_3(v1);v1.post_form(v3,v2);jsrc.sessionizer_ignore=null;return v1;}function f65_3(v1){v1.clear= function(v1){if(this.timer)clearTimeout(this.timer);if(this.type==JSRC_CALLBACK_XMLHTTP&&window.ActiveXObject)this.http_request=null;if(v1){this.busy=false;this.action='';}else if(document.layers)this.busy=false;};v1.abort= function(){if(this.intvl)clearTimeout(this.intvl);if(this.busy&&this.type==JSRC_CALLBACK_XMLHTTP)this.http_request.abort();if(this.busy)this.clear(true);};}function f65_4(v4){var v1,activeX_test;if(bw.layers&&jsrc_slots_count)return jsrc_slots_pool[0];for(var v3=0;v3<jsrc_slots_count;v3++)if(!jsrc_slots_pool[v3].busy&&jsrc_slots_pool[v3].type==v4)return jsrc_slots_pool[v3];v1=jsrc_slots_count;if(v4===JSRC_CALLBACK_XMLHTTP&&window.ActiveXObject)activeX_test=new Function("try{var o=new ActiveXObject('Microsoft.XMLHTTP');return true;}catch(err){return false;}");if(v4===JSRC_CALLBACK_XMLHTTP&&(window.XMLHttpRequest||(window.ActiveXObject&&activeX_test())))jsrc_slots_pool[v1]=new f65_7(v1);else jsrc_slots_pool[v1]=new f65_8(v1);jsrc_slots_count++;return jsrc_slots_pool[v1];}function jsrc_loaded(v2, v3, v4){var v1=jsrc_slots_pool[v2];if(!v1)return;if(v1.onload&&v1.busy)v1.onload(v3);if(window.nex_recorder&&v4)nex_recorder.save_remote(v4);else if(window.nex_recorder){if(v1.container.location)v1.url=v1.container.location;else if(v1.container.src)v1.url=v1.container.src;nex_recorder.save_remote(v1.url);}}function jsrc_abort(v2){var v1=jsrc_slots_pool[v2];if(!v1||!v1.busy)return;if(window.debug_mode)alert('js remote call ('+v2+') aborted!');if(v1.action)v1.action(null);v1.clear(true);}function f65_7(v8){this.id=v8;this.type=JSRC_CALLBACK_XMLHTTP;this.busy=false;this.action=null;this.interval=0;this.ref='jsrc_slots_pool['+this.id+']';this.load= function(v3, v4, v5, v6){this.busy=true;if(typeof(v4)=='function')this.action=v4;if(!v5)v5='GET';if(!v6)v6=null;if(!this.http_request&&window.XMLHttpRequest)this.http_request=new XMLHttpRequest();else if(!this.http_request&&window.ActiveXObject)this.http_request=new ActiveXObject('Microsoft.XMLHTTP');var v1=(v3.indexOf('?')<0)?'?':'&';var v2=v1+'_jsrc_slot='+this.id+'&_jsrc_mode=2';this.url=v3+v2;this.http_request.onreadystatechange=new Function(this.ref+'.change_state();');this.http_request.open(v5,this.url,true);if(v6!=null)this.http_request.setRequestHeader('Content-Type','application/x-www-form-urlencoded');this.http_request.send(v6);this.timer=setTimeout('jsrc_abort(\''+this.id+'\')',jsrc_request_timeout*1000);};this.post_form= function(v3, v4){var v1='';for(var v2=0;v2<v3.elements.length;v2++){if(v3.elements[v2].disabled||v3.elements[v2].type=='button'||v3.elements[v2].type=='submit'||v3.elements[v2].type=='reset')continue;v1+=v1!=''?'&':'';v1+=v3.elements[v2].name+'='+escape(window.nex_get_value?nex_get_value(v3.elements[v2]):v3.elements[v2].value);}this.load(v3.action,v4,'POST',v1);};this.change_state= function(){if(this.http_request&&this.http_request.readyState==4){var jsrc_return_val,jsrc_return_cid;var v3=this.http_request.getResponseHeader('Content-Type');if(v3)v3=String(v3).toLowerCase();if((v3=='text/javascript'||v3=='application/x-javascript')&&this.http_request.responseText)eval(this.http_request.responseText);if(this.action){this.action(jsrc_return_val);if(jsrc.sessionizer){jsrc.sessionizer=false;setTimeout('top.player_container.main_player.start_player()',500);}}if(window.nex_recorder&&jsrc_return_cid&&!this.sessionizer_ignore)nex_recorder.save_remote(jsrc_return_cid);else if(window.nex_recorder&&!this.sessionizer_ignore)nex_recorder.save_remote(this.url);if(this.interval){this.clear(false);this.intvl=setTimeout(this.ref+'.load(\''+this.url+'\')',this.interval);}else this.clear(true);}};}function f65_8(v9){this.id=v9;this.type=1;this.busy=false;this.action='';this.interval=0;this.stack=[];this.container=f65_9(v9);this.ref='jsrc_slots_pool[\''+v9+'\']';this.load= function(v3, v4){if(document.layers&&this.busy){this.putstack(v3,v4);return;}this.busy=true;if(typeof(v4)=='function')this.action=v4;var v1=(v3.indexOf('?')<0)?'?':'&';var v2=v1+'_jsrc_slot='+this.id;this.url=v3+v2;if(document.layers)setTimeout(this.ref+'.container.src="'+this.url+'"',10);else if(bw.opera&&bw.vendver==8)setTimeout(this.ref+".container.location.replace('"+this.url+"')",10);else if(bw.opera)this.container.src=this.url;else this.container.location.replace(this.url);this.timer=setTimeout('jsrc_abort(\''+this.id+'\')',jsrc_request_timeout*1000);};this.post_form= function(v5, v6){if(document.layers)return false;this.busy=true;if(typeof(v6)=='function')this.action=v6;var v1=v5.target;var v2=v5.action;var v3=(v5.action.indexOf('?')<0)?'?':'&';var v4=v3+'_jsrc_slot='+this.id;this.url=v5.action+v4;v5.action=this.url;v5.target=this.container.name;v5.submit();v5.target=v1;v5.action=v2;};this.onload= function(v2){if(this.action)this.action(v2);var v1=this.stack.length;if(!v1&&this.interval){this.clear(false);this.intvl=setTimeout(this.ref+'.load(\''+this.url+'\')',this.interval);}else{this.clear(true);this.execstack();}};this.putstack= function(v3,v4){var v1=0;for(var v2=0;v2<this.stack.length;v2++)if(!this.stack[v2]){v1=v2;break;}this.stack[v2]=v3+'=>'+v4;};this.execstack= function(){if(!this.stack.length)return;var v1=null;for(var v2=0;v2<this.stack.length;v2++)if(this.stack[v2]){v1=v2;break;}if(v1!=null){var v3=this.stack[v1].split('=>');this.load(v3[0],v3[1]);this.stack[v1]='';}};}function f65_9(v5){var v1;var v2='jsrc'+v5+'frame';if(document.layers){v1=new Layer(100);v1.name='jsrc'+v5+'layer';v1.visibility='hidden';v1.clip.width=100;v1.clip.height=100;}else if(document.all&&!window.opera){var v3='<iframe name="'+v2+'" src="/global/images/blank.gif" style="width:0; height:0; visibility:hidden;"></iframe>';document.body.insertAdjacentHTML('BeforeEnd',v3);v1=window.frames[v2];}else if(document.getElementById){var v4=document.createElement('IFRAME');v4.name=v2;v4.style.width=0;v4.style.height=0;v4.style.visibility='hidden';document.body.appendChild(v4);v1=v4;if(window.frames[v2]){window.frames[v2].name=v2;v1=window.frames[v2];}}return v1;}
