/*
K Scripte

Copyright © Kristijan Vujovic 2010 All Rights Reserved.
No part of this document may be reproduced without written consent from the author.

More info: http://www.kristijan-solutions.com/

*/

$j(window).resize(function(){ // ----- KAD SE PROZOR POVECAVA/SMANJUJE IZVRSI OVO -----
	
	kontrolarazmjera();
	
});

$j(window).load(function(){ // ----- KAD SE STRANICA UCITA IZVRSI OVO -----
	
	
	
});

$j(document).ready(function(){ // ----- KAD SE STRANICA UCITA IZVRSI OVO -----
	
	kontrolarazmjera();
	
});

function kontrolarazmjera() {
// ODRZAVANJE MINIMALNE VISINE I SIRINE FLASH-A
	var bodyh = $j("body").height();
	var bodyw = $j("body").width();
	
	var fvisina = $j("#flashcont").height();
	var fsirina = $j("#flashcont").width();
	
	//alert(bodyw);
	
	// Visina **************************
	if ((bodyh <= 745) && (fvisina != 745)) {
		$j("#flashcont").css("height", 745);
	}
	else if ((fvisina <= 745) && (bodyh > 745)) {
		$j("#flashcont").css("height", "100%");
	}
	
	// Sirina **************************
	if ((bodyw <= 900) && (fsirina != 900)) {
		$j("#flashcont").css("width", 900);
	}
	else if ((fsirina <= 900) && (bodyw > 900)) {
		$j("#flashcont").css("width", "100%");
	}
// KRAJ FUNKCIJE ZA ODRZAVANJE MINIMALNE VISINE I SIRINE FLASH-A
}

function swfopenwin(urlparametar) {
  window.open (urlparametar,"mywindow","status=1");
}
