// JavaScript Document
function printr(theObj){
  if(theObj.constructor == Array ||
     theObj.constructor == Object){
    document.write("<ul>")
    for(var p in theObj){
      if(theObj[p].constructor == Array||
         theObj[p].constructor == Object){
document.write("<li>["+p+"] => "+typeof(theObj)+"</li>");
        document.write("<ul>")
        print_r(theObj[p]);
        document.write("</ul>")
      } else {
document.write("<li>["+p+"] => "+theObj[p]+"</li>");
      }
    }
    document.write("</ul>")
  }
}

function cut($chaine)
{
	$max = 35;
	if ($chaine.length >= $max) 
	{
		$chaine = $chaine.substring(0, $max);
		$chaine+="...";
    }
	return $chaine;
}

function secure(ch) {
   ch = ch.replace(/&/g,"&amp;")
   ch = ch.replace(/\"/g,"&quot;")
   ch = ch.replace(/\'/g,"&#039;")
   ch = ch.replace(/</g,"&lt;")
   ch = ch.replace(/>/g,"&gt;")
   return ch
}
var lang = $('#site_langue').val();
//var base_url = 'http://localhost/mmo-ui.com/';
//var base_url_lang = 'http://localhost/mmo-ui.com/'+$('#site_langue').val()+'/';
base_url = 'http://wow-ui.com/';

$(document).ready(function()
						    {
								$('#'+$('#active_page').val()+'').addClass('active');
								$('#'+$('#active_page').val()+'>.t').css('color', 'black');
								var lang = $('#site_langue').val();
								base_url_lang = 'http://www.wow-ui.com/';
								base_url_lang = 'http://'+lang+'.wow-ui.com/';
							}
				  );

//menu upload
/*$('#upload_link').live('mouseenter', function()
											   {
													$('#upload_link').animate({
																			  	width:170
																			  }, 600
																			  );
											   }
						);
$('#upload_link').live('mouseleave', function()
											   {
													$('#upload_link').animate({
																			  	width:35
																			  }, 600
																			  );
											   }
						);
*/						
/*
setInterval(function()	
								{
     								//$('#ajax').load('ajax.html');
	 							}, 1000);

*/


