
//Vertical Scroller- by www.ScriptAsylum.com
//Featured on JavaScriptKit.com w/ minor enhancement
//Visit JavaScript Kit (http://javascriptkit.com) for script

//ENTER CONTENT TO SCROLL BELOW.
var content='<br> Indiavision.dk is dedicated to multiple services for Indians Living in Denmark. Service offered by Indiavision is as follows,<br><br>1. Free Directory of Indians living in Denmark, with Search function.<br><br>2. The Indian Mirror is the currant event ticker.<br><br>3. &quot;Coming event section&quot; gives opportunity to promote the social or commercial events happening in Denmark.<br><br>4. Travel info. section is providing useful links to people traveling to India.<br>plus introduction to Indiavision TV Channel and more...<br><br>Streaming video section with recent and past major events achieve videos, picture archive section and Business section.<br><br><br>If you have any comments of suggestion feel free to contact at : <a href="mailto:info@indiavision.dk">info@indiavision.dk</a><br><br>';
var boxheight=180;                     // BACKGROUND BOX HEIGHT IN PIXELS.
var boxwidth=200;                      // BACKGROUND BOX WIDTH IN PIXELS.
var boxcolor="#bbc3cd";        // BACKGROUND BOX COLOR.
var speed=100;                          // SPEED OF SCROLL IN MILLISECONDS (1 SECOND=1000 MILLISECONDS)..
var pixelstep=1;                         // PIXELS "STEPS" PER REPITITION.
var godown=false;                     // TOP TO BOTTOM=TRUE , BOTTOM TO TOP=FALSE
var outer, inner;
var elementheight;             
var w3c=(document.getElementById)?true:false;
var ns4=(document.layers)?true:false;
var ie4=(document.all && !w3c)?true:false;
var ie5=(document.all && w3c)?true:false;
var ns6=(w3c && navigator.appName.indexOf("Netscape")>=0)?true:false;
var txt=(ns4)? '<table cellpadding=0 cellspacing=0 border=0 height='+boxheight+' width='+boxwidth+'><tr><td><ilayer name="outer" bgcolor="'+boxcolor+'" visibility="hidden" width="'+boxwidth+'" height="'+boxheight+'">'  : '<div id="outer" style="position:relative; width:'+boxwidth+'; height:'+boxheight+'; visibility:visible; background-color:'+boxcolor+'; overflow:hidden" >';
txt+=(ns4)? '<layer  name="inner"  width="'+(boxwidth-4)+'" height="'+(boxheight-4)+'" visibility="hidden" left="2" top="2" >'+content+'</layer></ilayer></td></tr></table>'  :  '<div id="inner"  style="position:absolute; visibility:hidden; left:2px; top:2px; width:'+(boxwidth-4)+'; overflow:hidden; cursor:default">'+content+'</div></div>';
txt+='';
document.write(txt);

function scrollbox(){
if(ns4){
inner.top+=(godown)? pixelstep: -pixelstep;
if(godown){
if(inner.top>boxheight)inner.top=-elementheight;
}else{
if(inner.top<2-elementheight)inner.top=boxheight+2;
}}else{
inner.style.top=parseInt(inner.style.top)+((godown)? pixelstep: -pixelstep)+'px';
if(godown){
if(parseInt(inner.style.top)>boxheight)inner.style.top=-elementheight+'px';
}else{
if(parseInt(inner.style.top)<2-elementheight)inner.style.top=boxheight+2+'px';
}}}

window.onresize=function(){
if(ns4)setTimeout('history.go(0)', 400);
}

window.onload=function(){
inner=(ns4)?document.layers['outer'].document.layers['inner']:(ie4)?document.all['inner']:document.getElementById('inner');
elementheight=(ns4)? inner.document.height : inner.offsetHeight
if(ns4){
document.outer.clip.width=boxwidth;
document.outer.clip.height=boxheight;
inner.top=(godown)? -elementheight : boxheight-2;
inner.clip.width=boxwidth-4;
inner.clip.height=elementheight;
document.outer.visibility="show";
inner.visibility="show";
}else{
inner.style.top=((godown)? -elementheight : boxheight-2)+'px';
inner.style.clip='rect(0px, '+(boxwidth-4)+'px, '+elementheight+'px, 0px)';
inner.style.visibility="visible";
}
setInterval('scrollbox()',speed);
}
