<!-- var iShowAD = '<% =iShowAD %>'; if (iShowAD == '1'){ slideAd('<%= divAD.ClientID %>', 1); } //-->
C# code
public int iShowAD = 0;