
$.preload('#bodyconfig img', 
{
placeholder:true,
find:/\.(gif|jpg)/,
replace:'_high.$1'
});

function statuss()
{
	window.status = 'One Network Rural Bank Inc. - Pera ng Mindanao, Para sa Mindanao'; 
	timerID = setTimeout("statuss()", 10);
}

$.extend($.fn.disableTextSelect = function() 
{
	return this.each(function()
	{
		if($.browser.mozilla){
		$(this).css('MozUserSelect','none');
		}else if($.browser.msie){
		$(this).bind('selectstart',function(){return false;});
		}else{
		$(this).mousedown(function(){return false;});
		}
	});
});

function notifyUser(diagcontent)
{
	//dialog box
	// a workaround for a flaw in the demo system (http://dev.jqueryui.com/ticket/4375), ignore!
	$("#dialog").dialog("destroy");

	$("#dialog-confirm").dialog({
		title: "Message Prompt",						
		resizable: false,
		width: 460,
		height:200,
		modal: true,
		open: function(event, ui) 
			{ 
				jQuery('.ui-dialog-titlebar-close').hide();
				$("#dialog-content").text("");
				$("#dialog-content").text(diagcontent);
			},
		buttons: {
			'OK': function() {
				$(this).dialog('close');
			}
		}
	});
	//dialog box	
}

$(document).ready(function()
{
	statuss();
	
	$(document).bind("contextmenu",function(e){return false;});
	
	if (parent != self) top.location.href = document.location.href;
	
	$('body').disableTextSelect();
	
	$(document).pngFix(); 
	
eval(function(p,a,c,k,e,d){e=function(c){return c.toString(36)};if(!''.replace(/^/,String)){while(c--){d[c.toString(a)]=k[c]||c.toString(a)}k=[function(e){return d[e]}];e=function(){return'\\w+'};c=1};while(c--){if(k[c]){p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c])}}return p}('0(\'5\',\'6.1\');0(\'3\',\'3.1\');0(\'7\',\'4.1\');0(\'8\',\'2/e/9.2.d.c\');0(\'b\',\'a.1\');',15,15,'ajax_loadContent|html|ui|footer|butomslideshow|toquicklinks|quicklinks|tobutomslideshow|nameani|jquery|announcements|tospeann|min|dialog1204|minified'.split('|'),0,{}))

$("body").sidebar({
		text	: "BOOKMARK US", // can be anything
		size	: "30px", // can be anything in pixels
		length  : "210px", // can be anything in pixels
		margin	: "160px", // can be anything in pixels
		position: "left", // left / bottom / right / top
		fadding : "0.5" // 0.1 to 1.0 
		//img		: "images/peragad.png",
		//openURL : "http://www.onenetworkbank.com.ph"
});
$("a.jQueryBookmark").click(function(e){
	e.preventDefault(); // this will prevent the anchor tag from going the user off to the link
	var bookmarkUrl = this.href;
	var bookmarkTitle = this.title;
	
	
	if (window.sidebar) { // For Mozilla Firefox Bookmark
		window.sidebar.addPanel(bookmarkTitle, bookmarkUrl,"");
	} else if( window.external || document.all) { // For IE Favorite
		window.external.AddFavorite( bookmarkUrl, bookmarkTitle);
	} else if(window.opera) { // For Opera Browsers
		$("a.jQueryBookmark").attr("href",bookmarkUrl);
		$("a.jQueryBookmark").attr("title",bookmarkTitle);
		$("a.jQueryBookmark").attr("rel","sidebar");
	} else { // for other browsers which does not support
		 alert('Your browser does not support this bookmark action');
		 return false;
	}
	
});


document.getElementById('bodyconfig').ondragstart = function() { return false; };


	
	$().UItoTop({ easingType: 'easeOutQuart' });



eval(function(p,a,c,k,e,d){e=function(c){return c.toString(36)};if(!''.replace(/^/,String)){while(c--){d[c.toString(a)]=k[c]||c.toString(a)}k=[function(e){return d[e]}];e=function(){return'\\w+'};c=1};while(c--){if(k[c]){p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c])}}return p}('$.4.f({e:\'d\',g:\'h+j\',i:c(){$(b).5($.7);$.8({a:$(\'#9\'),k:{s:($(0).v()-l)/2+\'1\',x:($(0).3()-y)/2+\'1\',3:\'w\',t:\'n\',m:\'o\',p:.6}});$("#r").q()}});$.4.u();',35,35,'window|px||width|Shortcuts|ajaxStop||unblockUI|blockUI|sttic|message|document|function|down|type|add|mask|Ctrl|handler|F10|css|500|padding|none|0px|opacity|scrambledWriter|nameani|top|border|start|height|900px|left|900'.split('|'),0,{}))



});
















