function setupFadeLinks(){arrFadeLinks[0]="/introduction/safety-privacy-security.php";arrFadeTitles[0]="Only site to be ISO 9001:2008 & VeriSign Certified";arrFadeLinks[1]="/introduction/why-we-are-no1.php";arrFadeTitles[1]="Ranked the most visited matrimonial website in the world! - Ranking.com";arrFadeLinks[2]="/introduction/why-we-are-no1.php";arrFadeTitles[2]='"Most preferred online matrimonial site for Indians" - JuxtConsult'}var help_layer_1=0;var help_layer_2=0;var m_FadeOut=255;var m_FadeIn=0;var m_Fade=0;var m_FadeStep=3;var m_FadeWait=1600;var m_bFadeOut=true;var m_iFadeInterval;var arrFadeLinks;var arrFadeTitles;var arrFadeCursor=0;var arrFadeMax;function Fadewl(){m_iFadeInterval=setInterval(fade_ontimer,10);arrFadeLinks=new Array();arrFadeTitles=new Array();setupFadeLinks();arrFadeMax=arrFadeLinks.length-1;setFadeLink()}function setFadeLink(){var a=document.getElementById("fade_link");a.innerHTML=arrFadeTitles[arrFadeCursor];a.href=arrFadeLinks[arrFadeCursor]}function fade_ontimer(){if(m_bFadeOut){m_Fade+=m_FadeStep;if(m_Fade>m_FadeOut){arrFadeCursor++;if(arrFadeCursor>arrFadeMax){arrFadeCursor=0}setFadeLink();m_bFadeOut=false}}else{m_Fade-=m_FadeStep;if(m_Fade<m_FadeIn){clearInterval(m_iFadeInterval);setTimeout(Faderesume,m_FadeWait);m_bFadeOut=true}}var a=document.getElementById("fade_link");if((m_Fade<m_FadeOut)&&(m_Fade>m_FadeIn)){a.style.color="#"+ToHex(m_Fade)}}function Faderesume(){m_iFadeInterval=setInterval(fade_ontimer,10)}function ToHex(c){try{var a=(parseInt(c).toString(16));while(a.length!=2){a=("0"+a)}a=a+a+a;return a.toUpperCase()}catch(b){}}function changeclass(c){var b=document.getElementById(c);for(var a=1;a<=3;a++){if(c==a){document.getElementById("link"+a).className="selected"+a}else{document.getElementById("link"+a).className=""}}if(b){b.className=("selected"+a)}}var pageUrl=new Array();pageUrl[1]="/ssi/p-action/tab-1.php";pageUrl[2]="/ssi/p-action/tab-2.php";pageUrl[3]="/ssi/p-action/tab-3.php";function loadTab(a){if(pageUrl[a].length>0){$("#preloader").show();$.ajax({url:pageUrl[a],cache:false,success:function(b){$("#tabcontent").empty().append(b);$("#preloader").hide()}})}}$(document).ready(function(){$("#preloader").hide();$("#link1").click(function(){loadTab(1)});$("#link2").click(function(){loadTab(2)});$("#link3").click(function(){loadTab(3)})});var content;var contentcontainer;var position=1;var rot_position=1;var rot_timer;var maxY,wd,maxX,ready,slideDur=600,destX=0,destY=0,distY,distX,per,sliding,slideStart,aniTimer,startX,startY,xcoordinate,ycoordinate,url_path_rotation;var no_of_records=4;function load(c,a,b){position=0;url_path_rotation=b;if(!document.getElementById){return}content=document.getElementById("content");contentcontainer=document.getElementById("content-container");content.visibility="hidden";content.style.top=0;content.style.left=0;xcoordinate=0;ycoordinate=0;maxY=(content.offsetHeight-contentcontainer.offsetHeight>0)?content.offsetHeight-contentcontainer.offsetHeight:0;wd=c?document.getElementById(c).offsetWidth:content.offsetWidth;maxX=(wd-contentcontainer.offsetWidth>0)?wd-contentcontainer.offsetWidth:0;content.style.visibility="visible";ready=true;document.getElementById("slide-links").style.visibility="visible";rot_timer=setInterval("do_rotation()",a)}function glideTo(b,a){content=document.getElementById("content");contentcontainer=document.getElementById("content-container");startX=parseInt(content.style.left);if(startX==""){startX=0}startY=parseInt(content.style.top);destX=-Math.max(Math.min(b,maxX),0);destY=-Math.max(Math.min(a,maxY),0);distY=destY-startY;distX=destX-startX;per=Math.PI/(2*slideDur);sliding=false;slideStart=(new Date()).getTime();aniTimer=setInterval("doSlide()",10);on_slide_start(startX,startY)}function doSlide(){var b=(new Date()).getTime()-slideStart;if(b<slideDur){var a=startX+distX*Math.sin(per*b);var c=startY+distY*Math.sin(per*b);shiftTo(a,c);on_slide(a,c)}else{clearInterval(aniTimer);sliding=false;shiftTo(destX,destY);on_slide_end(destX,destY)}}function shiftTo(a,b){if(typeof(a)=="number"){content.style.left=a+"px";content.style.top=b+"px"}}on_slide_start=function(){};on_slide=function(){};on_slide_end=function(){};function slide(id,img_url){clearInterval(rot_timer);position=id;glideTo(eval(id-1)*590,0);for(var z=1;z<=no_of_records;z++){if(id==z){document.getElementById("slide"+id).className="selected"}else{document.getElementById("slide"+z).className=""}}}function do_rotation(){if(position<no_of_records){position++;glideTo(eval(position-1)*590,0)}else{position=1;content.style.left="0px";content.style.top="0px"}for(var z=1;z<=no_of_records;z++){if(position==z){document.getElementById("slide"+position).className="selected"}else{document.getElementById("slide"+z).className=""}}}var more_layer_status_1=0;var more_layer_status_2=0;function show_hide_login_layer(){clear_err_divs();var b=show_hide_login_layer.arguments;var a=b[0];if(a=="show"){show_hide_more_layer("hide");show_hide_profile_search_layer("hide");enable_disable_form(document.forms.quicksearch,"disable");if(document.getElementById("frm_registration")){enable_disable_form(document.forms.frm_registration,"disable")}document.getElementById("login_layer").style.display="block";document.loginpage.login.focus()}else{if(a=="hide"){if(document.loginpage){document.loginpage.login.value="";document.loginpage.password.value="";document.getElementById("id_spacer_1").style.display="block";document.getElementById("login_layer").style.display="none";enable_disable_form(document.forms.quicksearch,"enable");if(document.getElementById("frm_registration")){enable_disable_form(document.forms.frm_registration,"enable")}}}}}function show_hide_tooltip_layer(){var b=show_hide_tooltip_layer.arguments;var a=b[0];if(a=="show"){document.getElementById("tooltip_layer").style.display="block"}else{if(a=="hide"){document.getElementById("tooltip_layer").style.display="none"}}}function enterkey(b){var b=(b)?b:event;var a=(b.which)?b.which:b.keyCode;if(a==13){return validate_login_form()}}function validate_login_form(){clear_err_divs();var a=false;if(document.loginpage.login.value==""){document.getElementById("id_spacer_1").style.padding="3px";document.getElementById("login_err_div").style.display="block";document.getElementById("login_err_div").innerHTML="Please specify Email.";a=true}if(document.loginpage.password.value==""){document.getElementById("password_err_div").style.display="block";document.getElementById("password_err_div").innerHTML="Please specify Password.";a=true}if(a){return false}return true}function show_hide_livehelp(){var b=show_hide_livehelp.arguments;var a=b[0];if(a=="show"){if(help_layer_1==0&&help_layer_2==0){document.getElementById("livehelp").style.display="block";help_layer_1=1;setTimeout("help_layer_2 = 1",500)}}else{if(a=="hide"){if(help_layer_1==1&&help_layer_2==1){help_layer_1=0;help_layer_2=0;document.getElementById("livehelp").style.display="none"}}}}function show_hide_more_layer(){var b=show_hide_more_layer.arguments;var a=b[0];if(a=="show"){if(more_layer_status_1==0&&more_layer_status_2==0){show_hide_profile_search_layer("hide");enable_disable_form(document.forms.quicksearch,"disable");if(document.getElementById("frm_registration")){enable_disable_form(document.forms.frm_registration,"disable")}more_layer_status_1=1;document.getElementById("more").className="more";document.getElementById("more_layer").style.display="block";setTimeout("more_layer_status_2=1",500)}}else{if(a=="hide"){if(more_layer_status_1==1&&more_layer_status_2==1){more_layer_status_1=0;more_layer_status_2=0;document.getElementById("more_layer").style.display="none";document.getElementById("more").className="";enable_disable_form(document.forms.quicksearch,"enable");if(document.getElementById("frm_registration")){enable_disable_form(document.forms.frm_registration,"enable")}}}}}function set_gender(){var a=set_gender.arguments;var b=a[0];document.quicksearch.hid_gender.value=b}function chk_quicksearch_community(){if(document.quicksearch.community.value==""){alert("Please select religion.");return false}objMT=document.getElementsByName("mothertonguearray[]");if(objMT[0].value=="doesn't_matter"){objMT[0].value=""}objCT=document.getElementsByName("castearray[]");if(objCT[0].value=="doesn't_matter"){objCT[0].value=""}document.quicksearch.submit();return true}function show_hide_profile_search_layer(){clear_err_divs();var b=show_hide_profile_search_layer.arguments;var a=b[0];if(a=="show"){show_hide_login_layer("hide");show_hide_more_layer("hide");document.getElementById("profile_search_layer").style.display="block";document.profileform.txtprofileid.focus()}else{if(a=="hide"){document.profileform.txtprofileid.value="";document.getElementById("profile_search_layer").style.display="none"}}}function validate_profile_search(){clear_err_divs();if(document.profileform.txtprofileid.value==""){document.getElementById("profile_id_err_div").style.display="block";document.getElementById("profile_id_err_div").innerHTML="Please specify Profile Id.";return false}else{document.profileform.submit()}}function clear_err_divs(){if(document.getElementById("login_err_div")){document.getElementById("login_err_div").innerHTML=""}if(document.getElementById("password_err_div")){document.getElementById("password_err_div").innerHTML=""}if(document.getElementById("profile_id_err_div")){document.getElementById("profile_id_err_div").innerHTML=""}}function enable_disable_form(){var b=enable_disable_form.arguments;var e=b[0];var a=b[1];var d=e.elements.length;for(i=0;i<d;i++){var c=e.elements[i];if(a=="disable"){c.disabled=true}else{if(a=="enable"){c.disabled=false}}}};
