function loadXMLDoc(a){xmlhttp=null;if(window.XMLHttpRequest)xmlhttp=new XMLHttpRequest;else if(window.ActiveXObject)xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");if(xmlhttp!=null){xmlhttp.onreadystatechange=onResponse;xmlhttp.open("GET",a,true);xmlhttp.send(null)};}function checkReadyState(a){if(a.readyState==4)if(a.status==200)return true;}function onResponse(){var d="c=vcq&amp;vcq=Search.aspx%3Fq=",c="'});",b="c=vcq&amp;vcq=RandomVideo.aspx%3Fmk=",a="videos",sResponse="",sCommand="";if(checkReadyState(xmlhttp)){sResponse=xmlhttp.responseText.replace(/&gt;/g,">");sResponse=sResponse.replace(/&lt;/g,"<");if(window.ActiveXObject){try{var doc=new ActiveXObject("Microsoft.XMLDOM")}catch(a){}doc.async="false";doc.loadXML(sResponse);var total=doc.getElementsByTagName(a)[0].getAttribute("total"),q=doc.getElementsByTagName(a)[0].getAttribute("q"),mk=doc.getElementsByTagName(a)[0].getAttribute("mk");if(total=="0"){iCurrNumOfReq++;if(iCurrNumOfReq==4){videoscriptfull=videoscript+b+mk+playlistsize+c;eval(videoscriptfull)}else loadXMLDoc(arrRequests[iCurrNumOfReq])}else{sResponse.replace(/&lt;/g,"<");videoscriptfull=videoscript+d+q+"%26mk="+mk+playlistsize+c;eval(videoscriptfull)}}else{var parser=new DOMParser;doc=parser.parseFromString(sResponse,"text/xml");var total=doc.getElementsByTagName(a)[0].getAttribute("total"),q=doc.getElementsByTagName(a)[0].getAttribute("q"),mk=doc.getElementsByTagName(a)[0].getAttribute("mk");if(total=="0"){iCurrNumOfReq++;if(iCurrNumOfReq==4){videoscriptfull=videoscript+b+mk+playlistsize+c;eval(videoscriptfull)}else loadXMLDoc(arrRequests[iCurrNumOfReq])}else{videoscriptfull=videoscript+d+q+"%26mk="+mk+playlistsize+c;eval(videoscriptfull)}}}}function createRequestArray(d,b,c){var a="http://edge3.catalog.video.msn.com/Search.aspx?ff=82%26rct=1,3,5,6";a+="%26mk=";a+=b==""?"defaultmk":b;a+="%26q=";a+=c==""?"defaultq":c;var e=d+"?cp-documentid="+a;return e}function mailThisUrl(){var a=" mailto:?subject="+document.title+"&body="+document.title+":   "+location.href;window.location=a}function ShowPhotoGalleryRandomPartnerLink(f,d,c,g){var a='<a href="',b=Math.random();if(b<f/100&&b!=0){var e=document.getElementById("photogallery_partner_random_link_id");if(g)e.innerHTML=a+d+'" target="_blank">'+c+"</a>";else e.innerHTML=a+d+'">'+c+"</a>"}}function OnDirectoryDropDownButtonClicked(e,d){var b=e.parentNode;if(b.getElementsByTagName("select").length!=1)return;var a=b.getElementsByTagName("select")[0];if(a.selectedIndex==0)return;var c=a.options[a.selectedIndex].value,f=d+c.replace(/\x27/g,"").replace(/\x22/g,"");window.location.href=f}function ShowRandomPartnerLink(c,b,e,d){var a=Math.random();if(a<b/100&&a!=0){var f=document.getElementById(c);f.innerHTML='<a href="'+e+'">'+d+"</a>"}}function IE7FilterMethod(c,a,g,e,d,f,b){if(a!="")document.write("<a href='"+a+"'>");document.write("<img src='"+g+"' width='"+e+"px' height='"+d+"px' alt='"+f+"' style='filter:alpha(Opacity=100, FinishOpacity=0, Style=1, StartX=75, StartY=0, FinishX=300, FinishY=0)' />");if(a!="")document.write("</a>");document.write("<div style='height: 0px; left: -"+c+"px;'><div class='content_background' style='position : relative; width: "+b+"px; height: 200px'></div>")}function FF2Workaround(c,m,l,h,f,k,b,i,e,g){var d="<div style='width: 2px; height:200px; background:";document.write("<a href='"+m+"'><img src='"+l+"' width='"+h+"px' height='"+f+"px' alt='"+k+"' style='filter:alpha(Opacity=100, FinishOpacity=0, Style=1, StartX=75, StartY=0, FinishX=300, FinishY=0)' /></a><div style='height: 0px; left: -"+c+"px;'><div class='content_background' style='position : relative; width: "+e+"px'>");for(var a=0;a<=100;a++){j=a/36;document.write(d+b+"; filter:alpha(opacity="+a+"); -moz-opacity: "+j+"; opacity: "+j+"; left :"+c+"px;'></div>")}document.write(d+b+"; filter:alpha(opacity=100); -moz-opacity: 1; opacity: 1; left : "+c+"px;'></div><div class='last_background' style='width:"+g+"px; height:200px; background:"+b+"; position: absolute;left:"+i+"px'></div></div>")}function WriteImage(c,a,g,e,d,f,b){if(a!="")document.write("<a href='"+a+"'>");document.write("<img src='"+g+"' width='"+e+"px' height='"+d+"px' alt='"+f+"' style='filter:alpha(Opacity=100, FinishOpacity=0, Style=1, StartX=75, StartY=0, FinishX=300, FinishY=0)' />");if(a!="")document.write("</a>");document.write("<div style='height: 0px; left: -"+c+"px;'><div class='content_background' style='position : relative; width: "+b+"px'>")}function WriteLastBackground(b,a,c){document.write("<div class='last_background' style='width:"+b+"px; height:200px; background:"+a+"; position: absolute;left:"+c+"px'></div></div>")}function FinallyPart(e,f,a,c,h,g,d){var b="px;width:";document.write('<div class="content_text" style="position: relative; left:'+f+'px; width: 432px; float: right"><a href="'+e+'"style="margin-left:'+a+b+c+'px;float:left;" class="maineditorial_link">'+h+"</a>");if(d=="true")document.write('<a href="'+e+'">');document.write('<span style="margin-left:'+a+b+c+'px; float: left ">'+g+"</span>");if(d=="true")document.write("</a>");document.write("</div></div>")};