$(document).ready(function(){

$('#zvezde').flash({
    src: 'images/zvezde.swf',
    width: 674,
    height: 111,
	wmode: 'transparent'
}).css('float', 'right');


$('#sat').flash({
    src: 'images/sat.swf',
    width: 200,
    height: 113,
	wmode: 'transparent'
});

$('#reklama').flash({
    src: 'images/reklama.swf',
    width: 115,
    height: 127,
	wmode: 'transparent'
}).css({float:'left', marginRight:'10px'});


/* TABLICA POPUP*/
$('#popup').jqm({ajax: '@href', trigger: 'a.tablica'});
$('#popup').live('click',function(){
      $(this).jqmHide();
  });


/* KOLONE PADDING FIX */
$('.kolona-50:last, .kolona-30:last').css('padding', '0px');

/* ZAGLAVLJE LOGO */
$('#zaglavlje h1 a').empty().html('<img src="images/nobil-logo.png" width="200" height="40" alt="Nobil" />')

/* NASLOV */
imgNaslov = $('#zaglavlje h2').text();
$('#zaglavlje h2').empty().html('<img src="images/naslov/'+imgNaslov+'.png" width="200" height="32" />');





	

/* ===============
   PNG FIX
   =============== */	
   
//   if ($.browser.msie && $.browser.version == 6){
// $(document).pngFix(); 
//} 



$('.accordion').next('div').css({display:'none'});
$('.accordion').click(function(){
							  // $(this).next('div').show('normal')
							  asd =  $(this).next('div').height()
							  $(this).next('div').toggle('normal');
							 
							 // $(this).next('div').css({display:'block'})
							   })

   /* $(".accordion").toggle(
      function () {
		 asd =  $(this).next('div').height()+100+'px';
		 
       $(this).next('div').show('normal').parent().css('height',asd);
      },
      function () {
      $(this).next('div').hide('normal').parent().css('height','30px');
      }
    );*/
	
	

/* ===============
   BORDERS
   =============== */
   
    var okvir = RUZEE.ShadedBorder.create({ corner:10 ,border:1});
	okvir.render($('.okvir'));
	
});









