/* www.ikatbatik.com  - designed & developed by Gede Suryagiri - www.GalangStudio.com 
*/
<!-- Hide from old browsers
function homepic() {
var imagenumber = 15 ;
var randomnumber = Math.random() ;
var rand1 = Math.round( (imagenumber-1) * randomnumber) + 1 ;
images = new Array
images[1] = "ikatbatik/ikatbatikbali1.jpg"
images[2] = "ikatbatik/ikatbatikbali2.jpg"
images[3] = "ikatbatik/ikatbatikbali3.jpg"
images[4] = "ikatbatik/ikatbatikbali4.jpg"
images[5] = "ikatbatik/ikatbatikbali5.jpg"
images[6] = "ikatbatik/ikatbatikbali6.jpg"
images[7] = "ikatbatik/ikatbatikbali7.jpg"
images[8] = "ikatbatik/ikatbatikbali8.jpg"
images[9] = "ikatbatik/ikatbatikbali9.jpg"
images[10] = "ikatbatik/ikatbatikbali10.jpg"
images[11] = "ikatbatik/ikatbatikbali11.jpg"
images[12] = "ikatbatik/ikatbatikbali12.jpg"
images[13] = "ikatbatik/ikatbatikbali13.jpg"
images[14] = "ikatbatik/ikatbatikbali14.jpg"
images[15] = "ikatbatik/ikatbatikbali15.jpg"

var image = images[rand1]
document.write('<IMG SRC="' + image + '" BORDER="0" WIDTH="400" HEIGHT="400">')
// -- End Hiding Here -->
}

function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);


function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}


function gallery(){
	if (i == 1){
		document.gallery.previous.value="       "
		document.gallery.desc.value = description[0];
		}
}
function previmg(){
	if (i != 1) {
		i --
		image = images[i]
		document.img.src = image
		document.img.width = 300
		//document.img.height = height[i]
		document.img.height = 350
		document.gallery.next.value = "Next"
		//document.img.width = document.img.naturalWidth
		//document.img.height = document.img.naturalHeight
		document.gallery.desc.value = description[i];
		}

	if (i == 1) {
		document.gallery.previous.value="        "}
	
}

function nextimg(){
	if (i != tot) {
		i ++
		image = images[i]
		document.img.src = image
		document.img.width = 300
		//document.img.height = height[i]
		document.img.height = 350
		document.gallery.previous.value="Previous"
		//document.img.width = document.img.naturalWidth
		//document.img.height = document.img.naturalHeight
		document.gallery.desc.value = description[i];
		}

	if (i == tot){
		document.gallery.next.value="    ";}
}

function viewimg(n){
	    i = n
	    image = images[i]
		document.img.src = image
		document.img.width = 300
		//document.img.width = widthimg[i]
		document.img.height = 350
		//document.img.height = heightimg[i]
		document.gallery.desc.value = description[i];
}



