
var message= new Array();

message[0]="July, 2002 <BR> Recent takeover of a US based Telecom Giant, has now further strengthened our International Network with a very strong precence in India.|"
message[1]="August 15th, 2001<BR>VNfax, a leading Store and Forward Service provider for FoIP, adds a host new range of products to its panel - such as - Fax-2-Fax, Email-2-Fax, PC-2-Fax, Web-2-Fax, and Fax-2-Email to its existing range of products. Commercial Service opens from August 15th.|"
message[2]="June 2001<BR> VNFax Inc., today in its AGM decided to re-establish its Callback Services Division, which was earlier put on a slow pace due to market conditions.|"
message[3]="June 2001 <BR>VNfax today declared that it will now change its Business Policy slowly over a period of time and will adopt B2C module. It will enable direct PC2fax, email2fax customers to hook on to the web site and use the service directly.|"
message[4]="January 1st, 2002<BR>VNfax, a leading Store and Forward Service provider for FoIP, today decided to make the entry into the market much easier thus to encourage new entraprenures and individuals. The entry cost of $5000.00 has been waived off and VNFax has declared to provide its revolutionary softwares for FREE.|"

// The height of the scrollerbox (pixels)
var scrollerheight=80

// The width of the scrollerbox (pixels)
var scrollerwidth=440

// The distance to the left border of the window (pixels)
var scrollertop=12

// The distance to the top border of the window (pixels)
var scrollerleft=270
// The padding between the scrollerbox and the text (pixels)
var scrollerpadding=0

// The width of the scrollerbox-border (pixels)
var backgroundborder=0

// The background-colour of the scrollerbox
var scrollerbgcolor="#6487dc"

// Font attributes of the title
var font_titleface="Verdana"
var font_titlecolor="#FFFFFF"
var font_titlesize=1

// Font attributes of the copytext
var font_copyface="Verdana"
var font_copycolor="#660000"
var font_copysize=1

// standstill between the messages (milliseconds)
var standstillfix=10000

// Do not edit below this line
var cliptop=0
var clipbottom=scrollerheight
var clipleft=0
var clipright=scrollerheight+550

var i_message=0
var mes_joined
var mes_split
var contenttext
var contentbg

var totalheight=scrollerheight*(message.length)
var i_height=0
var step=2
var pause=50

var standstillflex=0

function initiate(){
	contenttext="<table  cellpadding=0 cellspacing=0 border=0 width="+(scrollerwidth-2*scrollerpadding)+">"
	contenttext+="<tr valign='top'><td height='"+scrollerheight+"'><br></td></tr>"
	for (i=0;i<=message.length-1;i++) {
		mes_joined=message[i]
		mes_split=mes_joined.split("|")
		contenttext+="<tr valign='top'><td height='"+scrollerheight+"' align='center'><font face='"+font_titleface+"' color='"+font_titlecolor+"' size='"+font_titlesize+"'><b>"+mes_split[0]+"</b></font><p align='left'><font face='"+font_copyface+"' color='"+font_copycolor+"' size='"+font_copysize+"'>"+mes_split[1]+"</font></p></td></tr>"
	}
	contenttext+="</table>"
	contentbg="<table cellpadding=0 cellspacing=0 border="+backgroundborder+" width='"+scrollerwidth+"'><tr><td height='"+scrollerheight+"' bgcolor="+scrollerbgcolor+">&nbsp;</td></tr></table>"
	
	if (document.all) {
		scrollertext.innerHTML=contenttext
		scrollerbg.innerHTML=contentbg
		document.all.scrollertext.style.posTop=scrollertop
		document.all.scrollertext.style.posLeft=scrollerleft
		document.all.scrollerbg.style.posTop=scrollertop-scrollerpadding
		document.all.scrollerbg.style.posLeft=scrollerleft-scrollerpadding
		document.all.scrollertext.style.clip="rect("+cliptop+" "+clipright+" "+clipbottom+" "+clipleft+")"
	}
	if (document.layers) {
		document.scrollertext.document.write(contenttext)
		document.scrollertext.document.close()
		document.scrollerbg.document.write(contentbg)
		document.scrollerbg.document.close()
		document.scrollertext.top=scrollertop
		document.scrollertext.left=scrollerleft
		document.scrollerbg.top=scrollertop-scrollerpadding
		document.scrollerbg.left=scrollerleft-scrollerpadding	
		document.scrollertext.clip.left=clipleft
        document.scrollertext.clip.right=clipright
        document.scrollertext.clip.top=cliptop
        document.scrollertext.clip.bottom=clipbottom
	}
	scroll()
}

