jQuery(document).ready(function(){
	
jQuery('#frontrow').jparallax({},{xtravel: '10px', yparallax: false},{xtravel: '10px', yparallax: false},{xtravel: '24px', yparallax: false});

$('#display').cycle({ 
	fx: 'fade'
}); 

$('#sh').cycle({
	fx: 'fade',
	timeout: 2000,
	random: true
});

//$("img").lazyload({ 
//    placeholder : "../i/loading.gif",
//    effect : "fadeIn" 
//});

 
	$('input[type="text"]').focus(function() {
        if (this.value == this.defaultValue){
        	this.value = '';
    	}
        if(this.value != this.defaultValue){
	    	this.select();
        }
    });
    $('input[type="text"]').blur(function() {
        if ($.trim(this.value == '')){
        	this.value = (this.defaultValue ? this.defaultValue : '');
    	}
    });


});


	var scrollSpeed = 35;       // Speed in milliseconds
    var step = 1;               // How many pixels to move per step
    var current = 0;            // The current pixel row
    var imageHeight = 134;     // Background image height
    var headerHeight = 134;     // How tall the header is.
   
    //The pixel row where to start a new loop
    var restartPosition = -(imageHeight - headerHeight);
   
    function scrollBg(){
        current -= step;
        if (current == restartPosition){
            current = 0;
        }
        $('#bubble').css("background-position","0 "+current+"px");
    }
   
    //Calls the scrolling function repeatedly
    var init = setInterval("scrollBg()", scrollSpeed);
	// alo
	var scrollSpeedz = 25;       // Speed in milliseconds
    var stepz = 1;               // How many pixels to move per step
    var currentz = 0;            // The current pixel row
    var imageHeightz = 134;     // Background image height
    var headerHeightz = 134;     // How tall the header is.
   
    //The pixel row where to start a new loop
    var restartPositionz = -(imageHeightz - headerHeightz);
   
    function scrollBgz(){
        currentz -= stepz;
        if (currentz == restartPosition){
            currentz = 0;
        }
        $('#bubble2').css("background-position","0 "+currentz+"px");
    }

    var initz = setInterval("scrollBgz()", scrollSpeed);
	
	
