var srcs = new Array ();
var arr = new Array();
var headerTXT = new Array();

srcs.push("http://www.marketvarna.com/gallery/quality1-mini.jpg");
srcs.push("http://www.marketvarna.com/gallery/quality2-mini.jpg");
srcs.push("http://www.marketvarna.com/gallery/quality3-mini.jpg");
srcs.push("http://www.marketvarna.com/gallery/jewellery1-mini.jpg");
srcs.push("http://www.marketvarna.com/gallery/jewellery2-mini.jpg");
srcs.push("http://www.marketvarna.com/gallery/jewellery3-mini.jpg");
srcs.push("http://www.marketvarna.com/gallery/lider1-mini.jpg");
srcs.push("http://www.marketvarna.com/gallery/lider2-mini.jpg");
srcs.push("http://www.marketvarna.com/gallery/lider3-mini.jpg");
srcs.push("http://www.marketvarna.com/gallery/intriga1-mini.jpg");
srcs.push("http://www.marketvarna.com/gallery/intriga2-mini.jpg");
srcs.push("http://www.marketvarna.com/gallery/intriga3-mini.jpg");
srcs.push("http://www.marketvarna.com/gallery/jeff1-mini.jpg");
srcs.push("http://www.marketvarna.com/gallery/jeff2-mini.jpg");
srcs.push("http://www.marketvarna.com/gallery/jeff3-mini.jpg");
srcs.push("http://www.marketvarna.com/gallery/kaffa1-mini.jpg");
srcs.push("http://www.marketvarna.com/gallery/kaffa2-mini.jpg");
srcs.push("http://www.marketvarna.com/gallery/kaffa3-mini.jpg");
srcs.push("http://www.marketvarna.com/gallery/kotkite1-mini.jpg");
srcs.push("http://www.marketvarna.com/gallery/kotkite2-mini.jpg");
srcs.push("http://www.marketvarna.com/gallery/kotkite3-mini.jpg");
srcs.push("http://www.marketvarna.com/gallery/mishmash1-mini.jpg");
srcs.push("http://www.marketvarna.com/gallery/mishmash2-mini.jpg");
srcs.push("http://www.marketvarna.com/gallery/mishmash3-mini.jpg");
srcs.push("http://www.marketvarna.com/gallery/sisi1-mini.jpg");
srcs.push("http://www.marketvarna.com/gallery/sisi2-mini.jpg");
srcs.push("http://www.marketvarna.com/gallery/sisi3-mini.jpg");
srcs.push("http://www.marketvarna.com/gallery/vicko1-mini.jpg");
srcs.push("http://www.marketvarna.com/gallery/vicko2-mini.jpg");
srcs.push("http://www.marketvarna.com/gallery/vicko3-mini.jpg");
srcs.push("http://www.marketvarna.com/gallery/1-mini.jpg");
srcs.push("http://www.marketvarna.com/gallery/2-mini.jpg");
srcs.push("http://www.marketvarna.com/gallery/3-mini.jpg");
srcs.push("http://www.marketvarna.com/gallery/4-mini.jpg");
srcs.push("http://www.marketvarna.com/gallery/5-mini.jpg");
srcs.push("http://www.marketvarna.com/gallery/6-mini.jpg");

arr.push("gallery/quality1.jpg");
arr.push("gallery/quality2.jpg");
arr.push("gallery/quality3.jpg");
arr.push("gallery/jewellery1.jpg");
arr.push("gallery/jewellery2.jpg");
arr.push("gallery/jewellery3.jpg");
arr.push("gallery/lider1.jpg");
arr.push("gallery/lider2.jpg");
arr.push("gallery/lider3.jpg");
arr.push("gallery/intriga1.jpg");
arr.push("gallery/intriga2.jpg");
arr.push("gallery/intriga3.jpg");
arr.push("gallery/jeff1.jpg");
arr.push("gallery/jeff2.jpg");
arr.push("gallery/jeff3.jpg");
arr.push("gallery/kaffa1.jpg");
arr.push("gallery/kaffa2.jpg");
arr.push("gallery/kaffa3.jpg");
arr.push("gallery/kotkite1.jpg");
arr.push("gallery/kotkite2.jpg");
arr.push("gallery/kotkite3.jpg");
arr.push("gallery/mishmash1.jpg");
arr.push("gallery/mishmash2.jpg");
arr.push("gallery/mishmash3.jpg");
arr.push("gallery/sisi1.jpg");
arr.push("gallery/sisi2.jpg");
arr.push("gallery/sisi3.jpg");
arr.push("gallery/vicko1.jpg");
arr.push("gallery/vicko2.jpg");
arr.push("gallery/vicko3.jpg");
arr.push("gallery/1.jpg");
arr.push("gallery/2.jpg");
arr.push("gallery/3.jpg");
arr.push("gallery/4.jpg");
arr.push("gallery/5.jpg");
arr.push("gallery/6.jpg");


