');
if(!bInnVideoInitalized){var Elements = new Array();var iShowV = new Array();}
if(!aVI){var aVI = new Array();}
var toPlay=true;
var is_FF = CheckFFWMP();
function VPlayPause(id)
{
var MP = document.getElementById('Player'+id);
if(is_FF){
if(MP.playState==3)
MP.controls.pause();
else
MP.controls.play();
}
else
if (MP.PlayState==3) MP.controls.Pause(); else MP.controls.Play();
}
function VStop(id)
{
var MP = document.getElementById('Player'+id);
if(is_FF) MP.controls.stop();
else MP.controls.Stop();
}
function CheckFFWMP() {
var is_WMP;
try{
for ( var i in navigator.plugins ) {
var n = navigator.plugins[i].name; //alert(n);
if ( n != null && n.indexOf("Windows Media") >= 0 && n.indexOf("Microsoft") == 0 )
return true;
}
return false;}
catch(e){return false;}
}
var iVolume = 100;
function getScriptHtml(id)
{
var url = 'http://www.israelnationalnews.com/exp.aspx/'+id;
return "<script type=\"text/javascript\" src= \"" + url + "\"></script>";
}
function AddZero(time) { if (time>10) return time; else return "0"+time}
function PaseTime(time){
return Math.floor(AddZero(time/60)) + ":" + AddZero(Math.floor(time-(Math.floor(time/60))*60))
}
function UpdateMP(id)
{
try{
MP = document.getElementById('Player'+id);
if(MP.playState==2||MP.playState==3)
{
iPos = Math.floor((MP.controls.currentPosition/MP.currentMedia.duration)*100+0.999999999)+1
for (i=iPos;i<101;i++) document.getElementById('pos'+id+'-'+ i).style.backgroundColor ='white';
for (i=1;i49) return false;
iVolume=value*2
document.getElementById('Player'+id).settings.volume=iVolume;
for (i=value;i<50;i++)
document.getElementById('volume'+id+'-' + i).style.backgroundColor ='';
for (i=1;i0) sVideoURL = sVideoURL.replace("arutz7/","")
if (sCountry=="IL") sVideoURL = sVideoURL.replace("msmedia.a7.org/arutz7/eng-video","media.a7.org/inntv-eng");
Elements[id] = [ElementId,1,sVideoURL,iVideoImage,sCurrVideoCode];
iShowV[id] =false;
sPlayer = '
Click to start video in external player';
if (navigator.userAgent.indexOf("Firefox") > -1 &&!is_FF &&navigator.platform=='Win32')
//Firefox without addon
{sPlayer = "