var xmlhttp;var go_to,go_to_uri,em_pid,em_headline,em_url,em_email;var addthis_pub="runwayrundown";var addthis_brand="Runway Rundown";var addthis_header_background="#f9d1ee";var addthis_header_color="#5c0458";var addthis_options="facebook, myspace, stylehive, twitter, buzz, tumblr, digg, google, stumbleupon, mixx, reddit, delicious, technorati, more";var addthis_exclude="print, email";function loadjscssfile(a,b){if(b=="js"){var c=document.createElement("script");c.setAttribute("type","text/javascript");c.setAttribute("src",a)}else{if(b=="css"){var c=document.createElement("link");c.setAttribute("rel","stylesheet");c.setAttribute("type","text/css");c.setAttribute("href",a)}}if(typeof c!="undefined"){document.getElementsByTagName("head")[0].appendChild(c)}}function xmlhttp_obj(){if(window.XMLHttpRequest){try{objHTTP=new XMLHttpRequest()}catch(a){objHTTP=false}}else{if(window.ActiveXObject){try{objHTTP=new ActiveXObject("Microsoft.XMLHTTP")}catch(a){objHTTP=false}}}return objHTTP}function loadXMLDoc(a,b){xmlhttp=null;xmlhttp=xmlhttp_obj();if(xmlhttp!==null){xmlhttp.onreadystatechange=b;xmlhttp.open("GET",a,true);xmlhttp.send(null);return 1}else{alert("Your browser does not support XMLHTTP.");return 0}}function xmlhttp_like(){if(xmlhttp.readyState==4){if(xmlhttp.status==200){var a=[];a=xmlhttp.responseText.split(",");document.getElementById("like_count_"+a[0]).innerHTML=a[1]}else{}}}function xmlhttp_comment(){if(xmlhttp.readyState==4){if(xmlhttp.status==200){var c=xmlhttp.responseText;var d=c.match(/^\d+,\d+,/);d=d.toString();var b=d.match(/^\d+/);var a=d.match(/\d+,$/);a=a.toString();a=a.replace(/,/g,"");c=c.replace(/^\d+,\d+,/,"");document.getElementById("comment_count_"+b).innerHTML=a;document.getElementById("comments_list_"+b).innerHTML=c;document.getElementById("cf_submit_"+b).onmousedown=function(){if(document.getElementById("cf_comment_"+b).value){document.getElementById("cf_submit_"+b).onmousedown="";var g=document.getElementById("cf_comment_"+b).value;g=g.replace(/^[\n\r]+|[\n\r]+$/g,"");var f=(document.getElementById("cf_name_"+b))?document.getElementById("cf_name_"+b).value:"";var e="/account.php?action=comment&post_id="+b+"&comment="+g+"&name="+f;document.getElementById("cf_comment_"+b).value="";loadXMLDoc(e,xmlhttp_comment)}return true}}else{}}}function xmlhttp_load_pops(){loadjscssfile("/js/pops.js","js");if(xmlhttp.readyState==4&&xmlhttp.status==200){document.getElementsByTagName("body")[0].innerHTML+=xmlhttp.responseText;if(go_to=="email_friend_div"){pop_mini(go_to,em_url,em_headline,em_pid,em_email)}else{if(go_to=="create_account_div"){pop_mini(go_to)}else{if(go_to=="login_div"){pop_mini(go_to,go_to_uri)}else{if(go_to=="pass_reset_div"){pop_mini(go_to)}}}}}}function logout_account(a){window.location="/account/logout"+a}function like(c){document.getElementById(c).className="liked";document.getElementById(c).onmousedown="";var b=c.replace("like_","");document.getElementById("like_img_"+b).style.cursor="default";document.getElementById("like_img_"+b).onmousedown="";var a="/account/like/"+b;loadXMLDoc(a,xmlhttp_like)}function rack_it(d){var a=d.replace("hanger_","");if(document.getElementById("aili_"+a).className=="racked"){window.location="/account/closet"}else{document.getElementById("hanger_"+a).src="/images/button-hanger-on.png";document.getElementById("hanger_"+a).title="In Your Closet";document.getElementById("hanger_"+a).onmouseout="";document.getElementById("hanger_"+a).onmouseover="";document.getElementById("aili_"+a).className="racked";var b="/account/closet/add/"+a;var c=xmlhttp_obj();c.open("GET",b,false);c.send(null)}}function post_comment(c){if(document.getElementById("cf_comment_"+c).value){document.getElementById("cf_submit_"+c).onmousedown="";var d=document.getElementById("cf_comment_"+c).value;d=d.replace(/^[\n\r]+|[\n\r]+$/g,"");var b=(document.getElementById("cf_name_"+c))?document.getElementById("cf_name_"+c).value:"";var a="/account.php?action=comment&post_id="+c+"&comment="+escape(d)+"&name="+escape(b);document.getElementById("cf_comment_"+c).value="";loadXMLDoc(a,xmlhttp_comment)}}function refer(a){i=new Image();i.src="/log/retailer/"+id+".gif"}function tally_poll(c){var b,a;url="/log/poll/"+c;b=xmlhttp_obj();b.open("GET",url,false);b.send(null);a=b.responseText;document.getElementById("poll").innerHTML=a}function submit_search(){if(document.getElementById("search_input").value&&document.getElementById("search_input").value!="search rundowns..."){window.location="/search/"+document.getElementById("search_input").value.replace(/ /g,"+")}}function ad_serve(b,a){i=new Image();i.src="/log/ad/"+escape(a)+"/"+escape(b)+".gif"}function pop_mini(h,c,e,b,a){document.getElementsByTagName("head")[0].style.cursor="progress";if(!document.getElementById("login_div")){em_pid=b;em_headline=e;em_url=c;em_email=a;go_to_uri=c;var c="/includes/pop_ups.php";loadXMLDoc(c,xmlhttp_load_pops);go_to=h;return}document.getElementById("email_friend_div").style.display="none";document.getElementById("pass_reset_div").style.display="none";document.getElementById("create_account_div").style.display="none";document.getElementById("login_div").style.display="none";document.getElementById("ef_headline").value=e;document.getElementById("ef_post_id").value=b;document.getElementById("ef_post_url").value=c;document.getElementById("ef_from_email").value=a;document.getElementById("efd_headline").innerHTML=e;document.getElementById("ld_page").value=c;var g=document.getElementById(h).style;var d=parseInt("740",10),f=parseInt("460",10);if(typeof document.body.style.maxHeight!="undefined"){d=document.documentElement.clientWidth?document.documentElement.clientWidth:document.body.clientWidth;f=document.documentElement.clientHeight?document.documentElement.clientHeight:document.body.clientHeight;g.left=parseInt((d/2)-215,10)+"px";g.top=parseInt((f/2)-180,10)+"px"}else{g.padding="20px";g.position="absolute";g.left="215px";g.top=document.body.scrollTop+200+"px";window.setInterval(move_box,2000)}g.display="block";document.getElementById('ld_email_address').focus();document.getElementsByTagName("head")[0].style.cursor="default";};
