What Condition Should i Use in Script Such That It Will Change The Color Of Poyline Google Map V2 On Page Reload C# Web App
<p>i am trying to change my polyline color on pagereload such that for the first time the color of poly line would be red and after it when i reload page it changes it to blue and when i would again reload it then it wouls change back it back to red and so on.. .
   i have done this functionality on polyline click but now i have to do it on page reload i am using script from server side 
my code below,</p>

<pre><code>var activeColor = '#ff0000';
var inactiveColor = '#0000FF';  
var points = [  
   new GLatLng(24.85229, 67.01703),  
   new GLatLng(24.914463, 67.0965958),  
   new GLatLng(24.86588, 67.06089),  
new GLatLng(24.9726753, 67.06638),
new GLatLng(24.840023, 67.24285),
new GLatLng(24.85229, 67.01703)
];  
  var count=0;
count++;
// Create a new polyline  
var polyline = new GPolyline(points, '#ff0000', 5, 0.7);  

    GEvent.addListener(polyline, 'click', function() {
           // swap activecolor with inactivecolor
           var color = inactiveColor;
           inactiveColor = activeColor;
           activeColor = color;

           // set activecolor
           polyline.setStrokeStyle({ color: activeColor }); 
        }); 


// Add the polyline to the map using map.addOverlay()  
map.addOverlay(polyline);
</code></pre>

<p>Hopes for your Suggestions</p>
