/* <![CDATA[ */
			
		$(function()
			{
				// this initialises the demo scollpanes on the page.
				$('#panel').jScrollPane({scrollbarWidth: 17});
			});

			
		sfHover = function() {
			var sfEls = document.getElementById("nav").getElementsByTagName("li");
			for (var i=0; i<sfEls.length; i++) {
				sfEls[i].onmouseover=function() {
					this.className+=" sfhover";
				}
				sfEls[i].onmouseout=function() {
					this.className=this.className.replace(new RegExp(" sfhover\\b"), "");
				}
			}
		}
		if (window.attachEvent) window.attachEvent("onload", sfHover);
		
/* ]]> */

function bookmarksite(title,url){
	if (window.sidebar) // firefox
		window.sidebar.addPanel(title, url, "");
	else if(window.opera && window.print){ // opera
		var elem = document.createElement('a');
		elem.setAttribute('href',url);
		elem.setAttribute('title',title);
		elem.setAttribute('rel','sidebar');
		elem.click();
	} 
	else if(document.all)// ie
		window.external.AddFavorite(url, title);
}

jQuery().ready(function($) {
						
	$("a[rel^='prettyPopin']").prettyPopin();
	/*
	$("#contactFrm").submit(function(){
		var str = $(this).serialize();
		$.ajax({
			type: "POST",
			url: "ajax.php?data=contact",
			data: str,
			success: function(msg){
				$("#statusContact").ajaxComplete(function(event, request, settings){
					result = msg;
					$(this).html(result);
				});
			} 
		}); 
		return false;
	 });
	*/
	
});