function getDiv(name) {
    isNS4 = (document.layers) ? true : false;
    isIE4 = (document.all && !document.getElementById) ? true : false;
    isIE5 = (document.all && document.all.getElementById) ? true : false;
    isNS6 = (!document.all && document.getElementById) ? true : false;

    if (isNS4) {
        eval('element = document.layers["' + name + '"];');
    }
    else if (isIE4) {
        eval('element = document.all["' + name + '"];');
    }
    else if (isIE5) {
        eval('element = document.all.getElementById("' + name + '");');
    }
    else if (isNS6) {
        eval('element = document.getElementById("' + name + '");');
    }
    else {
        eval('element = ' + name);
    }

    return element;
}

function outputCountyLines() {
	// Buncombe County
	var polygon = new GPolygon([
		new GLatLng(35.67988848691439,-82.88394927978515),
		new GLatLng(35.70108032831461,-82.84618377685547),
		new GLatLng(35.686023546328364,-82.80155181884765),
		new GLatLng(35.73285753180565,-82.71434783935547),
		new GLatLng(35.726726075847544,-82.6717758178711),
		new GLatLng(35.740103189370714,-82.66765594482422),
		new GLatLng(35.8041706703585,-82.5131607055664),
		new GLatLng(35.800829295548745,-82.46440887451172),
		new GLatLng(35.82421596737657,-82.3813247680664),
		new GLatLng(35.82031866707593,-82.3648452758789),
		new GLatLng(35.800272386082454,-82.34012603759765),
		new GLatLng(35.75180632031077,-82.3373794555664),
		new GLatLng(35.707213757839206,-82.27764129638672),
		new GLatLng(35.6268842568968,-82.2762680053711),
		new GLatLng(35.59450649082071,-82.29206085205078),
		new GLatLng(35.529152854618985,-82.17395782470703),
		new GLatLng(35.52132919193037,-82.23438262939453),
		new GLatLng(35.46094959217944,-82.24742889404297),
		new GLatLng(35.500089691671185,-82.33463287353515),
		new GLatLng(35.48275857019274,-82.36759185791015),
		new GLatLng(35.46094959217944,-82.36072540283203),
		new GLatLng(35.47381201273916,-82.4190902709961),
		new GLatLng(35.444728825696934,-82.47539520263672),
		new GLatLng(35.444728825696934,-82.53650665283203),
		new GLatLng(35.43354018517819,-82.57221221923828),
		new GLatLng(35.459831023610185,-82.67314910888672),
		new GLatLng(35.447525742853344,-82.71778106689453),
		new GLatLng(35.42234998978843,-82.74456024169922),
		new GLatLng(35.4413723968153,-82.78369903564453),
		new GLatLng(35.469338360654994,-82.79674530029297),
		new GLatLng(35.53753450391955,-82.76653289794922),
		new GLatLng(35.59059794325507,-82.78438568115234),
		new GLatLng(35.62800049784654,-82.81391143798828),
		new GLatLng(35.61572099027157,-82.84893035888672),
		new GLatLng(35.6391620501367,-82.85442352294922),
		new GLatLng(35.63692986436829,-82.8695297241211),
		new GLatLng(35.67821520701975,-82.88532257080078)
	], "#000000", "2", "0.9", "#000000", "0.0");
				map.addOverlay(polygon);

	// Henderson County
	var polygon2 = new GPolygon([				
		new GLatLng(35.42262976362147,-82.74438858032226),
		new GLatLng(35.30503929769342,-82.6201057434082),
		new GLatLng(35.28878715881986,-82.61907577514648),
		new GLatLng(35.28878715881986,-82.61152267456054),
		new GLatLng(35.259637221055435,-82.61564254760742),
		new GLatLng(35.25879620180629,-82.60465621948242),
		new GLatLng(35.224867818244085,-82.60465621948242),
		new GLatLng(35.14602071883606,-82.57650375366211),
		new GLatLng(35.15247727016122,-82.56414413452148),
		new GLatLng(35.15331939126145,-82.55521774291992),
		new GLatLng(35.16370483481588,-82.54663467407226),
		new GLatLng(35.159494679666686,-82.53633499145508),
		new GLatLng(35.16230147397997,-82.51710891723633),
		new GLatLng(35.16566949930587,-82.50577926635742),
		new GLatLng(35.162862821220045,-82.49582290649414),
		new GLatLng(35.17408895239005,-82.48723983764648),
		new GLatLng(35.17689524301572,-82.4549674987793),
		new GLatLng(35.16538883585593,-82.45702743530273),
		new GLatLng(35.16566949930587,-82.43986129760742),
		new GLatLng(35.18138510651846,-82.42544174194336),
		new GLatLng(35.200183716057495,-82.41891860961914),
		new GLatLng(35.20663596719817,-82.4003791809082),
		new GLatLng(35.215331668466256,-82.39213943481445),
		new GLatLng(35.2108436808834,-82.38424301147461),
		new GLatLng(35.196536564747355,-82.37909317016601),
		new GLatLng(35.19204753833415,-82.3838996887207),
		new GLatLng(35.180262663893174,-82.37222671508789),
		new GLatLng(35.18755826387796,-82.36398696899414),
		new GLatLng(35.19036408947987,-82.36398696899414),
		new GLatLng(35.1912058182671,-82.35471725463867),
		new GLatLng(35.22823325064214,-82.35128402709961),
		new GLatLng(35.22851369704126,-82.35986709594726),
		new GLatLng(35.243095573943165,-82.35986709594726),
		new GLatLng(35.24337596896174,-82.3509407043457),
		new GLatLng(35.286825473077606,-82.34441757202148),
		new GLatLng(35.30840140169162,-82.3286247253418),
		new GLatLng(35.307560888791066,-82.31729507446289),
		new GLatLng(35.33669357269043,-82.29806900024414),
		new GLatLng(35.365255815053324,-82.28055953979492),
		new GLatLng(35.393807955257614,-82.26133346557617),
		new GLatLng(35.406960932702006,-82.26957321166992),
		new GLatLng(35.43046303643828,-82.27437973022461),
		new GLatLng(35.44724605551147,-82.27609634399414),
		new GLatLng(35.46849952318069,-82.26613998413086)

], "#000000", "2", "0.9", "#000000", "0.0");
				map.addOverlay(polygon2);
				
	
	// Haywood County
	var polygon3 = new GPolygon([	
	new GLatLng(35.678772970883216,-82.88394927978515),
	new GLatLng(35.686023546328364,-82.90111541748047),
	new GLatLng(35.74511902760501,-82.9189682006836),
	new GLatLng(35.73787382649612,-82.9464340209961),
	new GLatLng(35.756264203297114,-82.95673370361328),
	new GLatLng(35.7757645048435,-82.95055389404297),
	new GLatLng(35.7908043278455,-82.96222686767578),
	new GLatLng(35.77353614091866,-82.99518585205078),
	new GLatLng(35.78969036446858,-83.07758331298828),
	new GLatLng(35.76629352689996,-83.12015533447265),
	new GLatLng(35.76462206077018,-83.1613540649414),
	new GLatLng(35.72951315979671,-83.1881332397461),
	new GLatLng(35.72561121496228,-83.2375717163086),
	new GLatLng(35.715019258386555,-83.2547378540039),
	new GLatLng(35.70944397885345,-83.2492446899414),
	new GLatLng(35.69606171682879,-83.2547378540039),
	new GLatLng(35.69215813397402,-83.2162857055664),
	new GLatLng(35.68044623908206,-83.20667266845703),
	new GLatLng(35.670406103594644,-83.18470001220703),
	new GLatLng(35.65869101589245,-83.19499969482422),
	new GLatLng(35.64362623462753,-83.20255279541015),
	new GLatLng(35.640278119640456,-83.18675994873047),
	new GLatLng(35.6268842568968,-83.17646026611328),
	new GLatLng(35.61181347880092,-83.1778335571289),
	new GLatLng(35.58613079808125,-83.1826400756836),
	new GLatLng(35.577754229123094,-83.16753387451172),
	new GLatLng(35.55261926581075,-83.1551742553711),
	new GLatLng(35.51182800474569,-83.18401336669922),
	new GLatLng(35.507915424360476,-83.16204071044922),
	new GLatLng(35.49673557281076,-83.1606674194336),
	new GLatLng(35.492263196483144,-83.14006805419922),
	new GLatLng(35.46486445968382,-83.13800811767578),
	new GLatLng(35.45871243948727,-83.09268951416015),
	new GLatLng(35.44640698765411,-83.08032989501953),
	new GLatLng(35.39492744113217,-83.04325103759765),
	new GLatLng(35.29299061106026,-82.92171478271484),
	new GLatLng(35.32156829695905,-82.8317642211914),
	new GLatLng(35.37645393700021,-82.79056549072265),
	new GLatLng(35.42402861821164,-82.74456024169922),
], "#000000", "2", "0.9", "#000000", "0.0");
				map.addOverlay(polygon3);
				

// Transylvania County
var polygon4 = new GPolygon([	

	new GLatLng(35.29186971180519,-82.92034149169922),
	new GLatLng(35.22514827627523,-82.93407440185547),
	new GLatLng(35.21505117651117,-82.96016693115234),
	new GLatLng(35.19204753833415,-82.97115325927734),
	new GLatLng(35.18699708713111,-82.98763275146484),
	new GLatLng(35.16791477203553,-82.9800796508789),
	new GLatLng(35.16342416458585,-82.9965591430664),
	new GLatLng(35.149389418224565,-82.98831939697265),
	new GLatLng(35.13366762810111,-82.97733306884765),
	new GLatLng(35.11738114457128,-82.99930572509765),
	new GLatLng(35.0803032166219,-83.03707122802734),
	new GLatLng(35.05388895970774,-83.05423736572265),
	new GLatLng(35.038148744056585,-83.03157806396484),
	new GLatLng(35.02802843252426,-83.0068588256836),
	new GLatLng(35.084798408974386,-82.7816390991211),
	new GLatLng(35.06625414410446,-82.77957916259765),
	new GLatLng(35.06794016051078,-82.76447296142578),
	new GLatLng(35.081427037932094,-82.75074005126953),
	new GLatLng(35.09491168605537,-82.7273941040039),
	new GLatLng(35.09772070711524,-82.69718170166015),
	new GLatLng(35.11007925001523,-82.6889419555664),
	new GLatLng(35.12973670612292,-82.67932891845703),
	new GLatLng(35.11906610423392,-82.67452239990234),
	new GLatLng(35.13142141020721,-82.6388168334961),
	new GLatLng(35.12692878852964,-82.63469696044922),
	new GLatLng(35.133106079436835,-82.6230239868164),
	new GLatLng(35.13872139179806,-82.61547088623047),
	new GLatLng(35.14602071883606,-82.57770538330078),
				
], "#000000", "2", "0.9", "#000000", "0.0");
				map.addOverlay(polygon4);


// Jackson
	var polygon5 = new GPolygon([				
		new GLatLng(35.02746615625006,-83.0068588256836),
		new GLatLng(35.001597267129775,-83.10848236083984),
		new GLatLng(35.00103480910478,-83.10710906982422),
		new GLatLng(35.01284561564833,-83.11260223388672),
		new GLatLng(35.01509509974523,-83.12496185302734),
		new GLatLng(35.039835340801474,-83.13045501708984),
		new GLatLng(35.06175793009525,-83.16959381103515),
		new GLatLng(35.068502158240285,-83.1723403930664),
		new GLatLng(35.081427037932094,-83.14556121826172),
		new GLatLng(35.098844288441676,-83.15311431884765),
		new GLatLng(35.10951753871592,-83.1778335571289),
		new GLatLng(35.13647531332917,-83.18950653076172),
		new GLatLng(35.16061740901449,-83.2217788696289),
		new GLatLng(35.19260868020094,-83.21834564208984),
		new GLatLng(35.224587359243635,-83.21834564208984),
		new GLatLng(35.238609121791896,-83.22521209716797),
		new GLatLng(35.23973075809773,-83.24031829833984),
		new GLatLng(35.23187897821993,-83.24649810791015),
		new GLatLng(35.22851369704126,-83.27739715576172),
		new GLatLng(35.23916994188378,-83.29524993896484),
		new GLatLng(35.255992741277886,-83.30005645751953),
		new GLatLng(35.26328153694862,-83.31241607666015),
		new GLatLng(35.29691363621542,-83.31584930419922),
		new GLatLng(35.32997157732344,-83.33919525146484),
		new GLatLng(35.35461616019626,-83.3316421508789),
		new GLatLng(35.38988963231102,-83.34606170654297),
		new GLatLng(35.39828580550642,-83.33988189697265),
		new GLatLng(35.41115823973849,-83.35224151611328),
		new GLatLng(35.43074278209168,-83.3639144897461),
		new GLatLng(35.47213442237491,-83.34674835205078),
		new GLatLng(35.465423710915765,-83.32134246826172),
		new GLatLng(35.47884457381937,-83.3096694946289),
		new GLatLng(35.51182800474569,-83.26091766357422),
		new GLatLng(35.526358776931616,-83.2162857055664),
		new GLatLng(35.5129458498385,-83.18401336669922)
	], "#000000", "2", "0.9", "#000000", "0.0");
				map.addOverlay(polygon5);

// Madison
	var polygon5 = new GPolygon([				
		new GLatLng(35.79191827560764,-82.96016693115234),
		new GLatLng(35.82644291020581,-82.94506072998047),
		new GLatLng(35.842586376928224,-82.91759490966797),
		new GLatLng(35.86929937906218,-82.92171478271484),
		new GLatLng(35.880983486863975,-82.89630889892578),
		new GLatLng(35.929370715066334,-82.9196548461914),
		new GLatLng(35.928814708125316,-82.90180206298828),
		new GLatLng(35.9454932154335,-82.89974212646484),
		new GLatLng(35.95271947561162,-82.87364959716797),
		new GLatLng(35.94938436073357,-82.8530502319336),
		new GLatLng(35.923254423674145,-82.81871795654297),
		new GLatLng(35.93048271721855,-82.80086517333984),
		new GLatLng(35.97272720799363,-82.77477264404297),
		new GLatLng(35.98717408403631,-82.78644561767578),
		new GLatLng(36.00384026985592,-82.77202606201172),
		new GLatLng(36.027167013018165,-82.71366119384765),
		new GLatLng(36.06491948077382,-82.6340103149414),
		new GLatLng(36.03494105976243,-82.59212493896484),
		new GLatLng(35.994952075660635,-82.61409759521484),
		new GLatLng(35.96772575014511,-82.61066436767578),
		new GLatLng(35.95605444969449,-82.56122589111328),
		new GLatLng(35.954942807311106,-82.55985260009765),
		new GLatLng(35.97772834898076,-82.50560760498047),
		new GLatLng(35.958277687527534,-82.49736785888672),
		new GLatLng(35.949940222990456,-82.48157501220703),
		new GLatLng(35.92714666384289,-82.49874114990234),
		new GLatLng(35.90879585444186,-82.49462127685547),
		new GLatLng(35.89878452774689,-82.4527359008789),
		new GLatLng(35.818648336942566,-82.4135971069336),
	], "#000000", "2", "0.9", "#000000", "0.0");
				map.addOverlay(polygon5);
				
// Yancey
	var polygon6 = new GPolygon([				
		new GLatLng(35.97633917493598,-82.50629425048828),
		new GLatLng(36.006339893978975,-82.46166229248047),
		new GLatLng(36.07352228885536,-82.41703033447265),
		new GLatLng(36.07296729737156,-82.3978042602539),
		new GLatLng(36.08351146584745,-82.39917755126953),
		new GLatLng(36.07019228120844,-82.3806381225586),
		new GLatLng(36.08628601202589,-82.35454559326172),
		new GLatLng(36.03077648727851,-82.33943939208984),
		new GLatLng(36.0241127133185,-82.31128692626953),
		new GLatLng(36.04521273039951,-82.30030059814453),
		new GLatLng(36.01467140204727,-82.26734161376953),
		new GLatLng(36.00078506609133,-82.27558135986328),
		new GLatLng(35.991896527553216,-82.2494888305664),
		new GLatLng(36.00856171556126,-82.25292205810547),
		new GLatLng(36.005784428799934,-82.23918914794922),
		new GLatLng(36.01411599557126,-82.19799041748047),
		new GLatLng(35.99356320483023,-82.19867706298828),
		new GLatLng(35.95966717939459,-82.18563079833984),
		new GLatLng(35.95132986152265,-82.19799041748047),
		new GLatLng(35.93020471814674,-82.14923858642578),
		new GLatLng(35.9040684413201,-82.14786529541015),
		new GLatLng(35.82560781396721,-82.1444320678711),
		new GLatLng(35.82449433864731,-82.1341323852539),
		new GLatLng(35.80055084130362,-82.16022491455078),
		new GLatLng(35.77938546303045,-82.16022491455078),
		new GLatLng(35.755428369259626,-82.1828842163086),
		new GLatLng(35.73648044300147,-82.19661712646484),
		new GLatLng(35.70080152485189,-82.25910186767578)
	], "#000000", "2", "0.9", "#000000", "0.0");
				map.addOverlay(polygon6);
				
// Mitchell
	var polygon7 = new GPolygon([				
		new GLatLng(36.072412301971454,-82.41634368896484),
		new GLatLng(36.11735423846347,-82.3531723022461),
		new GLatLng(36.13565654678543,-82.28862762451172),
		new GLatLng(36.13177459556439,-82.24605560302734),
		new GLatLng(36.1572810451043,-82.22339630126953),
		new GLatLng(36.148410177249225,-82.14923858642578),
		new GLatLng(36.10515032898298,-82.1286392211914),
		new GLatLng(36.104040788637356,-82.08194732666015),
		new GLatLng(36.00911716117324,-82.04280853271484),
		new GLatLng(35.98967423640589,-82.05997467041015),
		new GLatLng(35.94076799566984,-82.03319549560547),
		new GLatLng(35.93187269791514,-82.01534271240234),
		new GLatLng(35.91296686677368,-81.98238372802734),
		new GLatLng(35.87458526032415,-82.00092315673828),
		new GLatLng(35.88571227867025,-82.02083587646484),
		new GLatLng(35.85399615609835,-82.05036163330078),
		new GLatLng(35.8512134345006,-82.09980010986328),
		new GLatLng(35.82505107825988,-82.12451934814453),
		new GLatLng(35.82393759512953,-82.13275909423828)
	], "#000000", "2", "0.9", "#000000", "0.0");
				map.addOverlay(polygon7);

// McDowell
	var polygon8 = new GPolygon([				
		new GLatLng(35.914635210137085,-81.98238372802734),
		new GLatLng(35.93187269791514,-81.95697784423828),
		new GLatLng(35.94076799566984,-81.96727752685547),
		new GLatLng(35.95966717939459,-81.94255828857422),
		new GLatLng(35.93798832265392,-81.92676544189453),
		new GLatLng(35.90184367860065,-81.91165924072265),
		new GLatLng(35.85010031851635,-81.9192123413086),
		new GLatLng(35.83729836166517,-81.93981170654297),
		new GLatLng(35.81948350640237,-81.95697784423828),
		new GLatLng(35.806676609227054,-81.98444366455078),
		new GLatLng(35.719757939334336,-81.87114715576172),
		new GLatLng(35.59701902776685,-81.82926177978515),
		new GLatLng(35.57915038479427,-81.82445526123047),
		new GLatLng(35.54284242887846,-81.84574127197265),
		new GLatLng(35.523844023831515,-81.9686508178711),
		new GLatLng(35.55122264780622,-82.00298309326172),
		new GLatLng(35.535578864073635,-82.0235824584961),
		new GLatLng(35.51713763032152,-82.1506118774414),
		new GLatLng(35.527755827936524,-82.17052459716797)
	], "#000000", "2", "0.9", "#000000", "0.0");
				map.addOverlay(polygon8);
	
// Rutherford
	var polygon9 = new GPolygon([				
		new GLatLng(35.578033462204296,-81.82308197021484),
		new GLatLng(35.578033462204296,-81.80042266845703),
		new GLatLng(35.594227315180504,-81.7935562133789),
		new GLatLng(35.59646069303909,-81.76952362060547),
		new GLatLng(35.61041789273051,-81.75579071044922),
		new GLatLng(35.605393581291466,-81.71871185302734),
		new GLatLng(35.57915038479427,-81.69261932373047),
		new GLatLng(35.35713620515616,-81.70291900634765),
		new GLatLng(35.18110449731532,-81.76815032958984),
		new GLatLng(35.18840002173176,-81.9693374633789),
		new GLatLng(35.22991591449645,-81.96521759033203),
		new GLatLng(35.26580442886753,-81.97895050048828),
		new GLatLng(35.333612727545855,-82.0565414428711),
		new GLatLng(35.40919952365698,-82.15953826904297),
		new GLatLng(35.39520731017247,-82.2604751586914)	
	], "#000000", "2", "0.9", "#000000", "0.0");
				map.addOverlay(polygon9);

	// Rutherford
	var polygon10 = new GPolygon([				
		new GLatLng(35.18727767598896,-81.9693374633789),
		new GLatLng(35.20074480172401,-82.27832794189453),
		new GLatLng(35.185032937998294,-82.3263931274414),
		new GLatLng(35.1912058182671,-82.35454559326172)
	], "#000000", "2", "0.9", "#000000", "0.0");
				map.addOverlay(polygon10);

}

