var TWO = {
	Config : {
		sPathImg : "http://thecoxteam.com/-/img/"
		,sPathSwf : "http://thecoxteam.com/-/swf/"
		,sSelPNG : "#btn_contact,.title,#sidebar_btm,#sidebar_top,#subnav,ul#sub li,.empty_divider,.input,#btn_advsearch,#btn_search_map,#btn_signup,#btn_like_property,#quick_details,ul#other_prop_list li,#agents,#featured_property,ul#property_features li,#btn_virtual_tour,.listing,.Pending,.Available,.Sold,#btn_gallery,#overlay,#two_col_details,#phone,#email,.school ul li,#adv_search_top,#adv_search_btm,a#btn_aplogo,input#input_search,#btn_enter,#search_dd,#search_loop,#search_btm,#dd_arrow,#address,#fax,#featured_property_nav,#sitemap ul li"
	}

	/*
		STOP EDITING HERE
	*/
	,init : function() {
		var c = TWO;
		var p = c.Project;

		$(document).ready(function() {
			// List function(s) to fire onload here
			p.labelText();
			if (typeof DD_belatedPNG != "undefined") {
				DD_belatedPNG.fix(c.Config.sSelPNG);
			}
		});

		p.loadSIFR();
	}
	,Project : {
		loadSIFR : function() {
			var c = TWO;

				/*
					Register the fonts
				*/
				var archer = {
				  src: 'http://thecoxteam.com/-/swf/archer.swf'
				};
				
				var archer_it = {
				  src: 'http://thecoxteam.com/-/swf/archer_it.swf'
				};


				/*
					Activate the fonts
				*/
				sIFR.activate(archer, archer_it);


				/*
					Hi, we're the replacements
				*/
				sIFR.replace(archer, {
					selector: '#left h1, .attraction h3, #more_prop_details h3, #office_info h3, #email_notes h3'
					,css: [
						'.sIFR-root { background-color: #cfc6a5; color: #5f4704; font-size: 17px; }'
					]
					,filters: {
						DropShadow: {
							angle: 90
							,blurX: 0
							,blurY: 0
							,distance: 1
							,color: '#FFFFFF'
							,strength: 2
							,alpha: .5
						}
					}
					,wmode: 'transparent'
				});
				
				sIFR.replace(archer, {
					selector: '#agents h3'
					,css: [
						'.sIFR-root { background-color: #cfc6a5; color: #5f4704; font-size: 14px; }'
					]
					,filters: {
						DropShadow: {
							angle: 90
							,blurX: 0
							,blurY: 0
							,distance: 1
							,color: '#FFFFFF'
							,strength: 2
							,alpha: .5
						}
					}
					,wmode: 'transparent'
				});
				
				sIFR.replace(archer, {
					selector: '#adv_search h3'
					,css: [
						'.sIFR-root { background-color: #cfc6a5; color: #5f4704; font-size: 16px; }'
					]
					,filters: {
						DropShadow: {
							angle: 90
							,blurX: 0
							,blurY: 0
							,distance: 1
							,color: '#FFFFFF'
							,strength: 2
							,alpha: .5
						}
					}
					,wmode: 'transparent'
				});
				
				sIFR.replace(archer_it, {
					selector: '#features h1, #no_results h1'
					,css: '.sIFR-root { background-color: #cfc6a5; color: #5f4704; font-size: 22px; }'
					,wmode: 'transparent'
				});
				
				sIFR.replace(archer, {
					selector: '#other_properties h1'
					,css: '.sIFR-root { background-color: #cfc6a5; color: #5f4704; font-size: 17px; }'
					,wmode: 'transparent'
				});
				
				sIFR.replace(archer, {
					selector: '#two_col h1, #content h1, #details_contact h1'
					,css: '.sIFR-root { background-color: #cfc6a5; color: #5f4704; font-size: 21px; }'
					,wmode: 'transparent'
				});
				
				sIFR.replace(archer, {
					selector: '#two_col_details h3'
					,css: '.sIFR-root { background-color: #cfc6a5; color: #5f4704; font-size: 16px; }'
					,wmode: 'transparent'
				});
		}
		,labelText : function() {
			$("input[type=text]").each(function() {
				$(this).attr("default", $(this).attr("value"));

				$(this).focus(function() {
					if ($(this).attr("value") == $(this).attr("default")) {
						$(this).attr("value", "");
					}
				}).blur(function() {
					if ($(this).attr("value") == "") {
						$(this).attr("value", $(this).attr("default"));
					}
				});
			});
			$('#btn_search_site').click(function() {
				$('#site_search').submit();
				return false;
			});
			
		}
	}
};

TWO.init();
