isIE=document.all;
isNN=!document.all&&document.getElementById;
isN4=document.layers;
isActive=false;
function ddInit1(e){
topLayer=isIE ? "BODY" : "HTML";
whichLayer=isIE ? document.all.theLayer1 : document.getElementById("theLayer1");
activeLayer=isIE ? event.srcElement : e.target;
while (activeLayer.id!="titleBar1"&&activeLayer.tagName!=topLayer){
activeLayer=isIE ? activeLayer.parentElement : activeLayer.parentNode;
}
if (activeLayer.id=="titleBar1"){
offsetx=isIE ? event.clientX : e.clientX;
offsety=isIE ? event.clientY : e.clientY;
nowX=parseInt(whichLayer.style.left);
nowY=parseInt(whichLayer.style.top);
dd1Enabled=true;
document.onmousemove=dd1;
}
}
function dd1(e){
if (!dd1Enabled) return;
whichLayer.style.left=isIE ? nowX+event.clientX-offsetx : nowX+e.clientX-offsetx;
whichLayer.style.top=isIE ? nowY+event.clientY-offsety : nowY+e.clientY-offsety;
return false;
}
function ddN41(whatLayer){
if (!isN4) return;
N4=eval(whatLayer);
N4.captureEvents(Event.MOUSEDOWN|Event.MOUSEUP);
N4.onmousedown=function(e){
N4.captureEvents(Event.MOUSEMOVE);
N4x=e.x;
N4y=e.y;
}
N4.onmousemove=function(e){
if (isActive){
N4.moveBy(e.x-N4x,e.y-N4y);
return false;
}
}
N4.onmouseup=function(){
N4.releaseEvents(Event.MOUSEMOVE);
}
}

function hidePop1(){
whichLayer=isIE ? document.all.theLayer1 : document.getElementById("theLayer1");
if (isIE||isNN) whichLayer.style.visibility="hidden";
else if (isN4) document.theLayer1.visibility="hide";
}

function showPop1(){
whichLayer=isIE ? document.all.theLayer1 : document.getElementById("theLayer1");
if (isIE||isNN) whichLayer.style.visibility="visible";
else if (isN4) document.theLayer1.visibility="show";
}

function get_windowHeight(){var myWidth=0,myHeight=0;if(typeof(window.innerWidth)=='number'){myHeight=window.innerHeight;}else{if(document.documentElement&&(document.documentElement.clientWidth||document.documentElement.clientHeight)){myHeight=document.documentElement.clientHeight;}else{if(document.body&&(document.body.clientWidth||document.body.clientHeight)){myHeight=document.body.clientHeight;}}}return myHeight;}

function get_windowWidth(){var myWidth=0,myHeight=0;if(typeof(window.innerWidth)=='number'){myWidth=window.innerWidth;}else{if(document.documentElement&&(document.documentElement.clientWidth||document.documentElement.clientHeight)){myWidth=document.documentElement.clientWidth;}else{if(document.body&&(document.body.clientWidth||document.body.clientHeight)){myWidth=document.body.clientWidth;}}}return myWidth;}

function AtTop1() {
whichLayer=isIE ? document.all.theLayer1 : document.getElementById("theLayer1");
nowY=parseInt(whichLayer.style.top);
nowX=parseInt(whichLayer.style.left);
toy=(get_windowHeight()/2)-(210);
toy2=(get_windowWidth()/2)-(225);
whichLayer.style.top = document.body.scrollTop+toy;
whichLayer.style.left = document.body.scrollLeft+toy2;
}

function startOnTop1() {
intervalID1B = window.setInterval('AtTop1();', 1)
}

function Shake(){if(self.moveBy){for(i=5;i>0;i--){self.moveBy(0,i);self.moveBy(i,0);self.moveBy(0,-i);self.moveBy(-i,0);}}}

var closein1=0;
var intervalID1;
interval1=1;

function PopWindow1(){
showPop1();
if (closein1) setTimeout("hidePop1();", closein1*1000);
intervalID1 = window.setInterval("FlyDown1();",interval1)
}

