/***********************************************
* Cross browser Marquee II- © Dynamic Drive (www.dynamicdrive.com)
* This notice MUST stay intact for legal use
* Visit http://www.dynamicdrive.com/ for this script and 100s more.
***********************************************/

var delayb4scroll=500 //Specify initial delay before marquee starts to scroll on page (1000=1 seconds)
var marqueespeed=2 //Specify marquee scroll speed (larger is faster 1-10)
var pauseit=1 //Pause marquee onMousever (0=no. 1=yes)?

////NO NEED TO EDIT BELOW THIS LINE////////////

var copyspeed=marqueespeed
var pausespeed=(pauseit==0)? copyspeed: 0
var actualwidth=''
var blleft = 0

function scrollmarquee(){

if(document.getElementById("marqueecontainer").offsetWidth < cross_marquee.offsetWidth)
	//actualwidth =  - cross_marquee.offsetWidth / 2
	actualwidth = - cross_marquee.offsetWidth * 0.9
else
	actualwidth = 0


	if ( ( parseInt(cross_marquee.style.left) ) > (actualwidth) )
	{
		cross_marquee.style.left=parseInt(cross_marquee.style.left)-copyspeed+"px"
	}
	else
	{
		//cross_marquee.style.left=  parseInt(parseInt(marqueewidth) * 0.6) +"px"
		cross_marquee.style.left=  marqueewidth - 10 +"px"
	}

}

function initializemarquee(){
cross_marquee=document.getElementById("hmarquee")

cross_marquee.innerHTML = "<nobr><strong><span style='vertical-align: top; font-size: 25pt;color:#33CC33'>**</span>&nbsp; " + 
"Hassle free Air Imports !! Avoid congestion at Mumbai International Airport Ltd  - MIAL. Clear your Air Imports also at ICD - DIGHI at far more competitive rates " +
"&nbsp;<span style='vertical-align: top; font-size: 25pt; color:#33CC33'>**</span>&nbsp;  " +
"<a href='http://www.fao.org' target='-blank' >United Nations Global Marketplace accepts Dynamic Logistics as Supplier to FAO - Food & Agriculture Organisation</a> " +
"&nbsp;&nbsp;<span style='vertical-align: top; font-size: 25pt; color:#33CC33'>**</span>&nbsp; " +
"Indian Customs EDI System v1.5 (ICESv1.5) successfully implemented at ICD - DIGHI since February 05, 2010 "  + 
"&nbsp;<span style='vertical-align: top; font-size: 25pt; color:#33CC33'>**</span>&nbsp;  " +
"<a href='Cabins.asp'>Cabin Space available at ICD - DIGHI</a> "  + 
"&nbsp;<span style='vertical-align: top; font-size: 25pt; color:#33CC33'>**</span>&nbsp;  " 
"</strong></nobr> " 


marqueewidth=document.getElementById("marqueecontainer").offsetWidth
actualwidth=cross_marquee.offsetWidth
if (blleft == 0)
	cross_marquee.style.left=marqueewidth - 10
else
	cross_marquee.style.left=0

cross_marquee.style.display = 'block'
if (window.opera || navigator.userAgent.indexOf("Netscape/7")!=-1){ //if Opera or Netscape 7x, add scrollbars to scroll and exit
cross_marquee.style.width = marqueewidth+"px"
cross_marquee.style.overflow = "scroll"
return
}
setTimeout('lefttime=setInterval("scrollmarquee()",30)', delayb4scroll)
}



function initpage()
{
if (window.addEventListener)
window.addEventListener("load", initializemarquee, false)
else if (window.attachEvent)
window.attachEvent("onload", initializemarquee)
else if (document.getElementById)
window.onload=initializemarquee
}
