// JavaScript Document
//Copyright © «Success-Art»

function icindHover() {
	document.getElementById('icind').src = '/tools/i/icindh.gif';
}
function icindNoHover() {
	document.getElementById('icind').src = '/tools/i/icind.gif';
}

//slider
//changeColorHover
function butHover (a) {
	document.getElementById('but' + a).style.color = '#09f';
	document.getElementById('but' + a).style.borderBottom = '1px #09f dashed';
}
function butNoHover (b) {
	document.getElementById('but' + b).style.color = '#666';
	document.getElementById('but' + b).style.borderBottom = '1px #666 dashed';
}

var i = 1;
function Slide(c) {
PrewPhoto(i);
NextPhoto(c)
OldBut(i);
ActiveBut(c);
ReturnText(i);
ChangeText(c);
i = c;
return i;
}

function PrewPhoto(a) {
var elem = document.getElementById('img' + a);
elem.style.top = '0';
jTweener.addTween(elem, {top: -450});	
}

function NextPhoto(b) {
var elem = document.getElementById('img' + b);
elem.style.top = '-450px';
jTweener.addTween(elem, {top: 0});	
}

function ReturnText(x) {
var textblock = document.getElementById('block' + x);	
jTweener.addTween(
       document.getElementById('block' + x),
       {		
				time: 4.5,
              opacity: 0.0
     }
);
textblock.style.display = 'none';
}

function ChangeText(z) {
var textblock = document.getElementById('block' + z);	
textblock.style.display = 'block';
jTweener.addTween(
        document.getElementById('block' + z),
        {		
				time: 4.5,
                opacity: 1.0
        }
);
}

function ActiveBut(x) {
var button = document.getElementById('but' + x);	
button.style.color = '#09f';
button.style.borderBottom = '1px #09f dashed';
button.style.cursor = 'auto';
button.onmouseover = function() {};
button.onmouseout = function() {};
button.onclick = function() {};	
}

function OldBut(y) {
var oldbut = document.getElementById('but' + y);
oldbut.style.color = '#666';
oldbut.style.borderBottom = '1px #666 dashed';
oldbut.style.cursor = 'pointer';
oldbut.onmouseover = function() {butHover(y)};
oldbut.onmouseout = function() {butNoHover(y)};
oldbut.onclick = function() {Slide(y)};
}












