/**
 * @name Protoierie
 * @description Template WordPress MU utilizabil pentru website-urile protoieriilor.
 * @version 2.0
 *
 * @author Design Forge <team@design-forge.ro>
 * @credits
 * 	Mihai Velcescu <mihai.velcescu@design-forge.ro>
 * 		Graphic Design
 * 	Mihai Stancu <mihai.stancu@design-forge.ro>
 * 		User Interface
 * 		WordPress Integration
 *
 * @copyright (c) 2008, Design Forge
 * @license Free for non-comercial use.
 *
 * @wordpress
 * 	Theme Name: Protoierie
 * 	Theme URI: http://design-forge.ro/wordpress-templates/protoierie.zip
 * 	Description: Template WordPress MU utilizabil pentru website-urile protoieriilor.
 * 	Version: 2.0
 * 	Author: Design Forge <team@design-forge.ro>
 * 	Author URI: http://design-forge.ro/
 */

$(document).ready(function() {
	/*@cc_on
		@if(@_jscript_version < 7 )
			$("body > .header").css({
				"background-image": "none"
			});
			$(".main .articles, .main .sidebar, body > .footer").css({
				"background-image": "none",
				"background-color": "#001740"
			});
			$(".main .articles, .main .sidebar").each(function() {
				$(this).css({
					"margin-left": (parseInt($(this).css("margin-left"))/2)+"px",
					"margin-right": (parseInt($(this).css("margin-left"))/2)+"px"
				});
			$("input[type=text][title], input[type=password][title], textarea[title]")
				.css({
					"border-color": "#001740"
				});
			});
			$("#logo, #title, #subtitle, .header .nav li a").css({"text-indent": "-10000px"});
			$("<br />").appendTo("body");
		@end
	@*/

	$("<div style='clear:both'></div>").appendTo('.main');

	$("input[type=text][title], input[type=password][title], textarea[title]").bind("focus blur", function(e) {
		if(e.type == "focus" &&  $(this).val() == $(this).attr("title"))
			$(this).val('');
		if(e.type == "blur" && $(this).val() == '')
			$(this).val($(this).attr("title"));
	});
});
