test2




        <script language='javascript1.2'>
    <!--
    // Printing functions for ie and netscape
    var ver = navigator.appVersion;
    var dom = document.getElementById ? 1: 0;
    var nIE5 = ( ver.indexOf('MSIE 5') > -1 && dom ) ? 1 : 0;
    var nIE6 = ( ver.indexOf('MSIE 6') > -1 && dom ) ? 1 : 0;
    var nIE7 = ( ver.indexOf('MSIE 7') > -1 && dom ) ? 1 : 0;
    // Changed for IE8 compatibility by Moshe Levi on 05-Apr-2009: difining new variable.
    var nIE8 = ( ver.indexOf('MSIE 8') > -1 && dom ) ? 1 : 0;
    var nIE4 = ( document.all && !dom ) ? 1 : 0;
    var nNS5 = ( dom && parseInt(ver) >= 5 ) ? 1 : 0;
    var nNS4 = ( document.layers && !dom ) ? 1 : 0;

    function doPrint()
    {
        //Changed for IE8 compatibility by Moshe Levi on 05-Apr-2009: added the nIE8 to condition
        if ( nIE8 || nIE7 ||  nIE6 || nIE5 || nNS5 || nNS4 )    window.print();
        else if ( nIE4 )    IEPrint();
        return;
    }

    // -->
    </script>
    <script language='vbscript'>
    <!--
    sub IEPrint()
        on error resume next
        call browser.ExecWB(6,1)
    end sub
    // -->
    </script>
<script language='javascript'>
<!--
    function openWin(url,title,attrib) {var wref=window.open(url,title,attrib);}
    function openInnewWindow(url,width,height,toolbar) {if(toolbar==1) {openWin(url,'Ynet','toolbar=yes,location=yes,directories=yes,status=yes,menubar=yes,scrollbars=yes,resizable=yes,width='+width+',height='+height)} else {openWin(url,'Ynet','toolbar=no,location=no,directories=no,status=yes,menubar=no,scrollbars=no,movable=yes,resizable=yes,width='+width+',height='+height)}}


    var currentFontSize = 12;   // default text size for tags without specified text-size

    var magCounter = 1;     // Count the number of magnifications
    var changeFactor = 4;   // Increase, decrease font size by this factor
    var maxMagOrder = 5;    // Maximum number of times the text can be enlarged

    function changeFontSizeObj(Obj, enlarge) {
            
        if (Obj && Obj.style.fontSize) {
        
            theFontSize = parseInt(Obj.style.fontSize);
            if (enlarge == 1) {
                Obj.style.fontSize = theFontSize + changeFactor;
            } else {
                Obj.style.fontSize = theFontSize - changeFactor;                
            }

        } else if (Obj) {
            temp = currentFontSize + 'px';
            Obj.style.fontSize = temp;
        }

    }

    function changeFontSize(containerObj, enlarge) {
                
        changeFontSizeObj(containerObj, enlarge);
        
        var tagsTypes = new Array("DIV", "FONT", "A", "TD", "P");

        if (enlarge == 1) {
            currentFontSize = currentFontSize + changeFactor;
            magCounter++;
        } else {
            currentFontSize = currentFontSize - changeFactor;               
            magCounter--;
        }

        var tagsNum = 0
         for (var i = 0; i < tagsTypes.length; i++) {
            elements = containerObj.getElementsByTagName(tagsTypes[i]);
            for (var j = 0; (node = elements.item(j)); j++) changeFontSizeObj(node, enlarge);
        }

        if (magCounter == maxMagOrder) {
            document.getElementById('increaseFontSizeButton').style.display = 'none'
        } else if (magCounter == 1) {
            document.getElementById('decreaseFontSizeButton').style.display = 'none'
        } else {
            document.getElementById('increaseFontSizeButton').style.display = 'inline'
            document.getElementById('decreaseFontSizeButton').style.display = 'inline'
        }

    }

// -->
</script>

    <DIV ALIGN=right ><font STYLE='font-size:10px; font-weight:normal; color:#000000;'>03:53 , 07.06.16</FONT></DIV>
<TD WIDTH=  158  ALIGN=  left><A HREF='/home/0,7340,8,00.html'><IMG SRC='http://www.ynet.co.il/images/News_logo.gif' border=0></td>
<TD WIDTH=  11 ><IMG SRC='http://www.ynet.co.il/images/whitespace.gif' WIDTH=  11 ></td>    
<TD WIDTH=  2  bgcolor=black><IMG SRC='http://www.ynet.co.il/images/whitespace.gif' WIDTH=  2 ></td>
<TD WIDTH=  11 ><IMG SRC='http://www.ynet.co.il/images/whitespace.gif' WIDTH= ' 11 ' ></td>
<TD WIDTH=  527  ALIGN=right><IMG SRC='http://www.ynet.co.il/images/small_empty.gif' HEIGHT=19 BORDER=0 ALT=''><BR>
    <img src='http://images1.ynet.co.il/PicServer/930//COMMERCEAGE/RealCommerce/projects/yedioth/Graphics/General_Images/Kotarot/news/news.gif' border='0'  alt=''  title=''   height=70 HM=0>  </td>
<TD WIDTH=  20  >&nbsp;</td>
        <table width=116 >
        
        <!-- print link icon -->
        <tr>
            <td align=right valign=top bgcolor='#FFFFFF' height=30> 
            <table cellspacing=0 cellpadding=0 border=0 dir=ltr>
            <tr>
            
            <td><a href='JavaScript:doPrint()' STYLE='font-size:12px; font-weight:normal; color:#6600FF;'><IMG border=0 src='http://www.ynet.co.il/Images/Index/ic_printer.gif' align=absmiddle></a></td>
            <td><a href='JavaScript:doPrint()' STYLE='font-size:12px; font-weight:normal; color:#6600FF;'>&nbsp;&nbsp;שלחו להדפסה</a></td>
            </tr>
            </table>
                <br>
        </td>
        </tr>
        

        
        <tr>
            <td align=  right valign=  top bgcolor=  #CCCCCC height=  90 >
                <font STYLE=  '  font-size:16px; font-weight:bold; color:#000000;  '>מתמודדת לנשיאות</font><br>
            </td>
        </tr>
        
        <tr>
            <td align=right>
                
            </td>
        </tr>
        

        <tr height='43'>
            <td>
            <div id=increaseFontSizeButton dir=rtl style='cursor: hand;' onclick='changeFontSize(document.getElementById("articleContainer"), 1)'>
            <table border=0 cellspacing=2 cellpadding=1>
            <tr><td valign=top><img src='/images/mag_plus.gif' alt='לחצו כאן להגדיל הטקסט'> </td><td valign=bottom class='text12b'>לחצו כאן להגדיל הטקסט</td></tr>
            </table>
            </div>
            </td>
        </tr>

        <tr height='43'>
            <td>
            <div id=decreaseFontSizeButton style='cursor: hand; display:none' dir=rtl onclick='changeFontSize(document.getElementById("articleContainer"), 0)'>
            <table border=0 cellspacing=2 cellpadding=1>
            <tr><td valign=top><img src='/images/mag_minus.gif' alt='לחצו להקטין את הטקסט'></td><td valign=bottom class='text12b'>לחצו להקטין את הטקסט</td></tr>
            </table>
            </div>
            </td>
            </tr>
        </tr>

        

    </table>
    <div id=articleContainer>


    <font STYLE='font-size:16px; font-weight:bold; color:#000000;'>קלינטון הבטיחה את מועמדותה לנשיאות ארה"ב מטעם המפלגה הדמוקרטית</font><br><br>
    <font STYLE='font-size:14px; font-weight:bold; color:#000000;' lang=he>סוכנות AP  פרסמה כי קלינטון השיגה את כל 2,383 הצירים הנדרשים כדי להפוך למתמודדת מטעם המפלגה הדמוקרטית לנשיאות. הילרי, האישה הראשונה שמועמדת מטעם אחת המפלגות הגדולות, תתמודד מול טראמפ בנובמבר. אחרי ההכרזה אמרה: "אנחנו על סף רגע היסטורי"</font><br>
    <font STYLE='font-size:13px; font-weight:normal; color:#000000;'>אורלי אזולאי, וושינגטון</font><br>
    <br>
    <font STYLE='font-size:12px; font-weight:normal; color:#000000;'>  
    
    
    
    <style>P{margin:0;}
