$(function(){
				// Tabs

				$('#tabs').tabs();

				//hover states on the static widgets

				$( ".tabs-bottom .ui-tabs-nav, .tabs-bottom .ui-tabs-nav > *" )
			.removeClass( "ui-corner-all ui-corner-top" )
			.addClass( "ui-corner-bottom" );

				

			});


$(function(){
				// Tabs

				$('#tabs2').tabs();

				//hover states on the static widgets

				$( ".tabs-bottom .ui-tabs-nav, .tabs-bottom .ui-tabs-nav > *" )
			.removeClass( "ui-corner-all ui-corner-top" )
			.addClass( "ui-corner-bottom" );

				

			});

	$(document).ready(function() {
				$('input:checkbox:not([safari])').checkbox();
				$('input[safari]:checkbox').checkbox({cls:'jquery-safari-checkbox'});
				$('input:radio').checkbox();
			});

			displayForm = function (elementId)
			{
				var content = [];
				$('#' + elementId + ' input').each(function(){
					var el = $(this);
					if ( (el.attr('type').toLowerCase() == 'radio'))
					{
						if ( this.checked )
							content.push([
								'"', el.attr('name'), '": ',
								'value="', ( this.value ), '"',
								( this.disabled ? ', disabled' : '' )
							].join(''));
					}
					else
						content.push([
							'"', el.attr('name'), '": ',
							( this.checked ? 'checked' : 'not checked' ), 
							( this.disabled ? ', disabled' : '' )
						].join(''));
				});
				alert(content.join('\n'));
			}
			
			changeStyle = function(skin)
			{
				jQuery('#myform :checkbox').checkbox((skin ? {cls: skin} : {}));
			}

$(function() {
if(jQuery.isFunction(jQuery.fn.accordion))
  {
		$( "#accordion" ).accordion({
			autoHeight: false
		});
	}
	});

$(function() {
if(jQuery.isFunction(jQuery.fn.accordion))
    {
		$( "#accordionClosed" ).accordion({
			autoHeight: false,
			active: false
		});
	 }
	});

function odstrani()
  {
    if(confirm("Odstranim?"))
      {var preusmeri = this.getElementsByTagName("a");}
    else
      {}
  }

function potrdi()
  {
    if(confirm("Potrdim?"))
      {var preusmeri = this.getElementsByTagName("a");}
    else
      {}
  }

function prijava_nadaljevalni_modul()
  {
    if(confirm("DA - želim se naročiti na nadaljevalni modul - cena 28 eur"))
      {var preusmeri = this.getElementsByTagName("a");}
    else
      {}
  }

Shadowbox.init({ modal: true, players:  ['img', 'html', 'iframe', 'qt', 'wmp', 'swf', 'flv']  });
