/**
  * Highslide properties
  */
	hs.showCredits 				= 0;
	hs.graphicsDir 				= 'js/highslide/graphics/';
	hs.outlineType 				= 'drop-shadow';
	hs.outlineWhileAnimating	= true;
	hs.fadeInOut				= true;
	hs.preserveContent			= true;
	
	//hs.anchor					= 'top left';
	// remove the registerOverlay call to disable the close button
	hs.registerOverlay({
		overlayId: 'closebutton',
		position: 'top right',
		fade: 2 // fading the semi-transparent overlay looks bad in IE
	});

	// Code from http://www.boutell.com/newfaq/creating/printpart.html
	hs.printImage = function (el) {
	   var exp = hs.expanders[hs.getWrapperKey(el)];
	   link = "about:blank";
	   var pw = window.open(link, "_new");
	   pw.document.open();
	   pw.document.write(exp.getPrintPage());
	   pw.document.close();
	   return false;
	};
	hs.Expander.prototype.getPrintPage = function() {
	   // We break the closing script tag in half to prevent the HTML parser from seeing it as a part of the *main* page.
	   return "<html>\n<head>\n<title>TorqueArm Configurator image</title>\n" +
	      "<script>\n" +"function step1() {\n setTimeout('step2()', 10);\n}\n" +
	      "function step2() {\n window.print();\n window.close();\n}\n" +
	      "</scr" + "ipt>\n" +
	      "</head>\n<body onLoad='step1()'>\n<img src='" + this.content.src + "'/>\n" +
	      "</body>\n</html>\n";
	};
	// End code from boutell.com /////////
	
	hs.closeAll = function () {
		for (var i = 0; i < hs.expanders.length; i++) {
			var exp = hs.expanders[i];
			if (exp) exp.close();
		}
	}
/**
  * End of highslide properties
  */