function preview(id) {
	var mrak = document.getElementById('mrak');
    var div = document.getElementById(id);

    if ((typeof(div) != 'undefined') && (div != null)) {
        if (div.style.display == 'none') {
            div.style.display = 'block';
        } else {
            div.style.display = 'none';
        }
    }
    if ((typeof(mrak) != 'undefined') && (mrak != null)) {
        if (mrak.style.display == 'none') {
            mrak.style.display = 'block';
        } else {
            mrak.style.display = 'none';
        }
    }
}

function init() {
	//alert('download complete');
	reload_basket();
	getElements();
	separateElements();
	replaceSelects();
	PrintMail('copy');
}

function PrintMail(id) {
	document.getElementById(id).innerHTML = '<a href=m'+'ai'+'lt'+'o:'+'i'+'n'+'f'+'o'+'@'+'a'+'n'+'a'+'l'+'o'+'g'+'music'+'.ru>'+'i'+'n'+'f'+'o'+'@'+'a'+'n'+'a'+'l'+'o'+'g'+'music'+'.ru</a>';
}


function RollLeft(total) {
	var Dlinna = 181;
	var TotalDlinna = total*Dlinna;
	var x0 = findPosX(div);

	var div = document.getElementById('roll');
	div.style.marginLeft = '-600px';
	 //style="margin-left:-100px;"
	for (i=-2;i<10;i++) {
		alert(i);
	}

	alert(TotalDlinna);
	//alert(findPosX(div));
}

function RollRight(total) {
	alert('right');
}

function RollStop() {
	alert('stop');
}