window.loading=[];function startup()
{act._search('hide');act._paging('hide');act._status('','hide');if(window.loading){try{loading.forEach(eval);}catch(e){}}}window.addEvent('domready',startup);var ACT=new Class({Implements:[Options,Events],options:{},initialize:function(options){this.setOptions(options);},_list:function(){var div=$('content_div');var lc=$('limit_count');if(!div)return false;if(lc)Cookie.write('limit_count',lc.value,{path:'/',duration:'30'});if($('list_div'))$('list_div').fade(0.5);this._status('loading...','gray');return rpc._list({'frm':div.toQueryString()},function(json){var div=$('list_div');if(!div)return false;div.set('html',json.html);div.fade(1);});},_new:function(){return rpc._new();},_edit:function(id){return rpc._edit({'id':id});},_delete:function(id){if(confirm(T_('Do you want to delete this record?')))
return rpc._delete({'id':id});return false;},_save:function(f,e){e=new Event(e);var div=$('edit_container');if(!div)return false;var el=new Element('input');el.setProperty('type','hidden');el.setProperty('name','inp[]');el.setProperty('value',div.toQueryString());el.injectInside('edit_form');if(!e.control){act._status('updating record','','gray');act._cancel();}else{f.getElement('input[name=cmd]').value='insert';f.getElement('input[name=id]').value='0';act._status('insert as new record','','gray');}},_update:function(f,id){return rpc._update({'id':id,frm:f.toQueryString()});},_insert:function(f){return rpc._insert({frm:f.toQueryString()});},_search:function(w){if(w=='toggle'||w=='hide'||w=='show'){if($('search_div'))$('search_div').slide(w);return true;}},_paging:function(w){if(w=='toggle'||w=='hide'||w=='show'){if($('paging_div'))$('paging_div').slide(w);return true;}},_goto:function(p,e){e=new Event(e);if(e.control)return true;var lc=$('limit_count');var lo=$('limit_offset');if(!lc||!lo)return false;lo.value=lc.value*(p-1);this._list();return false;},_status:function(txt,mode,cl){var div=$('status');if(!div)return false;var fx1=new Fx.Tween(div,{'link':'chain','duration':'short'});var fx2=new Fx.Tween(div,{'link':'chain','duration':'short'});fx1.start('opacity',0);fx1.addEvent('complete',function(){div.set('html',txt);div.set('class',cl);fx2.start('opacity',1);}.bind(this));if(mode=='fadeout'){div.t=div.fade.delay(3000,div,['out']);}return true;},_cancel:function(){var div;if(cmd.indexOf('edit')!=-1){var url=document.location.href.replace(/\/edit\/\d+.*/,'');document.location.href=url;return;}if(div=$('edit_container')){var fx1=new Fx.Tween(div,{'link':'chain','duration':'short'});fx1.start('opacity',0).chain(function(){$('edit_container').set('html','');});}},_call:function(){}});act=new ACT();function url(opt)
{var h=document.location.pathname.substr(1).split(/\/+/g);var url={'protocol':(opt.protocol?opt.protocol:document.location.protocol),'host':(opt.host?opt.host:document.location.host),'section':(opt.section?opt.section:(h[0]?h[0]:'index')),'module':(opt.module?opt.module:(h[1]?h[1]:'home')),'cmd':(opt.cmd?opt.cmd:(h[2]?h[2]:'')),'id':(opt.id?opt.id:(h[3]?h[3]:'0')),'rest':(opt.rest?opt.rest:(h[4]?'/'+h[4]:'')+(h[5]?'/'+h[5]:'')+(h[6]?'/'+h[6]:'')+(h[7]?'/'+h[7]:'')+(h[8]?'/'+h[8]:'')+(h[9]?'/'+h[9]:''))
};return url.protocol+'//'+url.host+'/'+url.section+'/'+url.module+'/'+url.cmd+'/'+url.id+url.rest+(document.location.search);}function rpc_call(func,arg)
{func=func.substr(1);var div=$('NULL');switch(func){case 'new':case 'edit':div=$('edit_box');if(!div)return false;div.fade('hide');break;case 'insert':case 'update':;break;case 'delete':;break;case 'list':div=$('list_div');if(!div)return false;div.fade(0.5);break;}act._status('requesting '+func,'','gray');var inp='';for(var i in arg){if(typeof(arg[i])=='string'||typeof(arg[i])=='number')
inp+='inp['+encodeURIComponent(i)+']='+encodeURIComponent(arg[i])+'&';}var id=(arg&&arg.id)?arg.id:0;var R=new Request.HTML({url:'/'+section+'/'+module+'/'+func+'/'+id,evalScripts:true,update:div});R.addEvent('success',function(responseText,responseXML){rpc_done(this.reqid,this.func);});R.addEvent('failure',function(){act._status('error in '+func+' call','','red');});R.reqid=Math.round((Math.random()*10000000000));R.func=func;R.send(inp+'_r_='+R.reqid);return true;}function rpc_done(id,func)
{act._status(func+' responded ok','fadeout','green');switch(func){case 'new':case 'edit':var div=$('edit_box');if(!div)return false;div.makeDraggable({handle:'edit_header'});div.setStyle('top',window.getScrollTop()+20+'px');var width=div.getFirst().getSize().x;div.setStyle('width',width+10+'px');div.setStyle('left',(window.getSize().x-width)/2-20+'px');div.fade('in');break;case 'insert':case 'update':;break;case 'delete':var row=$$('#mainlist .n'+Cookie.read('deleted'));console.log(row);if(row&&row[0])
row.dispose();break;case 'list':var div=$('list_div');if(!div)return false;div.fade(1);break;}return true;}var SHORT_KEY=new Class({initialize:function(){document.addEvent('keypress',function(e){var e=new Event(e);txt=[];if(e.alt)txt.push('alt');if(e.control)txt.push('control');if(e.shift)txt.push('shift');if(e.meta)txt.push('meta');txt.push(e.code);txt=txt.join('+');var done=true;switch(txt){case 'control+shift+6':case 'control+114':shortkey._search();break;case 'control+13':case 'control+10':case 'control+shift+10':case 'control+shift+19':case 'control+115':done=shortkey._save();break;case 'control+shift+82':done=shortkey._refresh();break;case 'control+shift+14':case 'control+110':done=shortkey._new();break;case 'control+shift+16':case 'control+112':done=shortkey._print();break;case '27':done=shortkey._cancel();break;default:return true;}if(done)e.stop();return!done;});},_search:function(){},_save:function(){act._update();return false;},_new:function(){act._new();return true;},_print:function(){},_refresh:function(){act._list();return true;},_cancel:function(){act._cancel();return true;}});shortkey=new SHORT_KEY();function T_(txt)
{if($msg&&$msg[txt])
return $msg[txt];return txt;}function readLog()
{var c=Cookie.read('log');if(!c||c==lastCookie)return;lastCookie=c;c=eval(c);act._status.delay(100,this,[decodeURI(c[1]),'fadeout',c[0]=='error'?'red':'green']);Cookie.dispose('log');}var lastCookie;readLog.periodical(5000);function printForm()
{var nw=window.open('','PrintWindow','width=720px,height=500px,scrollbars=yes');nw.document.write('<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">'+'<html>'+'<head>'+'<link type="text/css" rel="stylesheet" href="/assets/style.css" />'+'<title></title>'+'<script language="javascript" type="text/javascript" src="../+script/class.js"></script>'+'<script language="javascript" type="text/javascript">'+'function printWindow(){'+'document.body.innerHTML = window.opener.document.getElementById("Cont").innerHTML;'+'setTimeout("window.print();", 200);'+'}'+'</script>'+'<style type="text/css">'+'.button, .noprint{'+'display:none;'+'}'+'</style>'+'</head>'+'<body dir="rtl" onload="window.printWindow();"></body></html>');nw.document.close();}function xMakeVisible(obj,d)
{if(typeof(d)=="undefined")
d=false;if(typeof(obj)!="object")
obj=$(obj);if(!d)
obj.style.display='';obj.style.visibility="visible";}function xMakeHidden(obj,d)
{if(typeof(d)=="undefined")
d=false;if(typeof(obj)!="object")
obj=$(obj);if(!d)
obj.style.display='none';obj.style.visibility="hidden";}function createAjax()
{try{return new ActiveXObject("Msxml2.XMLHTTP");}catch(e){}try{return new ActiveXObject("Microsoft.XMLHTTP");}catch(e){}try{return new XMLHttpRequest();}catch(e){}return null;}function xFindPosX(obj)
{var curleft=0;if(obj.offsetParent){while(obj.offsetParent){curleft+=obj.offsetLeft;obj=obj.offsetParent;}}else if(obj.x)
curleft+=obj.x;return curleft;}function xFindPosY(obj)
{var curtop=0;if(obj.offsetParent){while(obj.offsetParent){curtop+=obj.offsetTop;obj=obj.offsetParent;}}else if(obj.y)
curtop+=obj.y;return curtop;}function xRemovePX(strNum)
{return strNum.substr(0,strNum.length-2)*1;}function getContent(url,query,cmd,cmdOnError,method,retry)
{if(typeof(cmdOnError)=='undefined')
cmdOnError=';';if(typeof(method)=='undefined')
method='GET';else
method=method.toUpperCase();retry=(retry||0);if(retry>5){try{eval(cmdOnError);}catch(e){}return;}var A=createAjax();if(method=="GET")
A.open(method,url+'?'+query+'&_r_=done'+Math.random(),true);else
A.open(method,url,true);var onreadystatechange=function(){if(A.readyState==4)
if(A.status==200||A.status==304){Contents=A.responseText;var ScriptCode,regexp=/<script[^>]*>([\s\S]*?)<\/script>/gi;while(ScriptCode=regexp.exec(Contents))
try{eval(ScriptCode[1]);}catch(e){}try{eval(cmd);}catch(e){}}else{getContent(url,query,cmd,cmdOnError,method,(retry+1));}};A.onreadystatechange=onreadystatechange;if(method=="GET")
A.send(null);else{var contentType="application/x-www-form-urlencoded; charset=UTF-8";A.setRequestHeader("Content-Type",contentType);A.send(query+'&_r_=done'+Math.random());}}var xImages=new Array();var _xImages=new Array();function _xloadImages()
{var i,key;for(i=0;i<_xloadImages.arguments.length;i++){if(typeof(_xloadImages.arguments[i])=='string'){_xImages.push(document.createElement('img'));_xImages[_xImages.length-1].src=_xloadImages.arguments[i];}else if(typeof(_xloadImages.arguments[i])=='object')
for(key in _xloadImages.arguments[i])
if(typeof(_xloadImages.arguments[i][key])!='function'){_xImages.push(document.createElement('img'));_xImages[_xImages.length-1].src=_xloadImages.arguments[i][key];}}}function xloadImages()
{var i,key;if(xloadImages.arguments.length==0){_xloadImages(xImages);return true;}for(i=0;i<xloadImages.arguments.length;i++){if(typeof(xloadImages.arguments[i])=='string'){xImages.push(xloadImages.arguments[i]);}else if(typeof(xloadImages.arguments[i])=='object')
for(key in xloadImages.arguments[i])
if(typeof(xloadImages.arguments[i][key])!='function'){xImages.push(xloadImages.arguments[i][key]);}}}function xBtnCreate(obj,cmd,cmd2,type)
{if(typeof(cmd2)=="undefined")
cmd2="";if(typeof(type)=="undefined")
type="normal";if(type=="check"){oName=(obj.name)?obj.name:obj.id;if(oName.length<1)
oName="rcoId"+Math.round(Math.random()*9999);var Obj=document.createElement('input');Obj.type='hidden';Obj.name=oName+"IN";Obj.id=oName+"IN";Obj.value=0;obj.parentNode.appendChild(Obj);if(!obj.id)
obj.id=oName;}var img=new Array();var tmp=obj.src.split('/images/');img['path']=tmp[0]+"/images/";tmp=tmp[1].split('.');img['img']=tmp[0];img['ext']=tmp[1];if(typeof(img['img'])=='undefined'||img['img']=='undefined')
return;_xloadImages(img['path']+img['img']+"."+img['ext'],img['path']+img['img']+"-over"+"."+img['ext'],img['path']+img['img']+"-down"+"."+img['ext']
);obj.style.cursor="pointer";doWhileUp=function(OBJid,CMD,targetV1,targetV2){try{OBJ=$(OBJid);if(OBJ.src!=targetV1&&OBJ.src!=targetV2){eval(CMD);setTimeout("doWhileUp('"+OBJid+"', '"+CMD+"', '"+targetV1+"', '"+targetV2+"')",50);}}catch(e){}};obj.onmouseover=function(){if(obj.src==img['path']+img['img']+"-down."+img['ext'])
obj.src=img['path']+img['img']+"-down-over."+img['ext'];else
obj.src=img['path']+img['img']+"-over."+img['ext'];};obj.onmouseout=function(){if(obj.src==img['path']+img['img']+"-down-over."+img['ext'])
obj.src=img['path']+img['img']+"-down."+img['ext'];else
obj.src=img['path']+img['img']+"."+img['ext'];};obj.onmouseup=function(){if(type=="check"){if($(obj.id+"IN").value=='0')
obj.src=img['path']+img['img']+"-down-over."+img['ext'];else
obj.src=img['path']+img['img']+"-over."+img['ext'];$(obj.id+"IN").value=($(obj.id+"IN").value=='1')?0:1;}else
obj.src=img['path']+img['img']+"-over."+img['ext'];};obj.onmousedown=function(){obj.src=img['path']+img['img']+"-down."+img['ext'];if(typeof(cmd2)!="undefined"&&cmd2.length>0)
doWhileUp(obj.id,cmd2,img['path']+img['img']+"-over."+img['ext'],img['path']+img['img']+"."+img['ext']);};obj.onclick=function(){try{eval(cmd);}catch(e){}};obj.onload=function(){};obj.ondblclick=function(){obj.src=img['path']+img['img']+"."+img['ext'];};}var popupStatus='none';var popupLastPage='';function popupWin(cmd,txt,page)
{var popupWidth={"news-detail":600
};if(typeof(page)=="undefined")
page='en';if(typeof(txt)=="undefined")
txt=0;switch(cmd){case "create":var Obj=document.createElement('div');Obj.id="popupWinHolder";Obj.style.position="absolute";document.getElementsByTagName('body')[0].appendChild(Obj);$("popupWinHolder").innerHTML='<table border="0" cellpadding="0" cellspacing="0" style="width:50%;direction:ltr;text-align:right">'+'<tr>'+'<td style="background:url(/images/them/Gray90_cornner.gif) no-repeat top left; width:15px; height:15px"></td>'+'<td style="background:url(/images/them/bgGray90.gif) repeat ;height:15px"></td>'+'<td style="background:url(/images/them/Gray90_cornner.gif) no-repeat top right; width:15px; height:15px"></td>'+'</tr>'+'<tr style="background:url(/images/them/bgGray90.gif) repeat ;">'+'<td style="width:15px"></td>'+'<td>'+'<div class="liveReportWin">'+'<div style="width:100%;height:23px;background:url(/images/them/liveRepWinHeaderBig.gif) repeat-x top;border:1px solid #969696;border-bottom:0;">'+'<img src="/images/them/xwinBtnClose.gif" width="19" height="19" alt="" title="" style="margin:2px 4px 2px 2px; float:right" onLoad="xBtnCreate(this, \'popupWin(\\\'hide\\\')\')" />'+'<img src="/images/them/xwinBtnMin.gif" id="popupBtnMinimize" width="19" height="19" alt="" title="" style="margin:2px; float:right" onLoad="xBtnCreate(this, \'popupWin(\\\'minimize\\\')\')" />'+'<img src="/images/them/xwinBtnMax.gif" id="popupBtnMaximize" width="19" height="19" alt="" title="" style="margin:2px; float:right; display:none;" onLoad="xBtnCreate(this, \'popupWin(\\\'maximize\\\')\')" />'+'</div>'+'<div style="width:100%; background:#FFFFFF;border:1px solid #969696; border-bottom:0;">'+'<table id="popupwinMainTable" border="0" cellpadding="0" cellspacing="5" style="width:100%;; background:#F4F3F3">'+'<tr>'+'<td id="popupWinContainer">'+'</td>'+'</tr>'+'</table>'+'</div>'+'<div style="width:100%;height:20px;background:#FFFFFF url(/images/them/liveRepWinStratus.gif) no-repeat bottom left;text-align:right;border:1px solid #969696;color:#666666;" id="popupWinStatus"></div>'+'</div>'+'</td>'+'<td style="width:15px"><div style="display:none"><input type="hidden" id="popupwinPage" /><input type="hidden" id="popupwinText" /><input type="hidden" id="popupwinDirectUrl" /></div></td>'+'</tr>'+'<tr>'+'<td style="background:url(/images/them/Gray90_cornner.gif) no-repeat bottom left; width:15px; height:15px"></td>'+'<td style="background:url(/images/them/bgGray90.gif) repeat ;height:15px"></td>'+'<td style="background:url(/images/them/Gray90_cornner.gif) no-repeat bottom right; width:15px; height:15px"></td>'+'</tr>'+'</table>';popupStatus='created';break;case "show":i=0;if(popupStatus=='none')
popupWin('create',txt,page);popupWin('maximize');$("popupWinHolder").style.width=650+"px";popupWin('loading',txt,page);if(txt.length<4)
txt="news-detail&id="+txt;popupWin('fetch',txt,page);popupLastPage=page+"#"+txt;var sw=document.getElementsByTagName("body")[0].clientWidth||screen.width;var sl=Math.round((sw-650)/2);st=250+document.documentElement.scrollTop*1;$("popupWinHolder").style.top=st+'px';$("popupWinHolder").style.left=sl+'px';xMakeVisible("popupWinHolder");popupStatus='visible';break;case "hide":if(popupStatus=='none')
break;xMakeHidden("popupWinHolder");popupStatus='hidden';break;case "minimize":xMakeHidden('popupwinMainTable');xMakeHidden('popupBtnMinimize');xMakeVisible('popupBtnMaximize');break;case "maximize":xMakeVisible('popupwinMainTable');xMakeVisible('popupBtnMinimize');xMakeHidden('popupBtnMaximize');break;case "fetch":popupWin("status","درحال بارگزاری...",page);getContent(txt,'','$("popupWinContainer").innerHTML = Contents;'+'popupWin("status", "انجام شد", "'+page+'");','popupWin("status", "بارگزاری مجدد...", "'+page+'");'+'popupWin("error", "'+txt+'", "'+page+'")','GET'
);break;case "loading":$("popupWinContainer").innerHTML='<div style="margin:0;background:#FFFFFF;width:300px; margin:0 auto;">'+'<table border="0" cellpadding="0" cellspacing="5" width="100" style="margin:0 auto; direction:ltr	">'+'<tr><td><br><br><br><br><br><br></td></tr>'+'<tr>'+'<td width="80%" style="text-align:right">لطفاً صبر کنيد</td>'+'<td width="20%" style="text-align:left"><img src="/images/them/loading.gif" width="16" height="16" alt="" /></td>'+'</tr>'+'<tr><td><br><br><br><br><br><br></td></tr>'+'</table>'+'</div>';break;case "reload":if($('popupwinPage')){popupWin('loading');popupWin('fetch',$('popupwinText').value,$('popupwinPage').value);}break;case "error":popupWin("status","اشکال در دريافت اطلاعات!",page);$("popupWinContainer").innerHTML='<div class="whiteBoxHolder" style="margin:0;  width:300px;text-align:left">'+'<div class="BoxHeader"><div></div></div>'+'<div class="BoxContent" style="margin:0; padding:100px 0;">'+'<table border="0" cellpadding="0" cellspacing="0" width="100px" style="margin:0 auto">'+'<tr>'+'<td>دريافت اطلاعات با مشکل مواجه شد. لطفاً بعد از بررسی ارتباط خود با اينترنت دوباره سعی کنيد</td>'+'<td><img src="/images/them/iconTimeout.gif" width="24" height="24" alt="" /></td>'+'</tr>'+'</table>'+'</div>'+'<div class="BoxFooter""><div></div></div>'+'</div>';break;case "status":$("popupWinStatus").innerHTML="<div style='direction:rtl'>&nbsp;&nbsp;&nbsp;"+txt+"&nbsp;&nbsp;&nbsp;</div>";break;}}function menuMaker(pos,dir)
{var dx1=(dir=='rtl'?12:18);var dy1=-150;var dx2=0;var dy2=0;var mul=(dir=='rtl'?-1:1);$$('ul.dropdown').each(function(el){el.addClass('dropdown_'+pos);el.addClass('dropdown_'+dir);el=el.getElement('li');do{el.addClass('first_li');}while(el=el.getNext('li'));});$$('ul.dropdown > li').each(function(el){el.addEvent('mouseenter',function(){stoper=setTimeout('stoper=0;',20);el.addClass('first_li_hover');$$('ul.dropdown li > ul').each(function(el2){el2.fade('hide');});var par=this;while(!par.hasClass('dropdown')){if(par.tagName.toLowerCase()=='ul'){par.setStyle('visibility','visible');}par=par.getParent('ul');}if(this.getElement('ul')){var ul=this.getElement('ul');if(ul.dropdownT)clearTimeout(ul.dropdownT);if(!ul)return;ul.fade(1);if(pos=='h'){if(this.hasClass('first_li')){var x=(dir=='rtl'?this.getPosition().x-ul.getSize().x+this.getSize().x:this.getPosition().x)+dx1;var y=this.getPosition().y+this.getSize().y+dy1;}else{var x=mul*(ul.getSize().x)+dx2;var y=this.getPosition().y-this.getSize().y+dy2;}}else{if(this.hasClass('first_li')){var x=ul.getSize().x+dx1;var y=this.getPosition().y+dy1;}else{var x=mul*(ul.getSize().x)+dx2;var y=this.offsetTop+dy2;}}ul.setStyle('left',x+'px');ul.setStyle('top',y+'px');}}.bind(el));el.addEvent('mouseleave',function(){el.removeClass('first_li_hover');var ul=this.getElement('ul');if(!ul)return;if(ul.dropdownT)clearTimeout(ul.dropdownT);if(stoper)clearTimeout(stoper);stoper=0;ul.dropdownT=ul.fade.delay(300,ul,[0]);}.bind(el));});}function initCbox()
{var cbox=new CeraBox();cbox.addImages('a[rel^=lightbox]',{animation:'ease',loaderAtItem:true,displayTitle:false,group:false
});}document.addEvent('domready',initCbox);
function RestoreToggle(obj,id,page)
{$$('.opSlide'+page+'[rel!=1]').each(function(el){if(el==obj)return;var h=el.get('h');el.fx.start({'height':0,onComplete:function(){this.set('rel',1);this.getParent().getPrevious().removeClass('OpenRedArrow');}.bind(el)});});var obj=$(obj).getParent('#pageHolder');if(!obj)return;obj=obj.getElement('.'+id);var h=obj.get('h');if(obj.get('rel')==1){obj.fx.start({'height':h,onComplete:function(){this.set('rel',0);this.getParent().getPrevious().addClass('OpenRedArrow');}.bind(obj)
});obj.fx.start({'margin-top':0
});}else{obj.fx.start({'height':0,onComplete:function(){this.set('rel',1);this.getParent().getPrevious().removeClass('OpenRedArrow');}.bind(obj)
});obj.fx.start({'margin-top':-h
});}}function checkSearch()
{var sbox=$$('.gsc-results.gsc-webResult')[0];if(!sbox){return false;}if(sbox.get('text').trim()&&$('left_box').get('html')!=sbox.get('html'))
{$$('.gsc-input').getChildren()[0].each(function(el){searchentry=el.value;});clearTimeout(checkSearchTimeOut);$('left_box').set('html','<div style="background:#FFF;padding-top:10px"><div class="searchTitle">Search Result for: '+searchentry+'</div></div>'+sbox.get('html'));sbox.set('html','');}else{checkSearchTimeOut=checkSearch.delay(500);}}window.addEvent('load',function(){(initSearch=function(){$$('.gsc-search-button').addEvent("mouseenter",function(event){$$('.gsc-search-button').addClass('searchBOver');});$$('.gsc-search-button').addEvent("mouseleave",function(event){$$('.gsc-search-button').removeClass('searchBOver');});$$('.gsc-search-button').addEvent('click',function(){$('left_box').set('html','');checkSearch();});}).delay(1000);$$('.opSlide').each(function(el){var test=el.set('h',el.getSize().y+10);if(!el.getElement('.openSubSet')){el.fx=new Fx.Morph(el.getParent(),{duration:200}).set({'height':0});el.set('rel',1);}else{el.fx=new Fx.Morph(el.getParent(),{duration:200,onComplete:checkHeight.delay(100)}).set({'height':el.getSize().y+10});el.set('rel',0);}});});function showAbout(){$('Popupabout').setStyles({'display':'block','position':'absolute','z-index':'100'
});}function hideAbout(){$('Popupabout').setStyle('display',"none");}function changePic(cnt1,page)
{var height='205px';var width='233px';$$('.infront').each(function(el){el.removeClass('infront');el.setStyles({'width':'0','height':'0'});var transEffect=new Fx.Morph(el,{duration:0,transition:Fx.Transitions.Sine.easeOut});transEffect.start({opacity:1});});var pic=$$('.topBanner');var p1=pic[cnt1];var cnt2=(cnt1>=maxBannerCnt-1)?0:cnt1+1;var p2=pic[cnt2];p1.setStyles({'width':width,'height':height,'visibility':'visible','opacity':1});var transEffect=new Fx.Morph(p1,{duration:2000,transition:Fx.Transitions.Sine.easeOut});transEffect.start({opacity:0.001});$('topBanner_div').setStyle('background-image','url('+p2.src+')');p1.addClass('infront');setTimeout("changePic("+cnt2+");",8000);}function changeBG(obj,type){var obj=$(obj);if(type=='over'){obj.addClass('picFrameOver');}else{obj.removeClass('picFrameOver');}}window.addEvent('load',function(){$('slider')&&new NivooSlider($('slider'),{effect:'sliceUpDownLeft',interval:5000,orientation:'vertical',directionNav:false,preLoadImages:true
});});function changeLink(obj){var frm=document.forms['gourlform'];var gourl=frm.gourl.options[frm.gourl.selectedIndex].value;window.open(gourl,'_blank');}function chkLogin(){var uname=$('usrname').value;var passtxt=$('passtxt').value;var pass=$('pass').value;if(uname=='نام کاربری'||passtxt=='کلمه عبور'){return false;}else if(!uname.trim()||!pass.trim()){return false;}}

