// JavaScript Document
  
  function drawLinkPolylines(){
   	//first get new viewing extent information
		//checkBounds();
		
		//GLog.write("in Drawpolylines.");
		//GLog.write("doc: " + document.getElementById("myCanvas"));
    //call function to query DB and generate XML
		createXML('links', 'links', '');
		
  }
	
	
	function CustomPolyline(bounds, opt_weight, opt_color) {
	   //this.bounds_ = bounds;
		this.weight_ = opt_weight || 4;
		this.color_ = opt_color || "#888888";
	}
	
	
	CustomPolyline.prototype = new GOverlay();

	CustomPolyline.prototype.initialize = function(googleMap) {
  	// Create the DIV representing our rectangle
  	var div = document.createElement("div");
  	var div2 = document.getElementById("myCanvas");
  	   	
  	googleMap.getPane(G_MAP_MAP_PANE).appendChild(div2);
  		  
  	this.map_ = googleMap;
  	this.div_ = div;
  }
	
		
  // Remove the main DIV from the map pane
	CustomPolyline.prototype.remove = function() {
	    //this.div_.parentNode.removeChild(this.div_);
	}
		
	// Copy our data to a new Rectangle
	CustomPolyline.prototype.copy = function() {
		return new Line(this.bounds_, this.weight_, this.color_,
							   this.backgroundColor_, this.opacity_);
	}

	// Redraw the rectangle based on the current projection and zoom level
	CustomPolyline.prototype.redraw = function(force) {
			
      // We only need to redraw if the coordinate system has changed
      if (!force) return;
  	  jg_doc.clear();
  	  //createCustomOverlayAndDrawLinks();
  }
  
