// JavaScript Document

$(document).ready(function()
{
	var themePanel = $("div.themePanel");
	
	$("div.colorPanel li a").click(function()
	{
		
		
		var themePath = $(this).attr("themePath");
		
		
		if(themePath != null && themePath.length > 0) 
		{
			var themeRoot = "/properties/" + themePath;
			
			
			
			$.get(themeRoot, function(data){

				
				themePanel.empty().css("display","none").append(data).slideDown(500);
				
			});
			
		}
	});
	
	var startPath = $("div.colorPanel li a.isTheme").attr("themePath");
	
	if (startPath != null && startPath.length > 0)
	{
		var startRoot = "/properties/" + startPath;
			
			
			
		$.get(startRoot, function(data){
  				//alert("Data Loaded: " + data);
				
				themePanel.empty().css("display","none").append(data).slideDown(500);
				
		});
		
		
	}	
	
});


							   