
	$fn = jQuery.noConflict();
	
	var output = '';
	var a=new Array();	// adsales
	var b=new Array();	// the general / publishing/marketing
	var c=new Array();	// online promotional
	var d=new Array();	// photographer
	var e=new Array();	// creative
	var f=new Array();  // admin
	
	a[0]=' 109'; a[1]=' 111'; a[2]=' 99'; a[3]=' 46'; a[4]=' 115'; a[5]=' 119'; a[6]=' 101'; a[7]=' 110'; a[8]=' 115'; a[9]=' 101'; a[10]=' 108'; a[11]=' 105'; a[12]=' 102'; a[13]=' 64'; a[14]=' 115'; a[15]=' 101'; a[16]=' 108'; a[17]=' 97'; a[18]=' 115'; a[19]=' 100'; a[20]=' 97'; 
	b[0]=' 109'; b[1]=' 111'; b[2]=' 99'; b[3]=' 46'; b[4]=' 115'; b[5]=' 119'; b[6]=' 101'; b[7]=' 110'; b[8]=' 115'; b[9]=' 101'; b[10]=' 108'; b[11]=' 105'; b[12]=' 102'; b[13]=' 64'; b[14]=' 101'; b[15]=' 110'; b[16]=' 117'; b[17]=' 121'; b[18]=' 114'; 
	c[0]=' 109'; c[1]=' 111'; c[2]=' 99'; c[3]=' 46'; c[4]=' 115'; c[5]=' 119'; c[6]=' 101'; c[7]=' 110'; c[8]=' 115'; c[9]=' 101'; c[10]=' 108'; c[11]=' 105'; c[12]=' 102'; c[13]=' 64'; c[14]=' 110'; c[15]=' 97'; c[16]=' 100'; 
	d[0]=' 109'; d[1]=' 111'; d[2]=' 99'; d[3]=' 46'; d[4]=' 115'; d[5]=' 119'; d[6]=' 101'; d[7]=' 110'; d[8]=' 115'; d[9]=' 101'; d[10]=' 108'; d[11]=' 105'; d[12]=' 102'; d[13]=' 64'; d[14]=' 105'; d[15]=' 115'; d[16]=' 97'; d[17]=' 109'; 
	e[0]=' 109'; e[1]=' 111'; e[2]=' 99'; e[3]=' 46'; e[4]=' 115'; e[5]=' 119'; e[6]=' 101'; e[7]=' 110'; e[8]=' 115'; e[9]=' 101'; e[10]=' 108'; e[11]=' 105'; e[12]=' 102'; e[13]=' 64'; e[14]=' 101'; e[15]=' 118'; e[16]=' 105'; e[17]=' 116'; e[18]=' 97'; e[19]=' 101'; e[20]=' 114'; e[21]=' 99'; 
	f[0]=' 109'; f[1]=' 111'; f[2]=' 99'; f[3]=' 46'; f[4]=' 115'; f[5]=' 119'; f[6]=' 101'; f[7]=' 110'; f[8]=' 115'; f[9]=' 101'; f[10]=' 108'; f[11]=' 105'; f[12]=' 102'; f[13]=' 64'; f[14]=' 110'; f[15]=' 105'; f[16]=' 109'; f[17]=' 100'; f[18]=' 97'; 
	
	$fn(document).ready(function()
	{
		// adsales
		for (var i = a.length-1; i >= 0; i=i-1)
		{
			if (a[i].substring(0, 1) == ' ')
			{
				output += "&#"+unescape(a[i].substring(1))+";";
			}
			else
			{
				output += unescape(a[i]);
			}
		}
		$fn("#XED4G_a").html('<a href="mailto:' + output + '">' + output + '</a>');
		output = '';
		
		// the general
		for (var i = b.length-1; i >= 0; i=i-1)
		{
			if (b[i].substring(0, 1) == ' ')
			{
				output += "&#"+unescape(b[i].substring(1))+";";
			}
			else
			{
				output += unescape(b[i]);
			}
		}
		$fn("#XED4G_b1, #XED4G_b2").html('<a href="mailto:' + output + '">' + output + '</a>');
		output = '';
		
		// online promotional
		for (var i = c.length-1; i >= 0; i=i-1)
		{
			if (c[i].substring(0, 1) == ' ')
			{
				output += "&#"+unescape(c[i].substring(1))+";";
			}
			else
			{
				output += unescape(c[i]);
			}
		}
		$fn("#XED4G_c").html('<a href="mailto:' + output + '">' + output + '</a>');
		output = '';
		
		// photography
		for (var i = d.length-1; i >= 0; i=i-1)
		{
			if (d[i].substring(0, 1) == ' ')
			{
				output += "&#"+unescape(d[i].substring(1))+";";
			}
			else
			{
				output += unescape(d[i]);
			}
		}
		$fn("#XED4G_d").html('<a href="mailto:' + output + '">' + output + '</a>');
		output = '';
	
		// creative
		for (var i = e.length-1; i >= 0; i=i-1)
		{
			if (e[i].substring(0, 1) == ' ')
			{
				output += "&#"+unescape(e[i].substring(1))+";";
			}
			else
			{
				output += unescape(e[i]);
			}
		}
		$fn("#XED4G_e").html('<a href="mailto:' + output + '">' + output + '</a>');
		output = '';
		
		// web
		for (var i = f.length-1; i >= 0; i=i-1)
		{
			if (f[i].substring(0, 1) == ' ')
			{
				output += "&#"+unescape(f[i].substring(1))+";";
			}
			else
			{
				output += unescape(f[i]);
			}
		}
		$fn("#XED4G_f").html('<a href="mailto:' + output + '">' + output + '</a>');
		output = '';
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
		var ht = Math.max($fn("ol.most-read").height(), $fn("ol.most-commented").height());
		$fn("div.popular-posts").css("height", (ht+29) + "px");
		
		$fn("#commentform input, #commentform textarea").each(function()
		{
			if ($fn(this).val() != "")
			{
				$fn(this).next().css("display", "none");
			}
		});
		
		$fn(".tab").click(function()
		{
			//console.log(this);
			//alert("HREF: " + $fn(this).attr("href"));
			$fn('.tab').removeClass('current');
			$fn(this).addClass('current');
				
			if ($fn(this).attr("href") == "most-read") // clicked on most-read
			{
				$fn("ol.most-read").show();
				$fn("ol.most-commented").hide();
				var ol = $fn("ol.most-commented");
				var li = ol.children("li");

				li.detach();
				ol.append(li);
			}
			else // clicked on most-commented
			{
				$fn("ol.most-read").hide();
				$fn("ol.most-commented").show();
				var ol = $fn("ol.most-commented");
				var li = ol.children("li");

				li.detach();
				ol.append(li);
			}
			return false;
		});
		
		$fn("input#email, input#author, input#url, textarea#comment").focus(function()
		{
			$fn(this).next().css("display", "none");
			//alert($fn(this).attr("id"));
			//console.log("this | immedite sibling | " + $fn(this).next().attr("for"));
		});
		
		$fn("a.colorbox").colorbox();
		
	});
