

CurrentScreen = 0;

var Screens = new Array();

Screens[0] = new Image();

Screens[1] = new Image();

Screens[2] = new Image();

Screens[3] = new Image();

Screens[4] = new Image();

Screens[5] = new Image();

Screens[6] = new Image();


Screens[0].src = '/img/index/screens/01th.jpg';

Screens[1].src = '/img/index/screens/02th.jpg';

Screens[2].src = '/img/index/screens/03th.jpg';

Screens[3].src = '/img/index/screens/04th.jpg';

Screens[4].src = '/img/index/screens/05th.jpg';

Screens[5].src = '/img/index/screens/06th.jpg';

Screens[6].src = '/img/index/screens/07th.jpg';


CurrentAction = 2;

var Actions = new Array();
Actions[0] = new Image();
Actions[1] = new Image();
Actions[2] = new Image();
Actions[3] = new Image();
Actions[4] = new Image();


//Actions[0].src = '/img/actions/BD_eng.jpg';
//Actions[0].src = '/img/actions/mono.jpg';
//Actions[2].src = '/img/actions/heresy.jpg';
//Actions[0].src = 'img/actions/mc2009.jpg';
Actions[0].src = '/img/actions/hunter2.jpg';
Actions[1].src = '/img/actions/dark-soul.jpg';
//Actions[3].src = '/img/actions/back-to-school.jpg';
Actions[2].src = '/img/actions/poker2.jpg';
//Actions[3].src = '/img/actions/snowball.jpg';
//Actions[3].src = '/img/actions/heresy.jpg';

var ActionsURL = new Array();

//ActionsURL[0] = 'birthday5.php';
//ActionsURL[0] = 'mono.php';
//ActionsURL[2] = 'heresy.php';
//ActionsURL[0] = 'Christmas_lottery_2011.php';
ActionsURL[0] = 'hunter.php';
ActionsURL[1] = 'dark-soul.php';
//ActionsURL[3] = '1st_september.php';
ActionsURL[2] = 'poker2.php';
//ActionsURL[3] = 'snowball.php';
//ActionsURL[3] = 'heresy.php';

var actionHtml='<center>';

function generateActions(){


var i=0;

while(ActionsURL[i]) {
	if(i!=0) actionHtml+="<img src='pic/1.gif' width='19' height='1'>";
//	if(i==2) actionHtml+="&nbsp;";
	actionHtml+="<a href='"+ActionsURL[i]+"'><img id='action"+i+"' src='"+Actions[i].src+"' border=0 width=100 height=64></a>";
//	if(i==2) actionHtml+="&nbsp;";
	i++;
}

actionHtml+='</center>';

//alert(actionHtml);

document.getElementById('divActions').innerHTML=actionHtml;
document.getElementById('divActions').style.visibility='visible';

//alert(document.getElementById('divActions').innerHTML);
}

function screenRotate()
{
    if (CurrentScreen == 5) CurrentScreen = 0;

    document.getElementById('screen').src = Screens[CurrentScreen].src;

    CurrentScreen++;
}

function actionRotate()


{
//.........  if (CurrentAction == maxActions ) 




    if (CurrentAction == 3) CurrentAction = 0;

    document.getElementById('action').src = Actions[CurrentAction].src;

    CurrentAction++;
}

function actionClick()
{
    //open(ActionsURL[CurrentAction-1], '');

	location=ActionsURL[CurrentAction-1];
    return false;
}
