hs.graphicsDir = '../js/highslide/graphics/';
    hs.outlineType = 'rounded-white';
    hs.outlineWhileAnimating = true;
    hs.allowHeightReduction = true;
    hs.showCredits = false; 
    hs.numberOfImagesToPreload = 0;
//    hs.targetX = 'subformanchor 210px'; // 20px to the right of the target
//    hs.targetY = 'subformanchor 200px'; // follow the scrolling

hs.registerOverlay({
	overlayId: 'closebutton',
	position: 'top right',
	useOnHtml: true, 
	fade: 2 // fading the semi-transparent overlay looks bad in IE
});

hs.onSetClickEvent = function ( sender, e ) {
   // set the onclick to track Sitecatalyst custom links
   e.element.onclick = function () {
      s=s_gi('chrcinchristiancinemacom'); 
      s.tl(this,'o',this.a.href);   }
   // return false to prevent the onclick being set once again
   return false;
}



// Open a link when image is clicked for top10 group
hs.Expander.prototype.onImageClick = function (sender) {
  if (this.slideshowGroup == "top10") { 
   	location.href=this.a.href;
  }
}
// Close these slideshow groups when they mouse out
hs.Expander.prototype.onMouseOut = function () {
   if (this.slideshowGroup == "top10" || this.slideshowGroup == "enlarge") { 
   	this.close();
   }
}

function Set_Cookie( name, value, expires, path, domain, secure ) 
{
var today = new Date();
today.setTime( today.getTime() );

if ( expires )
{
expires = expires * 1000 * 60 * 60 * 24;
}
var expires_date = new Date( today.getTime() + (expires) );

document.cookie = name + "=" +escape( value ) +
( ( expires ) ? ";expires=" + expires_date.toGMTString() : "" ) + 
( ( path ) ? ";path=" + path : "" ) + 
( ( domain ) ? ";domain=" + domain : "" ) +
( ( secure ) ? ";secure" : "" );
}

function get_cookie(Name) {
  var search = Name + "="
  var returnvalue = "";
  if (document.cookie.length > 0) {
    offset = document.cookie.indexOf(search)
    if (offset != -1) { // if cookie exists
      offset += search.length
      // set index of beginning of value
      end = document.cookie.indexOf(";", offset);
      // set index of end of cookie value
      if (end == -1)
         end = document.cookie.length;
      returnvalue=unescape(document.cookie.substring(offset, end))
      }
   }
  return returnvalue;
}

