﻿// (C) 2000 www.CodeLifter.com
// http://www.codelifter.com
// Free for all users, but leave in this  header

var slideShowSpeed2 = 5000

var crossFadeDuration2 = 3

var Pic2 = new Array()

Pic2[0] = '/images/showcase/slideshow/showcase-logos-1.gif'
Pic2[1] = '/images/showcase/slideshow/showcase-logos-2.gif'
Pic2[2] = '/images/showcase/slideshow/showcase-logos-3.gif'
Pic2[3] = '/images/showcase/slideshow/showcase-logos-4.gif'
Pic2[4] = '/images/showcase/slideshow/showcase-logos-5.gif'
Pic2[5] = '/images/showcase/slideshow/showcase-logos-6.gif'
Pic2[6] = '/images/showcase/slideshow/showcase-logos-7.gif'
Pic2[7] = '/images/showcase/slideshow/showcase-logos-8.gif'
Pic2[8] = '/images/showcase/slideshow/showcase-logos-9.gif'
Pic2[9] = '/images/showcase/slideshow/showcase-logos-10.gif'
Pic2[10] = '/images/showcase/slideshow/showcase-logos-11.gif'
//Last Pic 2 loop
Pic2[11] = '/images/showcase/slideshow/showcase-logos-0.gif'

var t2
var j2 = 0
var p2 = Pic2.length

var preLoad2 = new Array()
for (i2 = 0; i2 < p2; i2++){
   preLoad2[i2] = new Image()
   preLoad2[i2].src = Pic2[i2]
}

function runSlideShow2(){
   if (document.all){
      document.images.SlideShow2.style.filter="blendTrans(duration=2)"
      document.images.SlideShow2.style.filter="blendTrans(duration=crossFadeDuration2)"
      document.images.SlideShow2.filters.blendTrans.Apply()      
   }
   document.images.SlideShow2.src = preLoad2[j2].src
   if (document.all){
      document.images.SlideShow2.filters.blendTrans.Play()
   }
   j2 = j2 + 1
   if (j2 > (p2-1)) j2=0
   t2 = setTimeout('runSlideShow2()', slideShowSpeed2)
}


// Slideshow on Show Listing page
function show_raw_image(sImageBase) {
	var picURL=sImageBase.replace('__main','');

	newWindow=window.open('','','toolbar=no,width=640,height=480,status=no,resizable=no,scrollbars=no');

	newWindow.document.open();
	newWindow.document.write('<html>\n<head>\n<title>Detail Website Image<\/title>\n');
	newWindow.document.write('<scr' + 'ipt language="JavaScript">\nfunction rs() {\n');

	newWindow.document.write('\tvar wHeight=document.images[0].height+52;\n');
	newWindow.document.write('\tvar wWidth=document.images[0].width;\n');
	newWindow.document.write('\tvar sHeight=screen.height;\n');
	newWindow.document.write('\tvar sWidth=screen.width;\n');
	newWindow.document.write('\tif ((parseInt(sWidth) > parseInt(wWidth)) && (parseInt(sHeight) > parseInt(wHeight))) {\n');
	newWindow.document.write('\t\tresizeTo(wWidth,wHeight);\n');
	newWindow.document.write('\t}\n');

	newWindow.document.write('}\n<\/script>\n<\/head>\n');
	newWindow.document.write('<body topmargin="0" leftmargin="0">\n');
	newWindow.document.write('<img src="'+picURL+'" onLoad="rs()" alt="Detail Website Image">\n');
	newWindow.document.write('<\/body>\n<\/html>');
	newWindow.document.close();
	
	newWindow.focus();
}

function changeImageInfo(imageURL,title)
{
    document.big_image.src = imageURL;
    document.big_image.title.value = title;
}// JScript File

