if($.browser.mozilla||$.browser.opera){document.removeEventListener("DOMContentLoaded",$.ready,false);document.addEventListener("DOMContentLoaded",function(){$.ready()},false)}$.event.remove(window,"load",$.ready);$.event.add( window,"load",function(){$.ready()});$.extend({includeStates:{},include:function(url,callback,dependency){if(typeof callback!='function'&&!dependency){dependency=callback;callback=null}url=url.replace('\n','');$.includeStates[url]=false;var script=document.createElement('script');script.type='text/javascript';script.onload=function(){$.includeStates[url]=true;if(callback)callback.call(script)};script.onreadystatechange=function(){if(this.readyState!="complete"&&this.readyState!="loaded")return;$.includeStates[url]=true;if(callback)callback.call(script)};script.src=url;if(dependency){if(dependency.constructor!=Array)dependency=[dependency];setTimeout(function(){var valid=true;$.each(dependency,function(k,v){if(!v()){valid=false;return false}});if(valid)document.getElementsByTagName('head')[0].appendChild(script);else setTimeout(arguments.callee,10)},10)}else document.getElementsByTagName('head')[0].appendChild(script);return function(){return $.includeStates[url]}},readyOld:$.ready,ready:function(){if($.isReady) return;imReady=true;$.each($.includeStates,function(url,state){if(!state)return imReady=false});if(imReady){$.readyOld.apply($,arguments)}else{setTimeout(arguments.callee,10)}}});
$(function(){
//if($('#contact-form').length)$.include('js/forms.js')
if($('.jqTransform').length)$.include('js/jquery.jqtransform.js')
})
$(document).ready(function($){
$('ul.sf-menu li').hover(function(){
$(this).addClass('activeli');
$('> a', this).addClass('activea');
var width=$(this).width();
$('ul.subnav', this).show();
var liwidth = $('ul.subnav', this).width();
$('ul.subnav li', this).css("min-width",liwidth);
var parentw = $(this).width();
$('ul.subnav li a', this).css("min-width",parentw);
}, function(){
$('ul.subnav', this).hide();
$(this).removeClass('activeli');
$('> a', this).removeClass('activea');
});
$("div.servicestab").click(function(){
//get the url from href attribute and launch the url
window.location=$(this).attr("rel"); return false;
});
});
function areaOnFocus(element, inputText)
{
if(element.value == inputText)
{
element.value='';
}
}
$(window).load(function() {
$('#slider').nivoSlider({
effect: 'fade', // Specify sets like: 'fold,fade,sliceDown'
animSpeed: 1000, // Slide transition speed
startSlide: 0, // Set starting Slide (0 index)
directionNav: true, // Next & Prev navigation
directionNavHide: false, // Only show on hover
controlNav: false, // 1,2,3... navigation
keyboardNav: true, // Use left & right arrows
pauseOnHover: true, // Stop animation while hovering
manualAdvance: false, // Force manual transitions
captionOpacity: 0.8, // Universal caption opacity
prevText: 'Prev', // Prev directionNav text
nextText: 'Next', // Next directionNav text
randomStart: false, // Start on a random slide
pauseTime: 3000
});
});
function checkform(){
var error ='';
if($('#userfname').val()==''){
error = error + '
Please enter your full name';
}
if($('#userfemail').val()==''){
error = error + '
Please enter your email address';
}
if($("#userfemail").val()!='' && !isValidEmailAddress($("#userfemail").val())) {
error = error + "
Please enter correct email address";
}
if(error !=''){
$.msgbox('
Errors detected on the Form
'+error+'
Your email is already registered on our site.
Please use your email to login to access Verve Notes.
Thank for registering with Verve
We have now sent a confirmation email to your registered email address.
You can now access Verve notes with your email address
Errors detected on the Form
'+error+'
Username not found.
Please signup to receive access to locked notes
Errors detected on the Form
'+error+'
Incorrect old password. Please try again.
', { type : 'info', buttons : [ {type: "submit", value: "Okay"} ] }); } }, error: function(){ alert("You have encountered an error - Please refresh you browser and start again"); } }); } } function emailpassword(){ var error =''; if($('#email').val()==''){ error = error + 'Errors detected on the Form
'+error+'
We have confirmed your identity and an auto generated password is sent your registered email address.
', { type : 'info', buttons : [ {type: "submit", value: "Okay"} ] }, function(result) { if (result) { window.location='verve-notes.php'; } }); } if(data == 'nouser') { $.msgbox('Email does not exists with us.
Please try again or you can sign up with a new email address.