var j = jQuery.noConflict();
j(document).ready(function(){

//Animation Scripts

j.fn.fadeToggle = function(speed, easing, callback) {
   return this.animate({opacity: 'toggle'}, speed, easing, callback);

};

j.fn.heightToggle = function(speed,easing,callback){
	return this.animate({height: 'toggle'}, speed, easing, callback);
	};

//Menu
var jitemTitle;
j('#gnav ul li.page_item').hoverIntent(
								 
			function() {
					j(this).addClass('hovered');
					j('a', this).attr('metainfo', j('a', this).attr('title')) // copy title attribute to metainfo attribute 
                    .attr('title', ''); // remove title 															
					j('ul', this).slideToggle(200);	
			},
			function() {
					j(this).removeClass('hovered');
					j('a', this).attr('title', j('a', this).attr('metainfo'));
					j('ul', this).slideToggle(200);
			});


});

j('small:contains("Copy Protected")').css('display', 'none');

function Transpose_Email(userid,domain,subject){
	 
 var email = domain +'@' + userid;
 var TempBefore = '';
 var TempAfter = '';
 var NewString = '';
 var Start = 0;

 var WhereHash = email.indexOf ('@');
 for (Count = 1; Count <= WhereHash; Count ++){
	 TempBefore += email.substring (Start, Count);
	 Start++
	 }
 
		 Start = WhereHash;
		 Start ++
		 WhereHash +=2;
 
 for (Count = WhereHash; Count <=email.length; Count++){
	 TempAfter +=email.substring (Start, Count)
	 Start++
	 }
 NewString = TempAfter +'@' + TempBefore;
 parent.location = 'mailto:'+NewString+'?subject='+subject;
 }
