if(bg!='') {
	document.write("<img src='img/"+bg+"' style='visibility:hidden; height:1px; width:1px;'/><div style='position: absolute; right:5%; top:95%; z-index: -1;'><img src='img/ajax-loader.gif' /></div>");
}
$(document).ready(function(){
	//$('input[type="checkbox"]').checkBox({addVisualElement: false});
	 $("body").ezBgResize({
        img : "img/"+bg
   });
   
      $(".scrollable").scrollable({easing: 'custom', speed: 1000, circular: false});
   

 
});

$.easing.custom = function (x, t, b, c, d) {
	var s = 1.70158; 
	if ((t/=d/2) < 1) return c/2*(t*t*(((s*=(1.525))+1)*t - s)) + b;
	return c/2*((t-=2)*t*(((s*=(1.5288))+1)*t + s) + 2) + b;
}

$.easing.bounceEaseOut=function(p, n, firstNum, diff) {

        var c=firstNum+diff;

        if (p < (1/2.75))
        {
            return c*(7.5625*p*p) + firstNum;
        }
        else if (p < (2/2.75))
        {
            return c*(7.5625*(p-=(1.5/2.75))*p + .75) + firstNum;
        }
        else if (p < (2.5/2.75))
        {
            return c*(7.5625*(p-=(2.25/2.75))*p + .9375) + firstNum;
        }
        else
        {
            return c*(7.5625*(p-=(2.625/2.75))*p + .984375) + firstNum;
        }
   }
 

$.easing.backEaseOut = function(p, n, firstNum, diff) {

            var c=firstNum+diff;
            
            var s = 1.70158; // default overshoot value, can be adjusted to suit
            return c*((p=p/1-1)*p*((s+1)*p + s) + 1) + firstNum;
};

$.easing.backEaseIn = function(p, n, firstNum, diff) {

            var c=firstNum+diff;
            
            var s = 1.70158; // default overshoot value, can be adjusted to suit
            return c*(p/=1)*p*((s+1)*p - s) + firstNum;
       };
  
//$(function(){$('.text').jScrollPane({
	//showArrows: true,
	//verticalArrowPositions: 'after',
	//verticalGutter: 10
	//});
//});

