$(document).ready(function() {

 
 /* tablolarda sadece ilk ve son td'lere padding vermek icin */
 $(".s td:last-child").addClass('td_last');
 $(".s td:first-child").addClass('td_first');
 $(".s th:first-child").addClass('td_first');
	
	// form focus blur
	$('.ff').focus(function() {
		$(this).addClass("focusField");
			if (this.value == this.defaultValue){ 
				this.value = '';
	}
	if(this.value != this.defaultValue){
			this.select();
		}
	});
	
	$('.ff').blur(function() {
		$(this).removeClass("focusField");
			if ($.trim(this.value) == ''){
				this.value = (this.defaultValue ? this.defaultValue : '');
	}
	});
});



Cufon.replace('h1, h2, h3');

var flashvars = {};
flashvars.xml = "cu3er/config.php";
var attributes = {};
attributes.wmode = "transparent";
attributes.id = "slider";
swfobject.embedSWF("cu3er/cu3er.swf", "cu3er-container", "560", "178", "9", "expressInstall.swf", flashvars, attributes);

function InLoginSubmit() {
    document.inlogin.submit();
}
function LoginSubmit() {
    document.loginform.submit();    
}

function sign_chk()
{ 
    if (document.signform.firstName.value == 'test')
        return true;
    
    if (document.signform.password.value != document.signform.password2.value) {
            alert('Lütfen şifre tekrarınızı doğru şekilde giriniz');
            document.signform.password2.focus();
            return false;
    }

    
    if (document.signform.firstName.value == ''
        || document.signform.lastName.value == '' 
        || document.signform.address.value == '' 
        || document.signform.city.value == '' 
        || document.signform.state.value == '' 
        || document.signform.zip.value == '' 
        || document.signform.country.value == '' 
        || document.signform.phone.value == '' 
        || document.signform.cell.value == '' 
        || document.signform.password.value == '' 
        || document.signform.email.value == '' 
        || document.signform.tckimlik.value == ''             
    ) {
            alert('Lütfen boş alan bırakmayınız');
            return false;
    }

    return true;

}

function showHide(element){
    element = document.getElementById(element);
    if(element.style.display==''){
        element.style.display='none';
        return 0;
    }else{
        element.style.display='';
        return 1;
    }
}

writeCookie();

function writeCookie() 
{
 var today = new Date();
 var the_date = new Date("December 31, 2023");
 var the_cookie_date = the_date.toGMTString();
 var the_cookie = "scrheight="+screen.availHeight ;
 var the_cookie = the_cookie + ";expires=" + the_cookie_date;
 document.cookie=the_cookie
    
}
