			 $(document).ready(
				function(){

				$('#home_rss_text').innerfade({
						animationtype: 'slide',
						speed: 600,
						timeout: 3000,
						type: 'sequence',
						containerheight: '100%'
					});
				
				//cache nav
				var nav = $("#nav1");
				
				//add indicator and hovers to submenu parents
				nav.find("li").each(function() {
					if ($(this).find("ul").length > 0) {

						//show subnav on hover
						$(this).mouseenter(function() {
							$(this).find("ul").stop(true, true).slideDown();
						});
						
						//hide submenus on exit
						$(this).mouseleave(function() {
							$(this).find("ul").stop(true, true).slideUp();
						});
					}
				});
				$("br[style]").remove();
				$(".home .gallery-icon img").unwrap();
				$(".gallery-icon a").addClass("thickbox");

			});

			window.onload = function() {
					if (top.location != location) {
						top.location.href = document.location.href ;
					}
				}
$(function(){
	$("#s").attr("value","Search")
	 .focus(
	 	function() { $(this).val(""); 
	 })
	.blur( 
		function(){ if (this.value == '') { this.value='Search'; };	
	})
	.keydown(
		function(e){
			var keynum;
			var keychar;
			var numcheck;
			var down = 1;
			//lookup(this.value);
				if(window.event){
				  keynum = e.keyCode;// IE
				}
				else if(e.which){
				  // Netscape/Firefox/Opera
				  keynum = e.which;
				}					
			keychar = String.fromCharCode(keynum);
			numcheck = /\d/;
			return !numcheck.test(keychar);
		}
	);	
});
$(function() {


		$( ".cf_date" ).datepicker({
					changeMonth: true,
					changeYear: true,
					maxDate: '+1d',
					minDate: '-100y',
					yearRange: '1920:c+2',
					shortYearCutoff: 50,
					dateFormat: 'dd/mm/yy'
		});
	$("#showmessage").click(function(){	
		$( "#imei-mess" ).dialog({
			width: 343
		});
		return false;
	});	
});
$(function() {

	$("#selectform").change(function() {
	
		var someid = "#" + $(this).val();
		$(".theform").hide();
		$(someid).show();
	});
	
	
	
});