function getHeatResolution() {
	var value = "";
	for(var i = 0; i < document.searchForm.heatresolution.length; i++) {
		if(document.searchForm.heatresolution[i].checked) {
			value = document.searchForm.heatresolution[i].value;
		}
	}
	
	return value;
}

function genHex(){
	colors = new Array(8)
	colors[0]="#0600ff";
	colors[1]="#008aff";
	colors[2]="#00ac18";
	colors[3]="#00ff24";
	colors[4]="#fffc00";
	colors[5]="#ffa200";
	colors[5]="#ff0000";
	colors[6]="#880000";
	colors[7]="#000000";

	return colors[Math.round(Math.random()*8)]
}


function showPopup(marker, text)  {
	// Remove existing popup
	removePopup();
	var mytext = '<table width=100% style="position: relative;"><td align=right><img src="http://prudential.mlskit.com/prudentialasheville/images/close.gif" onclick="removePopup();"></img></td></table>' + text;
	
	var c = map.fromLatLngToDivPixel(new GLatLng(marker.getPoint().y, marker.getPoint().x));
	var top = map.fromLatLngToDivPixel(map.getBounds().getNorthEast()).y;
	var right = map.fromLatLngToDivPixel(map.getBounds().getNorthEast()).x;
	
	// Popup Dimenstions
	var popupWidth = 290;
	var popupHeight = 180;
	
	// Determine where we need the popup to happen (default is top right)
	var popupRight = true;
	var popupTop = true;
	
	var popupX = -15;
	var popupY = popupHeight + 31;
	
	if(c.x > right - popupWidth) {
		popupX = popupWidth + 22;
		popupRight = false;
	}
	
	if(c.y - top < popupHeight) {
		popupY = 0;
		popupTop = false;
	}
	
	var pointer = point_sw;
	var pointTop = "175px";
	var pointLeft = "-11px";
	
	if(popupTop && !popupRight) {
		pointer = point_se;
		pointLeft = "290px";
	}
	if(!popupTop && !popupRight) {
		pointer = point_ne;
		pointLeft = "290px";
		pointTop = "-11px";
	}
	if(!popupTop && popupRight) {
		pointer = point_nw;
		pointTop = "-11px";
	}

	// Add the arrow to the text
	mytext = '<table style="position: absolute; top: ' + pointTop + '; left: ' + pointLeft + ';"><td><img src="' + pointer + '"></img></td></table>' + mytext;
	
	// Create the popup
	var opacity = 0.9;
	popup = document.createElement("div");
	popup.style.display    = "none";
	popup.style.position   = "absolute";
	popup.style.background = "#fff";
	popup.style.padding    = "0";
	popup.style.margin     = "0";
	popup.style.MozOpacity = opacity;
	//popup.style.filter     = "alpha(opacity=" + (opacity*100) + ")";
	popup.style.opacity    = opacity;
	popup.style.zIndex     = 50000;
	popup.innerHTML        = mytext;

	map.getPane(G_MAP_MARKER_PANE).appendChild(popup);
	
	try {
		popup.style.top  = c.y - popupY;
		popup.style.left = c.x - popupX;
		popup.style.display = "block";
	} catch(e) {
		alert(e);
	}    
}

