Deprecated: Assigning the return value of new by reference is deprecated in /home/ocir1/public_html/wp-settings.php on line 520
Deprecated: Assigning the return value of new by reference is deprecated in /home/ocir1/public_html/wp-settings.php on line 535
Deprecated: Assigning the return value of new by reference is deprecated in /home/ocir1/public_html/wp-settings.php on line 542
Deprecated: Assigning the return value of new by reference is deprecated in /home/ocir1/public_html/wp-settings.php on line 578
Deprecated: Function set_magic_quotes_runtime() is deprecated in /home/ocir1/public_html/wp-settings.php on line 18
Warning: Cannot modify header information - headers already sent by (output started at /home/ocir1/public_html/wp-settings.php:520) in /home/ocir1/public_html/wp-content/themes/durable/jscript/globaljs.php on line 3
// AJAX Functions
Ajax.Responders.register({
onCreate: function() {
if($('busy') && Ajax.activeRequestCount>0)
Effect.Appear('busy',{duration:0.5,queue:'end'});
},
onComplete: function() {
if($('busy') && Ajax.activeRequestCount==0)
Effect.Fade('busy',{duration:0.5,queue:'end'});
}
});
function liveSearch() {
var url = 'http://homesvlog.com/wp-content/themes/durable/livesearch.php';
var pars = 's=' + $F('s');
var target = 'searchResults';
$(target).style.display = "none"; // incase there are old search results showing.
var requestSuccess = function() { new Effect.BlindDown(target, {duration: 0.4}) }
var myAjax = new Ajax.Updater(target, url, {
asynchronous:true,
parameters: pars,
method: 'get',
onComplete: requestSuccess
});
var element = $(target);
return false;
}
// Other less exciting functions.
function isOpera() {
if(navigator.userAgent.indexOf("Opera")!=-1){
return true;
}
return false;
}
function toggle(element) {
var element = $(element);
( element.style.display == "none" ) ? element.style.display = "" : element.style.display = "none";
}
function toggleMenu(element, menuList) {
var element = $(element);
var menuList = $(menuList).childNodes;
var tabs = element.parentNode.childNodes;
var listItem = $(element.id + "Link");
for(i=0;i