// Image

function PIC(file,width,height,border) {
s='<img class="picborder" src="'+file+'" width='+width+' height='+height+' border='+border+'>'
return s;
}


// Windows Media Player Autoplay

function WMP(file,width,height) {
s='<object ';
s+='width="'+width+'" ';
s+='height="'+height+'" ';
s+='classid="CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95" ';
s+='id="mediaplayer1">\n';

s+='<param name="Filename" value="'+file+'">\n';
s+='<param name="AutoStart" value="True">\n';
s+='<param name="ShowControls" value="True">\n';
s+='<param name="ShowStatusBar" value="False">\n';
s+='<param name="ShowDisplay" value="False">\n';
s+='<param name="AutoRewind" value="True">\n';

s+='<embed type="application/x-mplayer2" ';
s+='pluginspage="http://www.microsoft.com/Windows/Downloads/Contents/MediaPlayer/" ';
s+='width="'+width+'" ';
s+='height="'+height+'" ';
s+='src="'+file+'" ';
s+='filename="'+file+'" ';
s+='autostart="True" ';
s+='showcontrols="True" ';
s+='showstatusbar="False" ';
s+='showdisplay="False" ';
s+='autorewind="True"> ';
s+='</embed> ';
s+='</object>';

return s;
}


// Windows Media Player No Autoplay

function WMP_noplay(file,width,height) {
s='<object ';
s+='width="'+width+'" ';
s+='height="'+height+'" ';
s+='classid="CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95" ';
s+='id="mediaplayer1">\n';

s+='<param name="Filename" value="'+file+'">\n';
s+='<param name="AutoStart" value="False">\n';
s+='<param name="ShowControls" value="True">\n';
s+='<param name="ShowStatusBar" value="False">\n';
s+='<param name="ShowDisplay" value="False">\n';
s+='<param name="AutoRewind" value="True">\n';

s+='<embed type="application/x-mplayer2" ';
s+='pluginspage="http://www.microsoft.com/Windows/Downloads/Contents/MediaPlayer/" ';
s+='width="'+width+'" ';
s+='height="'+height+'" ';
s+='src="'+file+'" ';
s+='filename="'+file+'" ';
s+='autostart="False" ';
s+='showcontrols="True" ';
s+='showstatusbar="False" ';
s+='showdisplay="False" ';
s+='autorewind="True"> ';
s+='</embed> ';
s+='</object>';

return s;
}


// QuickTime Autoplay

function QT(file,width,height) {
s='<object ';
s+='width="'+width+'" ';
s+='height="'+height+'" ';
s+='classid="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B" codebase="http://www.apple.com/qtactivex/qtplugin.cab">';

s+='<param name="SRC" value="'+file+'">';
s+='<param name="controller" value="True">';
s+='<param name="autoplay" value="True">';
s+='<param name="cache" value="True">';
s+='<param name="moviename" value="video">';

s+='<embed src="'+file+'" ';
s+='width="'+width+'" ';
s+='height="'+height+'" ';
s+='controller="True" ';
s+='autoplay="True" ';
s+='cache="True" ';
s+='type="video/quicktime" ';
s+='moviename="video" ';
s+='pluginspage="http://www.apple.com/quicktime/download/">';
s+='</embed>';
s+='</object>';

return s;
}


// QuickTime No Autoplay

function QT_noplay(file,width,height) {
s='<object ';
s+='width="'+width+'" ';
s+='height="'+height+'" ';
s+='classid="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B" codebase="http://www.apple.com/qtactivex/qtplugin.cab">';

s+='<param name="SRC" value="'+file+'">';
s+='<param name="controller" value="True">';
s+='<param name="autoplay" value="False">';
s+='<param name="cache" value="True">';
s+='<param name="moviename" value="video">';

s+='<embed src="'+file+'" ';
s+='width="'+width+'" ';
s+='height="'+height+'" ';
s+='controller="True" ';
s+='autoplay="False" ';
s+='cache="True" ';
s+='type="video/quicktime" ';
s+='moviename="video" ';
s+='pluginspage="http://www.apple.com/quicktime/download/">';
s+='</embed>';
s+='</object>';

return s;
}


