Tuesday, August 20, 2013

Snapper proposal not controversial – Guy - 3News NZ

Tuesday 20 Aug 2013 6:18p.m.

"); jQuery("#mwbanner_td").prepend(""); jQuery("#companion760overlay").hide(); */ }); //Functions function replaceChars(string){ string = string.replace(/'/g, ""); //string = string.replace(/ /g, "-") string =string.toLowerCase(); return string; } var ord=Math.random()*10000000000000000; var flashAID="";//the article id var pauseFrom="adverts";//variable to handle players current state of interaction var adbreak="";//toggleable var for adserving var ispad=""; var streamer="";//main streamer var streamerHLS="";//hls streamer var streamerRTSP=""; //rtsp var iospath=""; var device="desktop";//default this and chage if needed later var articleID="309819"; var deviceAgent = navigator.userAgent.toLowerCase(); var agentID = deviceAgent.match(/(iphone|ipod|ipad)/); var isAndroid = deviceAgent.indexOf("android") > -1; //&& ua.indexOf("mobile"); var hitEvent = (agentID) ? "touchend" : "click";//change the click type for touchscreen var nav = navigator.userAgent.indexOf('Safari'); var canplay="false";//set as true then deactivate later if((agentID)||(isAndroid)){ device="mobile"; } var flyoverInterval = new Object();//make globalVars object to reference vars later var midrollCounter="0"; var midrollBreak=""; var currentPlayerPosition="0"; /************************************************************/ var path = window.location.hostname; sect1=sect; sect2=genre; //sect2="technology"; sect3=show; sect4=""; sect5=""; sect6=""; var site=sect1.toLowerCase();//grab the current video player site var domain = "3news.co.nz";//for adserving and stats var videoFolder = "3news";// application instance var geo= "New Video"; var titleForNNR =replaceChars("Snapper proposal not controversial – Guy"); var tagsForRelated=replaceChars("John Key,fishing,david shearer,snapper,"); var catsForNNR=replaceChars("News,Features,Homepage,Top Stories,Video Email,NM_Environment/Sci,Latest environment/sci news,Wildlife,News-Politics,Latest politics news,New Zealand,_Apps,Video,6news,"); var cats=replaceChars("cats=News;cats=Features;cats=Homepage;cats=Top Stories;cats=Video Email;cats=NM_Environment/Sci;cats=Latest environment/sci news;cats=Wildlife;cats=News-Politics;cats=Latest politics news;cats=New Zealand;cats=_Apps;cats=Video;cats=6news;"); var tags=replaceChars("tags=John Key;tags=fishing;tags=david shearer;tags=snapper;"); var wheretrep = wheret.replace("\/",""); //used to get current page path for netratings var youtube=""; //midrolls var midRollString = ""; if(midRollString==""){ midRollString="99:99:99"; } var postRollString="00:"; var video ="/news/20130820/6n_snapper_200813"; //location of file var videoCheck ="/news/20130820/6n_snapper_200813"; //location of file var videoOrig ="/news/20130820/6n_snapper_200813"; //location of file for prog (clean) var imagePlaceholder="http://cdn.3news.co.nz/3news/AM/2013/8/20/309819/Nathan Guy MPI.JPG"; var videoDate = new Date("2013/08/20");// date check for 700K crossover var videoDateh264 = new Date("2013/08/20");// date check for h264 crossover var youtube =""; var videoOrAudio=""; var os=""; var mp3=""; var type="";//mp4 or flv var flashPath="";//main file usually 700k var flashPath330="";//330k version var netRatingsContentGroup =""; var oupage=""; if(sect1=="video"){ oupage=genre; } else{ oupage=sect; } var ou = "http%3A//www.3news.co.nz/video/"+oupage; ou = ou.replace(/ /g, ""); ou = ou.toLowerCase(); //changeable player variables to suit each website var relatedMRSS="http://www.3news.co.nz/DesktopModules/Article%20Presentation/External.aspx?tabid=363&moduleid=18554&videoOnly=1&numbertoshow=6&keyword="+tagsForRelated+""; var playerTarget="flashPlayerDisp"; var companion760 ="companion760"; var companion728 ="companion728"; var companion470 ="companion2"; var playerWidth="620"; var playerHeight="378"; var playerWidthHTML5="620"; var playerHeightHTML5="368";// alittle smaller because HTML5 overlays controls function topNewsScroller(){}; function syncRoadBlock(id, content, type, clickthrough, width, height) { var companion = "false";//set this false so we can toggle further down thirdparty ="false"; var content = content;//spit out the ad response so it can be used further down var strPos = content.search(/dc_seed/i);//looking for companion DC_SEED - not in use strPos = strPos+8;//its 8 characters long - look out for future 9 characters var str2 = content.substring(strPos, strPos+9);//crab the id back var targetid=""; //if the companion string contains 760x120 then override the target id just incase if( (content.indexOf("760x120") !== -1)|| (content.indexOf('width="760"')!== -1)|| (content.indexOf('width:760px;height:120px')!== -1)) { if(adbreak=="midrolls"){ showCompaionOverlayAds(); targetid=companion760overlay; } else{ targetid=companion760; } companion="true"; } if( (content.indexOf("470x60") !== -1)|| (content.indexOf('width="470"')!== -1)|| (content.indexOf('width:470px;height:60px')!== -1)) { companion="true"; targetid=companion470; } if(content.indexOf("thirdparty") !== -1){ content = content.replace("

",""); content = content.replace("

",""); thirdparty ="true"; //document.getElementById('ad_banner').innerHTML = ''; } content = content.replace(/(\r\n|\n|\r)/gm,"");//strip out new lines incase they are affecting re-write //if the companion strings is one of our s if(companion=="true"){ //only if there is a main companion banner if (type == "StaticResource") { document.getElementById(targetid).innerHTML = ""; } else if (type == "HTMLResource") { if(thirdparty=="true"){ jQuery("#"+targetid).writeCapture().html('
jika diwebsite ini anda menemukan artikel dengan informasi dan konten yang salah, tidak akurat, bersifat menyesatkan, bersifat memfitnah, bersifat asusila, mengandung pornografi, bersifat diskriminasi atau rasis mohon untuk berkenan menghubungi kami di sini agar segera kami hapus.
◄ Newer Post Older Post ►

© KAWUNGANTEN.COM Powered by Blogger