<?xml version="1.0" encoding="UTF-8"?>
<Module>
  <ModulePrefs 
    title="__UP_title__" 
    directory_title="Alm - Goisern" 
    description="'Alm
- Goisern' is a gadget which allows you to view a live stream of the
two web cams installed at the most beautiful mountain pasture in
Austria. Additionaly it shows you the current weather information of
the location of the mountain pasture. It is multilingual and supports
German and English." 
    author="Thomas Gregg"    
    author_email="thomasgregg.feedback@gmail.com"  
    author_location="Berlin,Germany" 
    height="490" 
    width="670"
    thumbnail="http://90558.webhosting33.1blu.de/ggadgets/mp-goisern_small/thumbnail.png"
    screenshot="http://90558.webhosting33.1blu.de/ggadgets/mp-goisern_small/screenshot.png"
    scrolling="false" 
    singleton="false">


    <Require feature="tabs"/>
    <Require feature="setprefs"/>
    <Locale messages="http://90558.webhosting33.1blu.de/ggadgets/mp-goisern_small/ALL_ALL.xml"/> 
    <Locale lang="de" messages="http://90558.webhosting33.1blu.de/ggadgets/mp-goisern_small/de_ALL.xml"/> 
  </ModulePrefs>  
  
  <UserPref name="title" display_name="__MSG_gadget_caption__" default_value="__MSG_gadget_title__"/>
  <UserPref name="cam1" display_name="__MSG_tab1_caption__" default_value="__MSG_mp_outside__"/>
  <UserPref name="selectCam1" display_name="__MSG_tab1_defCam__" default_value="http://80.123.145.42:81/" datatype="enum" >
    <EnumValue value="http://80.123.145.42:81/" />
    <EnumValue value="http://80.123.145.42:82/" />
  </UserPref> 
  <UserPref name="cam2" display_name="__MSG_tab2_caption__" default_value="__MSG_mp_top__"/> 
  <UserPref name="selectCam2" display_name="__MSG_tab2_defCam__" default_value="http://80.123.145.42:82/" datatype="enum" >
    <EnumValue value="http://80.123.145.42:81/" />
    <EnumValue value="http://80.123.145.42:82/" />
  </UserPref> 
  <UserPref name="selectedTab" datatype="hidden"/>



  <Content type="html" view="home">
    <![CDATA[
    
      <script type="text/javascript">
        
        // gets the user defined value - if the total shall be displayed or not
        var prefs = new _IG_Prefs(__MODULE_ID__);
        selectCam1 = prefs.getString("selectCam1");
        selectCam2 = prefs.getString("selectCam2");
                
        // get current language setting
        var language = _args()['lang'];
        
        // Initialize tabs, designate the tab named "__UP_cam1__" as
        // the tab selected by default.
        var tabs = new _IG_Tabs(__MODULE_ID__, "__UP_cam1__");        
         
        function init() 
        { 
          if (selectCam1 == "http://80.123.145.42:81/")
          {     
            tabs.addTab("__UP_cam1__", "cam1_id");
          }
          else
          {
            tabs.addTab("__UP_cam2__", "cam2_id");
          }
          
          if (selectCam2 == "http://80.123.145.42:82/")
          {
            tabs.addTab("__UP_cam2__", "cam2_id");
          }
          else
          {
            tabs.addTab("__UP_cam1__", "cam1_id");
          }
          
          // check which language is selected and
          // display the weather either in English or German
          if (language == "de")
          {
            tabs.addTab("__MSG_weather__", "weather_de_id");
          }
          else
          {
            tabs.addTab("__MSG_weather__", "weather_en_id");
          }
          
          // align tabs to the left
          tabs.alignTabs("left", 3);        
        }        
      
        // Call init function to initialize and display tabs.
        _IG_RegisterOnloadHandler(init);      
        
      </script>        
        
      <div id="cam1_id" style="display:none">    
        <p align="center">    
          <APPLET name="cvcs" CODEBASE="__UP_selectCam1__" CODE="xplug.class" WIDTH=640 HEIGHT=480>
            <param name="RemotePort" value=81>
            <param name="Timeout" value=5000>
            <param name="RotateAngle" value=0>
            <param name="PreviewFrameRate" value=2>
            <param name="DeviceSerialNo" value="">
          </APPLET>  
        </p>
      </div>        
        
      <div id="cam2_id" style="display:none">    
        <p align="center">  
          <APPLET name="cvcs" CODEBASE="__UP_selectCam2__" CODE="xplug.class" WIDTH=640 HEIGHT=480>
            <param name="RemotePort" value=82>
            <param name="Timeout" value=5000>
            <param name="RotateAngle" value=0>
            <param name="PreviewFrameRate" value=2>
            <param name="DeviceSerialNo" value="">
          </APPLET>  
        </p>
      </div>
      
      <div id="weather_de_id" style="display:none">
        <p align="center">
          <script language="JavaScript" type="text/javascript" src="http://www.wetter.com/v2/woys2/woys2.js.php?185505,4aa0887fc200c188d900d75d4fd78e9d"></script>
        </p>
      </div>
      
      <div id="weather_en_id" style="display:none">
        <p align="center">
          <script language="JavaScript" type="text/javascript" src="http://www.wetter.com/v2/woys2/woys2.js.php?185517,1af159e0ba006b37186b34abf08a4c09"></script>  
        </p>
      </div> 
        
    ]]>
  </Content>

</Module>