UL{margin-bottom:0;margin-top:0;margin-right: 16; padding-right:0;}
OL{margin-bottom:0;margin-top:0;margin-right: 32; padding-right:0;}
H3.pHeader {margin-bottom:3px;COLOR: #192862;font-size: 16px;font-weight: bold;margin-top:0px;}
P.pHeader {margin-bottom:3px;COLOR: #192862;font-size: 16px;font-weight: bold;}</style><SCRIPT>var agt=navigator.userAgent.toLowerCase();var is_major = parseInt(navigator.appVersion);var is_ie = ((agt.indexOf("msie") != -1) && (agt.indexOf("opera") == -1));var is_ie5 = (is_ie && (is_major == 4) && (agt.indexOf("msie 5.0")!=-1) );
function txt_link(type,url,urlAtts) {
    switch (type){
        case 'external' :
            if( urlAtts != '' ) {var x = window.open(unescape(url),'newWin',urlAtts)} else {document.location = unescape(url);}
            break;
        case 'article' :
            
            urlStr = '/articles/0,7340,L-to_replace,00.html';url=urlStr.replace('to_replace',url);
            if( urlAtts == '' || !urlAtts) {document.location = url;} else {var x = window.open(url,'newWin',urlAtts)}
            
            break;
        case 'yaan' :
            
            urlStr = '/yaan/0,7340,L-to_replace,00.html';url=urlStr.replace('to_replace',url);
            if( urlAtts == '' || !urlAtts) {document.location = url;} else {var x = window.open(url,'newWin',urlAtts)}
            break;
        
        case 'category' :
            urlStr = '/home/0,7340,L-to_replace,00.html';   url=urlStr.replace('to_replace',url);
            if( urlAtts == '' || !urlAtts) {document.location = url;} else {var x = window.open(url,'newWin',urlAtts)}
            break;
        }
}
function setDbLinkCategory(url) {eval(unescape(url));}</SCRIPT><SPAN id=dbIframeDiv></SPAN><span lang=he></b><P></P>

המועמדת מטעם המפלגה הדמוקרטית. קלינטון (צילום: רויטרס)
המועמדת מטעם המפלגה הדמוקרטית. קלינטון (צילום: רויטרס)

סוכנות הידיעות AP פרסמה היום (ג') כי המתמודדת למועמדות הדמוקרטית לנשיאות ארה"ב הילרי קלינטון השיגה את מספר הצירים הנדרש כדי לזכות במועמדות המפלגה. היא האישה הראשונה שתתמודד לבחירות מטעם את המפלגות הגדולות. בנאום ראשון אחרי ההכרזה אמרה קלינטון באסיפת בחירות בקליפורניה: "אנחנו על סף רגע היסטורי. יש עוד עבודה לעשות".

 

קלינטון, שכיהנה בעבר כמזכירת המדינה, כסנטור ניו יורק והגברת הראשונה, זכתה ב-2,383 הצירים הנדרשים. הזכייה מגיעה כמעט שמונה שנים מאז ששיתפה את נשיא ארה"ב המכהן ברק אובמה בכוונתה לרוץ לבית הלבן. כבר אז היא ציינה את יכולותיה "לנפץ את תקרת הזכוכית הגבוהה והקשה ביותר".

 

אחרי שאתמול ניצחה את ברני סנדרס בפריימריז בפוארטו ריקו, ממטה הבחירות שלו נמסר כי הוא ממשיך עד הוועידה. "לקלינטון אין את מספר הצירים הנדרש בלי צירי-העל שיצביעו רק בוועידה. צירי-העל יכולים לשנות דעתם ואנחנו נשכנע אותם שלסנדרס יש הסיכוי הטוב ביותר להביס את טראמפ", נמסר.

 

על פי ספירת AP, לקלינטון 1,812 צירים שהתחייבו לה ו-571 צירי-על. סוכנות הידיעות שאלה את כל 714 צירי-העל במהלך שבעת החודשים האחרונים, ו-95 מהם בלבד נותרו בלתי מחוייבים למועמד כלשהו.

 

הניצחון של קלינטון מוחץ. היא מובילה על סנדרס ביותר מ-3 מיליון הצבעות, ב-291 צירים ו-523 צירי-על. היא זכתה ב-29 ועידות ופריימריז, מול 21 ניצחונות של סנדרס. זהו פער גדול יותר משהיה לאובמה ב-2008, כאשר הוא הוביל על קלינטון ב-131 צירים ו-105 צירי-על בנקודה שבה השיג את מועמדותו. 

 

הדיווח בסוכנות הידיעות AP הקדים את החגיגות הגדולות שתכננו במטה של מזכירת המדינה לשעבר. מוקדם יותר היום אמרה קלינטון לתומכים בלוס

אנג'לס כי היא מסוגלת "לקחת את המאבק מול דונלד טראמפ ולהביס אותו בנובמבר". אם אכן תנצח את המועמד הרפובליקני היא תהיה גם האישה הראשונה בתפקיד נשיאת ארה"ב.

 

היום ייערכו פריימריז בקליפורניה, ניו ג'רזי, מונטנה, ניו מכסיקו, צפון דקוטה ודרום דקוטה. קלינטון הייתה אמורה לזכות כבר לאחר ההצבעה בניו ג'רזי במינוי הדמוקרטי. ההכרזה התאפשרה לאחר שכמה צירי-על שעד כה לא הביעו תמיכה בקלינטון הודיעו כי יתמכו בה. תמיכתם יחד עם הצירים שקיבלה בפורטו ריקו איפשרו להכריז עליה כמועמדת המשוערת.

 

function playLightboxVideo (playerInstanceId, videoId, channelId, instanceId, autoPlay) {var callback = function(){playVideoUsingLightbox(playerInstanceId, videoId, channelId, null, instanceId);};if (autoPlay) {var autoLightboxTimeout = setTimeout(function(){if(!window.dc_before_maavaron_called) {yq(function(){if (!window.addBeforeMaavronEventCalled) {callback();};});};}, 500);if (typeof(addBeforeMaavronEvent)!='undefined'){addBeforeMaavronEvent(function(){window.addBeforeMaavronEventCalled = true;clearTimeout(autoLightboxTimeout);if (window.HPPlayer && HPPlayer.players.getPlayer(playerInstanceId)) {HPPlayer.players.getPlayer(playerInstanceId).closePlayer();};});};if (typeof(addAfterMaavronEvent)!='undefined'){addAfterMaavronEvent(function(){yq(callback);});};} else {yq(callback);};};
yq=jQuery.noConflict();(function(){ window.CmmAppVideoApi.CONST={FlowplayerAppKey: "#"+String.fromCharCode(36)+"82d88990cf33aa2235a",FlowplayerPlayerSrc: "

צילום: רויטרס

סגורסגור

שליחה לחבר

 כתובת דוא''ל של החבר שמך כתובת הדוא''ל שלך נושא
 הקלידו את הקוד המוצג
function refresh_captcha(targetImageId, targetInputId){var targetInputId = targetInputId || 'CREATECAPTCHAcpid';var targetImageId = targetImageId || 'CREATECAPTCHAcpimgid';var xmlHttp=null;try {xmlHttp = new XMLHttpRequest();} catch (e) {try {xmlHttp=new ActiveXObject('Msxml2.XMLHTTP');} catch (e) {xmlHttp=new ActiveXObject('Microsoft.XMLHTTP');}}xmlHttp.onreadystatechange = function() {if (xmlHttp.readyState == 4) {try {if (xmlHttp.status == 200) {var tmp=xmlHttp.responseText.split(';;');if (tmp.length==3) {document.getElementById(targetInputId).value=tmp[1];document.getElementById(targetImageId).src=tmp[2];}}} catch (e) {}}};var theDate = new Date();xmlHttp.open('get','/captchaAjaxRefresh/0,12663,,00.html?randstr='+theDate.getTime());xmlHttp.send(null);document.getElementById(targetImageId).src='/images/captcha-ajax-loader.gif';}תמונה חדשה

שלח
הסרטון נשלח לחברך

סגורסגור

הטמעת הסרטון באתר שלך

 קוד להטמעה:

<object width='408' height='296' type='application/x-shockwave-flash' data='
yq("div.sf_send_container input").focus(function(){yq(this).removeClass("sf_error");});function toggleSharingFooter(obj, playerId){var name = obj.name;playerId = "_" + playerId;if (yq(obj).hasClass(name + "_open")){hideSharingFooter("div#" + name + playerId);return;}var otherTabClass = name == "sf_send" ? "sf_embed" : "sf_send";yq(obj).addClass(name + "_open").siblings("a." + otherTabClass).removeClass(otherTabClass + "_open");yq("div#" + name + playerId).removeClass("sf_hidden");yq("div#" + otherTabClass + playerId).addClass("sf_hidden").parent().removeClass("sf_hidden");if (name === "sf_send"){yq("div.Ad_425x67_wrap").css("visibility", "hidden");yq(obj).siblings("img.sf_spacer").addClass("sf_hidden");otherTabClass = "sf_embed";yq("form[name=frmSendto" + playerId + "]").prev().removeClass("sf_hidden").next().removeClass("sf_hidden").next().addClass("sf_hidden");if (yq("div.sf_sent", "div#" + name + playerId).hasClass("sf_hidden")){refresh_captcha("captchaImg" + playerId, "captchaInput" + playerId);}}else{yq(obj).prev("img.sf_spacer").addClass("sf_hidden").prevAll("img.sf_spacer").removeClass("sf_hidden");yq("div.sf_embed_container textarea.sf_embed_code", yq(obj).parents("div.sharingFooter")).click(function(){this.focus();this.select();}).trigger("click");}}function hideSharingFooter(id){yq("div.sf_tabs a.sf_send_open, div.sf_tabs a.sf_embed_open", yq(id).addClass("sf_hidden").parent().addClass("sf_hidden").parents("div.sharingFooter")).removeClass("sf_send_open sf_embed_open").siblings("img.sf_spacer").removeClass("sf_hidden");yq("div.Ad_425x67_wrap").css("visibility", "visible");}function errorSharingFooter(formName, message){yq("span[name=sf_error_message]", formName).html(message).removeClass("sf_hidden");}function submitSendTo(formName, articleId){if (!articleId){return;}var invalid = false;yq("input", formName).each(function(){if (!this.value.length){yq(this).addClass("sf_error");invalid = true;}else if (this.name in {"txtTo":1, "txtFromAddress":1} && !(/^([a-zA-Z0-9_.-])+@(([a-zA-Z0-9-])+.)+([a-zA-Z0-9]{2,4})/.test(this.value))){yq(this).addClass("sf_error");invalid = true;}else{yq(this).removeClass("sf_error");}});if (invalid){errorSharingFooter(formName, "יש למלא את השדות המסומנים");return false;}yq("span[name=sf_error_message]", formName).addClass("sf_hidden");yq(formName).submit();}function responseSharingFooter(response){if (typeof(window.pageRefreshDisable) === "function"){window.pageRefreshDisable();}if (!response){errorSharingFooter(response.formName, "השליחה נכשלה, אנא נסו מאוחר יותר");return;}var formName = "form[name=" + response.formName + "]";if (response.status === "success"){yq(formName).prev().addClass("sf_hidden").next().addClass("sf_hidden").next().removeClass("sf_hidden").next().html("");return true;}errorSharingFooter(formName, response.errorMessage);for (var i in response.errorFields){if (response.errorFields[i] === "captcha_txt"){var playerId = response.formName.split("frmSendto")[1];refresh_captcha("captchaImg" + playerId, "captchaInput" + playerId);continue;}yq("input[name=" + response.errorFields[i] + "]", formName).addClass("sf_error");}}function fpDisplayPlayer1(){CmmAppVideoApi.loadPlayer('article',137793,408,296,{destId:'fpContainer1',autoHideControlBar:false, artId: "4812830", dontShowDecoration: false, overlayTitle: "", overlaySubTitle: "" , isArtimediaFlag: '1' });} if(isMobile) {jQuery('.button img').click(function(event){event.stopPropagation();var videoURL = jQuery(this).attr('video-path'); var ext = videoURL.indexOf(',360p'); if(videoURL.indexOf('f4m') > -1){ videoURL = videoURL.substring(0, ext) + '360p.mp4'; videoURL = videoURL.replace('ynethd-f.akamaihd.net/z','mediadownload.ynet.co.il'); } location.href = videoURL;});}
קלינטון נגד טראמפ: "הוא מסוכן לארה"ב"
(function(){
            yq(function(){
                window.HPPlayer = {};
                
                // Adjust the video height in case the lightbox doesn't fit the screen, 
                HPPlayer.onResize = function(overflow, videoHeight) {
                    if (overflow != this.previousOverflow) {
                        this.isPlayerResized = true;
                        this.previousOverflow = overflow;
                    }
                    
                    this.isPlayerSetToFullSize = overflow == 0;
                    
                    yq('#hp_player_video_container_wrap').height(videoHeight - overflow);
                };
                
                HPPlayer.lightBox = new LightBox({
                    resize : function(overflow, videoHeight){HPPlayer.onResize(overflow, videoHeight)}
                    ,customContentClass: ''
                    ,customContentTopHtml: ''
                    ,offsetY: 0
                });
                HPPlayer.players = new HomepagePlayers();
                HPPlayer.videoCache = {};
                /** Contains related videos object shared by HPPlayer instances */
                HPPlayer.relatedVideosCache = false;
                HPPlayer.videoContainerIdIndex = 1;
                HPPlayer.getVideoConainerIndex = function() {                   
                    return this.videoContainerIdIndex;
                }
                HPPlayer.increaseVideoConainerIndex = function() {
                    this.videoContainerIdIndex++;
                }
                
                
            });
            
            window.HomepagePlayers = function() {
                this.players = [];
                this.addPlayer = function(player) {
                    this.players[player.instanceId] = player;
                };
                this.getPlayer = function(id) {
                    return this.players[id];
                };
            };
            /*************** HomepagePlayer object *****************/
            
            /*************** Constructor *****************/
            
            window.HomepagePlayer = function(_instanceId, _videos, playInitiator, params){
                this.instanceId = _instanceId;
                this.videos = _videos;
                this.currentPlayingVideoIndex = 0;
                this.lightBox = HPPlayer.lightBox;
                this.totalPages = 3;
                this.pageWidth = 396;
                this.currentPage = 1;
                this.parentClass = '.hp_player_instance'+this.instanceId;
                this.videoContainerId = 'hp_player_video_container';
                this.externalVideoContainerId = 'hp_player_external_video_container';
                this.fbShareUrl = 'http://www.facebook.com/sharer.php?u=VIDEO_LINK';
                this.liveImgPath = '/images/ynet_live_thumbnail.jpg';
                this.externalImgPath = '/images/external_player_thumbnail.png';
                /** Indicates whether related videos were added to this instance */
                this.loadedRelatedVideos = false;
                this.playInitiator = playInitiator || 'ArticlePlayer';
                this.disableMinimize = params.disableMinimize;
                this.isMotorolaDesign = params.isMotorolaDesign;
                this.hideFooter =  params.hideFooter;
                this.videoHeight =  params.videoHeight || 386;
                this.articlePlayerWidth =  408;
                this.articlePlayerHeight =  230;

                this.init();
            };

            /*************** Initialization *****************/
            
            HomepagePlayer.prototype.init = function() {
                var _this = this;
                this.content = yq(this.parentClass + ' .hp_player_content');
                /** BLOCK BELOW ONLY RELEVANT TO HOMEPAGE PLAYER */
                if (this.content.length > 0) {
                    // Add event handlers to navigation buttons
                    yq(this.parentClass + ' .hp_player_left').click(function(){_this.scroll('left')});
                    yq(this.parentClass + ' .hp_player_right').click(function(){_this.scroll('right')});
                    yq(this.parentClass + ' .hp_player_dot').click(function(){_this.scrollTo(this)});   
                    
                    // Add event handlers to each item
                    // A click on one if the items opens the lightbox
                    this.content.find('.hp_player_bigpic,.hp_player_smallpic').click(
                        function(){ _this.play( yq(this).attr('data-artpl-itemid') ); }
                    );
                    
                    // Add event handlers to play buttons
                    // The buttons are enlarged on mouse over
                    this.content.find('.hp_player_play img').hover(
                        function(){ yq(this).attr('src', '/images/hp_player_playb_over.png'); },
                        function(){ yq(this).attr('src', '/images/hp_player_playb.png'); }
                    );
                    
                    this.content.find('.hp_player_play_small img').hover(
                        function(){ yq(this).attr('src', '/images/hp_player_playb_s_over.png'); },
                        function(){ yq(this).attr('src', '/images/hp_player_playb_s.png'); }
                    );
                }
                
                // Add videos to the pool for later playback
                for(var i = 0; i < this.videos.length; i++) {
                    this.videos[i].index = i;
                    var videoData = this.videos[i];
                };
            };
            HomepagePlayer.prototype.setContainerId = function(articleVideoContainerId){
                this._articleVideoContainerId = articleVideoContainerId;
            };
            HomepagePlayer.prototype.getTotalVideosNum = function(){
                return this.videos.length;
            };
            HomepagePlayer.prototype.getVideoByIndex = function(index){
                if(index >= 0 && index < this.videos.length) {
                    return this.videos[index];
                }
                return null;
            };
            HomepagePlayer.prototype.getCurrentPlayingVideo = function(){
                return this.videos[this.currentPlayingVideoIndex];
            };
            HomepagePlayer.prototype.htmlescape = function(str){
                if(str){
                    return str.replace(new RegExp('&','g'),'&amp;').replace(new RegExp('<','g'),'&lt;').replace(new RegExp('>','g'),'&gt;').replace(new RegExp("'",'g'),'&#39;').replace(new RegExp('"','g'),'&quot;');
                }
                return '';
            };
            HomepagePlayer.prototype.unHtmlescape = function(str){
                if(str){
                    str = str
                        .replace(new RegExp('&lt;','g'),'<')
                        .replace(new RegExp('&gt;','g'),'>')
                        .replace(new RegExp('&#036;','g'),String.fromCharCode(36))
                        .replace(new RegExp('&#39;','g'),"'")
                        .replace(new RegExp('&quot;','g'),'"')
                        .replace(new RegExp('&amp;','g'),'&');
                    return str;
                }
                return '';
            };
            HomepagePlayer.prototype.getNextId = function(str){
                if(!this.nextId) {this.nextId = 1;}
                return this.nextId++;
            };

            /*************** Video playback *****************/
            
            HomepagePlayer.prototype.play = function(itemId){
                var _this = this;
                HPPlayer.currentPlayer = this;
                var videoData = this.getVideoByIndex(itemId);
                if(videoData){

                    if(!this.lightBox.visible()){
                        HPPlayer.increaseVideoConainerIndex(); 
                        this.initStaticPlayerHtml();
                        this.updatePlayerContent(videoData);
                        this.initDynamicPlayerHtml(videoData);
                        this.currentPlayingVideoIndex = itemId;
                        this.lightBox.show(this.videoHeight, function(){
                            _this.loadVideo(videoData);
                        });
                    } else {
                        this.updatePlayerContent(videoData);
                        this.currentPlayingVideoIndex = itemId;
                        this.loadVideo(videoData);
                    };
                };
            };
            
            // 0 - article video
            // 1,2 - live feeds
            // 3 - external player
            HomepagePlayer.prototype.loadVideo = function(videoData){
                if(videoData && videoData.type != undefined){
                    var dimensions = this.getVideoDimensions();
                    if(videoData.type == 0){
                        this.loadPlayer(videoData, dimensions);
                    } else {
                        this.loadExternalPlayer(videoData, dimensions);
                    };
                };
            };
            // Load the article player
            HomepagePlayer.prototype.loadPlayer = function(videoData,dimensions){
                var _this = this;
                var params = {
                    destId:  this.getVideoContainerId(),
                    onFinish: function(){_this.play((videoData.index + 1) % _this.getTotalVideosNum());},
                    resizePlayerContainer: HPPlayer.isPlayerResized,
                    setPlayerToFullSize: HPPlayer.isPlayerSetToFullSize,
                    artId: videoData.articleId
                };
                
                this.playerOn();
                if(typeof playerType !== 'undefined' && (playerType == 2 || playerType == 3))
                    CmmAppMatrixVideoApi.loadMatrixPlayer('LightBoxArticlePlayer', videoData.videoId, videoData.videoId, dimensions.width + 1, dimensions.height + 1, params);
                else
                    CmmAppVideoApi.loadPlayer('LightBoxArticlePlayer', videoData.videoId, dimensions.width + 1, dimensions.height + 1, params);
                yq('#'+this.getVideoContainerId()).css({visibility:'visible'});
                
                HPPlayer.isPlayerResized = false;
            };
            // Load the external player
            HomepagePlayer.prototype.loadExternalPlayer = function(videoData, dimensions){
                var res = [];
                var url = videoData.externalBroadcastIframe;
                url = url.replace('WIDTH', dimensions.width + 1 + 'px');
                url = url.replace('HEIGHT', dimensions.height + 1 + 'px');
                
                res.push('<iframe id="hp_player_iframe" src="' + url + '" scrolling=no frameborder=0 marginheight=0 marginwidth=0 vspace=0 hspace=0 allowtransparency="true"></iframe>');
                this.externalPlayerOn().html(res.join(''));
            };
            HomepagePlayer.prototype.playerOn = function(){
                this.showSharing(true);
                this.lb.find('#' + this.externalVideoContainerId).hide();
                this.lb.find('#' + this.getVideoContainerId()).show();
            };
            HomepagePlayer.prototype.externalPlayerOn = function(){
                this.hideSharing(true);
                this.lb.find('#' + this.getVideoContainerId()).hide();
                return this.lb.find('#' + this.externalVideoContainerId).show();
            };
            HomepagePlayer.prototype.hideSharing = function(animate){};
            HomepagePlayer.prototype.showSharing = function(animate){};
            
            HomepagePlayer.prototype.getVideoDimensions = function(){   
                var v = this.lb.find('#hp_player_video_container_wrap');
                return {width: v.width(), height: v.height()};
            };
            HomepagePlayer.prototype.explorerFix = function(){
                var currentVideoData = this.getCurrentPlayingVideo();
                // IE bug fix (video continues to play after it's hidden)
                if(currentVideoData.type == 1) {
                    var iframe = this.lb.find('#hp_player_external_video_container iframe');
                    if (iframe.length) {
                        iframeWindow = iframe.get(0).contentWindow;
                        if (iframeWindow.onLiveIframeClose) {
                            iframeWindow.onLiveIframeClose();
                        }
                    }
                    iframe.remove();
                    
                } else {
                    CmmAppVideoApi.stopPlayback(this.getVideoContainerId());
                }
            };
            
            /*************** Player content*****************/
            // Update the title and highlight the playing video thumbnail
            HomepagePlayer.prototype.updatePlayerContent = function(videoData) {
                var _this = this;
                
                // Update title
                var title = this.lb.find('.hp_player_video_header_title');
                var fullArticle = this.lb.find('.hp_player_full_article');
                var titleTxt = typeof(videoData.title) != 'undefined' ? videoData.title.replace(/u0024/g, String.fromCharCode(36)) : '';
                
                var link = '<a href="' + this.htmlescape(videoData.videoLink) + '" target="_blank"></a>';
                if (this.playInitiator === 'Taboola' && videoData.articleId && videoData.articleId > 0) {
                    title.html(link).find('a').html(titleTxt);
                    fullArticle.html(link).show().find('a').html('לכתבה המלאה');
                } else {
                    title.html(titleTxt);
                    fullArticle.hide();
                };
                // Dim all the thumbnails
                this.lb.find('.hp_player_thumbnail_shade').addClass('hp_player_thumbnail_shade_on').show();
                // Highlight the selected video thumbnail
                this.lb.find('.hp_player_thumbnail[data-artpl-itemid="'+videoData.index+'"] .hp_player_thumbnail_shade')
                    .removeClass('hp_player_thumbnail_shade_on');
                // Update Facebook share URL
                this.lb.find('.hp_player_sharing_fb').attr('href', this.fbShareUrl.replace('VIDEO_LINK', encodeURI(this.htmlescape(videoData.videoLink))));
                // bind event on minimize button
                var minimizeControls = this.lb.find('#hp_player_video_header div .hp_minimize_player');
                if (this.disableMinimize) {
                    minimizeControls.hide().unbind('click');
                } else {
                    minimizeControls.show().unbind('click').bind('click', function(e) {
                        if (_this.playInitiator === 'LiveTv') {
                            var lightBoxDimensions = _this.getVideoDimensions();
                            var iframeUrl = _this.getCurrentPlayingVideo().externalBroadcastIframe;
                            iframeUrl = iframeUrl.replace(lightBoxDimensions.width, _this.articlePlayerWidth);
                            iframeUrl = iframeUrl.replace(lightBoxDimensions.height, _this.articlePlayerHeight);
                            
                            var iframeHtml = [];
                            iframeHtml.push('<iframe ');
                            iframeHtml.push('src="' + iframeUrl + ',1" ');
                            iframeHtml.push('frameBorder="0" ');
                            iframeHtml.push('scrolling="no" ');
                            iframeHtml.push('style="width:' + _this.articlePlayerWidth +'px;height:' + _this.articlePlayerHeight + 'px;overflow:hidden;border:0;margin:0;" ');
                            iframeHtml.push('>');
                            iframeHtml.push('</iframe>');
                            yq('#' + _this._articleVideoContainerId).replaceWith(iframeHtml.join(''));
                        } else {
                            // continue playing the video in the small window
                            var currentPlayerPosition = CmmAppVideoApi.getTime(_this.getVideoContainerId());
                            // define the parameters for the player
                            var params = {
                                destId:'fpContainer'+_this._articleVideoContainerId,
                                noSplash: true,
                                is_no_ads: true
                            };
                            // check if there is a start position
                            if (typeof (currentPlayerPosition) == 'number' && currentPlayerPosition > 0) {
                                params.seek = currentPlayerPosition;
                            }
                            // load the player instance to the right place in the article
                            CmmAppVideoApi.loadPlayer('article', _this.getCurrentPlayingVideo().videoId, 408, 329, params);
                        } 
                    });
                }
            };
            // Init the html that doesn't change between player instances
            HomepagePlayer.prototype.initStaticPlayerHtml = function(){
                this.initBasicStructure();
                this.initHeader();
            };
            // Init the html that changes between player instances, like the footer thumbnails
            HomepagePlayer.prototype.initDynamicPlayerHtml = function(videoData){
                this.initFooter(videoData);
            };
            HomepagePlayer.prototype.initBasicStructure = function(){
                var _this = this;
                var res = [];
                res.push('<div id="hp_player_lightbox" ' + (this.isMotorolaDesign ? 'class="hp_player_lightbox_motorolla"' : '') + '>');
                    if (this.isMotorolaDesign) {
                        res.push('<img src="/images/hp_player_lightbox_top.png" height="78" />');
                    }
                    res.push('<div id="hp_player_video_header"></div>');
                    res.push('<div id="hp_player_video_container_wrap">');
                        res.push('<div id="'+this.getVideoContainerId()+'"><div class="' + this.videoContainerId + '"></div></div>');
                        res.push('<div id="'+this.externalVideoContainerId+'"></div>');
                    res.push('</div>');
                    res.push('<div id="hp_player_video_footer"><div id="hp_player_video_footer_inner"></div></div>');
                res.push('</div>');
                this.lightBox.html(res.join(''));
                this.lb = yq('#hp_player_lightbox');
                
                this.lb.find('div.hp_player_thumbnail').live('click', function() {
                    _this.play.call(HPPlayer.currentPlayer, yq(this).attr('data-artpl-itemid') );
                }).live('mouseenter', function() {
                    _this.enlargeThumbnail.call(HPPlayer.currentPlayer, this);
                }).live('mouseleave', function() {
                    _this.resetThumbnail.call(HPPlayer.currentPlayer, this);
                });
            };
            HomepagePlayer.prototype.getVideoContainerId = function(){
                return this.videoContainerId + HPPlayer.getVideoConainerIndex();
            };
            HomepagePlayer.prototype.initHeader = function(){
                var _this = this;
                var res = [];
                res.push('<div class="hp_player_video_header_p">');
                    res.push('<div class="hp_player_floatr hp_player_video_header_title_wrap">');
                        res.push('<span class="hp_player_video_header_title"></span>');
                        res.push('&nbsp;<span class="hp_player_full_article"></span>');
                    res.push('</div>');
                    res.push('<div class="hp_player_floatl hp_player_video_close hp_player_pointer">');
                        res.push('<img class="hp_player_floatl" src="/images/hp_player_close.gif" />');
                        res.push('<span class="hp_player_floatl" >סגור</span>');
                        res.push('<img class="hp_player_floatl hp_minimize_player" src="/images/hp_player_minimize.gif" style="margin-left:10px;" />');
                        res.push('<span class="hp_player_floatl hp_minimize_player" >מזער</span>');
                    res.push('</div>');
                res.push('</div>');
                
                this.lb.find('#hp_player_video_header').html(res.join(''));
                this.lb.find('#hp_player_video_header .hp_player_video_close').click(function(e){
                    _this.closePlayer();
                });
            };
            
            HomepagePlayer.prototype.closePlayer = function(){
                this.lightBox.hide();
                this.explorerFix();
                yq('#'+this.getVideoContainerId()).css({visibility:'hidden'});
            };
            
            HomepagePlayer.prototype.initFooter = function(videoData){
                var _this = this;

                var res = [];
                res.push('<div id="hp_player_thumbnails">');
                var videos_length = _this.videos.length;
                for (var i = 0; i < videos_length; i++) {
                    var video = this.getVideoByIndex(i);
                    if (!video) {
                        continue;
                    }
                    res.push(this.addVideoToFooter(i, video, (i != videoData.index), 'returnHtmlOnly'))
                };
                res.push('</div>');
                
                if (!this.hideFooter) {
                    this.lb.find('#hp_player_video_footer').show().find('#hp_player_video_footer_inner').html(res.join(''));
                } else {    
                    this.lb.find('#hp_player_video_footer').hide();
                }
            };
            
            HomepagePlayer.prototype.addVideos = function(videos, index){
                if (index != undefined) {
                    if (!videos.length) {
                        videos.index = index;
                        this.videos[index] = videos;    
                    }
                } else {
                    for (var index = 0; index < videos.length; index++) {
                        videos[index].index = this.videos.length;
                        this.videos.push(videos[index]);
                    }
                }
            };
            
            // one video Thumb image
            // if 'returnHtml' is not defined, the HTML will be appended to the footer
            // otherwise, the HTML string will be returned.
            HomepagePlayer.prototype.addVideoToFooter = function(index, video, isShadeOn, returnHtml){
                // check the video parameter
                if (typeof(video) != 'object') return;
                
                // check the index 
                var footerJqObj = yq('#hp_player_thumbnails');
                if (typeof(index) == 'string' && index == 'append') {
                    // redefine the index with the last index number +1
                    index = this.getTotalVideosNum();
                    video.index = index;
                }
                
                var htmlStr = this._getFooterHtml(index, video, isShadeOn);
                if (!returnHtml) {
                    // append the thumb to the footer and to the video object
                    this.videos.push(video);
                    footerJqObj.append(yq(htmlStr));
                } else {
                    return htmlStr;
                }
            };
            
            HomepagePlayer.prototype._getFooterHtml = function(index, video, isShadeOn) {
                // define the title for the video // Unescaping is performed due to article-textArea limitations
                var title = typeof(video.title) != 'undefined' ? this.unHtmlescape(video.title) : '';
                title = title.length > 19 ? title.substr(0,18) + '...' : title;
                
                var htmlStr = [
                '<div class="hp_player_pointer hp_player_floatl_ hp_player_thumbnail" data-artpl-itemid="',index,'">',
                    '<div class="hp_player_thumbnail_img">',
                        '<img src="',video.imagePath,'" style="display:block;zoom:1;" border=0>',
                        '<div class="hp_player_thumbnail_overlay">',this.htmlescape(title),'</div>',
                        '<div class="hp_player_thumbnail_shade ',(isShadeOn ? 'hp_player_thumbnail_shade_on' : ''),'"></div>',
                    '</div>',
                '</div>'].join('');
                
                if(index < 7 - 1) {
                    var first = (index == 0) ? 'hp_player_thumbnail_separator_first' : '';
                    htmlStr += '<div class="hp_player_thumbnail_separator '+first+'"></div>';
                };
                
                return htmlStr;
            };
            
            HomepagePlayer.prototype.enlargeThumbnail = function(thumbnail){
                thumbnail = yq(thumbnail);
                var img = thumbnail.find('.hp_player_thumbnail_img');
                var overlay = img.find('.hp_player_thumbnail_overlay');
                var shade = thumbnail.find('.hp_player_thumbnail_shade_on');
                
                if (true) {
                    var animate = 'css';
                    var fadeIn = 'show';
                    var fadeOut = 'hide';
                    var duration = undefined;
                } else {
                    var animate = 'animate';
                    var fadeIn = 'fadeIn';
                    var fadeOut = 'fadeOut';
                    var duration = 200;
                }
                
                // Give a higher z-index to current thumbnail
                thumbnail.css('z-index', 10);
                
                // Undim the thumbnail
                shade.hide();
                
                // Show the text overlay
                overlay.stop(true)[animate]({
                    top: -20
                }, duration);
                
                // Draw border
                img.addClass('hp_player_thumbnail_enlarged');
                
                // Enlarge the thumbnail
                img[animate]({
                    width: 120,
                    height: 90,
                    top: -((90 - 65) / 2),
                    right: -((120 - 87) / 2)
                }, 150);
            };
            HomepagePlayer.prototype.resetThumbnail = function(thumbnail){
                thumbnail = yq(thumbnail);
                var img = yq(thumbnail).find('.hp_player_thumbnail_img');
                var overlay = img.find('.hp_player_thumbnail_overlay');
                var shade = thumbnail.find('.hp_player_thumbnail_shade_on');
                
                if(true) {
                    var animate = 'css';
                    var fadeIn = 'show';
                    var fadeOut = 'hide';
                    var duration = undefined;
                } else {
                    var animate = 'animate';
                    var fadeIn = 'fadeIn';
                    var fadeOut = 'fadeOut';
                    var duration = 200;
                }
                
                // Hide the text overlay
                overlay.stop(true)[animate]({
                    top: 0
                }, duration);
                
                // Shrink the thumbnail
                img.css({
                    width: 87,
                    height: 65,
                    top: 0,
                    right: 0
                });
                
                // Dim the thumbnail
                shade.css('filter', 'alpha(opacity=70.0)')[fadeIn]();
                
                // Remove border
                img.removeClass('hp_player_thumbnail_enlarged');
                
                // Reset z-index
                thumbnail.css('z-index', 1);
            };
            HomepagePlayer.prototype.animateThumbnailIe = function(target, duration, callback){
                this.css(target);
                if(typeof callback == 'function'){callback()};
            };
            /********************************************************/
            
            /*************** LightBox object *****************/
            window.LightBox = function(params) {
                params = params || {};
                this.resize = params.resize;
                this.customContentClass = params.customContentClass;
                this.customContentTopHtml = params.customContentTopHtml;
                this.offsetY = params.offsetY || 0;
                
                this.init();
            };
            LightBox.prototype.init = function() {
                this.overlay = yq('<div id="ynet_lightbox_overlay"></div>');
                this.content = yq('<div id="ynet_lightbox_content" ' + (this.customContentClass ? 'class=' + this.customContentClass  : '') + '><div id="ynet_lightbox_content_top"></div><div id="ynet_lightbox_content_inner"></div></div>');
                this.contentInner = this.content.find('#ynet_lightbox_content_inner');
                
                yq('body').append(this.overlay);
                yq('body').append(this.content);
                
                var contentTop = this.content.find('#ynet_lightbox_content_top');
                if (this.customContentTopHtml) {
                    contentTop.html(this.customContentTopHtml);
                } else {
                    contentTop.hide();
                };
                
                if(document.all){
                    this.overlay.css({
                        'position': 'absolute'
                    });
                    this.content.css({
                        'position': 'absolute'
                    });
                };
                
                var _this = this;
                yq(window)
                    .resize(function(){_this.updatePosition();})
                    .scroll(function(){_this.updatePosition();});
            };
            LightBox.prototype.show = function(videoHeight, onAfterShow) {
                var _this = this;
                if (typeof(window.pageRefreshDisable)=='function'){

                    window.pageRefreshDisable();
                };
                // hide all iframes to prevent flash objects from showing through
                yq('iframe').css('visibility', 'hidden');
                
                // External reszie function makes the necessary adjustements so the lightbox fits the screen
                if(typeof this.resize == 'function'){this.resize(this.getOverflow(), videoHeight);};
                
                // Update lightbox position according to lightbox and window size
                this.updatePosition();
                
                // Show the lightbox
                this.overlay.css('filter', 'alpha(opacity=70)').fadeIn(function(){
                    setTimeout(function(){
                        _this.content.fadeIn('slow',function(){
                            if(typeof onAfterShow == 'function'){onAfterShow();};
                        });
                    }, 200);
                });
                
                return this;
            };
            LightBox.prototype.hide = function(callback) {
                if (typeof(window.pageRefreshEnable)=='function'){
                    window.pageRefreshEnable();
                };
                
                this.content.hide();
                this.overlay.fadeOut('slow');
                
                // bring iframes back
                yq('iframe').css('visibility', 'visible');
                
                if(typeof callback == 'function'){callback();};
                
                return this;
            };
            LightBox.prototype.html = function(html) {
                this.contentInner.html(html);
                this.fullHeight = this.content.height();
                
                return this;
            };
            LightBox.prototype.visible = function() {
                return this.content.is(':visible');
            };
            LightBox.prototype.updatePosition = function() {
                var position = this.getPosition();
                this.content.css({
                    'left': position.left + 'px',
                    'top': position.top + 'px'
                });
                this.overlay.css({
                    'margin-top': position.marginTop + 'px'
                });
                if(document.all){
                    this.overlay.height(yq(window).height());
                };
            };
            LightBox.prototype.getPosition = function() {
                var w = yq(window);
                var left = (w.width() / 2) - (this.content.width() / 2);
                var top = (w.height() / 2) - (this.content.height() / 2);

                var marginTop = 0;
                if(document.all){
                    top += document.body.scrollTop;
                    marginTop = document.body.scrollTop;
                };
                
                top +=  this.offsetY;
                
                return {
                    left: left,
                    top: top > 0 ? top : 0,
                    marginTop: marginTop
                };
            };
            LightBox.prototype.getOverflow = function(videoData){
                var heightOverflow = this.fullHeight - yq(window).height();
                return heightOverflow > 0? heightOverflow : 0;
            };
            /********************************************************/
            if (typeof openWin != 'function' || typeof openInnewWindow != 'function') {
                window.MSIE_VER = function() {agt=navigator.userAgent.toLowerCase();pos=agt.indexOf('msie')+1;if(pos)return agt.charAt(pos+4);return 0};
                window.openWin = function(url,title,attrib) {wref=window.open(url,title,attrib);if(MSIE_VER()>=5)wref.focus()};
                window.openInnewWindow = function(url,width,height,toolbar) {if(toolbar==1) {openWin(url,'Ynet','toolbar=yes,location=yes,directories=yes,status=yes,menubar=yes,scrollbars=yes,resizable=yes,width='+width+',height='+height)} else {openWin(url,'Ynet','toolbar=no,location=no,directories=no,status=yes,menubar=no,scrollbars=no,movable=yes,resizable=yes,width='+width+',height='+height)}};
            };
        
            })();
        </script><script type='text/javascript'>(function(){

yq(function(){HPPlayer.players.addPlayer(new HomepagePlayer(1, [{"title":"קלינטון הבטיחה את מועמדותה לנשיאות ארה"ב מטעם המפלגה הדמוקרטית","subTitle":"סוכנות AP פרסמה כי קלינטון השיגה את כל 2,383 הצירים הנדרשים כדי להפוך למתמודדת מטעם המפלגה הדמוקרטית לנשיאות. הילרי, האישה הראשונה שמועמדת מטעם אחת המפלגות הגדולות, תתמודד מול טראמפ בנובמבר. אחרי ההכרזה אמרה: "אנחנו על סף רגע היסטורי"","videoId":"137793","articleId":"4812830","imagePath":"/PicServer4/2016/06/02/7045503/str.jpg","type":"0","externalBroadcastIframe":"","hasArticle":"","videoLink":"http://www.ynet.co.il/articles/0,7340,4812830,00.html"}], null, {isMotorolaDesign : false}));});})();
// the function adds videos to the lightBox
// the parameter may contain vignette comment
function addVideosToLightBox(lightBoxInstance, JSONObj_Param) {
// check the parameter
if (!lightBoxInstance) {
return;
}
// evaluate the JSON Object
var JSONObj = null;
if (typeof(JSONObj_Param) == 'string') {
// remove the Vignette comment
JSONObj_Param = JSONObj_Param.replace(//g, '');
// evaluate the JSON object
JSONObj = eval(JSONObj_Param);
} else {
JSONObj = JSONObj_Param;
}
// add videos
if (JSONObj && (typeof(JSONObj) == 'array' || typeof(JSONObj) == 'object') && JSONObj.length > 0) {
for (var idx in JSONObj) {
lightBoxInstance.addVideoToFooter('append', JSONObj[idx], true);
}
}
}

            /** Runs callback with related videos from ajax or cache */
            HomepagePlayer.prototype._getRelatedVideos = function(videoId, channelId, callback) {
                if (!HPPlayer.relatedVideosCache) {
                    var newList = new Array();
                    var ajaxUrl = '/Ext/Comp/Video/ArticlesPlayer/CdaArticlePlayer_GetRelatedChannelVideos/0,13955,toReplace,00.html';
                    ajaxUrl = ajaxUrl.replace('toReplace', channelId + '');
                    yq.get(ajaxUrl, function(res) {
                        if (res.length == 0) return;
                        // make the results (res) as JSON obj.
                        res = res.replace(/<!--.*-->/g, '');
                        res = eval(res);
                        // check the results and remove the current video
                        var itemsCounter = 0;
                        if (res && res.length > 0) {
                            for (var idx in res) {
                                if (typeof(res[idx]) != 'object' && typeof(res[idx]) != 'array') {
                                    continue;
                                }
                                if (res[idx].videoId != videoId) {
                                    newList.push(res[idx]);
                                } else {
                                    continue;
                                }
                                // check that there are no more than 6 items
                                if (++itemsCounter >= 6) { break; }
                            }
                            if (newList.length > 0 && typeof(callback) === 'function') {
                                /** Cache successful ajax */
                                HPPlayer.relatedVideosCache = newList;
                                callback(HPPlayer.relatedVideosCache);
                            }
                        }
                    });
                } else if (HPPlayer.relatedVideosCache.length && typeof(callback) === 'function') {
                    callback(HPPlayer.relatedVideosCache);
                }
            };
            /** Plays video, loads related videos */
            HomepagePlayer.prototype._playTaboola = function(video, videoId, channelId) {
                if (video) {
                    /** Add video and immediately start playback */
                    HPPlayer.TaboolaPlayer.addVideos(video, 0);
                    HPPlayer.TaboolaPlayer.play(0);
                    /** Related videos are loaded only once */
                    if (!HPPlayer.TaboolaPlayer.loadedRelatedVideos) {
                        HPPlayer.TaboolaPlayer._getRelatedVideos(videoId, channelId, function(videosList) {
                            if (videosList && videosList.length) {
                                HPPlayer.TaboolaPlayer.addVideos(videosList);
                                for (var videosHtml = new Array(), i = 0, index = 1; i < videosList.length; i++, index++) {
                                    videosHtml.push(HPPlayer.TaboolaPlayer._getFooterHtml(index, videosList[i], true));
                                }
                                yq('#hp_player_thumbnails').append(videosHtml.join(''));
                                HPPlayer.TaboolaPlayer.loadedRelatedVideos = true;
                            }
                        });
                    }
                }
            };
            /** Initiates playback in ArticleLightbox or Taboola player according to playInitiator */
            function playVideoUsingLightbox(instanceId, videoId, channelId, playInitiator, articleVideoContainerId, type, liveUrl) {
                if (playInitiator === 'Taboola') {
                    /** Instanciate Taboola player */
                    if (!HPPlayer.TaboolaPlayer) {
                        HPPlayer.TaboolaPlayer = new HomepagePlayer(1, new Array(), playInitiator, {
                            isMotorolaDesign : false,
                            disableMinimize : true
                        });
                    }
                    /** Check whether selected video is already loaded */
                    if (!HPPlayer.videoCache[videoId]) {
                        var ajaxUrl = '/Cmn/App/Video/CmmAppVideoApi_AjaxItems/0,13776,toReplace,00.html'.replace('toReplace', [videoId, '--VideoChannel'].join(''));
                        yq.get(ajaxUrl, function(res) {
                            eval('var loadedVideo = '+res.replace(/<!--.*-->/g, ''));
                            var video = false;
                            if (loadedVideo) {
                                video = {
                                    articleId: loadedVideo.articleId,
                                    externalBroadcastIframe: '',
                                    hasArticle: '',
                                    imagePath: loadedVideo.articleImagePath,
                                    index: 0,
                                    subTitle: loadedVideo.articleSubTitle,
                                    title: loadedVideo.articleTitle,
                                    type: '0',
                                    videoId: videoId.toString(10),
                                    videoLink: loadedVideo.videoLink
                                };
                                HPPlayer.videoCache[videoId] = video;
                                HPPlayer.TaboolaPlayer._playTaboola(video, videoId, channelId);
                            }
                        });
                    } else {
                        HPPlayer.TaboolaPlayer._playTaboola(HPPlayer.videoCache[videoId], videoId, channelId);
                    }
                } else if (playInitiator === 'LiveTv') {
                    if (!HPPlayer.LivePlayer) {
                        HPPlayer.LivePlayer = new HomepagePlayer(instanceId, new Array(), playInitiator, {
                            isMotorolaDesign : false,
                            disableMinimize : false,
                            hideFooter : true,
                            videoHeight : 360
                        });
                    }
                    HPPlayer.LivePlayer.setContainerId('livePlayerInstance' + instanceId);
                    HPPlayer.LivePlayer.addVideos({
                            articleId: '',
                            externalBroadcastIframe: liveUrl,
                            hasArticle: '',
                            imagePath: '',
                            index: 0,
                            subTitle: '',
                            title: 'שידור חי',
                            type: 1,
                            videoId: null,
                            videoLink: null
                    }, 0);
                    HPPlayer.LivePlayer.play(0);
                    
                } else {
                    var playerInstance = null;
                    if (typeof(HPPlayer) != 'undefined' && typeof(HPPlayer.players) != 'undefined' && (playerInstance = HPPlayer.players.getPlayer(instanceId))) {
                        playerInstance.setContainerId(articleVideoContainerId);
                        playerInstance.play(0);
                        if (!playerInstance.loadedRelatedVideos) {
                            playerInstance._getRelatedVideos(videoId, channelId, function(videosList) {
                                if (videosList && videosList.length) {
                                    addVideosToLightBox(playerInstance, videosList);
                                    playerInstance.loadedRelatedVideos = true;
                                }
                            });
                        }
                    }
                }
            }
        </script><script type='text/javascript'>var playFirstArticleVideoFunc = function(){playLightboxVideo(1,137793, 2, 1, 1)};</script><BR>

 

 

 


</div>




<script>
function openYnetSms() {
 w=689;  h=598
 l=(screen.availWidth - w)/2;
 t=10
 props = 'scrollbars=yes,width='+w+',height='+h+',left='+l+',top='+t;
 window.open("http://my.ynet.co.il/sms",'ynetSmsWin',props)
}
</script>
<br><div class=text12 style='color:#FF0000'><a href='javascript:openYnetSms();' class=index style='color:#FF0000'><b>חדשות ב-SMS</b></a>
- עדכונים מחדר החדשות של ynet ישירות לסלולרי שלכם.
<br> 
    
<br><br>

<br><table cellspacing=0 width=100%><tr><td><font STYLE='font-size:12px; font-weight:bold; color:#000000;' lang=he>תגיות:</font>&nbsp;<a href=http://www.ynet.co.il/tags/ארה&quot;ב STYLE='font-size:12px;color:#000000;' lang=he>ארה&quot;ב</a> | <a href=http://www.ynet.co.il/tags/הילרי_קלינטון STYLE='font-size:12px;color:#000000;' lang=he>הילרי קלינטון</a> </td></tr></table>


<a href='JavaScript: history.go(-1)'  STYLE='font-size:12px; font-weight:normal; color:#6600FF;'>חזרה</a>
</td>
 
<object id='browser' width= 0  height=0 classid='CLSID:8856F961-340A-11D0-A96B-00C04FD705A2'></object>
dataLayer = [{'pageName': window.opener.dataLayer[0].pageName+'-Print'}];
(Unsupported //www.googletagmanager.com/ns.html?id=GTM-T6Q59G)
(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start': new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0], j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src= '//www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f); })(window,document,'script','dataLayer','GTM-T6Q59G');

FFFF99
CCCCCC
FFFFFF
ynet
f00
00f
fff
spam
D4EDEC
a5a5a5
8 years ago
noaommerrr55
$ 0.000
1
H2
H3
H4
3 columns
2 columns
1 column
Join the conversation now
Logo
Center