
// For adding video only!
// Include this JS file immediately after the SwfObject line.
// Locate or create div id="video-path", insert your path there.
// This allows them to generate as needed.

window.onload=function() { attachBehaviors(); }
function attachBehaviors() {
	if (document.getElementById('flash-placeholder')) {
		if (document.getElementById('video-path')) {
			var vid_path = document.getElementById('video-path').innerHTML;
			if (vid_path !='') {
				var vid = new SWFObject('/player.swf', 'DogrifficVideo', '278', '215', '6', '0x9f6e36'); 
				vid.addParam("wmode", "opaque");
				vid.addParam("bgcolor","000000"); // Different than bgcolor passed as variable
				vid.addVariable("movie",vid_path);
				vid.addVariable("fgcolor","0xA7d8c2");
				vid.addVariable("bgcolor","0x9f6e36");
				vid.addVariable("volume","70");
				vid.write('flash-placeholder');
			}
		}
	}
}