function showPopupArea(marker, text)  {
	// Remove existing popup
	removePopup();

	var c = map.fromLatLngToDivPixel(new GLatLng(marker.getPoint().y, marker.getPoint().x));
	var top = map.fromLatLngToDivPixel(map.getBounds().getNorthEast()).y;
	var right = map.fromLatLngToDivPixel(map.getBounds().getNorthEast()).x;
	
	// Determine where we need the popup to happen (default is top right)
	var popupRight = true;
	var popupTop = true;
	
	var popupX = 10;
	var popupY = 7;

	// Create the popup
	var opacity = 0.9;
	popup = document.createElement("div");
	popup.style.display    = "none";
	popup.style.position   = "absolute";
	popup.style.background = "#fff";
	popup.style.padding    = "0";
	popup.style.margin     = "0";
	popup.style.MozOpacity = opacity;
	popup.style.filter     = "alpha(opacity=" + (opacity * 100) + ")";
	popup.style.opacity    = opacity;
	popup.style.zIndex     = 50000;
	popup.innerHTML        = text;

	map.getPane(G_MAP_MARKER_PANE).appendChild(popup);
		
	try {
		popup.style.top  = c.y + popupY;
		popup.style.left = c.x - popupX;
		popup.style.display = "block";
	} catch(e) {
		alert(e);
	}    
}