function load_options() {
	document.getElementById('info_screen_width').value = vombashotsControl.InfoGetScreenWidth();  
	document.getElementById('info_screen_height').value = vombashotsControl.InfoGetScreenHeight();  
	
	document.getElementById('info_install_date').value = vombashotsControl.InfoGetInstallDate();
	
	document.getElementById('info_version_manager').value = vombashotsControl.InfoGetVersionManager();  
	document.getElementById('info_version_control').value = vombashotsControl.InfoGetVersionControl();  
	document.getElementById('info_version_saver').value = vombashotsControl.InfoGetVersionSaver();  

	document.getElementById('info_running_vomba').value = vombashotsControl.InfoCheckRunningVomba();  
	document.getElementById('info_running_manager').value = vombashotsControl.InfoCheckRunningManager();  

	document.getElementById('info_windows_version').value = vombashotsControl.InfoGetWindowsVersion();  

}

function load_debug() {
     try{

		document.getElementById('InfoGetScreenWidth').value = vombashotsControl.InfoGetScreenWidth();
		document.getElementById('InfoGetScreenHeight').value = vombashotsControl.InfoGetScreenHeight();
		document.getElementById('InfoGetVersionManager').value = vombashotsControl.InfoGetVersionManager();
		document.getElementById('InfoGetVersionControl').value = vombashotsControl.InfoGetVersionControl();
		document.getElementById('InfoGetVersionSaver').value = vombashotsControl.InfoGetVersionSaver();
		document.getElementById('InfoCheckRunningManager').value = vombashotsControl.InfoCheckRunningManager();
		document.getElementById('InfoCheckRunningVomba').value = vombashotsControl.InfoCheckRunningVomba();
		document.getElementById('InfoGetWindowsVersion').value = vombashotsControl.InfoGetWindowsVersion();
		document.getElementById('InfoGetInstallDate').value = vombashotsControl.InfoGetInstallDate();
		document.getElementById('ImageGetCountAll').value = vombashotsControl.ImageGetCount(-1);
		document.getElementById('ImageGetCountInactive').value = vombashotsControl.ImageGetCount(0);
		document.getElementById('ImageGetCountActive').value = vombashotsControl.ImageGetCount(1);

		if (vombashotsControl.InfoGetVersionControl() >= 1025) {
			document.getElementById('InfoGetErrorLog').value = vombashotsControl.GetErrorLog(500);
		}

		document.getElementById('GetImageArray').value = vombashotsControl.GetImageArray();
		document.getElementById('SettingGetMute').value = vombashotsControl.SettingGetMute();
		document.getElementById('SettingGetMouseSensibility').value = vombashotsControl.SettingGetMouseSensibility();
		document.getElementById('SettingGetDisplayTime').value = vombashotsControl.SettingGetDisplayTime();
		document.getElementById('SettingGetTransitions').value = vombashotsControl.SettingGetTransitions();
		document.getElementById('SettingGetTimeOut').value = vombashotsControl.SettingGetTimeOut();
		document.getElementById('SettingGetPassword').value = vombashotsControl.SettingGetPassword();
		document.getElementById('SettingGetRandomOrder').value = vombashotsControl.SettingGetRandomOrder();
		document.getElementById('SettingGetDefaultSaver').value = vombashotsControl.SettingGetDefaultSaver();
		document.getElementById('SettingGetFitScreen').value = vombashotsControl.SettingGetFitScreen();
		document.getElementById('SettingGetWakeOnClick').value = vombashotsControl.SettingGetWakeOnClick();
		document.getElementById('SettingGetWakeOnKey').value = vombashotsControl.SettingGetWakeOnKey();
		document.getElementById('SettingGetWakeOnMouse').value = vombashotsControl.SettingGetWakeOnMouse();
		document.getElementById('SettingGetWakeOnEscape').value = vombashotsControl.SettingGetWakeOnEscape();
		document.getElementById('SettingGetWallpaperPosition').value = vombashotsControl.SettingGetWallpaperPosition();
		document.getElementById('SettingGetWallpaperDisplayTime').value = vombashotsControl.SettingGetWallpaperDisplayTime();
		document.getElementById('SettingGetWallpaperCycle').value = vombashotsControl.SettingGetWallpaperCycle();
		document.getElementById('SettingGetManagerHideTray').value = vombashotsControl.SettingGetManagerHideTray();
		document.getElementById('SettingGetHotkeySaver').value = vombashotsControl.SettingGetHotkeySaver();
		document.getElementById('SettingGetHotkeyCycle').value = vombashotsControl.SettingGetHotkeyCycle();
		document.getElementById('SettingGetHotkeyDownload').value = vombashotsControl.SettingGetHotkeyDownload();
		document.getElementById('SettingGetHotkeyDisable').value = vombashotsControl.SettingGetHotkeyDisable();
		document.getElementById('SettingGetDefaultFormatId').value = vombashotsControl.SettingGetDefaultFormatId();
		document.getElementById('SettingGetCalendarDisplay').value = vombashotsControl.SettingGetCalendarDisplay();
		document.getElementById('SettingGetCalendarFutureMonths').value = vombashotsControl.SettingGetCalendarFutureMonths();
		document.getElementById('SettingGetCalendarPastMonths').value = vombashotsControl.SettingGetCalendarPastMonths();
		document.getElementById('SettingGetCalendarPosition').value = vombashotsControl.SettingGetCalendarPosition();
		document.getElementById('SettingGetCalendarSize').value = vombashotsControl.SettingGetCalendarSize();
		document.getElementById('SettingGetWallpaperBestFit').value = vombashotsControl.SettingGetWallpaperBestFit();
		document.getElementById('SettingGetWallpaperDisplayTitle').value = vombashotsControl.SettingGetWallpaperDisplayTitle();
    } catch(e) {}
}

function check_activex() {
	if(!document.getElementById('VombaShots') || document.getElementById('VombaShots').object == null ) { return false; }

	try { document.getElementById('VombaShots').InfoGetVersionControl(); }
	catch(e) { return false; }
	
	return true;
}

// Write VombaShots plugin object
if (navigator.plugins && navigator.mimeTypes && navigator.mimeTypes.length) {
    // netscape plugin architecture
    document.write('<EMBED type="application/vombashots" id="VombaShots" name="VombaShots" height="0" width="0"></EMBED>'); }
else {
    // PC IE
    document.write('<OBJECT id="VombaShots" height="0" width="0" classid="clsid:DD0E9F89-55AA-4D52-9BA6-209536B3A36E"></OBJECT>');
}
vombashotsControl = document.getElementById('VombaShots');
