/*
    i_common.js
    Copyright (c) 2005-2011 MedicosCubanos.com, Inc. All rights reserved. Todos los derechos reservados.
    
    General purpose functions & utilities.
*/
function FindPosX(A){var B=0;if(A.offsetParent){while(1){B+=A.offsetLeft;if(!A.offsetParent){break}A=A.offsetParent}}else{if(A.x){B+=A.x}}return B}function FindPosY(B){var A=0;if(B.offsetParent){while(1){A+=B.offsetTop;if(!B.offsetParent){break}B=B.offsetParent}}else{if(B.y){A+=B.y}}return A}function FindPos(A){var B=curtop=0;if(A.offsetParent){do{B+=A.offsetLeft;curtop+=A.offsetTop}while(A=A.offsetParent)}return[B,curtop]}function LoadEventAdd(A){var B=window.onload;if(typeof window.onload!="function"){window.onload=A}else{window.onload=function(){if(B){B()}A()}}}function ClickEventAdd(A){var B=document.getElementsByTagName("BODY")[0].onclick;if(typeof document.getElementsByTagName("BODY")[0].onclick!="function"){document.getElementsByTagName("BODY")[0].onclick=A}else{document.getElementsByTagName("BODY")[0].click=function(){if(B){B()}A()}}}function VowelAccentStrip(E){var C=E;var D=[/[\xC0-\xC2]/g,/[\xE0-\xE2]/g,/[\xC8-\xCA]/g,/[\xE8-\xEB]/g,/[\xCC-\xCE]/g,/[\xEC-\xEE]/g,/[\xD2-\xD4]/g,/[\xF2-\xF4]/g,/[\xD9-\xDB]/g,/[\xF9-\xFB]/g];var B=["A","a","E","e","I","i","O","o","U","u"];for(var A=0;A<D.length;A++){C=C.replace(D[A],B[A])}return C};