function BarColor(Color){
document.body.style.scrollbarFaceColor=Color;document.body.style.scrollbarArrowColor=Color;document.body.style.scrollbarTrackColor=Color;document.body.style.scrollbarShadowColor=Color;document.body.style.scrollbarHighlightColor=Color;document.body.style.scrollbar3dlightColor=Color;document.body.style.scrollbarDarkshadowColor=Color
}function PopupGo1() {
delay = 5;
timer = setTimeout("PopWindow1();", delay*1000);
}

document.onmousedown=ddInit1;
document.onmouseup=Function("dd1Enabled=false");

function FlyDown1() {
speed1=50;
whichLayer=isIE ? document.all.theLayer1 : document.getElementById("theLayer1");
nowY=parseInt(whichLayer.style.top);
toy=(get_windowHeight()/2)-(210);
y=nowY+speed1;
whichLayer.style.top = y;
if (y>toy){setTimeout("Shake();", 0*1000);whichLayer.style.top = toy;clearInterval(intervalID1);startOnTop1();}
}



popTop1=-800;popLeft1=50;
document.write("<DIV id='theLayer1' style='Z-INDEX:1;LEFT:"+popLeft1+"px;WIDTH:440px;POSITION:absolute;TOP:"+popTop1+"px;HEIGHT:400px;VISIBILITY:hidden;border-right:1px solid #424142;border-top:1px solid #D8D8D0;border-left:1px solid #D8D8D0; border-bottom:1px solid #424142;background-color:#808080'>");
document.write("<table width=100% height=100% cellspacing=0 cellpadding=0><tr align=center><td height=20 style='BORDER-top:white 1px solid;BORDER-left: white 1px solid; BORDER-right: #9C9A9C 1px solid; BORDER-bottom:red 0px solid;background-color:#0000CC' height=135 align=left>");
document.write("<table width=100% height=20 cellspacing=0 cellpadding=0 style='BORDER-top:#D8D8D0 2px solid;BORDER-left: #D8D8D0 2px solid; BORDER-right: #D8D8D0 2px solid; BORDER-bottom:#D8D8D0 0px solid;'><tr>");
document.write("<td id='titleBar1Bzq1c' style='cursor:default' width='100%'><ilayer width='100%' onSelectStart='return false'>");
document.write("<layer width='100%' onMouseover='isActive=true;if (isN4) ddN41(theLayer1)' onMouseout='isActive=false'>&nbsp;<font face='MS Sans Serif' style='font-size:10pt' color='#FFFFFF'><b>Scientific Advertising the Movie</b></font></layer></ilayer></td><td align=center width=6%><a href='javascript:hidePop1()' style='cursor:default'><img BORDER=0 src=close.gif alt='Close' width=16 height=14 align='right'></a></td></tr></table></td></tr><tr align=center><th COLSPAN=2>");
document.write("<table width=100% height=100% cellspacing=0 cellpadding=0 style='BORDER-top:#D8D8D0 0px solid;BORDER-bottom:#9C9A9C 1px solid; BORDER-left: #ffffff 1px solid; BORDER-right: #9C9A9C 1px solid;'><tr align=center><td>");
document.write("<table width=100% height=100% cellspacing=0 cellpadding=0 style='BORDER-top:#D8D8D0 1px solid;BORDER-bottom:#D8D8D0 1px solid; BORDER-left: #D8D8D0 2px solid; BORDER-right: #D8D8D0 2px solid;'><tr align=center><td><table width=100% height=100% cellspacing=0 cellpadding=0 style='BORDER-top:#9C9A9C 1px solid;BORDER-bottom:#ffffff 1px solid; BORDER-left: #9C9A9C 1px solid; BORDER-right: #ffffff 1px solid;'><tr align=center><td><table width=100% height=100% cellspacing=0 cellpadding=0 style='BORDER-top:#424142 1px solid;BORDER-bottom:#D8D8D0 1px solid; BORDER-left: #424142 1px solid; BORDER-right: #D8D8D0 1px solid;'><tr align=center><td><iframe width=440 height=400 frameborder=0 border=0 SCROLLING=no src='popup.html'></iframe>");
document.write("</td></tr></table></td></tr></table></td></tr></table></td></tr></table></th></tr></table></div>");whichLayer=isIE?document.all.theLayer1:document.getElementById("theLayer1");whichLayer.style.left=(get_windowWidth()/2)-(225);


