before declaring independence last june following a republic-wide referendum , slovenes , in their pragmatic way , had attempted to find a modus vivendi with the status quo in belgrade , federal capital of the former yugoslavia and the capital of serbia .