﻿// Global javascript file

// quick wrapper for JW FLV Media Player + SWFObject
function addVideo(fileurl, width, height, preview, divid){
    var so = new SWFObject('../Portfolio/Video/mediaplayer.swf', 'mpl', width, height, '7', divid);
    
    // CHANGE THIS URL
    url = 'http://www.MarketingDirect.com';
    
    
    fileurl = url + fileurl;
    
    so.addParam('allowfullscreen','true');
    so.addParam('allowscriptaccess','always');
    
    so.addVariable('displayheight', height);
    
    so.addVariable('file', fileurl); 

    so.addVariable('height', height);
    so.addVariable('width', width);
    
    so.addVariable('image', preview);     /* preview image */
					    
    so.addVariable('usefullscreen','true');
    so.addVariable('overstretch','true');
    
    so.write(divid);
 }