// JavaScript Document
// cobined JScript functions
function tbTest_focus(e,o){
	if(o.firstTime){return}
		o.firstTime=true
		o.value=""
}


$(document).ready(function(){

	$("#vidrecentright").click(function(){
	  $("#recent").animate({"left": "+=100px"}, "slow");
	});
	
	$("#vidrecentleft").click(function(){
	  $("#recent").animate({"left": "-=100px"}, "slow");
	});

});

$(document).ready(function(){

	$("#vidpopright").click(function(){
	  $("#pop").animate({"left": "+=100px"}, "slow");
	});
	
	$("#vidpopleft").click(function(){
	  $("#pop").animate({"left": "-=100px"}, "slow");
	});

});

// execute your scripts when the DOM is ready. this is a good habit 

// function to expose the loginarea
$(function() { 
 
    // assign a click event to the exposed element, using normal jQuery coding 
    $("#exposediv").click(function() { 
 
        // perform exposing for the clicked element 
        var loginspot = $("#loginform").expose({api: true,
            // custom mask settings with CSS 
            // maskId: 'mask', 
			lazy:true//,
 
            // when exposing is done, change form's background color 
            //onLoad: function() { 
            //    this.getExposed().css({backgroundColor: '#ffffff'}); 
            //}, 
 
            // when "unexposed", return to original background color 
            //onClose: function() { 
            //    this.getExposed().css({backgroundColor: null}); 
            //} 
							   }).load(); 

    }); 
});

// function to expose the registration area
$(function() { 
 
    // assign a click event to the exposed element, using normal jQuery coding 
    $("#exposereg").click(function() { 
 
        // perform exposing for the clicked element 
        $("#regform").expose({api: true,
            // custom mask settings with CSS 
            // maskId: 'mask', 
			lazy:true
 
            // when exposing is done, change form's background color 
            //onLoad: function() { 
            //    this.getExposed().css({backgroundColor: '#0057AE'}); 
            //}, 
 
            // when "unexposed", return to original background color 
            //onClose: function() { 
            //    this.getExposed().css({backgroundColor: null}); 
            //} 
							   }).load(); 

    }); 
});


