	var ajaxUrl = 'index.php';
	var directionX = 1;
	var directionY = 1;
	var posX = -11;
	var posY = -21;
	
	$(function() { 
	

	
		$('#banner').everyTime(50, function(i) {
			//document.title = directionX;
			//directionX++;

			
			if (posX < -800) directionX = -1;
			if (posY < -440) directionY = -1;
			if (posX > 0) directionX = 1;
			if (posY > 0) directionY = 1;
			posX = posX - directionX;
			posY = posY - directionY;
			var bgpos = posX + 'px ' + posY+'px';
			$('#banner').css("background-position",bgpos);
			
			
		});
		 
	});

function printIt(control) {
	var win = window.open();
    self.focus();
    win.document.open();
    win.document.write('<'+'html'+'><'+'head'+'><'+'style'+'>');
    win.document.write('body, td { font-family: Verdana; font-size: 10pt;}');
    win.document.write('<'+'/'+'style'+'><'+'/'+'head'+'><'+'body'+'>');
    win.document.write(control.html());
    win.document.write('<'+'/'+'body'+'><'+'/'+'html'+'>');
	win.document.close();
	win.print();
  }
	
	
	function str_replace(from, to, string) {
		var retval = string;
		while (retval.indexOf(from)!=-1) retval = retval.replace(from, to);
		return retval;
	}

	function extractData(data) {	
		if (data.substr(0,6)=='error:') {
			infoMsg(data.substr(6), 1);
		} else 	{
			if (data.substr(0,6)=='valid:') return (data.substr(6)); else infoMsg(data, 0);
		} 
		return '';
	}
	

    

    function findProject() {
    
    $.post("index.php", {
        action: 'requestProject',
        project: $('#txtRequestProduct').val()
        }, function(data) {
            $('#divContent').html(data);
        });
    

    
    }
    
