

function update_weather(){ 			//loads new weather

/*	$.ajax({
		type: "GET",
		url:"update_weather.php",	//Curl request to yahoo

		dataType: "html",
		success: function(html) {
		 $(function() {*/
					update_page(html);
					/*});
		},error: function(XMLHttpRequest, textStatus, errorThrown){
	
		}
	});*/
};	
function update_page(html) {
//var data;	
//	data = html;
	//alert("am i running");
//	var foo;
///*	foo = $(data).find("current_conditions").each(function(){
//			
//			var temp_f;
//			temp_f = $(this).find('temp_f').attr('data');
//			alert(temp_f);
//			alert("test");
//			$("#temp").html("<h3>Current<br />Temperture</h3><p class=bigred>"+temp_f+"&deg;F</p>");		   
//	});*/

///*	foo = $(data).find("current_conditions").find("temp_f").attr('data');
//	$("#temp").html("<h3>Current<br />Temperture</h3><p class=bigred>"+foo+"&deg;F</p>");*/
	
//	foo = $(data).find("temp_f").attr('data');
//$("#temp").html("<h3>Current<br />Temperture</h3><p class=bigred>"+foo+"&deg;F</p>");

$("#temp").html(" ");

/*	$("#temp").html("<div style='width: 148px; height: 200px; background-image: url( http://vortex.accuweather.com/adcbin/netweather_v2/backgrounds/blue_180x150_bg.jpg ); background-repeat: no-repeat; background-color: #346797;' ><div id='NetweatherContainer' style='height: 138px;' ><script src='http://netweather.accuweather.com/adcbin/netweather_v2/netweatherV2ex.asp?partner=netweather&tStyle=whteYell&logo=1&zipcode=33196&lang=eng&size=8&theme=blue&metric=0&target=_self'></script></div><div style='text-align: center; font-family: arial, helvetica, verdana, sans-serif; font-size: 10px; line-height: 12px; color: #FFFFFF;' ><a style='color: #FFFFFF' href='http://www.accuweather.com/us/FL/MIAMI/33196/city-weather-forecast.asp?partner=accuweather&traveler=0' >Weather Forecast</a> | <a style='color: #FFFFFF' href='http://www.accuweather.com/maps-satellite.asp' >Weather Maps</a></div></div>");*/
	
};

$(document).ready(function() {
    $(function() { 					//creates slider 
        $("div#controller").jFlow({
            slides: "#slides",
            width: "658px",
            height: "216px" 
        });
		
    });
	
						   
});
