// JavaScript Document

// Drop Shadow
$(document).ready(function(){	
// $(".place-head").dropShadow({left: 3, top: 3, opacity: 0.5, blur: 4});
// $(".place-text").dropShadow({left: 3, top: 3, opacity: 0.5, blur: 4});
// $(".place-footer").dropShadow({left: 3, top: 3, opacity: 0.5, blur: 4});

});



// Rewrite #anchor links for pages with BASE HREF

var anchors = document.getElementsByTagName("a");
var basehref = document.getElementsByTagName("base")[0].href;
var url = window.location.href;
if(url.indexOf("#") > 0) url = url.substr(0, url.indexOf("#")); //strip hash
if(basehref) {
 for(var i = 0; i < anchors.length; i++) {
  var anchor = anchors[i];
  poundPos = anchor.href.indexOf("/#");
  if (poundPos > 0) {
   anchor.href = url + anchor.href.substr(poundPos + 1);
  }
 }
}



// Cycle Fade
$(document).ready(function() {


 $('#highlights').cycle({ 
		fx:     'fade', 
		timeout: 7000, 
		speed: 'slow' ,
		pager: '#hnav',
		next: '#next',
		prev: '#prev',
		pagerAnchorBuilder: function(idx, slide) {
            // return sel string for existing anchor
            return '#hnav li:eq(' + (idx) + ') a';
        }

	});



});
