function addsource(video, file, type) {
  var source = newel("source");
  source.src = file;
  source.type = "video/" + type;
  video.appendChild(source);
}

$(document).ready(function(){
		$(".btnSearch").hover(function(){
			$(this).css('background-position', 'left bottom')
			},
		function(){
			$(this).css('background-position', 'left top');
		});				
		
		
		var cur_url=window.location.href;
		var split_arr=cur_url.split('#');
		
		if(split_arr.length > 1){
			if(split_arr[split_arr.length-1]=='watch'){
				beforeVideo();
			}
		}
		
		if($('#cse-search-results iframe').length > 0){
				var iHeight=$('#cse-search-results iframe').height();
				if(iHeight > 980){
					$('#cse-search-results iframe').attr('height','980');
				}
			
		}
		
		
		
});




