// JavaScript Document
function flash ( FlashVars, w, h){
document.write('<object  width="'+w+'" height="'+h+'"  >');
document.write('<param name="allowScriptAccess" value="always" /><param name="movie" value="images/CircleButton.swf" />');
document.write('<param name="quality" value="high" /><param name="wmode" value="transparent">');
document.write('<param name="FlashVars" value="'+FlashVars+'"> ');
document.write('<embed src="images/CircleButton.swf"  FlashVars="'+FlashVars+'" quality="high" wmode="transparent" allowScriptAccess="always"   width="'+w+'" height="'+h+'" name="virsus1"  type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" /></object>');
}


function print_r(theObj) {
    var retStr = '';
    if (typeof theObj == 'object') {
        retStr += '<div style="font-family:Tahoma; font-size:7pt;">';
        for (var p in theObj) {
            if (typeof theObj[p] == 'object') {
                retStr += '<div><b>['+p+'] => ' + typeof(theObj) + '</b></div>';
                retStr += '<div style="padding-left:25px;">' + print_r(theObj[p]) + '</div>';
            } else {
                retStr += '<div>['+p+'] => <b>' + theObj[p] + '</b></div>';
            }
        }
        retStr += '</div>';
    }
    return retStr;
}

function DoTitle(id, vsblt) {
	
	if (lock == 0) document.getElementById('txt_' + id).style.visibility=vsblt;
	
	
}
	
function buttonOver(id) {

	DoTitle(id, 'visible');
}

function buttonOut(id) {
	
	DoTitle(id, 'hidden');
}

function buttonClick (id)
{

	Skleisk (id);
	
}

function flash(FlashVars, w, h) {
	
}

function initFlash() {
	var objects = document.getElementsByTagName('div');
	
	for (var i=0; i<objects.length; i++) {
		var div = objects.item(i);

		if (div.getAttribute('name') != "flashButton")
			continue;

		var flashButton = makeFlashButton(div.getAttribute('flashVars'), div.getAttribute('width'), div.getAttribute('height'));
		//div.appendChild(flashButton);
		div.innerHTML = flashButton;
	}
	
	var obj = document.getElementById('loader');
	if (obj) obj.style.display = "none";

}

function makeFlashButton( FlashVars ,w, h ) {
	
	/*var newButton = document.createElement('embed');
	newButton.setAttribute('src',"images/CircleButton.swf");
	newButton.setAttribute('FlashVars',FlashVars);
	newButton.setAttribute('quality',"high");
	newButton.setAttribute('wmode',"transparent");
	newButton.setAttribute('allowScriptAccess',"always");
	newButton.setAttribute('type',"application/x-shockwave-flash");
	newButton.setAttribute('pluginspage',"http://www.macromedia.com/go/getflashplayer");
	newButton.width=w;
	newButton.height=h;*/
	
	var newButton = '	<embed height="'+h+'" width="'+w+'" src="images/CircleButton.swf" FlashVars='+FlashVars+' quality="high" wmode="transparent" allowscriptaccess="always" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"/>';

	return newButton;
}
