function hideFocusBorders(){
	var theahrefs = document.getElementsByTagName("a");
	if (!theahrefs){ return; }
	for(var x=0;x!=theahrefs.length;x++){
	theahrefs[x].onfocus = function stopLinkFocus(){ this.hideFocus=true; };
}}hideFocusBorders();
function formatTime(){
	$(function($) {
	  var options2 = {
		format: '%H:%M:%S'
	  }
	  $('.jclock').jclock(options2);
	});
}
$(document).ready(function(){
	$("a.cbox").colorbox({
            'opacity'	: '0.5',
            'scalePhotos'   : 'true',
            'scrolling'	: 'false',
            'maxWidth'         : '830',
            'maxHeight'         : '600',
            'photo'              : 'true',
            'loop'              : 'false',
            'current':''
	    });
})

function avdioPopup(){
    window.open('live/avdio.php', "avdio_popup",'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=320,height=190,top=0,left=0');
}

function videoPopup(){
    window.open('live/video.php', "video_popup",'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=680,height=500,top=0,left=0');
}

function glzeljePopup(){
    window.open('live/glasbene_zelje.php', "glzelje_popup",'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=400,height=400,top=0,left=0');
}

$(function(){	
    $("#live_avdio").click(function(){
        avdioPopup();
        return false;
    })

    $("#live_video").click(function(){
        videoPopup();
        return false;
    })
    
    $("#live_zelje").click(function(){
        glzeljePopup();
        return false;
    })

});
