// function initNav() {
//  if (AC_FL_RunContent == 0) {
//    alert("This page requires AC_RunActiveContent.js.");
//  } else {
//    AC_FL_RunContent(
//      'codebase', 'http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0',
//      'width', '732',
//      'height', '31',
//      'src', '/dm_menu',
//      'quality', 'best',
//      'pluginspage', 'http://www.macromedia.com/go/getflashplayer',
//      'align', 'middle',
//      'play', 'true',
//      'loop', 'true',
//      'scale', 'showall',
//      'wmode', 'transparent',
//      'devicefont', 'false',
//      'id', 'dm_menu',
//      'bgcolor', '#292e38',
//      'name', 'dm_menu',
//      'menu', 'false',
//      'allowFullScreen', 'false',
//      'allowScriptAccess','sameDomain',
//      'movie', '/dm_menu',
//      'salign', ''
//      ); //end AC code
//  }
// }

function initNav() {
	if (AC_FL_RunContent == 0) {
		alert("This page requires AC_RunActiveContent.js.");
	} else {
		AC_FL_RunContent(
			'codebase', 'http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0',
			'width', '834',
			'height', '31',
			'src', '/dm_menu',
			'quality', 'best',
			'pluginspage', 'http://www.macromedia.com/go/getflashplayer',
			'align', 'middle',
			'play', 'true',
			'loop', 'true',
			'scale', 'showall',
			'wmode', 'transparent',
			'devicefont', 'false',
			'id', 'dm_menu',
			'bgcolor', '#292e38',
			'name', 'dm_menu',
			'menu', 'false',
			'allowFullScreen', 'false',
			'allowScriptAccess','sameDomain',
			'movie', '/dm_menu',
			'salign', ''
			); //end AC code
	}
}

function initPortNav() {
	if (AC_FL_RunContent == 0) {
		alert("This page requires AC_RunActiveContent.js.");
	} else {
		AC_FL_RunContent(
			'codebase', 'http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0',
			'width', '680',
			'height', '25',
			'src', '/dm_menu_port',
			'quality', 'best',
			'pluginspage', 'http://www.macromedia.com/go/getflashplayer',
			'align', 'middle',
			'play', 'true',
			'loop', 'true',
			'scale', 'showall',
			'wmode', 'transparent',
			'devicefont', 'false',
			'id', 'dm_menu',
			'bgcolor', '#292e38',
			'name', 'dm_menu',
			'menu', 'false',
			'allowFullScreen', 'false',
			'allowScriptAccess','sameDomain',
			'movie', '/dm_menu_port',
			'salign', ''
			); //end AC code
	}
}

function swapImage(image) {
	$("#detail_ss").attr('src','images/'+image);
}

function prepZooms() {
	if (! document.getElementsByTagName) {
		return;
	}
	var links = document.getElementsByTagName("a");
	for (i = 0; i < links.length; i++) {
		if (links[i].getAttribute("href")) {
			if (links[i].getAttribute("href").search(/(.*)\.(jpg|jpeg|gif|png|bmp|tif|tiff)/gi) != -1) {
				document.addEventListener(links[i], "click", function() {
				  return hs.expand(this, {wrapperClassName: 'borderless floating-caption', dimmingOpacity: 0.75, align: 'center'});
				});
			}
		}
	}
}