////////////////////////////////////////////////////////
// Copyright (C) 2011 by Wirtualna Polska - www.wp.pl //
// Please do not use, copy or modify any part         //
// of this code without permission.                   //
// JS version: 2011-10-04 13:26:13                    //
////////////////////////////////////////////////////////

function wpAddEmbedObject(t, pos, did, w, h, movie, q){
var o = "";
switch (t){
case "swf":
var clsid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000';
var apptype='application/x-shockwave-flash';	
break;
default:return;
}
var oid = pos;
o = '<object classid="'+clsid+'" id="'+oid+'" width="'+w+'" height="'+h+'"><param name="type" value="'+apptype+'" /><param name="movie" value="'+movie+'" /><param name="wmode" value="opaque" />'+ _addParamsToObject('object',q);
o += '<embed src="'+movie+'" name="'+oid+'" type="'+apptype+'" width="'+w+'" height="'+h+'" wmode="opaque" '+_addParamsToObject('embed',q)+'></embed>';
o += '</object>';
if(did !== ''){
var d = _addObjectById(did);
d.innerHTML = o;
} else {
document.write(o);
} }
function wpAddParamsToObject(p){
a = arguments;
return a;
}
function _addParamsToObject(c,p){
var res = "";
if(c == 'object'){
for (var i = 1; i < p.length; i++){
res += '<param name='+p[i][0]+' value="'+p[i][1]+'">';
}
} else if(c == 'embed'){
for (var i = 1; i < p.length; i++){
res += p[i][0]+'="'+p[i][1]+'"';
if(i < (p.length-1)){
res += ' ';
}
}
} else {
return;
}
return res;
}
function _addObjectById(id){
var d = document;
if(d.getElementById){
return d.getElementById(id);
} else if(d.all){
return d.all[id];
} else if(d.layers){
return d.layers[id];
} else {
return null;
}
}
function wpSimpleAddEmbedObject(content){
document.write(content);
}
if(typeof($$)=='undefined') {
	try {
		var $$ = function(id) {
			return document.getElementById(id);
		}
	}
	catch(e) {doerror(e,'def$$','',1)}
}
try { if (!window.jsloaded) window.jsloaded=new Array(); window.jsloaded['flash.js']=1; } catch (exp) {};

