// ===============================================
// script by Gerard Ferrandez - Sept 1999
// DOM crossbrowser version - April 14th, 2006
// http://www.dhteumeuleu.com
// ===============================================

var O = [];

function Cobj(xs, ys, css, html){
	this.xs = xs;
	this.ys = ys;
	this.m = 1;
	this.x = xs * 10000;
	this.y = ys * 10000;
	this.o = document.createElement("span");
	this.o.innerHTML = html;
	for(var i in css)this.o.style[i] = css[i];
	document.body.appendChild(this.o);
	this.mov = function () {
		with(this) {
			if(xs!=0){
				x += xs;
				o.style.left = x+'px';
				if(xs>0 && x>document.body.offsetWidth) x = -o.offsetWidth;
				else if(xs<0 && x<-o.offsetWidth) x = document.body.offsetWidth;
			}
			if(ys!=0){
				y += ys;
				o.style.top = y+'px';
				if(ys>0 && y>document.body.offsetHeight) y = -o.offsetHeight;
				else if(ys<0 && y<-o.offsetHeight) y = document.body.offsetHeight;
			}
		}
	}
}

function run(){
	for(var i in O)O[i].mov();
	setTimeout("run();", 32);
}

onload = function(){
	O.push(new Cobj(0,1,
		{
			'color':'#ffffff',
			'fontSize':'13pt',
			'letterSpacing':'0px',
			'left':'5%'
		},
		"OFERTA DE SERVICII CONSILIERE<br>• construirea rela&#355;iei cu mass media<br>• organizarea conferin&#355;elor de pres&#259;<br>• conceperea &#351;i redactarea mesajelor institu&#355;iei<br>(comunicate de pres&#259;, discursuri etc.)<br>• consiliere pentru solicit&#259;rile jurnali&#351;tilor<br>(interviu)"
	));

	O.push(new Cobj(0,-1,
		{
			'color':'#c0c0c0',
			'fontSize':'10pt',
			'left':'55%'
		},
		"vrei s&#259; &#351;tie lumea<br>c&#259; exi&#351;ti...<br>vrei s&#259; &#351;tie lumea<br>c&#259; exi&#351;ti &#351;i c&#259; vrei s&#259; faci ceva<br>...............<br>vrei s&#259; scapi de anonimat<br>.....<br>trei&#351;pe srl<br>.........<br>las&#259;-ne pe noi"
	));

	O.push(new Cobj(-1,0,
		{
			'color':'#ffffff',
			'fontSize':'40pt',
			'top':'25%'
		},
		"publicitate"
	));

	O.push(new Cobj(3,0,
		{
			'color':'#ff9900',
			'fontSize':'18pt',
			'top':'55%'
		},
		"deschideri"
	));

	O.push(new Cobj(2,0,
		{
			'color':'#ff9900',
			'fontSize':'25pt',
			'top':'65%'
		},
		"lans&#259;ri"
	));

	O.push(new Cobj(0,2,
		{
			'color':'#606060',
			'fontSize':'22pt',
			'left':'20%'
		},
		"cre&#259;m<br>&#351;i organiz&#259;m<br>evenimente"
	));

	O.push(new Cobj(0,-2,
		{
			'color':'#606060',
			'fontSize':'20pt',
			'width':'50%',
			'textAlign':'right'
		},
		"inaugur&#259;ri"
	));

	O.push(new Cobj(1,0,
		{
			'color':'#606060',
			'fontSize':'22pt',
			'top':'10px'
		},
		"conferin&#355;e"
	));

	O.push(new Cobj(-2,0,
		{
			'color':'#ff9900',
			'fontSize':'20pt',
			'top':'60%'
		},
		"conferin&#355;e"
	));

	run();

}