//configure menu width (in px):
var menuwidth=760
//configure menu height (in px):
var menuheight=85
//Specify scroll buttons directions ("normal" or "reverse"):
var scrolldir="normal"
//configure scroll speed (1-10), where larger is faster
var scrollspeed=6
//specify menu content
var menucontents='<nobr><a href="portfolio/description/mir-puteshestviy.html"><img src="small_screen/mir-puteshestviy.jpg" alt="Web-site of elite tourist agency &laquo;Mir Puteshestviy&raquo;" width="83" height="83" hspace="13" class="border_img"></a>'+
					   '<a href="portfolio/description/medlab.html"><img src="small_screen/medlab.jpg" alt="Web-site of &laquo;InvestMedPribor&raquo; company" width="83" height="83" hspace="13" class="border_img"></a>'+
					   '<a href="portfolio/description/sulpak.html"><img src="small_screen/sulpak.jpg" alt="Web-site of the largest in Kazakhstan network of shops of electronics and home appliances" width="82" height="83" hspace="13" class="border_img"></a>'+
					   '<a href="portfolio/description/kurs.html"><img src="small_screen/kurs.jpg" alt="Portal of actual currency rates in exchange offices of Kazakhstan" width="82" height="83" hspace="13" class="border_img"></a>'+
					   '<a href="portfolio/description/innovation.html"><img src="small_screen/innovation.jpg" alt="Information resource on innovations, scientific inventions of Kazakhstan" width="82" height="83" hspace="13" class="border_img"></a>'+
					   '<a href="portfolio/description/project_tenir.html"><img src="small_screen/project_tenir.jpg" alt="Web-site of &laquo;Tenir Project" company&raquo; width="82" height="83" hspace="13" class="border_img"></a>'+
					   '<a href="portfolio/description/wordex.html"><img src="small_screen/wordex.jpg" alt="Web-site of agency of translations &laquo;Wordex&raquo;" width="83" height="83" hspace="13" class="border_img"></a>'+
					   '<a href="portfolio/description/invalid.html"><img src="small_screen/invalid.jpg" alt="Information resource for disabled people in Kazakhstan" width="82" height="83" hspace="13" class="border_img"></a>'+
					   '<a href="portfolio/description/floraexpress.html"><img src="small_screen/floraexpress.jpg" alt="International on-line flowers shop" width="82" height="83" hspace="13" class="border_img"></a>'+
					   '<a href="portfolio/description/tarakan.html"><img src="small_screen/tarakan.jpg" alt="Web-site of The Kazakhstan center of disinfection" width="83" height="83" hspace="13" class="border_img"></a>'+
					   '<a href="portfolio/description/uvelir.html"><img src="small_screen/uvelir.jpg" alt="Web-site of artist-jeweller Alexander Mitrofanski" width="83" height="83" hspace="13" class="border_img"></a></nobr>'
////NO NEED TO EDIT BELOW THIS LINE////////////
var iedom=document.all||document.getElementById
var leftdircode='onMouseover="moveleft()" onMouseout="clearTimeout(lefttime)"'
var rightdircode='onMouseover="moveright()" onMouseout="clearTimeout(righttime)"'
	if (scrolldir=="reverse"){
		var tempswap=leftdircode
		leftdircode=rightdircode
		rightdircode=tempswap
	}
if (iedom)
document.write('<span id="temp" style="visibility:hidden;position:absolute;top:-100;left:-5000">'+menucontents+'</span>')
var actualwidth=''
var cross_scroll, ns_scroll
var loadedyes=0

function fillup(){
	if (iedom){
		cross_scroll=document.getElementById? document.getElementById("test2") : document.all.test2
		cross_scroll.innerHTML=menucontents
		actualwidth=document.all? cross_scroll.offsetWidth : document.getElementById("temp").offsetWidth
	}
	else if (document.layers){
		ns_scroll=document.ns_scrollmenu.document.ns_scrollmenu2
		ns_scroll.document.write(menucontents)
		ns_scroll.document.close()
		actualwidth=ns_scroll.document.width
	}
	loadedyes=1
}

function moveleft(){
	if (loadedyes){
		if (iedom&&parseInt(cross_scroll.style.left)>(menuwidth-actualwidth)){
		cross_scroll.style.left=parseInt(cross_scroll.style.left)-scrollspeed+"px"
		}
	else if (document.layers&&ns_scroll.left>(menuwidth-actualwidth))
		ns_scroll.left-=scrollspeed
	}
	lefttime=setTimeout("moveleft()",50)
}

function moveright(){
	if (loadedyes){
		if (iedom&&parseInt(cross_scroll.style.left)<0)
			cross_scroll.style.left=parseInt(cross_scroll.style.left)+scrollspeed+"px"
		else if (document.layers&&ns_scroll.left<0)
			ns_scroll.left+=scrollspeed
	}
	righttime=setTimeout("moveright()",50)
}

function skryt(){
	document.all.vpravo_1.style.visibility="visible";
	document.all.vpravo_2.style.visibility="visible";
}


window.onload=fillup
