var contentMove=0;
var acceleratie=15;
var cuantaspatiu=1;
var distanta=0;
var contentLungime=0;
var modelales=1;
var imgclickata=null;
var elcontent=null;
var elmodelCurent=null;
var nemiscat=0;
function initDocument()
	{
		elmodelCurent=document.getElementById("modelCurent");
		elcontent=document.getElementById("content");
		contentLungime=500;
		f_next();
	}
function f_previous()
	{
		window.clearInterval(contentMove);
		contentMove=window.setInterval("move(-1)",acceleratie);
	}
function f_next()
	{
		window.clearInterval(contentMove);
		contentMove=window.setInterval("move(1)",acceleratie);
	}
function move(dir)
	{
		if(parseInt(elcontent.style.left)>=-800 && parseInt(elcontent.style.left)<=0)
		    {
			if(nemiscat==0)
			    elcontent.style.left=parseInt(elcontent.style.left)+(dir)*cuantaspatiu;
		    }
		else
			{
			window.clearInterval(contentMove);
			if(parseInt(elcontent.style.left)<=-800)
				{
				elcontent.style.left=-799;
				f_next();
				}
			else
			    {
				elcontent.style.left=-1;
				f_previous();
			    }
			}
	}
function clearHelp()
	{
		nemiscat=0;
//		elmodelCurent.innerHTML="";
	}
function modelHelp(mod)
	{
	    nemiscat=1;
	}
function modelclick(mod)
	{
		modelales=mod;
var w=screen.width;
var h=screen.height;
var width=400;
var height=300;
var x=(w-width)/2;
var y=(h-height)/2;
//alert(x+" "+y);
//window.open("bigimage.php?id="+mod,"","left="+x+",top="+y+",width="+width+",height="+height);
		if(imgclickata!=null)
			{
				imgclickata.border=0;
				imgclickata.style.borderColor="#000000";
			}
		imgclickata=document.getElementById("model"+mod);
		imgclickata.border=2;
		imgclickata.style.borderColor="#ff0000";
	}
function iinst()
{
var w=screen.width;
var h=screen.height;
var width=750;
var height=550;
var x=(w-width)/2;
var y=(h-height)/2;
window.open("ii.html","","scrollbars=1,status=0,left="+x+",top="+y+",width="+width+",height="+height);
}

<!--

//Pulsating Text (Chris A e-mail: KilerCris@Mail.com)
//Permission granted to Dynamic Drive to feature script in archive
//For full source and 100's more DHTML scripts, visit http://www.dynamicdrive.com

var divs = new Array();
var da = document.all;
var start;

//CONFIGUER THESE VARS!!!!!!
//speed of pulsing
var speed = 200;

function initVars(){

if (!document.all)
return

//Extend of shrink the below list all you want
//put an "addDiv(1,"2",3,4); for each div you made,
//1)'id' of div
//2)color or glow(name or hex)(in quotes!!!)
//3)minimum strength
//4)maximum strength

addDiv(welcome,"red",4,6);

//NO MORE EDITING!!!!!!



startGlow();
}

function addDiv(id,color,min,max)
{
var j = divs.length;
divs[j] = new Array(5);
divs[j][0] = id;
divs[j][1] = color;
divs[j][2] = min;
divs[j][3] = max;
divs[j][4] = true;
}

function startGlow()
{
        if (!document.all)
                return 0;

        for(var i=0;i<divs.length;i++)
        {
                divs[i][0].style.filter = "Glow(Color=" + divs[i][1] + ", Strength=" + divs[i][2] + ")";
                divs[i][0].style.width = "100%";
        }

        start = setInterval('update()',speed);
}

function update()
{
        for (var i=0;i<divs.length;i++)
        {
                if (divs[i][4])
                {
                        divs[i][0].filters.Glow.Strength++;
                        if (divs[i][0].filters.Glow.Strength == divs[i][3])
                                divs[i][4] = false;
                }

                if (!divs[i][4])
                {
                        divs[i][0].filters.Glow.Strength--;
                        if (divs[i][0].filters.Glow.Strength == divs[i][2])
                                divs[i][4] = true;
                }
        }
}
-->

