1//configuration 2OAS_url = 'http://clips.com/RealMedia/ads/'; 3 4var hostName = window.location.host; 5if ( hostName.indexOf('.local') > -1 || hostName.indexOf('stage.') > -1 || hostName.indexOf('static2.') > -1 ) { 6 hostName = 'clips.com'; 7} 8 9var pathName = window.location.pathname; 10 11var regex = /[^a-zA-Z0-9\/.\-]/ig; 12var body = decodeURIComponent(pathName); 13var pathName = body.replace(regex, ""); 14 15if ( OAS_pathname ) { 16 pathName = OAS_pathname; 17} 18 19var pathLength = pathName.length; 20var lastChar = pathName.charAt(pathLength-1); 21var OAS_sitepage = hostName + pathName; 22 23if (OAS_sitepage.indexOf('home') < 0) { 24 OAS_sitepage = OAS_sitepage + (OAS_sitepage.charAt(OAS_sitepage.length - 1) === '/' ? '':'/') + 'home'; 25} 26 27if ( typeof OAS_listpos === 'undefined' ) { 28 OAS_listpos = 'skin_background,x728-a,x728-b,x300-a,x300-b,x88x31-a,interstitial'; 29} 30 31OAS_query = 'half_page=1'; 32 33OAS_target = '_top'; 34//TODO: REWRITE AND REMOVE DOCUMENT.WRITE STATEMENTS 35OAS_version = 10; 36OAS_rn = '001234567890'; OAS_rns = '1234567890'; 37OAS_rn = new String (Math.random()); OAS_rns = OAS_rn.substring (2, 11); 38 39// 40OAS_rns = '494552392'; 41 42function OAS_NORMAL(pos) {
43 // document.write('<a href="' + OAS_url + 'click_nx.ads/' + OAS_sitepage + '/1' + OAS_rns + '@' + OAS_listpos + '!' + pos + '?' + OAS_query + '" TARGET=' + OAS_target + '>'); 44 document.write(''); 45 // document.write('<IMG SRC="' + OAS_url + 'adstream_nx.ads/' + OAS_sitepage + '/1' + OAS_rns + '@' + OAS_listpos + '!' + pos + '?' + OAS_query + '" border="0"></a>'); 46 document.write(' '); 47} 48 49OAS_version = 11; 50if (navigator.userAgent.indexOf('Mozilla/3') !=-1 || navigator.userAgent.indexOf('Mozilla/4.0 WebTV') != -1) 51 OAS_version = 10; 52if (OAS_version >= 11) 53 // document.write('<script type="text/javascript" SRC="' + OAS_url + 'adstream_mjx.ads/' + OAS_sitepage + '/1' + OAS_rns + '@' + OAS_listpos + '?' + OAS_query + '"><\/script>');//--> 54 document.write(''); 55 56 57function OAS_AD(pos) { 58 if (OAS_version >= 11) 59 try { 60 OAS_RICH(pos); 61 } catch(e) { 62 OAS_NORMAL(pos); 63 } 64 else 65 OAS_NORMAL(pos); 66} 67 68var varFlashURL = OAS_url + 'adstream_sx.ads/' + OAS_sitepage; 69var tempFlashURL = varFlashURL; 70 71chr_cnt = varFlashURL.length; 72if( varFlashURL.substr( chr_cnt, 1 ) != '/' ) 73 tempFlashURL = varFlashURL = varFlashURL + '/'; 74 75varFlashURL = varFlashURL + OAS_rns + '@video_ad'; 76 77varFlashURLPost = tempFlashURL + OAS_rns + '@video_ad_postrol'; 78 79 80function loadAdSkinBackground() { 81 $('body').css({"background-color":adBackgroundColor,"background-image":backgroundImageSrc}).prepend('<a id="skin_background" href="'+ bgrnd_skin_linkTarget+'"> </a>'); 82 // $.getDocHeight = function(){ 83 // return Math.max( 84 // $(document).height(), 85 // $(window).height(), 86 // document.documentElement.clientHeight 87 // ); 88 // }; 89 var bgrnd_link_height = $.getDocHeight; 90 $("#skin_background").css({"background-color":adBackgroundColor,"background-image":backgroundImageSrc/*,"height":bgrnd_link_height*/}); 91}
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.