var img = "2" ;
var adress = "foodnavi/" ;
var volume = "0" ;
var autoplay = "1" ;
var loop = "0" ;
var url = document.URL ;

if(navigator.userAgent.indexOf("iPad") != -1 || navigator.userAgent.indexOf("iPhone") != -1){
	document.write('<video src="http://c-pro.tv/com_data/246/com/movie/com_001.mp4" controls poster="http://c-pro.tv/com_data/246/com/image/com_poster_001.jpg" width="415" height="233"></video>');
}

else if(navigator.userAgent.indexOf("Android") != -1){
	document.write('<video src="http://c-pro.tv/com_data/246/com/movie/com_001.mp4" controls poster="http://c-pro.tv/com_data/246/com/image/com_poster_001.jpg" width="415" height="233" autoplay onClick="this.play();"></video>');
}

else{

htm = ""
htm+="<object id='PlayList' classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000'"
htm+="        codebase='http://download.macromedia.com/pub/shockwave/"
                  htm+="cabs/flash/swflash.cab'"
htm+="        width   = 415 " 
htm+="        height  = 268 >"
htm+="<param  name    = movie value='http://c-pro.tv/site/flash/embed_ver3_small.swf'>"
htm+="<param  name    = quality value=high>"
htm+="<param  name    = FlashVars value=adressf=" + adress + "&volumef=" + volume + "&imgf=" + img + "&autoplayf=" + autoplay + "&loopf=" + loop + "&docu=" + url +">"
htm+="<param  name    = wmode value=transparent>"
htm+="<param  name    = allowFullScreen value=true>"
htm+="<embed  src     = 'http://c-pro.tv/site/flash/embed_ver3_small.swf' "
htm+="        quality = high"
htm+="        width   = 415"
htm+="        height  = 268"
htm+="        name    = PlayList"
htm+="        allowFullScreen   = true"
htm+="        FlashVars  = adressf=" + adress + "&volumef=" + volume + "&imgf=" + img + "&autoplayf=" + autoplay + "&loopf=" + loop + "&docu=" + url + " "
htm+="        wmode   = transparent"
htm+="        type    = 'application/x-shockwave-flash' "
htm+="        pluginspage='http://www.macromedia.com/go/getflashplayer'>"
htm+="</embed>"
htm+="</object>"


document.write(htm)
}
