//var wholemessage = "<font face=\"Verdana\", \"Arial\", \"Helvetica\", \"sans-serif\" size=\"1\" color=\"#333333\"><a href=\"JavaScript:MM_openBrWindow('event08.html','popup','width=400,height=300')\"><font color=\"#CC0000\"><b>Attending Electronic Fair Hong Kong in April 2008</b><br>Fair date: 14 - 17 April 2008<br>Venue:  Hong Kong Convention and Exhibition Centre <br>Booth no:  2B35, Hall 2<br></font></a><br><br>All our new products will be <img src=\"images/front/logo_europe.gif\" border=\"0\" align=\"absmiddle\"> approved for Europe!<br><br>All our new products will be <img src=\"images/front/logo_us.gif\" border=\"0\" align=\"absmiddle\"> for America!";

// 2-2-2009 by daniel edit
var wholemessage = "<font face=\"Verdana\", \"Arial\", \"Helvetica\", \"sans-serif\" size=\"1\" color=\"#333333\"><a href=\"JavaScript:MM_openBrWindow('event08.html','popup','width=400,height=300')\"><font color=\"#CC0000\"><b>Asia-Pacific Sourcing 2009, Cologne in March</b><br>Date: 1 - 3 March 2009<br>Venue:  Cologne Exhibition Centre, Germany<br>Booth No:  Hall 11.1, A-041<br></font></a><br><br>All our new products will be <img src=\"images/front/logo_europe.gif\" border=\"0\" align=\"absmiddle\"> approved for Europe!<br><br>All our new products will be <img src=\"images/front/logo_us.gif\" border=\"0\" align=\"absmiddle\"> for America!";
// end edit

//BEGIN
var swidth=330;
var sheight=50;
var sspeed=1.5;
function start() {
	if (document.all) return;
	if (document.getElementById) {
		document.getElementById("slider").style.visibility = "show";
		ns6marquee(document.getElementById('slider'));
	} else if (document.layers) {
		document.slider1.visibility = "show";
		ns4marquee(document.slider1.document.slider2);
	}
}

function ns4marquee(whichlayer) {
	ns4layer = eval(whichlayer);
	ns4layer.document.write(wholemessage);
	ns4layer.document.close();
	sizeup = ns4layer.document.height;
	ns4layer.top -= sizeup;
	ns4slide();
}

function ns4slide() {
	if (ns4layer.top >= sizeup * (-1)) {
		ns4layer.top -= sspeed;
		setTimeout("ns4slide()",100);
	} else {
		ns4layer.top = sheight;
		ns4slide();
	}
}
function ns6marquee(whichdiv) {
	ns6div = eval(whichdiv);
	ns6div.innerHTML = wholemessage;
	ns6div.style.top = sheight;
	sizeup = sheight;
	ns6slide();
}
function ns6slide() {
	if (parseInt(ns6div.style.top) >= sizeup * (-1)) {
		ns6div.style.top = parseInt(ns6div.style.top) - sspeed;
		setTimeout("ns6slide()",100);
	} else {
		ns6div.style.top = sheight;
		ns6slide();
	}
}
// END
