
function fnAddRating_Callback(F,C,D){var H=F.split(";");var B;var E=H[12];if(E!="0"){document.getElementById(H[1]).style.display="block";document.getElementById(H[2]).style.display="none";document.getElementById(H[3]).className="b_vote_selected";var G=new RegExp(/\d+/);var A=G.exec(document.getElementById(H[4]).innerHTML);if(A!=null){B=parseInt(A);B=B+1;document.getElementById(H[4]).innerHTML=document.getElementById(H[4]).innerHTML.replace(G,B)}else{document.getElementById(H[4]).innerHTML=document.getElementById(H[9]).value;if(document.getElementById(H[11])){document.getElementById(H[11]).style.dysplay="block"}}if(document.getElementById(H[10])){document.getElementById(H[10]).innerHTML="";document.getElementById(H[10]).className="stars"+E}if(document.getElementById(H[4])){document.getElementById(H[4]).style.display="block"}if(document.getElementById(H[5])){document.getElementById(H[5]).style.display="block"}if(document.getElementById(H[6])){document.getElementById(H[6]).style.display="none"}if(document.getElementById(H[7])){document.getElementById(H[7]).style.display="block"}if(document.getElementById(H[8])){document.getElementById(H[8]).className="b_vote_selected"}if(document.getElementById(H[5]+"1")){document.getElementById(H[5]+"1").style.display="block"}}}function onError(C,A,B){if(C){alert(C.get_message()+"\r\nError: "+C.get_exceptionType())}else{alert("Response status code: "+A.get_statusCode())}}function fn2AddRating(H,K,G,P,B,F,D,E,N,A,I,M,O,C){var J=document.getElementById(K).value;document.getElementById(G).value="1";var L=H+";"+P+";"+B+";"+F+";"+D+";"+E+";"+N+";"+A+";"+I+";"+M+";"+O+";"+C+";";SummaryRatingWS.AddRating(J,L,fnAddRating_Callback,onError,"Rating")}var rateImageDisabled=new Image();rateImageDisabled.src="http://imgs.shvoong.com/images/2008/_v_151020092117/vote.gif";function RateComment(A,E,C){try{ret=SummaryRatingWS.RateComment(A,C,OnComplete,OnTimeOut,OnError);document.getElementById(E).src=rateImageDisabled.src;var B=document.getElementById("Rating_"+C).innerHTML;document.getElementById("Rating_"+C).innerHTML=(parseInt(B)+parseInt(A));document.getElementById(E).onclick="return false";return(true)}catch(D){}}function OnComplete(A){}function OnTimeOut(A){alert("OnTimeOut")}function OnError(A){alert("OnError")}function ShowComments(C){var B=C.id;B=B.substring(0,B.indexOf("lnkComments"));var A=document.getElementById(B+"dv_CommentContent");if(A.style.display=="block"){A.style.display="none";A=document.getElementById(B+"dvComment");A.className="unhighlight"}else{A.style.display="block";A=document.getElementById(B+"dvComment");A.className="highlight"}}function getUserComment(){if(document.Form1.HID_Rated.value=="0"){var A=window.open("/frmAbstractsExitTrafficPopup.aspx?id="+document.Form1.HID_AbstractID.value,"_BLANK","width=555,height=320,LEFT=200,TOP=100");if(A!=null){A.focus()}}}function LinkToMyAbstract(D,A){var A=escape(document.location.href);var B="/frmLinkToAbstractPopup.aspx?AbstractLink="+A+"&Title="+D;var C=window.open(B,"_BLANK","width=540,height=460,LEFT=200,TOP=100,scrollbars=1");if(C!=null){C.focus()}}function MailSendToFriend(B){var A=window.open("/frmSendToFriend.aspx?abstractID="+B,"_blank","height=420,width=545");if(A!=null){A.focus()}}function SendToFriend(){var A=window.open("/frmSendToFriend.aspx","_blank","height=380,width=545");if(A!=null){A.focus()}}function fn_AddComments(){var A=window.open("/frmAddComments.aspx?Id="+document.Form1.HID_AbstractID.value,"_blank","height=410,width=430");if(A!=null){A.focus()}}function fn_ActionChange(A){document.Form1.HID_Rated.value="1";document.Form1.action=A}function TrimString(A){A=A.replace(/^\s+/g,"");return A.replace(/\s+$/g,"")}function SaveLinkInExternalPage(A,D){var B="";var C=window.location.href;if(A=="Del"){B="http://del.icio.us/post?v=4&noui&jump=close&url="+C+"&title="+D}else{if(A=="Furl"){B="http://www.furl.net/storeIt.jsp?t="+D+"&u="+C}else{if(A=="Google"){B="http://www.google.com/bookmarks/mark?op=edit&output=popup&bkmk="+C+"&title="+D}else{if(A=="Reddit"){B="http://reddit.com/submit?url="+C+"&title="+D}else{B="http://www.shvoong.com"}}}}window.open(B)}function setNewListStyle(D,E,C){var A;var B=document.getElementById(E);if(B){if(C==E){A="RelAbstractsB"}else{A="RelAbstractsN"}B.className=A}};
var clickCount=0;var clickCountLoginP=0;sfHover=function(){var D=document.getElementById("mainNav").getElementsByTagName("LI");for(var B=0;B<D.length;B++){D[B].onmouseover=function(){this.className+=" sfhover"};D[B].onmouseout=function(){this.className=this.className.replace(new RegExp(" sfhover\\b"),"")}}var A=document.getElementById("ulLeft").getElementsByTagName("UL");for(j=0;j<A.length;j++){var C=document.createElement("iframe");if(document.location.protocol=="https:"){C.src="//0"}else{C.src="javascript:false"}C.scrolling="no";C.frameBorder="0";C.style.width=A[j].offsetWidth+"px";C.style.height=A[j].offsetHeight+"px";C.style.zIndex="-1";A[j].insertBefore(C,A[j].childNodes[0]);A[j].style.zIndex="101"}};documentOnClick=function(){if(document.getElementById){if(document.getElementById("lang")){if(document.getElementById("lang").style.display=="block"&&clickCount>1){document.getElementById("lang").style.display="none";clickCount=0}if(document.getElementById("lang").style.display=="block"){++clickCount}}var A=document.getElementById("LoginPane");if(A){if(A.className=="loginFormHdr"&&clickCountLoginP>1){ShowHideLoginPane();clickCountLoginP=0}if(A.className=="loginFormHdr"){++clickCountLoginP}}}};function NeutralClick(){clickCountLoginP=1}function CheckNumberPages(C,A){var E;var D;var B;if(window.event){E=C.keyCode}else{if(C.which){E=C.which}}D=String.fromCharCode(E);B=/\d/;return B.test(D)&&A<100000}function CheckSummaryYear(C,A){var E;var D;var B;if(window.event){E=C.keyCode}else{if(C.which){E=C.which}}D=String.fromCharCode(E);B=/\d/;var F=A+D;return B.test(D)&&(parseInt(F,10)<=new Date().getFullYear())}function HideDropDown(){if(document.getElementById){if(document.getElementById("lang")){document.getElementById("lang").style.display="none"}}}function SwitchClasses(C,B,A){if(document.getElementById(C).className==B){PlaceClass(C,A)}else{PlaceClass(C,B)}}function ShowHideLoginPane(){SwitchClasses("LoginPane","loginFormHdr","loginFormHdrHidden");SwitchClasses("SearchFieldSet","headSearch","headSearchHidden");if(document.getElementById("LoginPane").className=="loginFormHdr"){++clickCountLoginP}else{clickCountLoginP==0}}var MainCategoriesIDsHides=new Array();MainCategoriesIDsHides[0]="3895";MainCategoriesIDsHides[1]="3894";MainCategoriesIDsHides[2]="2353";MainCategoriesIDsHides[3]="2";function movePanel(C,D,A){var B=document.getElementById(D);if(C){B.style.left="0px"}else{B.style.left="-"+A+"px"}}function SlideMainHide_Categories(C,D,E){var A;var B=false;for(A=0;A<MainCategoriesIDsHides.length;A++){if(C==MainCategoriesIDsHides[A]){B=true;break}}if(B){move_Panel(E,D);return false}else{move_Panel(D,E);return false}}function move_Panel(C,A){var E=document.getElementById(C);var B=document.getElementById(A);try{E.style.display="block";B.style.display="none"}catch(D){}}function ShowHideDropDown(A){if(document.getElementById){if(document.getElementById(A).style.display=="block"){document.getElementById(A).style.display="none";clickCount=0}else{document.getElementById(A).style.display="block";++clickCount}}}function createDomainCookie(C,E,F,D){var A="";var B="";if(F){B=new Date();B.setTime(B.getTime()+(F*24*60*60*1000));A="; expires="+B.toGMTString()}else{A=""}document.cookie=C+"="+E+A+((D)?"; domain="+D:"")+"; path=/"}function PlaceClass(B,A){if(document.getElementById){document.getElementById(B).className=A}}function ClearDefaultTextOnFocus(A,B,C){if(C==1){if(document.getElementById(A)){if(document.getElementById(A).value==B){document.getElementById(A).value=""}}}}function SetDefaultTextOnBlur(A,B,C){if(C==1){if(document.getElementById(A)){if(document.getElementById(A).value==""){document.getElementById(A).value=B}}}}function SetDefaultTextOnLoad(A,B,C){if(C==1){if(document.getElementById(A)){if(document.getElementById(A).value==""){document.getElementById(A).value=B}}}}function fn_ForgetPassword(){var A=window.open("/portfolio/frmResetPassword.aspx","pop_help","height=360,width=550,top=20,left=20,resizable=no,scrollbars=1");A.focus()};