// Real Autoplay

function Real(file,width,height) {
s='<object ID="myUniqueIdentifier" ';
s+='name="myUniqueIdentifier" ';
s+='classid="clsid:CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFA" ';
s+='width="'+width+'" ';
s+='height="'+height+'">\n';

s+='<param name="src" value="'+file+'">\n';
s+='<param name="type" value="mime/type">\n';
s+='<param name="autostart" value="True">\n';
s+='<param name="cache" value="True">\n';

s+='<embed type="mime/type" ';
s+='ID="myUniqueIdentifier" ';
s+='name="myUniqueIdentifier" ';
s+='width="'+width+'" ';
s+='height="'+height+'" ';
s+='src="'+file+'" ';
s+='autostart="True" ';
s+='cache="True">\n';
s+='</embed>\n';
s+='</object>';

return s;
}


// Real No Autoplay

function Real_noplay(file,width,height) {
s='<object ID="myUniqueIdentifier" ';
s+='name="myUniqueIdentifier" ';
s+='classid="clsid:CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFA" ';
s+='width="'+width+'" ';
s+='height="'+height+'">\n';

s+='<param name="src" value="'+file+'">\n';
s+='<param name="type" value="mime/type">\n';
s+='<param name="autostart" value="False">\n';
s+='<param name="cache" value="True">\n';

s+='<embed type="mime/type" ';
s+='ID="myUniqueIdentifier" ';
s+='name="myUniqueIdentifier" ';
s+='width="'+width+'" ';
s+='height="'+height+'" ';
s+='src="'+file+'" ';
s+='autostart="False" ';
s+='cache="True">\n';
s+='</embed>\n';
s+='</object>';

return s;
}


// Google Autoplay

function Google(file,width,height) {
s='<object ';
s+='width="'+width+'" ';
s+='height="'+height+'">\n';

s+='<param name="movie" value="'+file+'"></param>\n';

s+='<embed type="application/x-shockwave-flash" ';
s+='width="'+width+'" ';
s+='height="'+height+'" ';
s+='src="'+file+'" ';
s+='flashvars="autoplay=true">\n';
s+='</embed>\n';
s+='</object>';

return s;
}


// Google No Autoplay

function Google_noplay(file,width,height) {
s='<object ';
s+='width="'+width+'" ';
s+='height="'+height+'">\n';

s+='<param name="movie" value="'+file+'"></param>\n';

s+='<embed type="application/x-shockwave-flash" ';
s+='width="'+width+'" ';
s+='height="'+height+'" ';
s+='src="'+file+'" ';
s+='flashvars="autoplay=false">\n';
s+='</embed>\n';
s+='</object>';

return s;
}


// YouTube Autoplay

function YouTube(file,width,height) {
s='<object ';
s+='width="'+width+'" ';
s+='height="'+height+'">\n';

s+='<param name="movie" value="'+file+'"></param>\n';
s+='<param name="wmode" value="transparent"></param>\n';
s+='<embed src="'+file+'" ';
s+='type="application/x-shockwave-flash" ';
s+='wmode="transparent" ';
s+='width="'+width+'" ';
s+='height="'+height+'" ';
s+='flashvars="autoplay=true">\n';
s+='</embed>\n';
s+='</object>';
return s;
}


// YouTube No Autoplay

function YouTube(file,width,height) {
s='<object ';
s+='width="'+width+'" ';
s+='height="'+height+'">\n';

s+='<param name="movie" value="'+file+'"></param>\n';
s+='<param name="wmode" value="transparent"></param>\n';
s+='<embed src="'+file+'" ';
s+='type="application/x-shockwave-flash" ';
s+='wmode="transparent" ';
s+='width="'+width+'" ';
s+='height="'+height+'" ';
s+='flashvars="autoplay=false">\n';
s+='</embed>\n';
s+='</object>';
return s;
}



