var isInternetExplorer = navigator.appName.indexOf("Microsoft") != -1;
var arIntervalID = 0;
var iTimerID = 0;
var refreshRate = 1;
// Handle all the FSCommand messages in a Flash movie.
function base_DoFSCommand(command, args)
 {
    var baseObj = isInternetExplorer ? document.all.base : document.base;
    if(command=="zoom")
    {
        arr=args.split(",");
        dv_l = document.getElementById("lnk");
        items = document.getElementById("ftxt");
        itemss = document.getElementById("content");
        items.style.visibility="visible";
        items.style.left=arr[0]+ "px";
        items.style.top=arr[1]+ "px";
        items.style.width=arr[2]+ "px";
	items.style.height=arr[3]+ "px";
        itemss.style.width=arr[2]+ "px";
        itemss.style.height=(arr[3]-73)+ "px";

        dv_l.style.left=arr[0]+ "px";
        dv_l.style.top=(arr[1] - arr[3] / 5) + "px";
        dv_l.style.width=arr[2]+ "px";
        dv_l.style.height=(arr[3] / 5) + "px";

       
	    if (itemss.scrollUpdate != undefined)
        	{
            itemss.parentNode.className = 'fixedsize';
            itemss.scrollUpdate();
	        }
	
	//window.status=arr[2];
        h="12px";
	if (arr[2]<400) {h="10px";}
	if (arr[2]<350) {h="8px";}
	if (arr[2]<290) {h="6px";}
	fumenu=document.getElementById("fmenu");
	itemList = fumenu.getElementsByTagName("A");
	for (i = 0; i < itemList.length; i++) {
		itemList[i].style.fontSize=h;
	}

    }
    
}   

function interval()
{
    itemss = document.getElementById("content");  
    if (itemss.scrollUpdate != undefined)
    {
        itemss.parentNode.className = 'fixedsize';
        itemss.scrollUpdate();
        if(window.navigator.appName == "Microsoft Internet Explorer")
        {
            window.clearInterval(iTimerID);
        }
        else
        {
            window.clearInterval(arIntervalID);
        }
        return;
    }
}


// Hook for Internet Explorer.
if (navigator.appName && navigator.appName.indexOf("Microsoft") != -1 && navigator.userAgent.indexOf("Windows") != -1 && navigator.userAgent.indexOf("Windows 3.1") == -1) {
	document.write('<script language=\"VBScript\"\>\n');
	document.write('On Error Resume Next\n');
	document.write('Sub base_FSCommand(ByVal command, ByVal args)\n');
	document.write('	Call base_DoFSCommand(command, args)\n');
	document.write('End Sub\n');
	document.write('</script\>\n');
}

    function flash_resize()
    {
       var flash = isInternetExplorer ? document.all.base : document.base;
       a = document;                  
       _size = a.body.clientHeight;
       flash.height = _size;
    }
