	changeLang = function(lang){
		$(
			'<form method="post" id="chlangForm">'+
				'<input type="hidden" name="changeLang" value="'+(lang == 'EN' ? 'EN' : 'TR' )+'" />'+
			'</form>'
		).appendTo(document.body).submit();
	}

	// Notifications
	function jsNotify(htmlText, element, type){
		$(element).html('<div class="notification '+type+' png_bg"><a class="close" href="javascript: void(0);"></a><div>'+htmlText+'</div></div>')
			.children('div.notification')
			.effect("pulsate", { times:3 }, 1000)
			.children('a.close').click(
				function () {
					$(this).parent().fadeTo(400, 0, function () {
						$(this).slideUp(600);
					});
					return false;
				}
			);
		$('html, body').animate({scrollTop: $(element).offset().top -10}, 1000);
	}

	$(document).ready(function(){

		$('#flashBanner').flashembed(
			{
				src					: 'bannerT/banner.swf',
				version				: [10, 2],
				bgcolor				: '#ffffff',
				menu				: 'false',
				scale				: 'scale',
				wmode				: 'transparent',
				allowfullscreen		: 'false',
				allowscriptaccess	: 'never'
			},{
				componentWidth: '980',
				componentHeight: '200',
				pathToFiles: 'bannerT/',
				xmlPath: 'xml/banner.xml?'+new Date().getTime()
			}
		);

		var bv = $.browser;
		if(bv.msie && parseFloat(bv.version) < 8){
			$(
				'<div class="notification attention png_bg" style="font: bold 8pt Tahoma; color: #333;">'+
					'<a class="close" href="javascript: void(0);"></a>'+
					'<div>'+
						'Tarayıcınız <b>Web Sitemizin</b> doğru görüntülenebilmesi için gerekli fonksiyonları <b style="color: red;">desteklemiyor</b>.'+
						'<br />Web sitemiz en iyi <a href="http://windows.microsoft.com/tr-TR/internet-explorer/downloads/ie" target="_blank" style="color: #00CCFF; text-decoration: none;">&lt;Microsoft Internet Explorer 8&gt;</a>, <a href="http://www.mozilla-europe.org/tr/firefox/" target="_blank" style="color: #00CCFF; text-decoration: none;">&lt;Mozilla Firefox 3.6&gt;</a> veya <span  style="color: #00AAFF; text-decoration: none;">daha yeni versiyonları</span> ile görüntülenebilir...'+
					'</div>'+
				'</div>'
			).prependTo(document.body);
		};

		$(".notification a.close").click(
			function () {
				$(this).parent().fadeTo(400, 0, function () { // Links with the class "close" will close parent
					$(this).slideUp(600);
				});
				return false;
			}
		);

	});

