$(document).ready(function(){

	$("#conTicker").jStockTicker({interval: 10});

	// external links hack
	$('a.lnkExternal').click( function(){	window.open(this.href,'_blank'); return false;});
	
	// links outline hack 
	$("a, label, input[type='submit'], input[type='checkbox'], input[type='radio']").bind('focus',function(){if(this.blur)this.blur();});
	// pointer on submit buttons
	$("input[type='submit']").css('cursor', 'pointer');
	
	// numeric inputs
	//$('input.oNumeric').numeric();
	
	if($('#conMainRightColumn').height() < $('#conMainContent').height()) {
		$('#conMainRightColumn').height($('#conMainContent').height()+'px');
	}
	
	$('#conMainMenu ul li a').hover(
      function () {
        $(this).animate( { marginLeft:"4px"}, 150 );
      }, 
      function () {
        $(this).animate( { marginLeft:"0px"}, 150 );
      }
    );
	
	$('#conFooterRight p a').hover(
      function () {
        $(this).animate( { opacity: 0.5}, 150 );
      }, 
      function () {
        $(this).animate( { opacity: 1}, 150 );
      }
    );
    
    $('#btnKatalog').hover(
      function () {
        $(this).animate( { opacity: 0.6}, 150 );
      }, 
      function () {
        $(this).animate( { opacity: 1}, 150 );
      }
    );
    
    /*$('.trOneRow').hover(
      function () {
        $(this).css( 'background-color', '#efe' );
      }, 
      function () {
        $(this).css( 'background-color', '' );
      }
    );*/
    
    
	
});

function sendForm(sFormID){
	$('#'+sFormID).submit();
}

function changeTxtSize(iSize){
	$('.conText').css('font-size', iSize+'px');
	return false;
}

function showUl(oLink){
	$(oLink).next('ul').toggle("slow");
}
