﻿

$(document).ready(function() {

 if ($('#slider').get().length >=1)
{

  $('#slider').s3Slider({
            timeOut: 3000
        });
        }

$("ul.sf-menu").superfish(); 



 if ($.browser.msie) {
  $('#onvan_bala').FontEffect({ 
 shadow:true, 
 shadowOffsetTop:2, 
 shadowOffsetLeft:2, 
 shadowOpacity:0.1, 
 shadowBlur:1,
 outline:true, 
 outlineColor1:"#80827d", 
 outlineWeight:1,
 gradient:true,
 gradientColor:"#f3f4f7",
 gradientPosition:20,
 gradientLenght:50,
 gradientSteps:30,
 gradientTLength:10,
 gradientTSTart:0.3
 });
 
      }
 
  if ($.browser.mozilla) {
  $('#onvan_bala').FontEffect({ 
 outline:true, 
 outlineColor1:"#80827d", 
 outlineWeight:1,
 gradient:true,
 gradientColor:"#f3f4f7",
 gradientPosition:20,
 gradientLenght:50,
 gradientSteps:30,
 gradientTLength:10,
 gradientTSTart:0.3
 });
 
  
     }


    $(".btn").button();
    $(".btnASP").button();
    
//    $(".btn").click(function(){
//    var user ='';
//    if ($(this).val() == "کارگزار")
//        user="user";
//    else
//        user="modir";
//               
//    $.ajax({
//            type: "POST",
//            url: "pages/service.asmx/checkType",
//            data: '{userName: "' + $(this).val() + '",melliCode: "0070722222", type: "'+ user+'" }',
//            contentType: "application/json; charset=utf-8",
//            dataType: "json",
//            success: function(data){
//                alert(data.d);
//            }
//            ,
//            failure: function (response) {
//                alert('f');
//            }
//    });
//    
//    
//   
//    
//    
//    
//    
//    });
    
    
    
    function OnSuccess(response) {
        var mesg = '';
        alert(response.d);
    }
});

    
