	var name = "#floatingBanner";
	var menuYloc = null;
	
		$(document).ready(function(){
			menuYloc = parseInt($(name).css("top").substring(0,$(name).css("top").indexOf("px")))
			$(window).scroll(function () { 
				offset = menuYloc+$(document).scrollTop()+"px";
				$(name).animate({top:offset},{duration:500,queue:false});
			});
		}); 
		
function GetXmlHttpObject(){
	var xmlHttp=null;
	try  {
	  // Firefox, Opera 8.0+, Safari
	  xmlHttp=new XMLHttpRequest();
	  }
	catch (e)
	  {
	  // Internet Explorer
	  try
		{
		xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");
		}
	  catch (e)
		{
		xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
		}
	  }
	return xmlHttp;
}

var xmlHttp;

function ValidateEmailList(f){
	if (f.Email.value==''){alert("E-posta adresinizi giriniz"); return false}
	var filter  = /^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$/;
	if(!filter.test(f.Email.value)){alert('Lütfen, geçerli e-posta adresin giriniz');f.Email.focus();return false;}

	xmlHttp=GetXmlHttpObject();
	if (xmlHttp==null)
	  {
	  alert ("Kullandığınız web tarayıcısı AJAX desteklemiyor!");
	  return;
	  } 

	xmlHttp.onreadystatechange=estateChanged;
	xmlHttp.open("POST", "emailprocess.asp", true);
    
	document.getElementById("txtEmailList").innerHTML="<strong>Lütfen bekleyin...</strong>";
                     
    //Since GET isn't passing the variables via URL, you have to create the query from the form field values:
    var query = 'email' + "=" + escape(f.Email.value);
	if (f.ea[0].checked) {
	query += '&ea' + "=add";
	} else {
	query += '&ea' + "=remove"
	}	
	                 
    xmlHttp.setRequestHeader('Content-Type','application/x-www-form-urlencoded'); 
    xmlHttp.send(query);
	
	return false;
}

function estateChanged() { 
	 if((xmlHttp.readyState == 4)&& (xmlHttp.status == 200)){
		document.getElementById("txtEmailList").innerHTML="<strong>" + xmlHttp.responseText + "</strong>";
	} else {
		//document.getElementById("txtEmailList").innerHTML="";
	}

}

function CreateBookmarkLink() { 
 title = "World Wedding Guide";   
 url = "http://www.worldweddingguide.com/tr";  
 	if (window.sidebar) { 
 		window.sidebar.addPanel(title, url,"");	
 	} else if( window.external ) { 
 		window.external.AddFavorite( url, title); 
	} else if(window.opera && window.print) {
		return true; 
	} 
}


function opt_disabled(po_object){
try
{
	var li_selIndex = po_object.selectedIndex; 
	
	if(po_object.options[li_selIndex].disabled)	{
		po_object.selectedIndex=li_selIndex+1;
	}
	return true;
}
	catch(e){
		//alert(e.description)
	}
}

function RedirectBanner(id){
	//window.location.href = "redirect.asp?ID="+id;
	window.open("redirect.asp?ID="+id,"_blank");
}