﻿hs.graphicsDir = 'http://www.iluxuryasia.com/scripts/highslide/graphics/';
hs.align = 'center';
hs.transitions = ['expand', 'crossfade'];
hs.outlineType = 'glossy-dark';
hs.fadeInOut = true;
hs.numberPosition = 'caption';
hs.dimmingOpacity = 0.65;

// Add the controlbar
if (hs.addSlideshow) hs.addSlideshow({
	//slideshowGroup: 'group1',
	interval: 5000,
	repeat: false,
	useControls: true,
	fixedControls: true,
	overlayOptions: {
		opacity: .65,
		position: 'top center',
		hideOnMouseOut: true
	}
});


function clickButton(e, buttonid) {

	var evt = e ? e : window.event;

	var bt = document.getElementById(buttonid);

	if (bt) {

		if (evt.keyCode == 13) {

			bt.click();

			return false;

		}

	}

}

function setImageSize(myImage, obj, size) {
	var img1 = new Image()
	var val = myImage
	img1.src = val
	var iwidth = img1.width
	var iheight = img1.height
	var z

	if (iwidth > iheight) {
		if (iwidth > size) {
			z = iwidth / size;
			iwidth = size;
			iheight = iheight / z;
		}
	} else {
		if (iheight > size) {
			z = iheight / size;
			iheight = size;
			iwidth = iwidth / z;
		}
	}
	obj.height = iheight;
	obj.width = iwidth;
}


    
    	