function scroll(){
	standstillflex=standstillfix
	if (document.all){
		if (i_height<scrollerheight) {
			i_height+=step
			cliptop+=step
			clipbottom+=step
			document.all.scrollertext.style.clip="rect("+cliptop+" "+clipright+" "+clipbottom+" "+clipleft+")"
			document.all.scrollertext.style.posTop-=step
			var timer=setTimeout("scroll()",pause)
		}

		else {
			if (document.all.scrollertext.style.posTop<=-(totalheight)) {
				document.all.scrollertext.style.posTop=scrollertop
				cliptop=0
				clipbottom=scrollerheight-2*scrollerpadding
				document.all.scrollertext.style.clip="rect("+cliptop+" "+clipright+" "+clipbottom+" "+clipleft+")"
				standstillflex=0
			}
			i_height=0
			clearTimeout(timer)
			var timer=setTimeout("scroll()",standstillflex)
		}
	}
	
	if (document.layers){
		if (i_height<scrollerheight) {
			i_height+=step
			cliptop+=step
			clipbottom+=step
			document.scrollertext.clip.left=clipleft
			document.scrollertext.clip.right=clipright
			document.scrollertext.clip.top=cliptop
			document.scrollertext.clip.bottom=clipbottom
			document.scrollertext.top-=step
			var timer=setTimeout("scroll()",pause)
		}
		else {
			if (document.scrollertext.top<=-(totalheight)) {
				document.scrollertext.top=scrollertop
				cliptop=0
				clipbottom=scrollerheight-2*scrollerpadding
				document.scrollertext.clip.left=clipleft
        		document.scrollertext.clip.right=clipright
        		document.scrollertext.clip.top=cliptop
        		document.scrollertext.clip.bottom=clipbottom
				standstillflex=0
			}
			i_height=0
			clearTimeout(timer)
			var timer=setTimeout("scroll()",standstillflex)
		}
	}
}

function tabbar_onmouseup()
{
	var iw = window.window.screen.availWidth ;
	var str = "" ;
	
	if (iw <= 800)
	{
		if (event.x < 440)
		{
			top.location.href = "/sitemap.htm"
		}
		
		if (event.x < 340)
		{
			top.location.href = "/contactus.htm"
		}
		
		if (event.x < 240)
		{
			top.location.href = "/aboutus.htm"
		}
		
		if (event.x < 140)
		{
			top.location.href = "/index.htm"
		}
	}
	else
	{
		if (event.x < 550)
		{
			top.location.href = "/sitemap.htm"
		}
		
		if (event.x < 450)
		{
			top.location.href = "/contactus.htm"
		}
		
		if (event.x < 350)
		{
			top.location.href = "/aboutus.htm"
		}
		
		if (event.x < 250)
		{
			top.location.href = "/index.htm"
		}
	}
}

var win=null;
function NewWindow(mypage,myname,w,h,scroll,pos)
{
	if(pos=="random")
	{
		LeftPosition=(screen.width)?Math.floor(Math.random()*(screen.width-w)):100;
		TopPosition=(screen.height)?Math.floor(Math.random()*((screen.height-h)-75)):100;
	}
	if(pos=="center")
	{
		LeftPosition=(screen.width)?(screen.width-w)/2:100;
		TopPosition=(screen.height)?(screen.height-h)/2:100;
	}
	else if((pos!="center" && pos!="random") || pos==null)
	{
		LeftPosition=0;
		TopPosition=20;
	}
	settings='width='+w+',height='+h+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+scroll+',location=no,directories=no,status=no,menubar=no,toolbar=no,resizable=no';
	win=window.open(mypage,myname,settings);
	if(win.focus)
	{
		win.focus();
	}
}
function CloseNewWin()
{
	if(win!=null && win.open)win.close()
}
window.onfocus=CloseNewWin;
//document.oncontextmenu=function(){ return false; }