var url = window.location;
var title = document.title;

var os;
if(document.layers)
 os = "n4";
else if(document.getElementById&&!document.all)
 os = "n6";
else if(document.all)
 os = "ie";

function bookmark(title,url){
	if(window.sidebar)
          window.sidebar.addPanel(title,url,"");
	else if(window.opera && window.print){
          var elem = document.createElement('a');
          elem.setAttribute('href',url);
          elem.setAttribute('title',title);
          elem.setAttribute('rel','sidebar');
          elem.click();
	}
	else if(os == "ie")
          window.external.AddFavorite(url,title);
}


function loadContent(div,content){
         $('#' + div).load('remote.php?pid=' + content);
}


$(document).ready(function() {

    $(".headerBig").each(
        function() {
        text = $(this).html();
		//$(this).replaceWith('<embed type="application/x-shockwave-flash" src="eunice.swf?str=' + text + '" width="620" height="40"></embed>');
        $(this).html('<embed type="application/x-shockwave-flash" wmode="transparent" src="headerBig.swf?str=' + text + '" width="620" height="24"></embed>');
        }
    );

    $(".headerMedium").each(
        function() {
        text = $(this).html();
		//$(this).replaceWith('<embed type="application/x-shockwave-flash" src="eunice.swf?str=' + text + '" width="620" height="40"></embed>');
        //$(this).html('<embed type="application/x-shockwave-flash" src="headerMedium.swf?str=' + text + '" width="180" height="25"></embed>');
		//$(this).html('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0" width="180" height="25" id="headerMedium" align="middle"><param name="allowScriptAccess" value="sameDomain" /><param name="allowFullScreen" value="false" /><param name="wmode" value="opaque" /><param name="movie" value="headerMedium.swf?str=' + text + '" /><param name="quality" value="high" /><param name="bgcolor" value="#ffffff" />	<embed src="headerMedium.swf?str=' + text + '" quality="high" wmode="opaque" bgcolor="#ffffff" width="180" height="25" name="headerMedium" align="middle" allowScriptAccess="sameDomain" allowFullScreen="false" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" /></object>');
		$(this).html('<embed type="application/x-shockwave-flash" wmode="transparent" src="headerMedium.swf?str=' + text + '" width="180" height="25"></embed>');


        }
    );

    $(".podpis").each(
        function() {
        text = $(this).html();
		$(this).html('<embed type="application/x-shockwave-flash" wmode="transparent" src="podpis.swf?str=' + text + '" width="200" height="35"></embed>');


        }
    );

    $(".fxLink").each(
        function() {
        text = $(this).html();
		$(this).html('<embed type="application/x-shockwave-flash" wmode="transparent" src="link.swf?str=' + text + '&overColor=0xFF0000&outColor=0x00FF00" width="400" height="30"></embed>');


        }
    );

    $(".boxRight").each(
        function() {
        text = $(this).html();
		$(this).html('<embed type="application/x-shockwave-flash" wmode="transparent" src="boxRight.swf?str=' + text + '&overColor=0xFED400&outColor=0xFFFFFF" width="180" height="52"></embed>');


        }
    );

});



