// Cufon config
Cufon.replace('h1, h3, #menu, #submenu, #footer-menu, .fontb', { fontFamily: 'TitilliumText25L Bold',  hover: 'true' });
Cufon.replace('h2, h4, .font, .button', { fontFamily: 'TitilliumText25L',  hover: 'true' });


//Share buttons
(function($){
	$.fn.share = function(options) {
		var defaults = {			
			url: 			window.location,									
			title:			'The next step in the evolution of adult promotion',									
			description: 	'If you are looking for more targeted traffic to your adult website, you need Adult Traffic Booster - the most feature-packed and powerful service available for effective promotion.',							
			tags:			$('meta[name=keywords]').attr("content"),
			services:		['all'], 										
			img_alt: 		'$service',							
			a_target:		'_blank',						
			a_title:		'share on $service'												
   		};			
   		var options = $.extend(defaults, options);			
   		return this.each(function() {			
			var target = $(this);			
			var services = {
				facebook:	['http://www.facebook.com/sharer.php?u=' + escape(options.url) + '&t=' + options.title, '/_img/share_facebook.png'],
				twitter:	['http://twitter.com/home?status=' + options.title + ':+' + options.url, '/_img/share_twitter.png'],
				delicious: 	['http://del.icio.us/post?url=' + options.url + '&title=' + options.title + '&tags=' + options.tags + '&notes=' + options.description, '/_img/share_delicious.png'],	
				digg:		['http://digg.com/submit?phase=2&url=' + options.url + '&title=' + options.title, '/_img/share_digg.png'],			
				google:		['http://www.google.com/bookmarks/mark?op=add&bkmk=' + options.url + '&title=' + options.title + '&labels=' + options.tags + '&annotation=' + options.description, '/_img/share_google.png'],
				yahoo:		['http://bookmarks.yahoo.com/toolbar/savebm?u=' + options.url + '&t=' + options.title + "&d=" + options.description, '/_img/share_yahoo.png'],
				misterwong:	['http://www.mister-wong.com/index.php?action=addurl&bm_url=' + options.url + '&bm_description=' + options.title + '&bm_tags=' + options.tags + '&bm_notice=' + options.description, '/_img/share_mrwong.png'],
				netvibes:	['http://www.netvibes.com/share?url=' + options.url + '&title=' + options.title, '/_img/share_netvibes.png'],
				linkedin:	['http://www.linkedin.com/shareArticle?mini=true&url=' + options.url + '&title=' + options.title + '&source=&summary=' + options.description, '/_img/share_linkedin.png'],				
				stumbleupon:['http://www.stumbleupon.com/submit?url=' + options.url + '&title=' + options.title, '/_img/share_stumbleupon.png']
			}		
			if(options.services == "all") { 
				options.services = new Array();
			    for(n in services) options.services.push(n);				
			}		
			$.each(options.services, function(index, service) { 				
				if(services[service] != undefined) {
					var content = '<a style="background-image:url(' + services[service][1] + ')" href="' + services[service][0] + '"';
					if(options.target != "") content += ' target="' + options.a_target + '"';
					if(options.title != "") content += ' title="' + (options.a_title).replace(/\$service/g, this) + '"';
					content += '><img width="16" height="16" border="0" src="/_img/spacer.gif"';  
					if(options.alt != "") content += ' alt="' + (options.img_alt).replace(/\$service/g, this) + '"';						
					content += ' /></a>';										
					target.append(content);
				}
			});
  		});
 	};  
})(jQuery);



//Share buttons initialize
	$(document).ready(function() {
			$('div#share').share();			
	});  
	
	
// Meta tags Generator

function MakeIt(form){
var txt='<meta name="Description" content="'+form.description.value+'" />\r\n';
txt+='<meta name="Keywords" content="';
if (form.keywords.value) 
txt+=form.keywords.value+'" />\r\n';
form.source.value=txt;
}
function AddText(form, Action){
var AddTxt="";
var txt="";
form.keywords.value+=AddTxt;
}
function ResetPage(form){
if(confirm("All fields will be cleared!")){	
form.description.value="";	
form.source.value="";	
form.keywords.value="";	
   }
}
