
//document.write('<script type="text/javascript" src="'+GEN_JS_DIR+'jquery.js"></script>');	
//document.write('<script type="text/javascript" src="'+GEN_JS_DIR+'jquery.colorbox-min.js"></script>');
document.write('<script type="text/javascript" src="'+GEN_JS_DIR+'jquery.alerts.js"></script>');
document.write('<script type="text/javascript" src="'+GEN_JS_DIR+'jquery.bt.min.js"></script>');
document.write('<script type="text/javascript" src="'+JS_DIR+'FusionCharts.js"></script>');

function move2ViewPort(object)
{
    var abspos = $(object).offset();
    var toppos = abspos.top - 30;
    
    $('html, body').animate({scrollTop:toppos}, 'slow');
    
    return true;
}

window.viewport = 
{
    height: function() { 
        return $(window).height(); 
    },
    
    width: function() {
        return $(window).width();
    },
    
    scrollTop: function() {
        return $(window).scrollTop();
    },
    
    scrollLeft: function() {
        return $(window).scrollLeft();
    }
};


$(document).ready(function()
{		
	$(".banner-test").slideDown(1500);
	
	// Initiate Countdown
	if ($('#countdown_dashboard').length ) 
	{
		$('#countdown_dashboard').countDown({
			targetOffset: {
				'day': 		0,
				'month': 	0,
				'year': 	0,
				'hour': 	0,
				'min': 		15,
				'sec': 		0
			}
		});
		$('#countdown_dashboard').startCountDown();
	}		
	
	if( $(".testing").length )
	{		
		$(".testing").colorbox({width:"300px", opacity:0.4, inline:true, href:"#ulozit", overlayClose: false, onComplete: function(){}});
		$(".testing").colorbox().trigger('click');	
	}	
		
	
	//$("#ulozit").parent().show();
});
