document.write('
'); document.write(''); document.write('
'); document.write(''); document.write('
'); document.write('previousnext

'); document.write(''); document.write('
'); document.write(''); document.write('Video title
'); document.write('
'); document.write(''); document.write('Video title

'); document.write('
'); document.write('
'); document.write('
'); document.write('
'); document.write(''); document.write('
'); document.write('
'); document.write('
'); document.write(''); var curVideoID; var xmlHttp = false; var curSet = 1; //first set of videos var lastSet = 3; // var videolist = new Array(3); var videotype = new Array(3); var curvideo = 0; videotype[0] =2; videotype[1] =2; videotype[2] =2; LoadFirstSet(); function LoadFirstSet() { var jsonxmlHttp = false; var jsonvideo=""; // videofile= { "NewDataSet": { "VideoFile": [ {"Short_Description": "Join IsobarTV\\u0027s hosts, Valerie and Carl, as they introduce creative and business trends at this year\\u0027s Cannes Lions Advertising Festival.", "ThumbnailFile": "Cannes-small.jpg", "Video_Title": "Cannes coverage 2008: day 1", "VideoFile_ID": "195", "VideoTitle_RefID": "day1_25_578515", "VideoType": "2" }, {"Short_Description": "Lotame takes the time to share and review engagement data with each of our advertisers, agencies and publishers.", "ThumbnailFile": "Scott_500x500.jpg", "Video_Title": "Interpreting engagement data", "VideoFile_ID": "194", "VideoTitle_RefID": "Scott_IntrpData_RTfinal_45_9942017", "VideoType": "2" }, {"Short_Description": "Our advanced reporting system allows clients to see how people within social media who exhibit a certain behavior interact with other elements of the site.", "ThumbnailFile": "Jeremy_500x500.jpg", "Video_Title": "Engagement measurement", "VideoFile_ID": "193", "VideoTitle_RefID": "Lotame_Vid2_Jeremy_Frequency_45_101217", "VideoType": "1" }, {"Short_Description": "Take a look at some of this year\\u0027s Cyber Awards winners with IsobarTV\\u0027s hosts.", "ThumbnailFile": "iMC_stillSmall_IsobarTVep4_063008.jpg", "Video_Title": "Cannes coverage 2008: day 4", "VideoFile_ID": "198", "VideoTitle_RefID": "day4_25_4112516", "VideoType": "2" }, {"Short_Description": "Lotame\\u0027s Crowd Control technology allows our clients to reach the most targeted audience in a safer and more effective manner than ever before.", "ThumbnailFile": "Adam_500x500.jpg", "Video_Title": "Reach engaged individuals", "VideoFile_ID": "191", "VideoTitle_RefID": "Lotame_Vid2_Adam_Speak to billions_45_7023223", "VideoType": "1" }, {"Short_Description": "Lotame\\u0027s Crowd Control technology uses a three-pronged approach that lets us identify key influencers, tackle frequency issues and even target individual user sessions.", "ThumbnailFile": "Jeremy_500x500.jpg", "Video_Title": "Target using the latest engagement metrics", "VideoFile_ID": "190", "VideoTitle_RefID": "Lotame_Vid2_Jeremy_CrowdControl_45_4362423", "VideoType": "2" }, {"Short_Description": "At Lotame, we help our partners understand how people engage with social networks and accurately identify behaviors that will drive ad response.", "ThumbnailFile": "Scott_500x500.jpg", "Video_Title": "Monetize with intelligence", "VideoFile_ID": "189", "VideoTitle_RefID": "Lotame_Vid1_Scott_Social media_45_921823", "VideoType": "2" }, {"Short_Description": "Adify executives and employees share their thoughts -- mashup style -- about the proliferation of sites and what advertisers\\/agencies can do to reach their target audiences.", "ThumbnailFile": "Internet Fragmentation_Mashup_90x68.jpg", "Video_Title": "Internet fragmentation wreaks havoc!", "VideoFile_ID": "188", "VideoTitle_RefID": "Internet Fragmentation Mashup_31_920115", "VideoType": "2" }, {"Short_Description": "Lotame understands to leverage the conversation between the individuals who actively participate and the publishers and advertisers all while the users interests are in mind.", "ThumbnailFile": "Andy_100x100.jpg", "Video_Title": "Three way conversation", "VideoFile_ID": "187", "VideoTitle_RefID": "Lotame_Vid1_Andy_3 part conversation_45_6253916", "VideoType": "2" } ] }}; lastSet = videofile.NewDataSet.VideoFile.length/3; for (var i=0; i< 3; i++) { if(i == 0) { document.getElementById("imgage1").src = "http://www.imediaconnection.com/spot/images/" + videofile.NewDataSet.VideoFile[0].ThumbnailFile; videolist[0] =videofile.NewDataSet.VideoFile[i].VideoFile_ID; videotype[0] = videofile.NewDataSet.VideoFile[i].VideoType; } if (i==1) { document.getElementById("imgage2").src = "http://www.imediaconnection.com/spot/images/" + videofile.NewDataSet.VideoFile[i].ThumbnailFile; videolist[1] =videofile.NewDataSet.VideoFile[i].VideoFile_ID; videotype[1] = videofile.NewDataSet.VideoFile[i].VideoType; } if (i == 2) { document.getElementById("imgage3").src = "http://www.imediaconnection.com/spot/images/" + videofile.NewDataSet.VideoFile[i].ThumbnailFile; videolist[2] =videofile.NewDataSet.VideoFile[i].VideoFile_ID; videotype[2] = videofile.NewDataSet.VideoFile[i].VideoType; } } getVideo(videolist[0], videotype[0]); showactive(1); } function clearnSelect() { document.getElementById ("video1").className ="video-icon"; document.getElementById ("video2").className ="video-icon"; document.getElementById ("video3").className ="video-icon"; } function showactive(seq) { document.getElementById ("video" + seq).className ="video-icon-active"; getVideo(videolist[seq-1], videotype[seq-1]) if (seq==1) { document.getElementById ("video2").className ="video-icon"; document.getElementById ("video3").className ="video-icon"; if (videotype[seq-1] == 2) document.getElementById("ispotlogo").innerHTML="iMedia Spot(this is a paid video)" else document.getElementById("ispotlogo").innerHTML=" "; curvideo =0; } if (seq==2) { document.getElementById ("video1").className ="video-icon"; document.getElementById ("video3").className ="video-icon"; if (videotype[seq-1] == 2) document.getElementById("ispotlogo").innerHTML="iMedia Spot(this is a paid video)" else document.getElementById("ispotlogo").innerHTML=" "; curvideo =1; } if (seq==3) { document.getElementById ("video2").className ="video-icon"; document.getElementById ("video1").className ="video-icon"; if (videotype[seq-1] == 2) document.getElementById("ispotlogo").innerHTML="iMedia Spot(this is a paid video)" else document.getElementById("ispotlogo").innerHTML=" "; curvideo =2; } } function showvideo(seq) { var type = videotype[seq-1]; var id = videolist[seq-1]; window.location = "http://www.imediaconnection.com/videoredirect.aspx?VideoID=" + id + "&type=" + type; } function ShowCurrentVideo() { var type = videotype[curvideo]; var id = videolist[curvideo]; window.location = "http://www.imediaconnection.com/videoredirect.aspx?VideoID=" + id + "&type=" + type; } function GetNextSet() { var startseq = 0; startseq = 1 + curSet*3; curSet = curSet + 1; var videoid; clearnSelect(); document.getElementById("GetPrevious").src="/images/btn_video_previous.gif"; if (curSet > lastSet) { curSet = lastSet return; } if (curSet == lastSet) { document.getElementById("GetNext").src="/images/btn_video_next_soft.gif"; } else document.getElementById("GetNext").src="/images/btn_video_next.gif"; //lastSet = videofile.NewDataSet.VideoFile.length/3; for (var i=0; i< videofile.NewDataSet.VideoFile.length; i++) { if(i == startseq-1) { document.getElementById("imgage1").src = "http://www.imediaconnection.com/spot/images/" + videofile.NewDataSet.VideoFile[i].ThumbnailFile; videolist[0] =videofile.NewDataSet.VideoFile[i].VideoFile_ID; videotype[0] = videofile.NewDataSet.VideoFile[i].VideoType; } if (i==startseq) { document.getElementById("imgage2").src = "http://www.imediaconnection.com/spot/images/" + videofile.NewDataSet.VideoFile[i].ThumbnailFile; videolist[1] =videofile.NewDataSet.VideoFile[i].VideoFile_ID; videotype[1] = videofile.NewDataSet.VideoFile[i].VideoType; } if (i == startseq+1) { document.getElementById("imgage3").src = "http://www.imediaconnection.com/spot/images/" + videofile.NewDataSet.VideoFile[i].ThumbnailFile; videolist[2] =videofile.NewDataSet.VideoFile[i].VideoFile_ID; videotype[2] = videofile.NewDataSet.VideoFile[i].VideoType; } } getVideo(videolist[0], videotype[0]); showactive(1); } function GetPreviousSet() { var startseq = 1; clearnSelect(); var videoid; if (curSet == 1) return; if (curSet !=1) { startseq = (curSet-1)*3 - 3; curSet = curSet - 1; } if (curSet == 1) document.getElementById("GetPrevious").src="/images/btn_video_previous_soft.gif"; else document.getElementById("GetPrevious").src="/images/btn_video_previous.gif"; document.getElementById("GetNext").src="/images/btn_video_next.gif"; for (var i=0; i< videofile.NewDataSet.VideoFile.length; i++) { if(i == startseq) { document.getElementById("imgage1").src = "http://www.imediaconnection.com/spot/images/" + videofile.NewDataSet.VideoFile[i].ThumbnailFile; videolist[0] =videofile.NewDataSet.VideoFile[i].VideoFile_ID; videotype[0] = videofile.NewDataSet.VideoFile[i].VideoType; } if (i==startseq +1) { document.getElementById("imgage2").src = "http://www.imediaconnection.com/spot/images/" + videofile.NewDataSet.VideoFile[i].ThumbnailFile; videolist[1] =videofile.NewDataSet.VideoFile[i].VideoFile_ID; videotype[1] = videofile.NewDataSet.VideoFile[i].VideoType; } if (i == startseq+2) { document.getElementById("imgage3").src = "http://www.imediaconnection.com/spot/images/" + videofile.NewDataSet.VideoFile[i].ThumbnailFile; videolist[2] =videofile.NewDataSet.VideoFile[i].VideoFile_ID; videotype[2] = videofile.NewDataSet.VideoFile[i].VideoType; } } getVideo(videolist[0], videotype[0]); showactive(1); } function getVideo(videoID, videoType) { try{ xmlHttp = new XMLHttpRequest(); } catch(trymicrosoft){ try{ xmlHttp = new ActiveXObject("Msxml2.XMLHTTP"); } catch(othermicrosoft){ try{ xmlHttp = new ActiveXObject("Microsoft.XMLHTTP"); } catch(failed){ xmlHttp = false; } } } if(!xmlHttp) { alert('Browser does not support HTTP Request') return } var url="/spot/GetVideoDetail.aspx" url=url+"?videoID=" + videoID + "&typeID="+ videoType xmlHttp.onreadystatechange=statesChanged xmlHttp.open("GET",url,true) xmlHttp.send(null) } function handleOut() { //document.getElementById ("videoteaser").innerHTML = ""; } function WatchVideo () { alert("sss"); } function ShowDetail (videoID, typeID) { alert ("dsfsfsdf"); } function statesChanged() { if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete") { var videoinfo = xmlHttp.responseText; var pos = videoinfo.indexOf("@"); var title = videoinfo.substring(0, pos); var teaser = videoinfo.substring(pos+1); if (teaser.length > 130) { teaser = teaser.substring(0, 130); teaser = teaser.substring(0, teaser.lastIndexOf(" ")); teaser = teaser + "..."; } document.getElementById("videoteaser").innerHTML = trimAll(teaser); document.getElementById("videotitle").innerHTML = "" + trimAll(title) +""; } } function trimAll(sString) { while (sString.substring(0,1) == ' ') { sString = sString.substring(1, sString.length); } while (sString.substring(sString.length-1, sString.length) == ' ') { sString = sString.substring(0,sString.length-1); } return sString; }