/* shared functions*/ 

function checkScrollBar() {
    var hContent = $("body").height(); // get the height of your content
    var hWindow = $(window).height(); // get the height of the visitor's browser window
 
    if(hContent>hWindow) { // if the height of your content is bigger than the height of the browser window, we have a scroll bar
        return true;    
    }
    return false; 
}

function getOverImage(filepath, overStr){
	var arr = filepath.split('.');
	var suffix = arr.pop();
	filepath = arr.join('.') + overStr + '.' + suffix;
	return filepath;
}

function getOffImage(filepath, overStr){
	overStr += '.';
	var arr = filepath.split(overStr);
	filepath = arr.join('.');
	return filepath;
}


$(document).ready(function() {

//	$("a").click(function(event){
//		event.preventDefault();
//	});

//$("#bgimg").css('display', 'none');

	if ($("#elink").length){
		$("#elink").click(function(event){
		$("#elink").hide();
			$("#contactWrapper").fadeIn(100);
			event.preventDefault();
	});
}

});

/*
function newBgImage(imgpath){
// send a relative img path to the flash background
	$('#bgimg').externalInterface({
		method:'newImageSrc', 
		args:imgpath
	});
}

*/
