jQuery.noConflict();
jQuery(function($) {
	$('#newsletter-subscribe').each(function() {
		var arr = [], $div = $(this), $parent = $div.parent();
		while (($div = $div.prev()) && $div.length) {
			arr.push($div);
		}
		$div = $('<div class="block-left-content" />');
		$parent.append($div);
		for (var i = arr.length - 1; i >= 0; i--) {
			$div.append(arr[i].remove());
		}
	});
	var proto = document.location.protocol;
	$('#product_addtocart_form .product-options-bottom').each(function() {
		var $div = $('<div id="social-network-icons" />');
		$(this).after($div);
		if (proto == 'http:') {
			$div.append('<a href="http://twitter.com/share" class="twitter-share-button" data-count="horizontal">Tweet</a>');
			$.getScript('http://platform.twitter.com/widgets.js');
		}
		$div.append('<iframe src="' + proto + '//www.facebook.com/plugins/like.php?href=' + proto + '//' + location.host + '/&amp;layout=button_count&amp;show_faces=false&amp;width=85&amp;action=like&amp;font&amp;colorscheme=light&amp;height=21" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:85px; height:21px;" allowTransparency="true"></iframe>');
	});
});

