/* JavaScript 
    create date :   October 30, 2005
    created by  :   I Gede Suryagiri,S.Kom (www.GalangStudio.com)
*/

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_showHideLayers() { //v6.0
  var i,p,v,obj,args=MM_showHideLayers.arguments;
  for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) { v=args[i+2];
    if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v=='hide')?'hidden':v; }
    obj.visibility=v; }
}

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 preloadImages() { 
  var d=document; if(d.images){ if(!d.p) d.p=new Array();
    var i,j=d.p.length,a=preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.p[j]=new Image; d.p[j++].src=a[i];}}
}

function swapImgRestore() { 
  var i,x,a=document.sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function findObj(n, d) { 
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=findObj(n,d.layers[i].document); return x;
}

function swapImage() { 
  var i,j=0,x,a=swapImage.arguments; document.sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=findObj(a[i]))!=null){document.sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}


<!-- Hide from old browsers

function gallery(){
	if (i == 1){
		//document.gallery.previous.value="       "
		document.gallery.desc.value = description[i];
		}
		//else
		//{
		//document.gallery.desc.value = description[0];
		//}
	}
		
function previmg(){
	if (i != 1) {
		i --
		image = images[i]
		document.img.src = image
		document.img.width = widthimg[i]
		//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 = widthimg[i]
		//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 = widthimg[i]
		document.img.height = 350
		//document.img.height = heightimg[i]
		document.gallery.desc.value = description[i];
}

// baru - hanya NN
/*function viewimg(n){
	    i = n
	    image = images[i]
		document.img.src = image
		document.img.width = document.img.naturalWidth
		document.img.height = document.img.naturalHeight
		document.gallery.desc.value = description[i];
}*/


var swidth=470
var sheight=90
var sspeed=1

var singletext=new Array()
singletext[0]='<div class="quote" align="right">"THE INDESCRIBABLE ENERGIES OF THIS ISLAND FULFILL ME WITH GREAT PLEASURE AND HAPPINESS WHERE FANTASY AND CREATIVITY CAN BLOOM TO OVERWHELMING DIMENSIONS" <br><span class="style1">(Surya Suryata)</span></div>'
singletext[1]='<div class="quote" align="right" >"The composition of Surya’s work intends to lead to a dimension that offers an array of emotions, life-altering perceptions and feelings that in the process entice the mind, body and soul." <br><span class="style1">(Frieda Gans / Netherlands)</span></div>'
singletext[2]='<div class="quote" align="right" >"Surya’s work doesn’t just come from deep thought. It comes from youthfulness, liberation and the passion to express his views." <br><span class="style1">(Jerry Forrest / USA)</span></div>'
singletext[3]='<div class="quote" align="right" >"The first Painting I saw lured me, The last painting I saw changed me!" <br><span class="style1">(Stephan Knecht / Brazil)</span></div>'
singletext[4]='<div class="quote" align="right" >"Surya Suryata’s art is out of the ordinary – not just different. It’s about the experience, how the viewer is taken into the painting like a life story unfolding bit by bit to the very core of its meaning. You are captivated by colors of contrast and alikeness, as the painting seduces you slowly, carries you to the truth and awakes you on its journey." <br><span class="style1"> </span></div>'
if (singletext.length>1)
i=1
else
i=0
function start(){
if (document.all){
ieslider1.style.top=sheight
iemarquee(ieslider1)
}
else if (document.layers){
document.ns4slider.document.ns4slider1.top=sheight
document.ns4slider.document.ns4slider1.visibility='show'
ns4marquee(document.ns4slider.document.ns4slider1)
}
else if (document.getElementById&&!document.all){
document.getElementById('ns6slider1').style.top=sheight
ns6marquee(document.getElementById('ns6slider1'))
}
}
function iemarquee(whichdiv){
iediv=eval(whichdiv)
if (iediv.style.pixelTop>0&&iediv.style.pixelTop<=sspeed){
iediv.style.pixelTop=0
setTimeout("iemarquee(iediv)",80)
}
if (iediv.style.pixelTop>=sheight*-1){
iediv.style.pixelTop-=sspeed
setTimeout("iemarquee(iediv)",80)
}
else{
iediv.style.pixelTop=sheight
iediv.innerHTML=singletext[i]
if (i==singletext.length-1)
i=0
else
i++
}
}
function ns4marquee(whichlayer){
ns4layer=eval(whichlayer)
if (ns4layer.top>0&&ns4layer.top<=sspeed){
ns4layer.top=0
setTimeout("ns4marquee(ns4layer)",80)
}
if (ns4layer.top>=sheight*-1){
ns4layer.top-=sspeed
setTimeout("ns4marquee(ns4layer)",80)
}
else{
ns4layer.top=sheight
ns4layer.document.write(singletext[i])
ns4layer.document.close()
if (i==singletext.length-1)
i=0
else
i++
}
}
function ns6marquee(whichdiv){
ns6div=eval(whichdiv)
if (parseInt(ns6div.style.top)>0&&parseInt(ns6div.style.top)<=sspeed){
ns6div.style.top=0
setTimeout("ns6marquee(ns6div)",80)
}
if (parseInt(ns6div.style.top)>=sheight*-1){
ns6div.style.top=parseInt(ns6div.style.top)-sspeed
setTimeout("ns6marquee(ns6div)",80)
}
else{
ns6div.style.top=sheight
ns6div.innerHTML=singletext[i]
if (i==singletext.length-1)
i=0
else
i++
}
}
