function showVideo(id) {
	document.write("<object width=\"280\" height=\"214\"><param name=\"movie\" value=\"http://www.youtube.com/v/"+id+">&amp;hl=en&amp;fs=1\"></param><param name=\"allowFullScreen\" value=\"true\"></param><param name=\"allowscriptaccess\" value=\"always\"></param><embed src=\"http://www.youtube.com/v/"+id+"&amp;hl=en&amp;fs=1\" type=\"application/x-shockwave-flash\" allowscriptaccess=\"always\" allowfullscreen=\"true\" width=\"280\" height=\"214\"></embed></object>");
}

function divHover(id) {
  if (!document.getElementById) return false;
  var thediv = document.getElementById(id);
  thediv.onmouseover = function() {
    this.className += " hover";
  }
  thediv.onmouseout = function() {
    this.className = this.className.replace(" hover", "");
  }
}

// Cross-browser implementation of element.addEventListener()

function listen(evnt, elem, func) {
    if (elem.addEventListener)  // W3C DOM
        elem.addEventListener(evnt,func,false);
    else if (elem.attachEvent) { // IE DOM
         var r = elem.attachEvent("on"+evnt, func);
    return r;
    }
    else window.alert('I\'m sorry Dave, I\'m afraid I can\'t do that.');
}

// Use: listen("event name", elem, func);


$(function() {
	$('#featured').cycle({
		fx: 'scrollLeft',
		speed: 700,
		timeout: 5000
	});
});

