function toggleTextOut(e,txtval) {
	if(e.value=="") e.value = txtval;

}
function toggleTextIn(e,txtval) {
	if(e.value==txtval) e.value="";
	else e.select();
}


$(document).ready(function(){



	
bubble();
bgOffer();
	

	
});


function bubble(){
	
	//$('.offer a img').animate({right:'-950px'}, 15000);
	//$('.bubble').animate({bottom:'500px'}, 22000);
	}


    var scrollSpeed = 150;       // Speed in milliseconds
    var step = 1;               // How many pixels to move per step
    var current = 0;            // The current pixel row
    var imageWidth = 1000;     // Background image height
    var containerWidth = 289;     // How tall the header is.
    //The pixel row where to start a new loop
   var restartPosition = -(imageWidth - containerWidth);
    function scrollBg(){
        //Go to next pixel row.
        current -= step;
       
        //If at the end of the image, then go to the top.
        if (current == restartPosition){
            current = 0;
        }
        //Set the CSS of the header.
        $('.offer a img').css("right", current+"px");
    }
	
function bgOffer(){
	//$('.offer a').animate({bottom:'500px'}, 22000);
	}


    var scrollSpeed = 150;       // Speed in milliseconds
    var step = 1;               // How many pixels to move per step
    var current = 0;            // The current pixel row
    var imageHeight = 1000;     // Background image height
    var headerHeight = 300;     // How tall the header is.
   
    //The pixel row where to start a new loop
    var restartPosition = -(imageHeight - headerHeight);
   
    function scrollBgTop(){
       
        //Go to next pixel row.
        current -= step;
       
        //If at the end of the image, then go to the top.
        if (current == restartPosition){
            current = 0;
        }
       
        //Set the CSS of the header.
        $('.bg-falling').css("background-position","0 "+current+"px");
       
       
    }