// JavaScript Document
document.ns = navigator.appName == "Netscape"
//--
var rnumx1=new Array();
var rnumx2;
var rnumx3;
rnumxtemp="";
for(i=0;i<3;i++){
rnumx2 =Math.round(Math.random()*10);
rnumx2!=10 ? rnumx3=rnumx2:rnumx3=9;
//document.write("["+rnumx3+"]");
rnumx1[i]=rnumx3;
if (rnumx1[0]>4||rnumx1[0]<1){
rnumx1[0]=1;
}
if (rnumx1[1]>2&&rnumx1[0]==4){
rnumx1[1]=1;
}
rnumxtemp+=new String(rnumx1[i]);
}
//--
window.screen.width>800 ? imgheight=500:imgheight=rnumxtemp
window.screen.width>800 ? imgright=1:imgright=1
window.screen.width>800 ? imgleft=1:imgleft=1
function threenineload()
{
if (navigator.appName == "Netscape")
{
if(document.getElementByIdx) {

document.getElementByIdx('threenine1').style.top=pageYOffset+windows.innerHeight-imgheight+'px';
document.getElementByIdx('threenine1').style.left=imgleft+'px';
} else {

document.threenine1.pageY=pageYOffset+windows.innerHeight-imgheight;
document.threenine1.pageX=imgleft;
}
threeninemove();
}
else
{

threenine1.style.top=document.documentElement.scrollTop+document.documentElement.offsetHeight-imgheight;
threenine1.style.left=imgleft;
threeninemove();
}
}
function threeninemove()
{
if(document.ns)
{
if(document.getElementByIdx) {

document.getElementByIdx('threenine1').style.top=pageYOffset+windows.innerHeight-imgheight+'px';
document.getElementByIdx('threenine1').style.left=imgleft+'px';
} else {

document.threenine1.top=pageYOffset+windows.innerHeight-imgheight
document.threenine1.left=imgleft;
}
setTimeout("threeninemove();",70)
}
else
{

threenine1.style.top=document.documentElement.scrollTop+document.documentElement.offsetHeight-imgheight;
threenine1.style.left=imgleft;
setTimeout("threeninemove();",80)
}
}
function MM_reloadPage(init) { //reloads the window if Nav4 resized
if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true)
{
document.write('<div id=threenine1 style="position: absolute;width:24;visibility: visible;z-index: 1"><a onclick="#" href="http://www.channel-arkmed.com/"  target="_blank" style="cursor:pointer"><img src="images/liuyan.jpg" width=120 height=85 border=0></a><a href="#" onclick="cl()" title="CLOSE">CLOSE</a></div>');


threenineload()
}

function cl(){
document.getElementById("threenine1").style.display="none";

}

