var t = 1;

$(document).ready(function() {
						   
	$("#gb-ml-waterMark").Watermark("email");
	
	$('#ds-rightPanel').jScrollPane({showArrows:true, scrollbarMargin:0});
	
	$('#sr-rightPanel').jScrollPane({showArrows:true, scrollbarMargin:10});

	$.doTimeout(5000, function(){
		if (t == 11) {
			document.getElementById("gb-mh-container").style.right = 0 + "px";
			t = 1;
		}
		$('#gb-mh-container').animate({
   			right: "-=145px"
  			}, {
				duration: 750,
				specialEasing: {
      					right: 'easeOutExpo'
    			}
		});
		t++
		
		return true;
	});
	
	$("a.inline").fancybox({
			'titlePosition': 'over',
			'overlayOpacity': 0.5,
			'scrolling': 'no'
		});
		
	$("a.articleLink").fancybox({
			'width' : '75%',
			'height' : '95%',
			'overlayOpacity': 0.5,
			'autoScale' : false,
			'type' : 'iframe'
		});
	
	$('#mailClick').toggle(function() {
		document.getElementById("gb-ml-container").style.display = "block";
		$('#gb-ml-container').animate({
   			top: "-60px"
  			}, {
				duration: 500,
				specialEasing: {
      					top: 'easeOutExpo'
    			}
	});
									 },
		function() {
		$('#gb-ml-container').animate({
   			top: "10px"
  			}, {
				duration: 500,
				specialEasing: {
      					top: 'easeOutExpo'
    			}
		});
	});
	
	
	$('#gb-ml-submit').click(function() {
		$('#gb-ml-container').animate({
   			top: "10px"
  			}, {
				duration: 750,
				specialEasing: {
      				top: 'easeOutExpo'
    			}
		});
	});

});

/*function subClickFunc() {
	
	
	
}*/
