<!--
function writeStyle(){
document.write("<style>\n");
//if(brw.ns){
//document.write("#dout {position:absolute;left: 5px; top: 10px; width: 700px; height:400px; overflow:hidden; visbility:hidden;}\n")
//}
//if(brw.dom){
//document.write("#dout {position:absolute;left: 5px; top: 10px; width: 700px; height:400px; overflow:hidden; visbility:hidden;}\n")
//}
//document.write("#din {position:absolute; top:0px; left:0px; overflow:hidden; visbility:hidden;}\n#scrolls {position:absolute; top:179px; left:-50px; width:30px; overflow:hidden; visbility:hidden;}\n</style>\n");
//}
if(brw.dom)
{
document.write("#dout {position:absolute;left: 10px; top: 17px; width: 700px; height:395px; overflow:hidden; visbility:hidden;}\n")
}
document.write("#din {position:absolute; top:0px; left:0px; overflow:hidden; visbility:hidden;}\n#scrolls {position:absolute; top:179px; left:-50px; width:30px; overflow:hidden; visbility:hidden;}\n</style>\n");
}

var div1,div2,scr,timer,wnd,ctr=0;
function init()
{
wnd=new docStat();
div1=new divObj("dout");
div2=new divObj("din","dout");
scr=new divObj("scrolls");
div1.hide();
scr.hide();
scr.moveto(parseInt(wnd.w-15),179);
if(brw.ns){div1.clipto(0,parseInt(wnd.w*(90/100)),parseInt(wnd.h*(60/100)),0);}
else if(brw.ie){div1.clipto(0,parseInt(wnd.w*(90/100)),parseInt(wnd.h*(88/100)),0);}
if(brw.dom){scr.moveto(parseInt(div1.x+div1.cr+20),20);}
else if(brw.ns){scr.moveto(parseInt(div1.cr),179);}
div1.show();
scr.show();

}


//function scroll(dir)
//{
//direct=dir;
//if(dir=='up' && ctr>-(parseInt(div2.h)-50)){div2.moveby(2,0);ctr-=2;}
//else if(dir=='down' && ctr<0){div2.moveby(-2,0);ctr+=2;}
//else if(dir=='top'){div2.moveto(0,0);ctr=0}
//status="";
//timer=setTimeout("scroll(direct)",20);
//}

function scroll(dir)
{
direct=dir;
if(dir=='up' && ctr>-(parseInt(div2.h)-50)){div2.moveby(0,-2);ctr-=2;}
else if(dir=='down' && ctr<0){div2.moveby(0,2);ctr+=2;}
else if(dir=='top'){div2.moveto(0,0);ctr=0}
status="";
timer=setTimeout("scroll(direct)",05);
}

var im=new Array();
function preload()
{
for(i=0;i<arguments.length;i++)
{
im[i]=new Image();
im[i].src=arguments[i];
}
}
preload('images/aboutus.jpg','images/aboutusover.jpg','images/services.jpg','images/servicesover.jpg','images/portfolio.jpg','images/portfolioover.jpg','images/contactus.jpg','images/contactusover.jpg','images/home.jpg','images/homeover.jpg');
function swapimg(imgname,img)
{
document.images[imgname].src=img;
}


//-->