headerTXT.push("&nbsp;&nbsp;&nbsp;'Quality' - Kids Fashion");
headerTXT.push("&nbsp;&nbsp;&nbsp;'&#1053;&#1072; &#1090;&#1098;&#1084;&#1085;&#1086;' - Piercing and jewellery");
headerTXT.push("&nbsp;&nbsp;&nbsp;'&#1048;&#1084;&#1086;&#1090;&#1080; &#1051;&#1080;&#1076;&#1077;&#1088;' - &#1053;&#1077;&#1076;&#1074;&#1080;&#1078;&#1080;&#1084;&#1080; &#1080;&#1084;&#1086;&#1090;&#1080;");
headerTXT.push("&nbsp;&nbsp;&nbsp;'Intriga'");
headerTXT.push("&nbsp;&nbsp;&nbsp;'Jeff'");
headerTXT.push("&nbsp;&nbsp;&nbsp;'Kaffa' - &#1082;&#1072;&#1092;&#1077;");
headerTXT.push("&nbsp;&nbsp;&nbsp;'&#1050;&#1086;&#1090;&#1082;&#1080;&#1090;&#1077;' - &#1082;&#1072;&#1092;&#1077;");
headerTXT.push("&nbsp;&nbsp;&nbsp;'&#1052;&#1080;&#1096; &#1052;&#1072;&#1096;' - &#1041;&#1098;&#1083;&#1075;&#1072;&#1088;&#1089;&#1082;&#1072; &#1082;&#1091;&#1093;&#1085;&#1103;");
headerTXT.push("&nbsp;&nbsp;&nbsp;'Sisi' - &#1054;&#1073;&#1091;&#1074;&#1082;&#1080;, &#1084;&#1072;&#1088;&#1072;&#1090;&#1086;&#1085;&#1082;&#1080; &#1080; &#1082;&#1086;&#1083;&#1072;&#1085;&#1080;");
headerTXT.push("&nbsp;&nbsp;&nbsp;'Vicko'");
headerTXT.push("&nbsp;&nbsp;&nbsp;'&#1052;&#1072;&#1088;&#1082;&#1077;&#1090; &#1042;&#1072;&#1088;&#1085;&#1072;'");
headerTXT.push("&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;");

function show_gallery(n) {
	var nInnerHTML = "";

	for (i=0;i<Math.round(srcs.length/6);i++) {
		nInnerHTML += "<a href='javascript:show_gallery("+i+");'>"+(i+1)+"</a>&nbsp;";
	}
	document.getElementById("ns").innerHTML=nInnerHTML;

	document.getElementById("img0").src=srcs[n*6];
	document.getElementById("img1").src=srcs[n*6+1];
	document.getElementById("img2").src=srcs[n*6+2];
	document.getElementById("img3").src=srcs[n*6+3];
	document.getElementById("img4").src=srcs[n*6+4];
	document.getElementById("img5").src=srcs[n*6+5];
	
	document.getElementById("linka0").href=arr[n*6];
	document.getElementById("linka1").href=arr[n*6+1];
	document.getElementById("linka2").href=arr[n*6+2];
	document.getElementById("linka3").href=arr[n*6+3];
	document.getElementById("linka4").href=arr[n*6+4];
	document.getElementById("linka5").href=arr[n*6+5];
	
	document.getElementById("txtH0").innerHTML=headerTXT[n*2];
	document.getElementById("txtH1").innerHTML=headerTXT[(n*2)+1];
}



