    $(document).ready(function() {
		$("#demo-bar").jixedbar({
		//hoverOpaque: true,
		roundedCorners: true
		});
		$('#Suggest-Form').jqTransform();
		$('#Siralama-form').jqTransform();
		$('#Contact-Form').jqTransform();
		$('#Users-Form').jqTransform();
		
}); 

$(document).ready(function(){
	//$(".gallery a[rel^='prettyPhoto']").prettyPhoto({theme:'dark_rounded'});
	$('a[rel*=modal]').facebox({
    //    loading_image : 'loading.gif',
    //    close_image   : 'closelabel.gif'
    })
});

		$(document).ready(function() {
		
			//When page loads...
			$(".tab_content").hide(); //Hide all content
			$("ul.tabs li:first").addClass("active").show(); //Activate first tab
			$(".tab_content:first").show(); //Show first tab content
		
			//On Click Event
			$("ul.tabs li").click(function() {
		
				$("ul.tabs li").removeClass("active"); //Remove any "active" class
				$(this).addClass("active"); //Add "active" class to selected tab
				$(".tab_content").hide(); //Hide all tab content
		
				var activeTab = $(this).find("a").attr("href"); //Find the href attribute value to identify the active tab + content
				$(activeTab).fadeIn(); //Fade in the active ID content
				return false;
			});
		
		});

//left menu
function initMenu() {
  $('#left-menu ul').hide();
  $('#left-menu ul').children('.current').parent().show();
  //$('#left-menu ul:first').show();
  $('#left-menu li a').click(
    function() {
      var checkElement = $(this).next();
      if((checkElement.is('ul')) && (checkElement.is(':visible'))) {
        return false;
        }
      if((checkElement.is('ul')) && (!checkElement.is(':visible'))) {
        $('#left-menu ul:visible').slideUp('normal');
        checkElement.slideDown('normal');
        return false;
        }
      }
    );
  }
$(document).ready(function() {initMenu();});


$(document).ready(function(){
	$('.shadow').hover(
	  function(){
		$(this).stop().animate({backgroundColor: "#efefef"}, 300);
	  }, 
	  function(){
		$(this).stop().animate({backgroundColor: "#EDF6FB"}, 300);
	  });
});

	function updateColor(box) {
		var colorValue = box.value;
		var result = colorRegex.exec(colorValue);
		if (result != null) {
			if (colorValue.length == 6) {
				colorValue = '#' + colorValue;
			}
			if (document.getElementById(box.id + '-preview')) {
				document.getElementById(box.id + '-preview').style.backgroundColor =
					colorValue;
			}
		}
}



function getCookieData(cookieName)  {
  var nameLen     = cookieName.length;
  var cookieLen   = document.cookie.length;
  var start_pos   = 0;
  var end_por     = 0;
  var cookieEnd;
  var cookieData;

  while (start_pos < cookieLen) {
    end_pos = start_pos + nameLen;
    if (document.cookie.substring (start_pos, end_pos) == cookieName) {
      cookieEnd = document.cookie.indexOf (";", end_pos);
      if (cookieEnd == -1) {
        cookieEnd = cookieLen;
      }
      cookieData = document.cookie.substring (end_pos + 1, cookieEnd);
      return unescape(cookieData);
    }
    start_pos++;
  }
  return "";
}


function setCookie(cookie_name,cookie_value,cookie_expire) {
  var cookie_string = cookie_name + "=" + cookie_value;
  if (cookie_expire) {
    var expire_date = new Date();
    var ms_from_now = cookie_expire*60*1000;  // expresat en minuts
    expire_date.setTime (expire_date.getTime () + ms_from_now);
    var expire_string = expire_date.toGMTString ();
    cookie_string += "; expires=" + expire_string;
  }
  document.cookie = cookie_string;
}

function get_cookie(Name) {
var search = Name + "="
var returnvalue = ""
if (document.cookie.length > 0) {
offset = document.cookie.indexOf(search)
if (offset != -1) {
offset += search.length
end = document.cookie.indexOf(";", offset)
if (end == -1)
end = document.cookie.length;
returnvalue=unescape(document.cookie.substring(offset, end))
}}
return returnvalue;
}
function display_msg_or_not(){
if (get_cookie("displaymsg")==""){
document.cookie="displaymsg=yes"
return true}
else
return false}






