#VRML V2.0 utf8

DEF root Group {
    children [
	      DEF Blue_Town Transform {
	        children [
                     Anchor {
			 #u_name:clay
			 #x:10 y:1 z:50
			 #platname:Blue_Town
			 # r:  1 g: 0 b: 0
			 #size : xs:.25 ys:3 zs:2.6
			 #type:Box
		        url "http://localhost/cgi-bin/advancedVRML2/tracker.pl?clay+10+1+50+Blue_Town+1+0+0+.25+3+2.6+Box"
		        parameters "target=clay_html" 
			children Shape {
			appearance        Appearance {
			    material        Material {
			    ambientIntensity      0.25
			    diffuseColor  0.5 0.17264 0.0598717
			    specularColor 0.533333 0.533333 0.533333
			    emissiveColor 0 1 0
			    shininess     0.933333
			    transparency  0
			}
		     }
		     geometry  Box {
	           }
		}
	     },
	     Transform { children [
             Shape {
			appearance        Appearance {
			    material        Material {
			    ambientIntensity      0.25
			    diffuseColor  0 0 1
			    specularColor 0.533333 0.533333 0.533333
			    shininess     0.933333
			    transparency  0
			}
		     }
		     geometry  Box {
			 size 10 .25 10
	             }
		}
		 ]
		     translation 0 -2 0
	       }
              ]
          translation  10 1 50
	 },
	      DEF Red_Town Transform {
	        children [
                     Anchor {
			 #u_name:clay
			 #x:-10 y:1 z:-50
			 #platname:Red_Town
			 # r:  1 g: 0 b: 0
			 #size : xs:.25 ys:3 zs:2.6
			 #type:Box
		        url "http://localhost/cgi-bin/advancedVRML2/tracker.pl?clay+-10+1+-50+Red_Town+1+0+0+.25+3+2.6+Box"
		        parameters "target=clay_html" 
			children Shape {
			appearance        Appearance {
			    material        Material {
			    ambientIntensity      0.25
			    diffuseColor  0.5 0.17264 0.0598717
			    specularColor 0.533333 0.533333 0.533333
			    emissiveColor 0 1 0
			    shininess     0.933333
			    transparency  0
			}
		     }
		     geometry  Box {
	           }
		}
	     },
	     Transform { children [
             Shape {
			appearance        Appearance {
			    material        Material {
			    ambientIntensity      0.25
			    diffuseColor  1 0 0
			    specularColor 0.533333 0.533333 0.533333
			    shininess     0.933333
			    transparency  0
			}
		     }
		     geometry  Box {
			 size 10 .25 10
	             }
		}
		 ]
		     translation 0 -2 0
	       }
              ]
          translation  -10 1 -50
	 },
	      DEF Green_Town Transform {
	        children [
                     Anchor {
			 #u_name:clay
			 #x:70 y:1 z:10
			 #platname:Green_Town
			 # r:  1 g: 0 b: 0
			 #size : xs:.25 ys:3 zs:2.6
			 #type:Box
		        url "http://localhost/cgi-bin/advancedVRML2/tracker.pl?clay+70+1+10+Green_Town+1+0+0+.25+3+2.6+Box"
		        parameters "target=clay_html" 
			children Shape {
			appearance        Appearance {
			    material        Material {
			    ambientIntensity      0.25
			    diffuseColor  0.5 0.17264 0.0598717
			    specularColor 0.533333 0.533333 0.533333
			    emissiveColor 0 1 0
			    shininess     0.933333
			    transparency  0
			}
		     }
		     geometry  Box {
	           }
		}
	     },
	     Transform { children [
             Shape {
			appearance        Appearance {
			    material        Material {
			    ambientIntensity      0.25
			    diffuseColor  0 1 0
			    specularColor 0.533333 0.533333 0.533333
			    shininess     0.933333
			    transparency  0
			}
		     }
		     geometry  Box {
			 size 10 .25 10
	             }
		}
		 ]
		     translation 0 -2 0
	       }
              ]
          translation  70 1 10
	 },
	      DEF Purple_Town Transform {
	        children [
                     Anchor {
			 #u_name:clay
			 #x:70 y:1 z:-50
			 #platname:Purple_Town
			 # r:  1 g: 0 b: 0
			 #size : xs:.25 ys:3 zs:2.6
			 #type:Box
		        url "http://localhost/cgi-bin/advancedVRML2/tracker.pl?clay+70+1+-50+Purple_Town+1+0+0+.25+3+2.6+Box"
		        parameters "target=clay_html" 
			children Shape {
			appearance        Appearance {
			    material        Material {
			    ambientIntensity      0.25
			    diffuseColor  0.5 0.17264 0.0598717
			    specularColor 0.533333 0.533333 0.533333
			    emissiveColor 0 1 0
			    shininess     0.933333
			    transparency  0
			}
		     }
		     geometry  Box {
	           }
		}
	     },
	     Transform { children [
             Shape {
			appearance        Appearance {
			    material        Material {
			    ambientIntensity      0.25
			    diffuseColor  1 0 1
			    specularColor 0.533333 0.533333 0.533333
			    shininess     0.933333
			    transparency  0
			}
		     }
		     geometry  Box {
			 size 10 .25 10
	             }
		}
		 ]
		     translation 0 -2 0
	       }
              ]
          translation  70 1 -50
	 },
	      DEF jenny Group {
		  children [
			    DEF jenny_TIME TimeSensor {
				startTime 1
				cycleInterval 30
				loop TRUE
			    },
			    DEF jenny_TOGGLE Script {
				eventIn SFFloat set_fraction
				eventOut SFInt32 which 
				field SFInt32 thisVal 0
                                field SFFloat point 0.0
				field SFBool notLoaded TRUE
				
				    behavior "
                                       function set_fraction(frac) {
                                          if (frac >= 0.9) {
                                             if (notLoaded) {          
                                               if (thisVal >= 63) 
                                                  thisVal = 0;                                   
                                               else 
                                                  thisVal = thisVal+1;
                                               which = thisVal; 
                                               notLoaded = false;
                                           }
                                         } 
                                         if (frac <= 0.1) {
                                             notLoaded = true;
                                         }
                                      }"
				},
			    DEF jenny_SWITCH Switch {
				whichChild 0
				    choices [

Inline { url "http://localhost/cgi-bin/advancedVRML2/getavatar.pl?jenny+0" },
Inline { url "http://localhost/cgi-bin/advancedVRML2/getavatar.pl?jenny+1" },
Inline { url "http://localhost/cgi-bin/advancedVRML2/getavatar.pl?jenny+2" },
Inline { url "http://localhost/cgi-bin/advancedVRML2/getavatar.pl?jenny+3" },
Inline { url "http://localhost/cgi-bin/advancedVRML2/getavatar.pl?jenny+4" },
Inline { url "http://localhost/cgi-bin/advancedVRML2/getavatar.pl?jenny+5" },
Inline { url "http://localhost/cgi-bin/advancedVRML2/getavatar.pl?jenny+6" },
Inline { url "http://localhost/cgi-bin/advancedVRML2/getavatar.pl?jenny+7" },
Inline { url "http://localhost/cgi-bin/advancedVRML2/getavatar.pl?jenny+8" },
Inline { url "http://localhost/cgi-bin/advancedVRML2/getavatar.pl?jenny+9" },
Inline { url "http://localhost/cgi-bin/advancedVRML2/getavatar.pl?jenny+10" },
Inline { url "http://localhost/cgi-bin/advancedVRML2/getavatar.pl?jenny+11" },
Inline { url "http://localhost/cgi-bin/advancedVRML2/getavatar.pl?jenny+12" },
Inline { url "http://localhost/cgi-bin/advancedVRML2/getavatar.pl?jenny+13" },
Inline { url "http://localhost/cgi-bin/advancedVRML2/getavatar.pl?jenny+14" },
Inline { url "http://localhost/cgi-bin/advancedVRML2/getavatar.pl?jenny+15" },
Inline { url "http://localhost/cgi-bin/advancedVRML2/getavatar.pl?jenny+16" },
Inline { url "http://localhost/cgi-bin/advancedVRML2/getavatar.pl?jenny+17" },
Inline { url "http://localhost/cgi-bin/advancedVRML2/getavatar.pl?jenny+18" },
Inline { url "http://localhost/cgi-bin/advancedVRML2/getavatar.pl?jenny+19" },
Inline { url "http://localhost/cgi-bin/advancedVRML2/getavatar.pl?jenny+20" },
Inline { url "http://localhost/cgi-bin/advancedVRML2/getavatar.pl?jenny+21" },
Inline { url "http://localhost/cgi-bin/advancedVRML2/getavatar.pl?jenny+22" },
Inline { url "http://localhost/cgi-bin/advancedVRML2/getavatar.pl?jenny+23" },
Inline { url "http://localhost/cgi-bin/advancedVRML2/getavatar.pl?jenny+24" },
Inline { url "http://localhost/cgi-bin/advancedVRML2/getavatar.pl?jenny+25" },
Inline { url "http://localhost/cgi-bin/advancedVRML2/getavatar.pl?jenny+26" },
Inline { url "http://localhost/cgi-bin/advancedVRML2/getavatar.pl?jenny+27" },
Inline { url "http://localhost/cgi-bin/advancedVRML2/getavatar.pl?jenny+28" },
Inline { url "http://localhost/cgi-bin/advancedVRML2/getavatar.pl?jenny+29" },
Inline { url "http://localhost/cgi-bin/advancedVRML2/getavatar.pl?jenny+30" },
Inline { url "http://localhost/cgi-bin/advancedVRML2/getavatar.pl?jenny+31" },
Inline { url "http://localhost/cgi-bin/advancedVRML2/getavatar.pl?jenny+32" },
Inline { url "http://localhost/cgi-bin/advancedVRML2/getavatar.pl?jenny+33" },
Inline { url "http://localhost/cgi-bin/advancedVRML2/getavatar.pl?jenny+34" },
Inline { url "http://localhost/cgi-bin/advancedVRML2/getavatar.pl?jenny+35" },
Inline { url "http://localhost/cgi-bin/advancedVRML2/getavatar.pl?jenny+36" },
Inline { url "http://localhost/cgi-bin/advancedVRML2/getavatar.pl?jenny+37" },
Inline { url "http://localhost/cgi-bin/advancedVRML2/getavatar.pl?jenny+38" },
Inline { url "http://localhost/cgi-bin/advancedVRML2/getavatar.pl?jenny+39" },
Inline { url "http://localhost/cgi-bin/advancedVRML2/getavatar.pl?jenny+40" },
Inline { url "http://localhost/cgi-bin/advancedVRML2/getavatar.pl?jenny+41" },
Inline { url "http://localhost/cgi-bin/advancedVRML2/getavatar.pl?jenny+42" },
Inline { url "http://localhost/cgi-bin/advancedVRML2/getavatar.pl?jenny+43" },
Inline { url "http://localhost/cgi-bin/advancedVRML2/getavatar.pl?jenny+44" },
Inline { url "http://localhost/cgi-bin/advancedVRML2/getavatar.pl?jenny+45" },
Inline { url "http://localhost/cgi-bin/advancedVRML2/getavatar.pl?jenny+46" },
Inline { url "http://localhost/cgi-bin/advancedVRML2/getavatar.pl?jenny+47" },
Inline { url "http://localhost/cgi-bin/advancedVRML2/getavatar.pl?jenny+48" },
Inline { url "http://localhost/cgi-bin/advancedVRML2/getavatar.pl?jenny+49" },
Inline { url "http://localhost/cgi-bin/advancedVRML2/getavatar.pl?jenny+50" },
Inline { url "http://localhost/cgi-bin/advancedVRML2/getavatar.pl?jenny+51" },
Inline { url "http://localhost/cgi-bin/advancedVRML2/getavatar.pl?jenny+52" },
Inline { url "http://localhost/cgi-bin/advancedVRML2/getavatar.pl?jenny+53" },
Inline { url "http://localhost/cgi-bin/advancedVRML2/getavatar.pl?jenny+54" },
Inline { url "http://localhost/cgi-bin/advancedVRML2/getavatar.pl?jenny+55" },
Inline { url "http://localhost/cgi-bin/advancedVRML2/getavatar.pl?jenny+56" },
Inline { url "http://localhost/cgi-bin/advancedVRML2/getavatar.pl?jenny+57" },
Inline { url "http://localhost/cgi-bin/advancedVRML2/getavatar.pl?jenny+58" },
Inline { url "http://localhost/cgi-bin/advancedVRML2/getavatar.pl?jenny+59" },
Inline { url "http://localhost/cgi-bin/advancedVRML2/getavatar.pl?jenny+60" },
Inline { url "http://localhost/cgi-bin/advancedVRML2/getavatar.pl?jenny+61" },
Inline { url "http://localhost/cgi-bin/advancedVRML2/getavatar.pl?jenny+62" },
Inline { url "http://localhost/cgi-bin/advancedVRML2/getavatar.pl?jenny+63" },
Inline { url "http://localhost/cgi-bin/advancedVRML2/getavatar.pl?jenny+64" },
				     ]
			    },
		  ]
		      ROUTE jenny_TIME.fraction TO jenny_TOGGLE.set_fraction
		      ROUTE jenny_TOGGLE.which TO jenny_SWITCH.whichChild
	      },
	      DEF frank Group {
		  children [
			    DEF frank_TIME TimeSensor {
				startTime 1
				cycleInterval 30
				loop TRUE
			    },
			    DEF frank_TOGGLE Script {
				eventIn SFFloat set_fraction
				eventOut SFInt32 which 
				field SFInt32 thisVal 0
                                field SFFloat point 0.0
				field SFBool notLoaded TRUE
				
				    behavior "
                                       function set_fraction(frac) {
                                          if (frac >= 0.9) {
                                             if (notLoaded) {          
                                               if (thisVal >= 63) 
                                                  thisVal = 0;                                   
                                               else 
                                                  thisVal = thisVal+1;
                                               which = thisVal; 
                                               notLoaded = false;
                                           }
                                         } 
                                         if (frac <= 0.1) {
                                             notLoaded = true;
                                         }
                                      }"
				},
			    DEF frank_SWITCH Switch {
				whichChild 0
				    choices [

Inline { url "http://localhost/cgi-bin/advancedVRML2/getavatar.pl?frank+0" },
Inline { url "http://localhost/cgi-bin/advancedVRML2/getavatar.pl?frank+1" },
Inline { url "http://localhost/cgi-bin/advancedVRML2/getavatar.pl?frank+2" },
Inline { url "http://localhost/cgi-bin/advancedVRML2/getavatar.pl?frank+3" },
Inline { url "http://localhost/cgi-bin/advancedVRML2/getavatar.pl?frank+4" },
Inline { url "http://localhost/cgi-bin/advancedVRML2/getavatar.pl?frank+5" },
Inline { url "http://localhost/cgi-bin/advancedVRML2/getavatar.pl?frank+6" },
Inline { url "http://localhost/cgi-bin/advancedVRML2/getavatar.pl?frank+7" },
Inline { url "http://localhost/cgi-bin/advancedVRML2/getavatar.pl?frank+8" },
Inline { url "http://localhost/cgi-bin/advancedVRML2/getavatar.pl?frank+9" },
Inline { url "http://localhost/cgi-bin/advancedVRML2/getavatar.pl?frank+10" },
Inline { url "http://localhost/cgi-bin/advancedVRML2/getavatar.pl?frank+11" },
Inline { url "http://localhost/cgi-bin/advancedVRML2/getavatar.pl?frank+12" },
Inline { url "http://localhost/cgi-bin/advancedVRML2/getavatar.pl?frank+13" },
Inline { url "http://localhost/cgi-bin/advancedVRML2/getavatar.pl?frank+14" },
Inline { url "http://localhost/cgi-bin/advancedVRML2/getavatar.pl?frank+15" },
Inline { url "http://localhost/cgi-bin/advancedVRML2/getavatar.pl?frank+16" },
Inline { url "http://localhost/cgi-bin/advancedVRML2/getavatar.pl?frank+17" },
Inline { url "http://localhost/cgi-bin/advancedVRML2/getavatar.pl?frank+18" },
Inline { url "http://localhost/cgi-bin/advancedVRML2/getavatar.pl?frank+19" },
Inline { url "http://localhost/cgi-bin/advancedVRML2/getavatar.pl?frank+20" },
Inline { url "http://localhost/cgi-bin/advancedVRML2/getavatar.pl?frank+21" },
Inline { url "http://localhost/cgi-bin/advancedVRML2/getavatar.pl?frank+22" },
Inline { url "http://localhost/cgi-bin/advancedVRML2/getavatar.pl?frank+23" },
Inline { url "http://localhost/cgi-bin/advancedVRML2/getavatar.pl?frank+24" },
Inline { url "http://localhost/cgi-bin/advancedVRML2/getavatar.pl?frank+25" },
Inline { url "http://localhost/cgi-bin/advancedVRML2/getavatar.pl?frank+26" },
Inline { url "http://localhost/cgi-bin/advancedVRML2/getavatar.pl?frank+27" },
Inline { url "http://localhost/cgi-bin/advancedVRML2/getavatar.pl?frank+28" },
Inline { url "http://localhost/cgi-bin/advancedVRML2/getavatar.pl?frank+29" },
Inline { url "http://localhost/cgi-bin/advancedVRML2/getavatar.pl?frank+30" },
Inline { url "http://localhost/cgi-bin/advancedVRML2/getavatar.pl?frank+31" },
Inline { url "http://localhost/cgi-bin/advancedVRML2/getavatar.pl?frank+32" },
Inline { url "http://localhost/cgi-bin/advancedVRML2/getavatar.pl?frank+33" },
Inline { url "http://localhost/cgi-bin/advancedVRML2/getavatar.pl?frank+34" },
Inline { url "http://localhost/cgi-bin/advancedVRML2/getavatar.pl?frank+35" },
Inline { url "http://localhost/cgi-bin/advancedVRML2/getavatar.pl?frank+36" },
Inline { url "http://localhost/cgi-bin/advancedVRML2/getavatar.pl?frank+37" },
Inline { url "http://localhost/cgi-bin/advancedVRML2/getavatar.pl?frank+38" },
Inline { url "http://localhost/cgi-bin/advancedVRML2/getavatar.pl?frank+39" },
Inline { url "http://localhost/cgi-bin/advancedVRML2/getavatar.pl?frank+40" },
Inline { url "http://localhost/cgi-bin/advancedVRML2/getavatar.pl?frank+41" },
Inline { url "http://localhost/cgi-bin/advancedVRML2/getavatar.pl?frank+42" },
Inline { url "http://localhost/cgi-bin/advancedVRML2/getavatar.pl?frank+43" },
Inline { url "http://localhost/cgi-bin/advancedVRML2/getavatar.pl?frank+44" },
Inline { url "http://localhost/cgi-bin/advancedVRML2/getavatar.pl?frank+45" },
Inline { url "http://localhost/cgi-bin/advancedVRML2/getavatar.pl?frank+46" },
Inline { url "http://localhost/cgi-bin/advancedVRML2/getavatar.pl?frank+47" },
Inline { url "http://localhost/cgi-bin/advancedVRML2/getavatar.pl?frank+48" },
Inline { url "http://localhost/cgi-bin/advancedVRML2/getavatar.pl?frank+49" },
Inline { url "http://localhost/cgi-bin/advancedVRML2/getavatar.pl?frank+50" },
Inline { url "http://localhost/cgi-bin/advancedVRML2/getavatar.pl?frank+51" },
Inline { url "http://localhost/cgi-bin/advancedVRML2/getavatar.pl?frank+52" },
Inline { url "http://localhost/cgi-bin/advancedVRML2/getavatar.pl?frank+53" },
Inline { url "http://localhost/cgi-bin/advancedVRML2/getavatar.pl?frank+54" },
Inline { url "http://localhost/cgi-bin/advancedVRML2/getavatar.pl?frank+55" },
Inline { url "http://localhost/cgi-bin/advancedVRML2/getavatar.pl?frank+56" },
Inline { url "http://localhost/cgi-bin/advancedVRML2/getavatar.pl?frank+57" },
Inline { url "http://localhost/cgi-bin/advancedVRML2/getavatar.pl?frank+58" },
Inline { url "http://localhost/cgi-bin/advancedVRML2/getavatar.pl?frank+59" },
Inline { url "http://localhost/cgi-bin/advancedVRML2/getavatar.pl?frank+60" },
Inline { url "http://localhost/cgi-bin/advancedVRML2/getavatar.pl?frank+61" },
Inline { url "http://localhost/cgi-bin/advancedVRML2/getavatar.pl?frank+62" },
Inline { url "http://localhost/cgi-bin/advancedVRML2/getavatar.pl?frank+63" },
Inline { url "http://localhost/cgi-bin/advancedVRML2/getavatar.pl?frank+64" },
				     ]
			    },
		  ]
		      ROUTE frank_TIME.fraction TO frank_TOGGLE.set_fraction
		      ROUTE frank_TOGGLE.which TO frank_SWITCH.whichChild
	      }


    ]
}