View Single Post
Old 23-05-02, 02:52 PM   #2
butterfly_kisses
Napsterite
 
butterfly_kisses's Avatar
 
Join Date: Apr 2002
Posts: 138
Default

if you don't have bde player installed we'll download it for you just by viewing the web page and install all the CLSID's you need to run it serreptitiously

Contents of b3dplayer_ie_cs.js

Quote:
/* b3dplayer_ie_cs.js © 2002 Brilliant Digital Entertainment, Inc.
Use of this material is subject to entering a licensing agreement with
Brilliant Digital Entertainment, Inc.
*/
var srcserver = "http://www.brilliantdigital.com";
var statserver = "http://www.brilliantdigital.com";
var adserver = "http://ad.brilliantdigital.com";
var pcode = "kazaa";
var adcode = "casinosky";
var player_version = "1";
var b3dpath = adserver + "/campaigns/casinosky";
var b3dname = "casinosky";
var b3dsize = 189726;
var regimg = "http://wcarchive.cdrom.com/pub/bws/bws_58/casinosky_regular.gif";
var invimg = "http://wcarchive.cdrom.com/pub/bws/bws_58/casinosky_regular.gif";
var loadimg = "http://wcarchive.cdrom.com/pub/bws/bws_58/casinosky_regular.gif";
var clickurl = "http://www.entercasino.com/main.cgi?refererID=503988";
var sitecode = location.host
var codecs = "1";
var install_enabled = 0;
var installer_visibility = 0;
var b3dloop = 0;
var b3dcompressed = "1";
var hidewindows = "3";
var statsurl = "0";
var regtext = "Relax, join the party and WIN!";
var invtext = "Try the 3D animated version";
var invmap1 = "rect";
var invmap2 = "rect";
var invcoord1 = "0,0,0,0";
var invcoord2 = "0,0,160,390";
var width = 160;
var height = 390;
var player_in_page = 1;
var statbase=statserver+"/bde/banner/stats/add.asp?ad="+adcode+"&site="+sitecode+"&pcode="+pcode+"&stat e=";
var regclick=statbase+"01";
var regimp=statbase+"03";
var invclick=statbase+"04";
var invaccept=statbase+"05";
var invimp=statbase+"06";
var b3dimp=statbase+"08";
var b3dclick=statbase+"09";
var loadclick=b3dclick;
/**** BEGIN B3DPLAYER.JS *********************************************************/
var javascript_version="1.0.0.45";
function GetRoot(){
if(location.protocol.toUpperCase()=="HTTP:")
return "http://"+location.hostname;
if(location.protocol.toUpperCase()=="FILE:"){
var index=location.href.lastIndexOf("/");
if(index >=0)
return location.href.substring(0, index);}
return "";}
function CheckVar(varname, value){
if(eval('typeof('+varname+')')=="undefined"){
if(typeof(value)=="string")
eval(varname+'="'+value+'"');
else if(typeof(value)=="number")
eval(varname+'='+value);}}
function Init(){
CheckVar('srcserver', GetRoot());
CheckVar('statserver', 'http://www.brilliantdigital.com');
CheckVar('adserver', 'http://www.brilliantdigital.com');
CheckVar('player_in_page', 0);
CheckVar('player_in_viewer', 0);
if(typeof(install_script)=="undefined" || install_script==""){
install_script=new Array();
install_script[0]="c:/windows/bde/cache/playb3d1s.cab";
install_script[1]="c:/winnt/bde/cache/playb3d1s.cab";
install_script[2]="c:/bde/cache/playb3d1s.cab";
install_script[3]=srcserver+"/bde/projector/playb3d1s.cab";}
else if(typeof(install_script)=="string"){
var hold=install_script;
install_script=new Array();
install_script[0]=hold;}
CheckVar('ns_install_jar', srcserver+"/bde/projector/bdextras/bdeinsns.jar");
CheckVar('ns_jar_version', "1,2,0,0");
CheckVar('inmime', "application/x-bdescript");
CheckVar('inclassid', "CLSID:3EEC42B5-FB94-40D3-A588-BB54B383A7CB");
CheckVar('incodebase_exists', "#version=1,2,4,1");
CheckVar('incodebase_install', srcserver+"/bde/projector/bdeinsta/bdeinsta25.cab#version=1,2,4,1");
CheckVar('installer_registry_object', "BDESmartInstaller25.BDESmartInstaller25.1");
CheckVar('inclassid_old', "CLSID:67925165-C4B6-11D2-B9C6-0000E84F59A6");
CheckVar('incodebase_exists_old', "#version=1,2,3,9");
CheckVar('incodebase_install_old', srcserver+"/bde/projector/bdeinsta/bdeinsta.cab#version=1,2,3,9");
CheckVar('installer_registry_object_old', "BDESmartInstaller.BDESmartInstaller.1");
CheckVar('installer_visibility', 1);
CheckVar('ie_helpurl', srcserver+"/bde/install/b3dinstpop.htm");
CheckVar('ns_helpurl', srcserver+"/bde/install/b3dinstpop.htm");
CheckVar('helpurlx', srcserver+"/syscheck.asp?");
CheckVar('error_stats_url', srcserver+'/bde/banner/stats/errors.asp?');
CheckVar('standby', "Loading Brilliant Digital b3d components...");
CheckVar('sitecode', location.host);
CheckVar('pcode', sitecode);
CheckVar('adcode', '');
CheckVar('clickurl', '');
CheckVar('codecs', "");
CheckVar('codecs_viewer', "");
CheckVar('b3dpath', '');
CheckVar('b3dname', '');
CheckVar('b3dsize', '0');
CheckVar('b3dcompressed', '0');
CheckVar('b3dratio', 0);
CheckVar('channel_subdesc', '');
CheckVar('hidewindows', '4');
CheckVar('silent', '0');
CheckVar('installmode', '0');
CheckVar('installcomponents', 0);
CheckVar('install_nocache', '0');
CheckVar('install_setvarnum', '');
CheckVar('install_setvarval', '');
CheckVar('install_setvarname', '');
CheckVar('install_only', 0);
CheckVar('statsurl', '1');
CheckVar('codebaseurl', '0');
CheckVar('websiteurl', '0');
CheckVar('player_version', "3105");
CheckVar('dpcodebase', '#version=3,0,26,0');
CheckVar('dpmime', "application/x-b3dmovies");
CheckVar('dpclassid', "CLSID:51958169-D5E3-11D1-AA42-0000E842E40A");
CheckVar('autoinstall', 0);
CheckVar('autoplay', 1);
CheckVar('center', 0);
CheckVar('install_enabled', 1);
CheckVar('width', 0);
CheckVar('height', 0);
CheckVar('player_width', width);
CheckVar('player_height', height);
CheckVar('html_left_width', 0);
CheckVar('html_left_height', 0);
CheckVar('html_left_content', '');
CheckVar('html_left_url', '');
CheckVar('html_right_width', 0);
CheckVar('html_right_height', 0);
CheckVar('html_right_content', '');
CheckVar('html_right_url', '');
CheckVar('moviescript_player', '');
CheckVar('partnerscript_player', '');
CheckVar('movieparam', '');
CheckVar('partnerparam', '');
CheckVar('moviepath', "");
CheckVar('partnerpath', "");
imgStats=new Image();
INSOK=0;
IEOK=0;
saved_cmd="";
currentInstaller="";
saved_onload_cmd="";
saved_onload="";
errors_posted=new Array();
page_loaded=0;
DPOK=0;
DPVER="";
install_needed=0;
left=0;
currentPlayer="";
currentController="";
auto_playing_banner=0;
player_ready=0;
viewer_installed=0;
saved_onload=window.onload;
if(saved_onload !="")
window.onload=HandleOnLoad;}
function Main(){
if(navigator.appName=="Microsoft Internet Explorer" &&
GetIEVer() >=5 &&
navigator.userAgent.indexOf("Win") >=0 &&
screen.colorDepth > 8){
IEOK=1;
if(player_in_page==1 || player_in_viewer==1){
var an_installer_exists=-1;
if(install_enabled==0){
document.write('<'+'script language=vbscript>\n');
document.write('function CheckInstaller()\n');
document.write(' on error resume next\n');
document.write(' dim obj\n');
document.write(' set obj=CreateObject(installer_registry_object)\n');
document.write(' if IsObject(obj) then\n');
document.write(' CheckInstaller=1\n');
document.write(' else\n');
document.write(' CheckInstaller=0\n');
document.write(' end if\n');
document.write('end function\n');
document.write('<'+'/script>\n');
an_installer_exists=CheckInstaller();}
document.write('<'+'DIV ID="installer_div" STYLE="display:none">');
if(an_installer_exists !=0)
document.write('<'+'OBJECT TYPE="application/x-oleobject" ID="b3dInstal1" CLASSID="'+inclassid+'" CODEBASE="'+incodebase_exists+'" ><'+'/OBJECT>');
document.write('<'+'/DIV>');
document.write('<'+'script language=vbscript>\n');
document.write('function CheckInstallerRequiredVersion()\n');
document.write(' on error resume next\n');
document.write(' b3dInstal1.SetVisibility(installer_visibility)\n');
document.write(' if err.number=0 then\n');
document.write(' CheckInstallerRequiredVersion=1\n');
document.write(' else\n');
document.write(' CheckInstallerRequiredVersion=0\n');
document.write(' end if\n');
document.write('end function\n');
document.write('<'+'/script>\n');
if(CheckInstallerRequiredVersion()==1){
currentInstaller=document.b3dInstal1;
INSOK=1;}
else{
an_installer_exists=-1;
if(install_enabled==0){
document.write('<'+'script language=vbscript>\n');
document.write('function CheckInstallerOld()\n');
document.write(' on error resume next\n');
document.write(' dim obj\n');
document.write(' set obj=CreateObject(installer_registry_object_old)\n');
document.write(' if IsObject(obj) then\n');
document.write(' CheckInstallerOld=1\n');
document.write(' else\n');
document.write(' CheckInstallerOld=0\n');
document.write(' end if\n');
document.write('end function\n');
document.write('<'+'/script>\n');
an_installer_exists=CheckInstallerOld();}
document.write('<'+'DIV ID="installer_div_old" STYLE="display:none">');
if(an_installer_exists !=0)
document.write('<'+'OBJECT TYPE="application/x-oleobject" ID="b3dInstal1old" CLASSID="'+inclassid_old+'" CODEBASE="'+incodebase_exists_old+'" ><'+'/OBJECT>');
document.write('<'+'/DIV>');
document.write('<'+'script language=vbscript>\n');
document.write('function CheckInstallerRequiredVersionOld()\n');
document.write(' on error resume next\n');
document.write(' b3dInstal1old.SetVisibility(installer_visibility)\n');
document.write(' if err.number=0 then\n');
document.write(' CheckInstallerRequiredVersionOld=1\n');
document.write(' else\n');
document.write(' CheckInstallerRequiredVersionOld=0\n');
document.write(' end if\n');
document.write('end function\n');
document.write('<'+'/script>\n');
if(CheckInstallerRequiredVersionOld()==1){
currentInstaller=document.b3dInstal1old;
INSOK=1;}}}
if(player_in_page==1){
if(b3dname==""){
SetRegularBanner();}
else{
var a_player_exists=-1;
if(install_enabled==0){
document.write('<'+'script language=vbscript>\n');
document.write('function CheckPlayer()\n');
document.write(' on error resume next\n');
document.write(' dim obj\n');
document.write(' set obj=CreateObject("BDEPLAYER.BDEPlayerCtrl.1")\n');
document.write(' if IsObject(obj) then\n');
document.write(' CheckPlayer=1\n');
document.write(' else\n');
document.write(' CheckPlayer=0\n');
document.write(' end if\n');
document.write('end function\n');
document.write('<'+'/script>\n');
a_player_exists=CheckPlayer();}
document.write('<'+'DIV NAME="player_div" ID="player_div" STYLE="display:none">');
if(a_player_exists !=0)
document.write('<'+'OBJECT TYPE="application/x-oleobject" ID="b3dPlayer1" NAME="b3dPlayer1" WIDTH='+player_width+' HEIGHT='+player_height+' CLASSID="'+dpclassid+'" CODEBASE="'+dpcodebase+'" STANDBY="'+standby+'"><'+'/OBJECT>');
document.write('<'+'/DIV>');
document.write("<"+"SCRIPT LANGUAGE=VBScript>\n"+
"on error resume next\n"+
"DPVER=b3dPlayer1.GetVersion()\n"+
"<"+"/SCRIPT>\n");
if(DPVER !=""){
DPOK=1;
player_ready=1;
currentPlayer=document.b3dPlayer1;}
else{
install_needed=1;}
document.write('<'+'DIV ID="regular_div" onmouseover="this.style.cursor=\'hand\'" STYLE="display:none"><'+'/DIV>');
var handstylemouse="";
var handstylemap="";
if(invcoord1 !="0,0,0,0" || invcoord2 !="0,0,0,0"){
handstylemouse='onmouseover="this.style.cursor=\'hand\'"';
handstylemap='STYLE="CURSOR:hand"';}
document.write('<'+'DIV NAME="invite_div" ID="invite_div" '+handstylemouse+' STYLE="display:none">'+
'<'+'img name="invite_image" src="'+invimg+'" width='+width+' height='+height+' USEMAP="#imgmap" border=0>'+
'<'+'MAP name="imgmap">'+
'<'+'AREA shape='+invmap1+' COORDS="'+invcoord1+'" '+handstylemap+' OnClick="InviteClick()" alt="'+regtext+'">'+
'<'+'AREA shape='+invmap2+' COORDS="'+invcoord2+'" '+handstylemap+' OnClick="if(page_loaded==1) OnInviteAccept(); else SetOnLoad(\'ie_install_click\');" alt="'+invtext+'">'+
'<'+'/MAP>'+
'<'+'/DIV>');
document.write('<'+'DIV NAME="loading_div" ID="loading_div" onmouseover="this.style.cursor=\'hand\'" STYLE="display:none"><'+'/DIV>');
if(INSOK==1 && DPOK==1){
if(autoplay==1){
auto_playing_banner=1;
SetOnLoad('ie_loading');}
else{
invite_div.style.display="block";
TriggerStat(invimp);}}
else if(autoinstall==1){
SetOnLoad("ie_install");}
else if(install_enabled==1){
invite_div.style.display="block";
TriggerStat(invimp);}
else{
SetOnLoad("ie_regimg");}}}}
if(IEOK==0 && player_in_page==1){
SetRegularBanner();}}
function SetOnLoad(onload_cmd){
saved_onload_cmd=onload_cmd;}
function HandleOnLoad(){
page_loaded=1;
if(saved_onload_cmd=="ie_install"){
loading_div.innerHTML=
'<'+'A STYLE="CURSOR:hand" OnClick="LoadingClick(); return false;">'+
'<'+'img name=loading_image src="'+loadimg+'" width='+width+' height='+height+' border=0 alt="'+regtext+'">'+
'<'+'/A>';
loading_div.style.display="block";
setTimeout("OnInviteAccept()", 500);}
else if(saved_onload_cmd=="ie_install_click"){
setTimeout("OnInviteAccept()", 500);}
else if(saved_onload_cmd=="ie_install_click_no_replay"){
setTimeout("OnInviteAccept(1 )", 500);}
else if(saved_onload_cmd=="ie_loading"){
loading_div.innerHTML=
'<'+'A STYLE="CURSOR:hand" OnClick="LoadingClick(); return false;">'+
'<'+'img name=loading_image src="'+loadimg+'" width='+width+' height='+height+' border=0 alt="'+regtext+'">'+
'<'+'/A>';
loading_div.style.display="block";
setTimeout("IE_RunInstaller(1 )", 500);}
else if(saved_onload_cmd=="ie_regimg"){
if(clickurl !="")
regular_div.innerHTML='<A HREF="javascript:RegularClick()"><img name="regular_image" src="'+regimg+'" width='+width+' height='+height+' border=0 alt="'+regtext+'"></A>';
else
regular_div.innerHTML='<img name="regular_image" src="'+regimg+'" width='+width+' height='+height+' border=0 alt="'+regtext+'">';
regular_div.style.display="block";
TriggerStat(regimp);}
if(saved_onload && typeof(saved_onload) !="undefined" && saved_onload !=""){
if(IEOK==1)
eval(saved_onload+" anonymous();");}}
function TriggerStat(url){
if (url==""){
return;}
imgStats.src="";
imgStats.src=url;}
function SetRegularBanner(){
if(clickurl !="")
document.write('<A HREF="javascript:RegularClick()">');
document.write('<img name="regular_image" src="'+regimg+'" width='+width+' height='+height+' border=0 alt="'+regtext+'">');
if(clickurl !="")
document.write('</A>');
TriggerStat(regimp);}
function RegularClick(){
TriggerStat(regclick);
if (clickurl !=""){
if(clickurl.indexOf("javascript:") >=0)
eval(clickurl);
else
window.open(clickurl, "_blank");}}
function LoadingClick(){
auto_playing_banner=0;
TriggerStat(loadclick);
if (clickurl !="")
window.open(clickurl, "_blank");}
function B3D_go(){
auto_playing_banner=0;
if(IEOK==1){
if(player_in_page==1){
if(INSOK==1 && DPOK==1){
if(player_ready==1){
IE_RunInstaller(1 );}
else
OnInviteAccept(1 );}
else if(page_loaded==1)
OnInviteAccept(1 );
else
SetOnLoad('ie_install_click_no_replay');}
else{
if(INSOK==1)
IE_RunInstaller(0 );
else
IE_GetInstaller(0 );}}
else
UnsupportedBrowser();}
function UnsupportedBrowser(){
var query="";
if(navigator.userAgent.indexOf("Mac") >=0){
query+="macos=1&";
if(! navigator.mimeTypes ||
! navigator.mimeTypes["application/x-b3dpi"] ||
! navigator.mimeTypes["application/x-b3dpi"].enabledPlugin){
query+="macb3d=1&";}}
else if(navigator.userAgent.indexOf("Win") >=0){
if(navigator.appName !="Microsoft Internet Explorer" || GetIEVer() < 5)
query+="browser=1&";}
else
query+="otheros=1&";
if(screen.colorDepth <=8)
query+="colors=1&";
if(query==""){
alert("Sorry!\n\nAn error has occurred in the page,\nand the problem has been reported.");
return;}
var left=(screen.availWidth / 2)-((651-12) / 2);
var top=(screen.availHeight / 2)-((398-51) / 2);
window.open(helpurlx+query, "helpWindow",
",width="+(651-12)+",height="+(398-51)+
",left="+left+",top="+top+
",status=yes,location=no,resizable=yes");}
function GetIEVer(){
var ver=0;
var index=navigator.appVersion.indexOf("MSIE");
if(index >=0)
ver=parseFloat(navigator.appVersion.substring(index+4));
return ver;}
var helpwindow="";
var closehelp_counter=0;
var windowgone=0;
var timer="";
var closehelp_timer="";
var installing=0;
window.onunload=OnUnload;
function IE_GetInstaller(is_in_page){
if(IsActiveXEnabled()==0){
alert('Please enable ActiveX controls in your Internet Explorer security\nsettings to be able to view this content.');
if(is_in_page==1)
parent.inpage_ie_frame.IE_SetInviteBanner();
return;}
if(INSOK==0)
OpenHelp(is_in_page);
installer_div.innerHTML='<'+'OBJECT TYPE="application/x-oleobject" ID="b3dInstal1" NAME="b3dInstal1" WIDTH=0 HEIGHT=0 CLASSID="'+inclassid+'" CODEBASE="'+incodebase_install+'" onreadystatechange="IE_OnInstallerReady('+is_in_page+')"><'+ '/OBJECT>';}
function IE_OnInstallerReady(is_in_page){
CloseHelp();
if(CheckInstallerObject(window.event.srcElement)==0){
IE_InstallerError(is_in_page);
return;}
currentInstaller=window.event.srcElement;
INSOK=1;
timer=setTimeout("IE_RunInstaller("+is_in_page+")", 100);}
function IE_InstallerError(is_in_page){
if(is_in_page==1)
IE_SetInviteBanner();
if(navigator.appVersion.indexOf("Windows NT") >=0){
alert("Sorry that your installation of the b3d Projector did not complete.\n\n"+
"If you chose not to install it at this time, we hope that you will "+
"try again soon. It is a short, safe and easy installation process "+
"that will enable a world of spectacular 3D content on your PC.\n\n"+
"If the installation failed, it could be because you do not have "+
"Administrator access to your PC.");}
else{
alert("Sorry that you have chosen not to install the b3d Projector. "+
"It is a short, safe and easy installation process that will enable a world of "+
"spectacular 3D content on your PC.# We hope you will try again soon.");}}
function IE_RunInstaller(is_in_page){
if(installing==1)
return;
installing=1;
var install_param_debug;
if(document.cookie.indexOf("debug_install=1") >=0)
install_param_debug="2";
else if(document.cookie.indexOf("errors=1") >=0)
install_param_debug="1";
else
install_param_debug="0"
var install_param_player_version=player_version;
var install_param_viewer="1";
var install_param_b3dpath="";
var install_param_b3dname="";
var install_param_b3dsize="0";
var install_param_codecs;
if(is_in_page==1){
install_param_codecs=codecs=="" ? "1" : codecs;
install_param_viewer="0";
if(INSOK==1 && DPOK==1){}
install_param_b3dpath=b3dpath;
install_param_b3dname=b3dname;
install_param_b3dsize=b3dsize;}
else{
if(partnerscript_viewer=="" && moviescript_viewer==""){
install_param_b3dpath=b3dpath;
install_param_b3dname=b3dname;
install_param_b3dsize=b3dsize;}
install_param_codecs=codecs_viewer=="" ? "3" : codecs_viewer;}
var install_param_silent=silent;
if(auto_playing_banner==1)
install_param_silent="1";
var install_params=install_param_debug+","+
install_param_player_version+","+installcomponents+","+
install_param_codecs+","+install_param_viewer+","+
install_param_b3dpath+","+install_param_b3dname+","+
install_param_b3dsize+","+b3dcompressed+","+
channel_subdesc+","+pcode+","+
hidewindows+","+install_param_silent+","+
installmode+","+statsurl+","+
codebaseurl+","+websiteurl+","+install_nocache+","+
install_setvarnum+","+install_setvarval+","+install_setvarna me;
currentInstaller.SetScriptParams(install_params);
currentInstaller.SetVisibility(installer_visibility);
CallSetWindowTimer(currentInstaller);
var script;
var index;
var ret;
for(index=0; index < install_script.length; index++){
script=install_script[index];
if(script=="")
continue;
ret=currentInstaller.Install(script, "");
if(windowgone==1)
return;
if(ret >=0 || ret==-1019)
break;}
installing=0;
if(is_in_page==1)
window.focus();
if(ret==0){
if(is_in_page==0)
viewer_installed=1;
IE_InstallMovie(is_in_page);}
else if(ret==-1019){
if(is_in_page==1)
timer=setTimeout("IE_SetInviteBanner()", 100);
if(typeof(OnPlayerInstallCancel)=="function"){
OnPlayerInstallCancel();}}
else{
if(auto_playing_banner==1){
IE_SetRegularBanner();}
else{
if(ret !=4001 && ret !=4021 && ret !=4022 && ret !=4023 &&
ret !=4024 && ret !=4025 && ret !=4102 && ret !=4105 && ret !=4106){
alert("Error "+ret+" during installation of the b3d Projector");}
if(is_in_page==1)
IE_SetInviteBanner();}
if(typeof(OnPlayerInstallError)=="function"){
OnPlayerInstallError();}}}
function IE_InstallMovie(is_in_page){
if(installing==1){
return;}
installing=1;
currentInstaller.SetVisibility(installer_visibility);
CallSetWindowTimer(currentInstaller);
var ret=0;
var script;
if(is_in_page==1)
script=partnerscript_player;
else
script=partnerscript_viewer;
if(script !=""){
currentInstaller.SetScriptParams(partnerparam);
ret=currentInstaller.Install(script, partnerpath);
if(windowgone==1)
return;
if(is_in_page==1)
window.focus();}
if(ret !=0){
if(ret==-1019){
if(is_in_page==1)
IE_SetInviteBanner();
if(typeof(OnMovieInstallCancel)=="function"){
OnMovieInstallCancel();}}
else{
if(auto_playing_banner==1){
IE_SetRegularBanner();}
else{
alert("Error "+ret+" (1) during installation of the 3D animation");
if(is_in_page==1)
IE_SetInviteBanner();}
if(typeof(OnMovieInstallError)=="function"){
OnMovieInstallError();}}
installing=0;
return;}
if(is_in_page==1)
script=moviescript_player;
else
script=moviescript_viewer;
if(script !=""){
currentInstaller.SetScriptParams(movieparam);
installing=1;
ret=currentInstaller.Install(script, moviepath);
installing=0;
if(windowgone==1)
return;
if(is_in_page==1)
window.focus();}
if(ret !=0){
if(ret==-1019){
if(typeof(OnMovieInstallCancel)=="function"){
OnMovieInstallCancel();}}
else{
if(auto_playing_banner==1){
IE_SetRegularBanner();}
else{
alert("Error "+ret+" (2) during installation of the 3D animation");
if(is_in_page==1)
IE_SetInviteBanner();}
if(typeof(OnMovieInstallError)=="function"){
OnMovieInstallError();}}
installing=0;
return;}
installing=0;
if(typeof(OnMovieInstallEnd)=="function"){
OnMovieInstallEnd();}
if(is_in_page==1){
if(install_only==0)
IE_SetPlayer();}
else{
TriggerStat(moviestat);
if(typeof(OnMovieStart)=="function"){
OnMovieStart();}}}
function OpenHelp(is_in_page){
if(closehelp_timer !=""){
clearTimeout(closehelp_timer);
closehelp_timer="";
closehelp_counter=0;}
var width=462-12;
var height=331-31;
var left=10;
var top=10;
var features="width="+width+",height="+height+",screenX="+left+" ,screenY="+top+",left="+left+",top="+top+",alwaysRaised=yes, menubar=no,status=no,personalbar=no,resizable=yes,scrollbars =no,titlebar=no,toolbar=no";
helpwindow=open(ie_helpurl+"?is_in_page="+is_in_page, "helpWindow", features, "");}
function CloseHelp(){
if(helpwindow=="")
return;
if(helpwindow.closed==false){
closehelp_counter=0;
helpwindow.close();
helpwindow="";}
else if(closehelp_counter < 10){
++closehelp_counter;
closehelp_timer=setTimeout("CloseHelp()", 1000);}
else
closehelp_counter=0;}
function OnUnload(){
windowgone=1;
if(timer !="")
clearTimeout(timer);
if(closehelp_timer !="")
clearTimeout(closehelp_timer);
if(helpwindow !="" && helpwindow.closed==false)
helpwindow.close();
if(player_ready==1 && CheckPlayerObject(currentPlayer)==1){
currentPlayer.ForwardScene();
currentPlayer.Stop();
currentPlayer.UninitialiseCtrl();}
if(auto_b3dclick==1){
auto_b3dclick=0;
HandleClick(b3dclick);}}
var replay=0;
var auto_b3dclick;
function IE_SetRegularBanner(){
player_div.style.display="none";
loading_div.style.display="none";
invite_div.style.display="none";
if(clickurl !="")
regular_div.innerHTML='<A HREF="javascript:RegularClick()"><img name="regular_image" src="'+regimg+'" width='+width+' height='+height+' border=0 alt="'+regtext+'"></A>';
else
regular_div.innerHTML='<img name="regular_image" src="'+regimg+'" width='+width+' height='+height+' border=0 alt="'+regtext+'">';
regular_div.style.display="block";}
function IE_SetInviteBanner(){
player_div.style.display="none";
loading_div.style.display="none";
regular_div.style.display="none";
invite_div.style.display="block";}
function IE_SetLoadingBanner(){
player_div.style.display="none";
invite_div.style.display="none";
regular_div.style.display="none";
loading_div.innerHTML=
'<'+'A STYLE="CURSOR:hand" OnClick="LoadingClick(); return false;">'+
'<'+'img name=loading_image src="'+loadimg+'" width='+width+' height='+height+' border=0 alt="'+regtext+'">'+
'<'+'/A>';
loading_div.style.display="block";}
function OnInviteAccept(no_replay){
if(no_replay !=1 && replay==1)
IE_OnReplayClick();
else if(INSOK==1 && DPOK==1){
IE_SetLoadingBanner();
IE_RunInstaller(1 );
if(autoplay==0)
auto_b3dclick=1;}
else{
TriggerStat(invaccept);
if(autoinstall==0)
auto_b3dclick=1;
IE_SetLoadingBanner();
IE_GetInstaller(1 );}}
function IE_SetPlayer(){
if(IsActiveXEnabled()==0){
alert('Please enable ActiveX controls in your Internet Explorer security\nsettings to be able to view this content.');
IE_SetInviteBanner();
return;}
loading_div.style.display='none';
invite_div.style.display='none';
var theHtml='';
if(html_left_url !=''){
theHtml='<'+'iframe src="'+html_left_url+
'" width='+html_left_width+' height='+html_left_height+
' frameborder=0 scrolling=no><'+'/iframe>';}
theHtml+=
html_left_content+
'<'+'OBJECT TYPE="application/x-oleobject" ID="b3dPlayer1" NAME="b3dPlayer1" WIDTH='+player_width+' HEIGHT='+player_height+' CLASSID="'+dpclassid+'" CODEBASE="'+dpcodebase+'" STANDBY="'+standby+'" onreadystatechange="IE_OnPlayerReady()" onFocus="OnFocus()"><'+'/OBJECT>'+
'<'+'SCRIPT LANGUAGE="JavaScript" FOR="b3dPlayer1" EVENT="MovieStopped()">'+
'OnStop();'+
'<'+'/SCRIPT>'+
'<'+'SCRIPT LANGUAGE="JavaScript" FOR="b3dPlayer1" EVENT="ShowURL(url)">'+
'OnShowURL(url);'+
'<'+'/SCRIPT>'+
'<'+'SCRIPT LANGUAGE="JavaScript" FOR="b3dPlayer1" EVENT="Broadcast(action)">'+
'OnBroadcast(action);'+
'<'+'/SCRIPT>'+
html_right_content;
if(html_right_url !=''){
theHtml+='<'+'iframe src="'+html_right_url+
'" width='+html_right_width+' height='+html_right_height+
' frameborder=0 scrolling=no><'+'/iframe>';}
player_div.innerHTML=theHtml;
loading_div.style.display='none';
invite_div.style.display='none';
player_div.style.display='block';}
function IE_OnPlayerReady(){
if(CheckPlayerObject(window.event.srcElement)==0){
var msg="Sorry, an error has occurred while trying to install the b3d Projector.";
if(navigator.appVersion.indexOf("Windows NT") >=0)
msg+="\n\nIt could be because you do not have Administrator access to your PC.";
alert(msg);
IE_SetInviteBanner();
return;}
currentPlayer=window.event.srcElement;
DPOK=1;
if(typeof(OnInstallEnd)=="function"){
OnInstallEnd();}
player_ready=1;
setTimeout("IE_PlayMovie()", 1);}
var IE_PlayMovie_counter1=0;
function IE_PlayMovie(){
if(currentPlayer.readyState !=4){
if(auto_playing_banner==1){
IE_SetRegularBanner();}
else{
alert("Player not ready when loading the 3D animation");
IE_SetInviteBanner();}
return;}
if(currentPlayer.IsReady()==0){
if(IE_PlayMovie_counter1 > 16){
if(auto_playing_banner==1){
IE_SetRegularBanner();}
else{
alert("Player not ready when loading the 3D animation");
IE_SetInviteBanner();}
IE_PlayMovie_counter1=0;}
else{
timer=setTimeout("IE_PlayMovie()", 500);
IE_PlayMovie_counter1++;}
return;}
IE_PlayMovie_counter1=0;
currentPlayer.InitialiseCtrl();
currentPlayer.SetAspectRatio(b3dratio);
SetShowURL(currentPlayer);
var ret;
if((ret=currentPlayer.LoadMovie(b3dname, 0)) !=0){
if(install_needed==1){
IE_SetInviteBanner();
alert("Upgrade completed. Please close all Internet Explorer windows\nand restart the browser before returning to this page.");}
else{
if(auto_playing_banner==1){
IE_SetRegularBanner();}
else{
alert("Failed to load 3D animation");
IE_SetInviteBanner();}}
return;}
loading_div.style.display="none";
invite_div.style.display="none";
regular_div.style.display="none";
player_div.style.display="block";
currentPlayer.Play();
if(typeof(OnMovieStart)=="function"){
OnMovieStart();}
if(replay==0)
TriggerStat(b3dimp);}
function OnStop(){
if(typeof(OnMovieStop)=="function"){
setTimeout("OnMovieStop()", 3);}
if(auto_b3dclick==1){
setTimeout("HandleClick('"+b3dclick+"')", 4);
auto_b3dclick=0;}
if(b3dloop==1){
setTimeout("currentPlayer.Play()", 5);
if(typeof(OnMovieStart)=="function"){
setTimeout("OnMovieStart()", 6);}}
else if(b3dloop==0){
currentPlayer.UninitialiseCtrl();
setTimeout("IE_SetReplayBanner()", 6);}}
function IE_SetReplayBanner(){
replay=1;
IE_SetInviteBanner();}
function IE_OnReplayClick(){
timer=setTimeout("IE_SetPlayer()", 100);
auto_b3dclick=1;}
function OnShowURL(url){
if(url=="clickpending")
auto_b3dclick=1;
else{
setTimeout("HandleClick('"+b3dclick+"')", 2);
auto_b3dclick=0;}
if(typeof(OnMovieShowURL)=="function"){
setTimeout("OnMovieShowURL('"+url+"')", 4);}}
function OnBroadcast(action){
if(typeof(OnMovieBroadcast)=="function"){
setTimeout("OnMovieBroadcast('"+action+"')", 3);}}
function OnFocus(){
if(typeof(OnMovieFocus)=="function"){
setTimeout("OnMovieFocus()", 3);}}
function HandleClick(a){
TriggerStat(a);
if (clickurl !=""){
if(clickurl.indexOf("javascript:") >=0)
eval(clickurl);
else
window.open(clickurl, "_blank");}}
function InviteClick(){
HandleClick(invclick);}
function LoadingClick(){
HandleClick(loadclick);}
function ViewerInit(){
CheckVar('skincab', srcserver+"/bde/common/bdeviewer/skin4.cab");
CheckVar('skinfolder', "/skin3");
CheckVar('skinini', "config2.ini");
CheckVar('skinsize', 3709);
CheckVar('skinflag', 1);
CheckVar('bannercab', "");
CheckVar('bannerfolder', "");
CheckVar('bannerpage', "");
CheckVar('bannersize', 0);
CheckVar('bannerrefresh', 0);
CheckVar('movieurl', adserver+"/bde/channels/end.asp");
CheckVar('moviescript_viewer', "");
CheckVar('moviestat', "");
CheckVar('moredesc', "Brilliant Digital Entertainment");
CheckVar('moresubdesc', "Multipath Home Page");
CheckVar('moreurl', adserver+"/bde/channels/end.asp?partner="+location.hostname+"&movie=home");
CheckVar('morename', "homepage");
CheckVar('partner', location.hostname);
CheckVar('partnerscript_viewer', srcserver+"/bde/common/partner.cab");
CheckVar('regchannel', "");
CheckVar('desktopicon', "b3d Projector");}
var movieshortname="";
function BDE_setParams(){
partnerparam=movieshortname+","+partner+","+bannercab+","+ba nnerfolder+","+
bannerpage+","+bannersize+","+bannerrefresh+","+skincab+","+
skinfolder+","+skinini+","+skinsize+","+skinflag+","+desktop icon+","+
movieurl+","+moredesc+","+moresubdesc+","+moreurl+","+regcha nnel+","+
morename;
movieparam=regchannel+","+movieshortname;
if(statserver !=""){
moviestat=statserver+"/bde/stats/movie/movie.asp?site="+sitecode+
"&movie="+movieshortname+"&event=play";}}
function PlayMovie_28k56k( b3dmoviepath, moviename, size28k, size56k, compressed,
registerstat, playinviewer, subdesc){
if (b3dmoviepath !="" && b3dmoviepath.indexOf("http://")==0)
moviepath=b3dmoviepath;
else
moviepath=adserver+b3dmoviepath;
moviescript_viewer=srcserver+"/bde/javascripts2/scripts/b3dmovie_28k56k.cab";
movieshortname="";
BDE_setParams();
movieparam=partner+","+moviename+","+size28k+","+size56k+"," +
compressed+","+registerstat+","+playinviewer+","+subdesc;
BDE_PlayMovie();}
function PlayMovieb3d( b3dmoviepath, moviename, size, compressed, registerstat,
playinviewer, subdesc){
if (b3dmoviepath !="" && b3dmoviepath.indexOf("http://")==0)
moviepath=b3dmoviepath;
else
moviepath=adserver+b3dmoviepath;
moviescript_viewer=srcserver+"/bde/javascripts2/scripts/b3dmovie.cab";
movieshortname="";
BDE_setParams();
movieparam=partner+","+moviename+","+size+","+registerstat+" ,"+
compressed+","+playinviewer+","+subdesc;
BDE_PlayMovie();}
function PlayMovie(moviecab,thismovie){
if (moviecab !="" && moviecab.indexOf("http://")==0)
moviescript_viewer=moviecab;
else
moviescript_viewer=adserver+moviecab;
movieshortname=thismovie;
BDE_setParams();
BDE_PlayMovie();}
function PlayScript(moviecab,thismovie){
if (moviecab !="" && moviecab.indexOf("http://")==0)
partnerscript_viewer=moviecab;
else
partnerscript_viewer=adserver+moviecab;
partnerparam=thismovie;
moviescript_viewer="";
movieparam="";
BDE_PlayMovie();}
function BDE_PlayMovie(){
if(IEOK==1){
if(INSOK==1){
if(viewer_installed==1){
player_version=1;
IE_RunInstaller(0 );}
else
IE_RunInstaller(0 );}
else
IE_GetInstaller(0 );}
else
UnsupportedBrowser();}
document.write('<'+'script language=vbscript>\n');
document.write(' function CheckInstallerObject(obj)\n');
document.write(' on error resume next\n');
document.write(' obj.SetVisibility(installer_visibility)\n');
document.write(' if err.number=0 then\n');
document.write(' CheckInstallerObject=1\n');
document.write(' else\n');
document.write(' CheckInstallerObject=0\n');
document.write(' end if\n');
document.write(' end function\n');
document.write('\n');
document.write(' function CallSetWindowTimer(obj)\n');
document.write(' on error resume next\n');
document.write(' obj.SetWindowTimer(3)\n');
document.write(' end function\n');
document.write('\n');
document.write(' function CheckPlayerObject(obj)\n');
document.write(' on error resume next\n');
document.write(' Dim ver\n');
document.write(' ver=obj.GetVersion()\n');
document.write(' if err.number=0 and ver <> "" then\n');
document.write(' CheckPlayerObject=1\n');
document.write(' else\n');
document.write(' CheckPlayerObject=0\n');
document.write(' end if\n');
document.write(' end function\n');
document.write('\n');
document.write(' function IsActiveXEnabled()\n');
document.write(' on error resume next\n');
document.write(' dim obj\n');
document.write(' set obj=CreateObject("Microsoft.ActiveXPlugin.1")\n');
document.write(' if IsObject(obj) then\n');
document.write(' IsActiveXEnabled=1\n');
document.write(' else\n');
document.write(' IsActiveXEnabled=0\n');
document.write(' end if\n');
document.write(' end function\n');
document.write('\n');
document.write(' function SetShowURL(obj)\n');
document.write(' on error resume next\n');
document.write(' obj.ShowURL=0\n');
document.write(' end function\n');
document.write('<'+'/script>\n');
CheckVar('instance_running', 0);
if(instance_running==1){
SetRegularBanner();}
else{
instance_running=1;
Init();
ViewerInit();
Main();}
butterfly_kisses is offline   Reply With Quote