var i,j='',k,newsid=0;function AJAXRequest(){var xmlObj=false;var CBfunc,ObjSelf;ObjSelf=this;try{xmlObj=new XMLHttpRequest;}
catch(e){try{xmlObj=new ActiveXObject("MSXML2.XMLHTTP");}
catch(e2){try{xmlObj=new ActiveXObject("Microsoft.XMLHTTP");}
catch(e3){xmlObj=false;}}}
if(!xmlObj)return false;this.method="POST";this.url;this.async=true;this.content="";this.callback=function(cbobj){return;}
this.send=function(){if(!this.method||!this.url||!this.async)return false;xmlObj.open(this.method,this.url,this.async);if(this.method=="POST")xmlObj.setRequestHeader("Content-Type","application/x-www-form-urlencoded");xmlObj.onreadystatechange=function(){if(xmlObj.readyState==4){if(xmlObj.status==200){ObjSelf.callback(xmlObj);}}}
if(this.method=="POST")xmlObj.send(this.content);else xmlObj.send(null);}}
function rstatus()
{var ajaxobj=new AJAXRequest;url="req.php?req=rstatus";p="req=rstatus";ajaxobj.method="POST";ajaxobj.url=url;ajaxobj.content=p;document.getElementById("rstatus").innerHTML='<div dir="rtl" align="center" style="padding-top:10px;"><img src="images/ajax-loader1.gif"><br>دریافت اطلاعات از سرور ... لطفا منتظر بمانید.</div>';ajaxobj.callback=function(xmlobj){var textout=xmlobj.responseText;document.getElementById("rstatus").innerHTML=textout;}
ajaxobj.send();}
function rtestimonial(i)
{var ajaxobj=new AJAXRequest;url="req.php?req=rtestimonial&c="+i;p="req=rtestimonial&c="+i;ajaxobj.method="POST";ajaxobj.url=url;ajaxobj.content=p;document.getElementById("rtestimonial").innerHTML='<div dir="rtl" align="center" style="padding-top:10px;"><img src="images/ajax-loader1.gif"><br>بروزرسانی نظر... لطفا منتظر بمانید.</div>';ajaxobj.callback=function(xmlobj){var textout=xmlobj.responseText;document.getElementById("rtestimonial").innerHTML=textout;}
ajaxobj.send();}
function customer()
{var ajaxobj=new AJAXRequest;url="req.php?req=customer";p="req=customer";ajaxobj.method="POST";ajaxobj.url=url;ajaxobj.content=p;document.getElementById("customerdiv").innerHTML='<div dir="rtl" align="center" style="padding-top:10px;"><img src="images/ajax-loader1.gif"><br>بروزرسانی... لطفا منتظر بمانید.</div>';ajaxobj.callback=function(xmlobj){var textout=xmlobj.responseText;document.getElementById("customerdiv").innerHTML=textout;$('#custul').innerfade({animationtype:'fade',speed:500,timeout:4000,type:'sequence',containerheight:'120px'});}
ajaxobj.send();}
function nPlan(i,j)
{var ajaxobj=new AJAXRequest;url="req.php?req=nplan&c="+i+"&c1="+j;p="req=rtestimonial&c="+i+"&c1="+j;ajaxobj.method="POST";ajaxobj.url=url;ajaxobj.content=p;$("#nPlan").fadeOut("slow");setTimeout($("#nPlanLoad").show(),500);setTimeout(document.getElementById("nPlanLoad").innerHTML='<div dir="rtl" align="center" style="padding-top:50px;"><img src="images/ajax-loader.gif"><br>دریافت اطلاعات از سرور ... لطفا منتظر بمانید.</div>',2500);ajaxobj.callback=function(xmlobj){var textout=xmlobj.responseText;$("#nPlanLoad").hide();$("#nPlan").fadeIn("slow");document.getElementById("nPlan").innerHTML=textout;}
ajaxobj.send();}
function cart(i,j)
{var ajaxobj=new AJAXRequest;url="req.php?req=cart&service="+i+"&plan="+j;p="req.php?req=cart&service="+i+"&plan="+j;ajaxobj.method="POST";ajaxobj.url=url;ajaxobj.content=p;document.getElementById("cartDiv").innerHTML='<div dir="rtl" align="center" style="padding-top:10px;"><img src="images/ajax-loader1.gif"><br>دریافت اطلاعات از سرور ... لطفا منتظر بمانید.</div>';ajaxobj.callback=function(xmlobj){var textout=xmlobj.responseText;document.getElementById("cartDiv").innerHTML=textout;$('#gallery a').lightBox();}
ajaxobj.send();}
function news(){$("#News0").hide();$("#News1").hide();$("#News2").hide();$("#News"+newsid).fadeIn("slow");setInterval("news()",5000);newsid=newsid+1;if(newsid>=3){newsid=0;}}
function graphic1(i,j)
{var ajaxobj=new AJAXRequest;url="req.php?req=cart&service=graphic1&plan="+i+"&option="+j;p="req.php?req=cart&service=graphic1&plan="+i+"&option="+j;ajaxobj.method="POST";ajaxobj.url=url;ajaxobj.content=p;document.getElementById("cartGraphic").innerHTML='<div dir="rtl" align="center" style="padding-top:10px;"><img src="images/ajax-loader1.gif"><br>دریافت اطلاعات از سرور ... لطفا منتظر بمانید.</div>';ajaxobj.callback=function(xmlobj){var textout=xmlobj.responseText;document.getElementById("cartGraphic").innerHTML=textout;}
ajaxobj.send();}
function tshow(i){document.getElementById("pgs1").style.display="none";document.getElementById("pgs2").style.display="none";document.getElementById("pgs3").style.display="none";document.getElementById("pgs4").style.display="none";document.getElementById("pgs5").style.display="none";document.getElementById("pgs6").style.display="none";document.getElementById("pgs7").style.display="none";document.getElementById("pgs"+i).style.display="";}
$(document).ready(function(){$.featureList($("#tabs li a"),$("#output li"),{start_item:1});rtestimonial(0);setInterval("rtestimonial(0)",10000);$('#news').innerfade({animationtype:'slide',speed:500,timeout:7000,type:'sequence',containerheight:'100px'});});

