﻿if (typeof (km_scripts) == 'undefined')
    var km_scripts = new Object();

km_myclass_import('http://www.integratedbiztools.com/_Unity/media/js/flowplayer.min.js');
function km_myclass_import(jsFile) {
    if (km_scripts[jsFile] != null) return;
    var scriptElt = document.createElement('script');
    scriptElt.type = 'text/javascript';
    scriptElt.src = jsFile;
    document.getElementsByTagName('head')[0].appendChild(scriptElt);
    km_scripts[jsFile] = jsFile; // or whatever value your prefer
}


//inc(");
//inc("http://www.integratedbiztools.com/_Unity/media/js/flowplayer.min.js");
$(document).ready(function () {
$f(new function() {
    flowplayer("player", { src: 'http://www.integratedbiztools.com/_Unity/media/flash/flowplayer/flowplayer.swf', wmode: 'opaque' }, {

        clip: {

            url: 'http://www.digitalmediapresentation.com/associates/localadlink/DMP-LALws-show0.mp4',
            autoPlay: true,
            autoBuffer: true,
            scaling: 'scale'

        },
        plugins: {

            // "myContent" is the name of our plugin
            myContent: {

                // location of the plugin
                url: 'http://www.integratedbiztools.com/_Unity/media/flash/flowplayer/flowplayer.content-3.1.0.swf',

                // display properties
                bottom: 25,
                width: 300,
                opacity: 0.1,
                // styling properties
                borderRadius: 10,
                style: {
                    '.link': {
                        color: '#32cd32',
                        textDecoration: 'underline'
                    }
                },
                html: '<a style="text-decoration:underline;" href="http://www.digitalmediapresentation.com/associates/localadlink/default.aspx?affiliateid=10001"><span class="link">Click here to visit our web site</span> for more information or to order your own Digital Media Presentation.</a>'

            }
        }
		, onMouseOver: function() {
		    $f().getPlugin("myContent").animate({ opacity: 0.9 }, 2000);
		}

		, onMouseOut: function() {
		    $f().getPlugin("myContent").animate({ opacity: 0.1 }, 2000);
		}
		, onFinish: function() {
		    $f().getPlugin("myContent").animate({ opacity: 0.9, bottom: '85' }, 2000);
		}
			, onStart: function() {
			    // trigger custom function when animation finishes
			    $f().getPlugin("myContent").animate({ opacity: 0.9 }, 4000, function() {
			        $f().getPlugin("myContent").animate({ opacity: 0.9 }, 6000);
			        $f().getPlugin("myContent").animate({ opacity: 0.1 }, 4000);

			    });

			}
    });

});
});

/* end */
