			$(function() {
		//				$('a[@rel*=lightbox]').lightBox();
			});

			function validate_form() {
			    valid = true;			
				if ((document.write_review_form.rev_des.value == "") || (document.write_review_form.rev_des.value ==null)|| (document.write_review_form.rev_des.value == " ")) {
			        alert ("Please Enter Review Description." );
			        valid = false;
			    }
			    return valid;
			}
			function showform() {
				document.getElementById('review_form').style.display="block";
			}
			function cancel_review() {
				document.getElementById('review_form').style.display="none";
			}
			var xmlhttp = false;
			if (window.XMLHttpRequest)  {
				  xmlhttp = new XMLHttpRequest( );
			  xmlhttp.overrideMimeType('text/xml');
			} else if (window.ActiveXObject) {
			   xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
			}
			function add_to_myrecipe(rec) {	
			        var url="add_toMyrecipe.php?rid="+rec+"&type=recipe";
					xmlhttp.open('GET', url, true);
					xmlhttp.onreadystatechange=add_items;
					xmlhttp.send(null);   
			}
			function add_items() {
				   	if (xmlhttp.readyState == 4 && xmlhttp.status == 200) {
						$('#div_list1').html(xmlhttp.responseText);
					} else {
						$('#div_list1').html('<img src="forum_files/loading.gif" >' + 'please wait...');
					} 
			}
			function get_rate() {
					var rate=document.getElementById("rate_message").value;
					document.getElementById("rateStatus1").innerHTML=document.getElementById("rate_message").value;
			}

/*
			var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
			document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));

			var pageTracker = _gat._getTracker("UA-1803959-2");
			pageTracker._trackPageview();
*/
			var basePath 		= 'http://www.sailangle.com/staging/member/';
			var month			= parseInt('10');
			var year			= parseInt('2008');
			var groupIdentity	= parseInt('0');
			var sendIMPath 		= 'http://www.sailangle.com/staging/chat.php?action=sendIM';

			var backgroundChangePath 		= 'http://www.sailangle.com/staging/';
			//
			/** More Features Dropdown Start.**/
			//
			var timeout	= 500;
			var closetimer	= 0;
			var ddmenuitem	= 0;
			function mopen(id, current){
				mcancelclosetime();
				if(ddmenuitem) ddmenuitem.style.display = 'none';
				ddmenuitem = document.getElementById(id);
				ddmenuitem.style.top = current.offsetTop;
				ddmenuitem.style.left = current.offsetLeft;
				ddmenuitem.style.display = 'block';
			}
			function mclose(){
				if(ddmenuitem) ddmenuitem.style.display = 'none';
			}
			function mclosetime(){
				closetimer = window.setTimeout(mclose, timeout);
			}
			function mcancelclosetime(){
				if(closetimer){
					window.clearTimeout(closetimer);
					closetimer = null;
				}
			}
			document.onclick = mclose; 
			//
			/** More Features Dropdown END.**/
			//
			function search() {
				var search_name=document.getElementById('txtSearch').value;
				window.location.href="search.php?search_name="+search_name;
				return false;
			}
			var xmlhttp = false;
			
			if (window.XMLHttpRequest) {
				xmlhttp = new XMLHttpRequest();
				xmlhttp.overrideMimeType('text/xml');
			} 
			
			else if (window.ActiveXObject)  {
				xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
			}
			function list_recipie(v) {
				var url="list_recipie.php?catg="+v;
				xmlhttp.open('GET', url, true);
				xmlhttp.onreadystatechange=list_items;
				xmlhttp.send(null);   
			}
			
			function list_gadget(v) {
				var url="list_gadget.php?catg="+v;
				xmlhttp.open('GET', url, true);
				xmlhttp.onreadystatechange=list_items;
				xmlhttp.send(null);   
			}		
			function list_items() {
				if(xmlhttp.readyState == 4 && xmlhttp.status == 200) {	
					$('#div_list').html(xmlhttp.responseText);	
				} else {	
					$('#div_list').html('<img src="forum_files/loading.gif" >'+'please wait...');	
				}
			}
			function list_tips(v) {
				var url="list_days.php?catg="+v;
				xmlhttp.open('GET', url, true);
				xmlhttp.onreadystatechange=list_items;
				xmlhttp.send(null);   
			}
