/**
 * iconInitialization.js
 * Sets up the global icon varibles for use within the map view
 * 
 * @author Ross
 */

	function select()
	{
	    this.image = this.selectedImage;
	    //this.setImage(this.selectedImage);
	}
	
	function deselect()
	{
	    this.image = this.regularImage;
	}

    // Sets the default Icon to our specific image
    var icon = new GIcon();
    icon.image = "./icons/theMark.png";
	//    icon.shadow = "./icons/theMarkShadow.png";
    icon.iconSize = new GSize(41, 37);
    icon.shadowSize = new GSize(41, 37);
    icon.iconAnchor = new GPoint(6, 20);
    icon.infoWindowAnchor = new GPoint(5, 1);

	// Set Higlight Icon for selected Image marker
	var thisIcon = new GIcon();
 	thisIcon.image = "./icons/theHighlight.png";
	thisIcon.iconSize = new GSize(41, 37);
	thisIcon.shadowSize = new GSize(41, 37);
	thisIcon.iconAnchor = new GPoint(6, 20);
	thisIcon.infoWindowAnchor = new GPoint(5, 1);

	// Sets an alternate Icon to our specific image
    var clusterIcon = new GIcon();
    clusterIcon.image = "./icons/clusterMark.png";
    clusterIcon.regularImage = "./icons/clusterMark.png";
    clusterIcon.regularImage = "./icons/clusterMark.png";
    clusterIcon.selectedImage = "./icons/clusterHighlight.png";
	//    icon.shadow = "./icons/theMarkShadow.png";
    clusterIcon.iconSize = new GSize(41, 37);
    clusterIcon.shadowSize = new GSize(41, 37);
    clusterIcon.iconAnchor = new GPoint(6, 20);
    clusterIcon.infoWindowAnchor = new GPoint(5, 1);
	clusterIcon.select = select;
	clusterIcon.deselect = deselect;

	// Set Highlight Icon for selected Cluster Marker
	var clusterHighlightIcon = new GIcon();
 	clusterHighlightIcon.image = "./icons/clusterHighlight.png";
	clusterHighlightIcon.iconSize = new GSize(41, 37);
	clusterHighlightIcon.shadowSize = new GSize(41, 37);
	clusterHighlightIcon.iconAnchor = new GPoint(6, 20);
	clusterHighlightIcon.infoWindowAnchor = new GPoint(5, 1);

		// Sets an alternate Icon to our specific image
    var clusterIcon1 = new GIcon();
    clusterIcon1.image = "./icons/clusterMark1.png";
    clusterIcon1.regularImage = "./icons/clusterMark1.png";
    clusterIcon1.regularImage = "./icons/clusterMark1.png";
    clusterIcon1.selectedImage = "./icons/clusterHighlight1.png";
	//    icon.shadow = "./icons/theMarkShadow.png";
    clusterIcon1.iconSize = new GSize(41, 37);
    clusterIcon1.shadowSize = new GSize(41, 37);
    clusterIcon1.iconAnchor = new GPoint(6, 20);
    clusterIcon1.infoWindowAnchor = new GPoint(5, 1);
	clusterIcon1.select = select;
	clusterIcon1.deselect = deselect;

	// Set Highlight Icon for selected Cluster Marker
	var clusterHighlightIcon1 = new GIcon();
 	clusterHighlightIcon1.image = "./icons/clusterHighlight1.png";
	clusterHighlightIcon1.iconSize = new GSize(41, 37);
	clusterHighlightIcon1.shadowSize = new GSize(41, 37);
	clusterHighlightIcon1.iconAnchor = new GPoint(6, 20);
	clusterHighlightIcon1.infoWindowAnchor = new GPoint(5, 1);
	
		// Sets an alternate Icon to our specific image
    var clusterIcon2 = new GIcon();
    clusterIcon2.image = "./icons/clusterMark2.png";
    clusterIcon2.regularImage = "./icons/clusterMark2.png";
    clusterIcon2.regularImage = "./icons/clusterMark2.png";
    clusterIcon2.selectedImage = "./icons/clusterHighlight2.png";
	//    icon.shadow = "./icons/theMarkShadow.png";
    clusterIcon2.iconSize = new GSize(41, 37);
    clusterIcon2.shadowSize = new GSize(41, 37);
    clusterIcon2.iconAnchor = new GPoint(6, 20);
    clusterIcon2.infoWindowAnchor = new GPoint(5, 1);
	clusterIcon2.select = select;
	clusterIcon2.deselect = deselect;

	// Set Highlight Icon for selected Cluster Marker
	var clusterHighlightIcon2 = new GIcon();
 	clusterHighlightIcon2.image = "./icons/clusterHighlight2.png";
	clusterHighlightIcon2.iconSize = new GSize(41, 37);
	clusterHighlightIcon2.shadowSize = new GSize(41, 37);
	clusterHighlightIcon2.iconAnchor = new GPoint(6, 20);
	clusterHighlightIcon2.infoWindowAnchor = new GPoint(5, 1);
	
		// Sets an alternate Icon to our specific image
    var clusterIcon3 = new GIcon();
    clusterIcon3.image = "./icons/clusterMark3.png";
    clusterIcon3.regularImage = "./icons/clusterMark3.png";
    clusterIcon3.regularImage = "./icons/clusterMark3.png";
    clusterIcon3.selectedImage = "./icons/clusterHighlight3.png";
	//    icon.shadow = "./icons/theMarkShadow.png";
    clusterIcon3.iconSize = new GSize(41, 37);
    clusterIcon3.shadowSize = new GSize(41, 37);
    clusterIcon3.iconAnchor = new GPoint(6, 20);
    clusterIcon3.infoWindowAnchor = new GPoint(5, 1);
	clusterIcon3.select = select;
	clusterIcon3.deselect = deselect;

	// Set Highlight Icon for selected Cluster Marker
	var clusterHighlightIcon3 = new GIcon();
 	clusterHighlightIcon3.image = "./icons/clusterHighlight3.png";
	clusterHighlightIcon3.iconSize = new GSize(41, 37);
	clusterHighlightIcon3.shadowSize = new GSize(41, 37);
	clusterHighlightIcon3.iconAnchor = new GPoint(6, 20);
	clusterHighlightIcon3.infoWindowAnchor = new GPoint(5, 1);
	
		// Sets an alternate Icon to our specific image
    var clusterIcon4 = new GIcon();
    clusterIcon4.image = "./icons/clusterMark.png";
    clusterIcon4.regularImage = "./icons/clusterMark.png";
    clusterIcon4.regularImage = "./icons/clusterMark.png";
    clusterIcon4.selectedImage = "./icons/clusterHighlight.png";
	//    icon.shadow = "./icons/theMarkShadow.png";
    clusterIcon4.iconSize = new GSize(41, 37);
    clusterIcon4.shadowSize = new GSize(41, 37);
    clusterIcon4.iconAnchor = new GPoint(6, 20);
    clusterIcon4.infoWindowAnchor = new GPoint(5, 1);
	clusterIcon4.select = select;
	clusterIcon4.deselect = deselect;

	// Set Highlight Icon for selected Cluster Marker
	var clusterHighlightIcon4 = new GIcon();
 	clusterHighlightIcon4.image = "./icons/clusterHighlight.png";
	clusterHighlightIcon4.iconSize = new GSize(41, 37);
	clusterHighlightIcon4.shadowSize = new GSize(41, 37);
	clusterHighlightIcon4.iconAnchor = new GPoint(6, 20);
	clusterHighlightIcon4.infoWindowAnchor = new GPoint(5, 1);
	
