/// FORUM JSs
//Function show and hide column boxes
function showhide(id, imgPath) {

	var objContent = document.getElementById(id);
	var objImage = document.getElementById(id + '_image');

	if (document.getElementById(id).style.display == "") {
		objContent.style.display = "none";
		objImage.src = imgPath + "Scroll_Float_BOX_Button_Max.gif";

		SaveCookie(id, 'Hide');
	} else {
		objContent.style.display = "";
		objImage.src = imgPath + "Scroll_Float_BOX_Button_Min.gif";

		SaveCookie(id, 'Show');
	}
}

function showhideBig(id, imgPath) {

	var objBox = document.getElementById(id + '_full');
	var objContent = document.getElementById(id);
	var objImage = document.getElementById(id + '_image');

	if (document.getElementById(id).style.display == "") {
		objContent.style.display = "none";
		objImage.src = imgPath + "collapse_tcat_collapsed.gif";
		objBox.style.filter = "gray()";

		SaveCookie(id, 'Hide');
	} else {
		objContent.style.display = "";
		objImage.src = imgPath + "collapse_tcat.gif";
		objBox.style.filter = "";

		SaveCookie(id, 'Show');
	}
}

function showhideLittle(id, imgPath) {

	var objBox = document.getElementById(id + '_full');
	var objContent = document.getElementById(id);
	var objImage = document.getElementById(id + '_image');

	if (document.getElementById(id).style.display == "") {
		objContent.style.display = "none";
		objImage.src = imgPath + "collapse_thead_collapsed.gif";
		objBox.style.filter = "gray()";

		SaveCookie(id, 'Hide');
	} else {
		objContent.style.display = "";
		objImage.src = imgPath + "collapse_thead.gif";
		objBox.style.filter = "";

		SaveCookie(id, 'Show');
	}
}

//Function save cookie
function SaveCookie(name, value)
{
	var expiry = new Date();
	expiry.setTime (expiry.getTime() + (24 * 60 * 60 * 1000*365));
	document.cookie=name + "=" + escape(value) + "; expires=" + expiry;
}








function yeni_nesne(){
	var nesneyarat;
	/*@cc_on @*/
	/*@if (@_jscript_version >= 5) try { nesneyarat = new ActiveXObject("Msxml2.XMLHTTP"); }
	catch (e) {
		try { nesneyarat = new ActiveXObject("Microsoft.XMLHTTP"); }
		catch (E) { nesneyarat = false; }
	}@end @*/
	if (!nesneyarat && typeof XMLHttpRequest!='undefined') {
	 try {
	  nesneyarat= new XMLHttpRequest();
	 } catch (e) {
	  nesneyarat=false;
	 }
	}
	return nesneyarat;
}



/* 
  ================================================
  Gallery
  ================================================
*/
var p7gsiem=(navigator.appVersion.indexOf("MSIE 5")>-1&&navigator.userAgent.indexOf("Mac")>-1)?true:false;
var p7gsca,p7gsa=new Array(),p7gsplot=new Array(),p7gstmb = new Array();
function P7_setHGS(){ 
 var i,d='',tA,h="<sty"+"le type=\"text/css\">";if(!document.getElementById){return;}
 tA=navigator.userAgent.toLowerCase();if(window.opera){
 if(tA.indexOf("opera 5")>-1 || tA.indexOf("opera 6")>-1){return;}}
 h+="#p7GS{visibility:hidden;}";h+="<"+"/sty"+"le>";document.write(h);
}
P7_setHGS();
function P7_HGSinit(){ 
 var i,x,s,vp,sc,ul,li,h,hh=0,w,ww=0,uw,n,nn,im,a,nv,hv,bh,bw,ed,eh,ew,cv,j,kw,tA;
 if(!document.getElementById){return;}tA=navigator.userAgent.toLowerCase();
 if(window.opera){if(tA.indexOf("opera 5")>-1 || tA.indexOf("opera 6")>-1){return;}}
 p7gsa=arguments;if(p7gsiem||tA.indexOf('scape6/6')>-1){p7gsa[1]=0;}vp=document.getElementById('p7GSvp');
 sc=document.getElementById('p7GSsc');li=sc.getElementsByTagName('LI');im=sc.getElementsByTagName('IMG');
 for(i=0;i<im.length;i++){im[i].style.display='block';}for(i=0;i<li.length;i++){
 li[i].style.position='absolute';h=li[i].offsetHeight;w=li[i].offsetWidth;hh=(h>hh)?h:hh;
 ww=(w>ww)?w:ww;}for(i=0;i<li.length;i++){li[i].style.height=hh+'px';li[i].style.width=ww+'px';}
 for(i=0;i<li.length;i++){h=li[i].offsetHeight;w=li[i].offsetWidth;if(h>hh){n=hh-(h-hh);
 li[i].style.height=n+'px';}if(w>ww){n=ww-(w-ww);li[i].style.width=n+'px';}}ul=sc.getElementsByTagName('UL');
 ww=0;for(i=0;i<ul.length;i++){li=ul[i].getElementsByTagName('LI');	kw=0;for(j=0;j<li.length;j++){
 w=li[j].offsetWidth;h=li[j].offsetHeight;li[j].style.left=kw+'px';kw+=w;ww=(kw>ww)?kw:ww;}
 ul[i].style.position='relative';ul[i].style.height=h+'px';}if(ul.length==1){
 document.getElementById('p7GSnv').style.display='none';}sc.style.position='absolute';sc.style.top='0px';
 sc.style.left='0px';vp.style.height=h+'px';vp.style.width=ww+'px';vp.style.overflow='hidden';
 if(p7gsa[0]==1){li=sc.getElementsByTagName('LI');for(i=0;i<li.length;i++){im=li[i].getElementsByTagName('IMG')[0];
 h=im.offsetHeight;w=im.offsetWidth;hh=parseInt(li[i].style.height);ww=parseInt(li[i].style.width);
 n=parseInt((hh-h)/2);nn=parseInt((ww-w)/2);if(n>0){im.style.marginTop=n+'px';}if(nn>0){
 im.style.marginLeft=nn+'px';}}}document.p7gspre=new Array();a=sc.getElementsByTagName('A');x=0;
 for(i=0;i<a.length;i++){if(a[i].parentNode.nodeName=='LI'){a[i].onmouseover=function(){P7_HGSover(this);};
 a[i].onfocus=function(){P7_HGSover(this);};a[i].onmouseout=function(){P7_HGSout(this);};
 a[i].onclick= function(){return P7_HGSshow(this);};document.p7gspre[x]=new Image();document.p7gspre[x].cmp=false;
 document.p7gspre[x].onload=function (){this.cmp=true;};a[i].p7gsindex=x;p7gstmb[x]=a[i];x++;}}
 nv=document.getElementById('p7GSnv');x=0;if(nv){hv=nv.innerHTML;ul=sc.getElementsByTagName('UL');
 for(i=0;i<ul.length;i++){s=(i==0)?'':' <span>|</span> ';x=i+1;
 hv+=s+'<a id="p7gsn'+x+'" href="javascript:;" title="View Thumbnail Panel '+x+'">'+x+'</a>';}
 nv.innerHTML=hv;a=nv.getElementsByTagName('A');for(i=0;i<a.length;i++){a[i].onclick= function(){
 return P7_HGSnvs(this);};}}document.getElementById('p7GS').style.visibility="visible";h=p7gsa[4];
 if(!P7_HGSurl()){if(h>0){P7_HGStrig(h-1,9);}}
}
function P7_HGSover(a){ 
 var im=a.getElementsByTagName('IMG')[0];if(im.className!='p7GSon'){im.className='p7GSover';}
}
function P7_HGSout(a){ 
 var im=a.getElementsByTagName('IMG')[0];if(im.className!='p7GSon'){im.className='';}
}
function P7_HGSnvs(a,g){ 
 var p,ta;p=parseInt(a.id.replace('p7gsn',''));g=(g)?g:0;
 ta=document.getElementById('p7GSnv').getElementsByTagName('A');for(i=0;i<ta.length;i++){
 if(ta[i].className){ta[i].className='';}}a.className='p7GSnvon';P7_HGSmove(p,g);return false;
}
function P7_HGSmove(p,g){ 
 var i,h,sc,t,c,m;sc=document.getElementById('p7GSsc');h=sc.getElementsByTagName('LI')[0].offsetHeight;
 t=((h*p)-h)*-1;c=parseInt(sc.style.top);c=(c)?c:0;m=(c<t)?1:0;P7_HGSvon();if(p7gsa[5]==1&&g!=9&&g!=6){
 P7_HGSscr(t,m);}else{sc.style.top=t+'px';P7_HGSvoff();}
}
function P7_HGSvoff(){ 
 var i,j,ul,m=false;ta=document.getElementById('p7GSnv').getElementsByTagName('A');
 for(i=0;i<ta.length;i++){if(ta[i].className=='p7GSnvon'){m=true;break;}}if(m){
 ul=document.getElementById('p7GSsc').getElementsByTagName('UL');for(j=0;j<ul.length;j++){
 if(j==i){ul[j].style.visibility='visible';}else{ul[j].style.visibility='hidden';}}}
}
function P7_HGSvon(){ 
 var i,ul=document.getElementById('p7GSsc').getElementsByTagName('UL');
 for(i=0;i<ul.length;i++){ul[i].style.visibility='visible';}
}
function P7_HGSscr(t,m){ 
 var d,r,y=30;d=document.getElementById('p7GSsc');c=parseInt(d.style.top);r=P7_HGSrate(c,t);
 c+=(m==1)?r:r*-1;if(m==1){c=(c>=t)?t:c;}else{c=(c<=t)?t:c;}d.style.top=c+"px";if(c!=t){
 d.p7hgsan=setTimeout("P7_HGSscr("+t+","+m+")",y);}else{P7_HGSvoff();}
}
function P7_HGSrate(c,t){ 
 var tt=Math.abs(t-c),i=parseInt(tt*.08);i=(i<=20)?20:i;return i;
}
function P7_HGStrig(n,ug){ 
 var i,sc,a,f;ug=(ug)?ug:0;a=p7gstmb[n];if(a){P7_HGStrigp(a,ug);f=P7_HGSshow(a,ug);}
}
function P7_HGStrigp(a,ug){ 
 var i,nv,ul,pp,f;nv=document.getElementById('p7GSnv').getElementsByTagName('A');
 ul=document.getElementById('p7GSsc').getElementsByTagName('UL');pp=a.parentNode;
 while(pp){if(pp.nodeName=='UL'){break;}pp=pp.parentNode;}for(i=0;i<ul.length;i++){
 if(ul[i]==pp){break;}}f=P7_HGSnvs(nv[i],ug);
}
function P7_HGSurl(){ 
 var i,h,s,x,m=false,p='pic';if(document.getElementById){h=document.location.search;if(h){
 h=h.replace('?','');s=h.split('=');if(s&&s.length){for(i=0;i<s.length;i+=2){if(s[i]==p){
 x=parseInt(s[i+1]);if(x){P7_HGStrig(x,9);m=true;break;}}}}}h=document.location.hash;
 if(h){x=parseInt(h.substring(1,h.length));if(x&&x>0){m=true;}}}if(m){x--;
 P7_HGStrig(x,9);}return m;
}
function P7_HGSshow(a,ug){ 
 var i,ti,im,fM,pM,dM,cM,dD,ds,h,w;ug=(ug)?ug:0;im=a.getElementsByTagName('IMG')[0];
 ti=document.getElementById('p7GSvp').getElementsByTagName('IMG');if(p7gsca){
 if(p7gsca==a){return false;}}for(i=0;i<ti.length;i++){ti[i].className='';}im.className='p7GSon';
 dM=document.getElementById('p7GSfs');fM=dM.getElementsByTagName('IMG')[0];
 pM=document.p7gspre[a.p7gsindex];if(document.p7gswait){clearTimeout(document.p7gswait);}
 p7gsca=a;if(!pM.cmp){P7_GSpbs(fM);pM.src=a.href;P7_GSwait(a.p7gsindex,ug);}else{
 P7_GSfin(pM,ug);}return false;
}
function P7_GSpbs(im,ug){ 
 var i,l,t,p,pb,pw,ph,ih,iw;pb=document.getElementById('p7GSpb');pw=pb.offsetWidth;
 ph=pb.offsetHeight;if(im){ih=(p7gsiem)?im.height:im.offsetHeight;
 iw=(p7gsiem)?im.width:im.offsetWidth;t=(ih-ph)/2;l=(iw-pw)/2;p=P7_getPos(im);l+=p[0];t+=p[1];
 pb.style.left=l+'px';pb.style.top=t+'px';pb.style.visibility="visible";}
}
function P7_getPos(im){ 
 var p,pp,l=0,t=0,r=new Array(2);pp=im;while(pp){l+=(pp.offsetLeft)?pp.offsetLeft:0;
 t+=(pp.offsetTop)?pp.offsetTop:0;if(window.opera||navigator.userAgent.indexOf("Safari")>-1){
 if(pp.nodeName=="BODY"){l-=(pp.offsetLeft)?pp.offsetLeft:0;t-=(pp.offsetTop)?pp.offsetTop:0;}}
 pp=pp.offsetParent;}if(p7gsiem){l+=parseInt(document.body.currentStyle.marginLeft);
 t+=parseInt(document.body.currentStyle.marginTop);}r[0]=l;r[1]=t;return r;
}
function P7_GSwait(ix,ug){ 
 var im=document.p7gspre[ix];if(im.cmp || (!document.all&&im.height>1)){im.cmp=true;
 document.getElementById('p7GSpb').style.visibility='hidden';P7_GSfin(im,ug);
 }else{document.p7gswait=setTimeout("P7_GSwait("+ix+","+ug+")",200);}
}
function P7_GSfin(im,ug){ 
 var dM,fM,cM,aL,cD,ds,dT='',tH='',aC,fS,an,st='',h,h1,h2,ti,ci,ct,cn;an=p7gsa[1];if(an>0){
 st=' style="visibility:hidden"';}fS=document.getElementById('p7GSfs');dM=document.getElementById('p7GSfs');
 fM=dM.getElementsByTagName('IMG')[0];tB=p7gsca.getElementsByTagName('IMG')[0];
 tH+='<table class="p7GSfst" align="center" cellpadding="0" cellspacing="0">';
 aL=tB.getAttribute("alt");ci=P7GSgi();ci[4]+=1;ct=p7gstmb.length;cn='';if(p7gsa[7]==1){
 cn=' <span class="p7GScounter">('+ci[4]+' / '+ct+')</span>';}aC='<tr><td class="p7GSfsc"><p>'+aL+cn+'</p></td></tr>';
 ds=p7gsca.parentNode.getElementsByTagName('DIV');if(ds&&ds[0]){dT=ds[0].innerHTML;}if(p7gsa[2]==1){
 if(aL&&aL.length>0){tH+=aC;}}tH+='<tr><td class="p7GSfsi"><img src="'+im.src+'" alt="'+aL+'"'+st+'></td></tr>';
 if(p7gsa[2]==2){if(aL&&aL.length>0){tH+=aC;}}if(p7gsa[3]==1){if(dT.length>0){
 tH+='<tr><td class="p7GSfsd"><div>'+dT+'</div></td></tr>';}}tH+='</table>';dM.innerHTML=tH;
 if(fS){fS.style.display='block';}if(ug<7){if(an==1||an==2){P7_GSfan();}else if(an>2){P7_GSfie();}
 }else{document.getElementById('p7GSfs').getElementsByTagName('IMG')[0].style.visibility='visible';}
}
function P7GSgi(){ 
 var i,x,a,gi=new Array();x=p7gstmb.length-1;for(i=0;i<p7gstmb.length;i++){
 if(p7gstmb[i]==p7gsca){break;}}gi[0]=0;gi[1]=(i>0)?i-1:0;gi[2]=(i<x)?i+1:x;gi[3]=x;gi[4]=i;return gi;
}
function P7_GSfie(){ 
 var i,d,im,f,ff,pim,g=new Array(),an=p7gsa[1];
 im=document.getElementById('p7GSfs').getElementsByTagName('IMG')[0];pim=im.parentNode;
 if(!im.parentNode.filters){p7gsa[1]=2;P7_GSfan();return;}f='progid:DXImageTransform.Microsoft.';
 d=' Duration=1';g[0]='Fade';g[1]='Fade';g[2]='Fade';g[3]='Fade';
g[4]='Iris(irisstyle="SQUARE", motion="in"'+d+')';g[5]='Iris(irisstyle="SQUARE", motion="out"'+d+')';
g[6]='Iris(irisstyle="CIRCLE", motion="in"'+d+')';g[7]='Iris(irisstyle="CIRCLE", motion="out"'+d+')';
g[8]='Blinds(direction="up", bands=1'+d+')';g[9]='Blinds(direction="down", bands=1'+d+')';
g[10]='Blinds(direction="right", bands=1'+d+')';g[11]='Blinds(direction="left", bands=1'+d+')';
g[12]='Blinds(direction="right"'+d+')';g[13]='Blinds(direction="down"'+d+')';
g[14]='CheckerBoard(direction="right"'+d+')';g[15]='CheckerBoard(direction="down"'+d+')';
g[16]='RandomDissolve('+d+')';g[17]='Barn(orientation="vertical", motion="in"'+d+')';
g[18]='Barn(orientation="vertical", motion="out"'+d+')';g[19]='Barn(orientation="horizontal", motion="in"'+d+')'
g[20]='Barn(orientation="horizontal", motion="out"'+d+')';g[21]='Strips(motion="leftdown"'+d+')';
g[22]='Strips(motion="leftup"'+d+')';g[23]='Strips(motion="rightdown"'+d+')';
g[24]='Strips(motion="rightup"'+d+')';g[25]='RandomBars(orientation="horizontal"'+d+')';
g[26]='RandomBars(orientation="vertical"'+d+')';g[27]='Wipe(GradientSize=1.0, wipeStyle=0, motion="forward"'+d+')';
g[28]='Inset()';g[29]='Pixelate(MaxSquare=50,Duration=1,Enabled=false'+d+')';
g[30]='RadialWipe(wipeStyle="clock"'+d+')';g[31]='RadialWipe(wipeStyle="wedge"'+d+')';
g[32]='RadialWipe(wipeStyle="radial"'+d+')';g[33]='Slide(slideStyle="PUSH", bands=1'+d+')';
g[34]='Slide(slideStyle="SWAP", bands=5'+d+')';g[35]='Slide(slideStyle="HIDE", bands=2'+d+')';
g[36]='Spiral(GridSizeX=16, GridSizeY=16'+d+')';g[37]='Stretch(stretchStyle="hide"'+d+')';
g[38]='Stretch(stretchStyle="spin"'+d+')';g[39]='Stretch(stretchStyle="push"'+d+')';
g[40]='Wheel(spokes=4'+d+')';g[41]='Wheel(spokes=16'+d+')';g[42]='zigzag(GridSizeX=8, GridSizeY=8'+d+')';
 an=(an>g.length)?3:an;f+=g[an];pim.style.filter=f;if(pim.filters.length<1){p7gsa[1]=1;P7_GSfan();
 return;}pim.filters[0].Apply();im.style.visibility='visible';pim.filters[0].Play();
}
function P7_GSfan(){ 
 var im,fh,fw,tB,tF,tL,l,t,dt,dl,df,fr,dn,pl,an,c=10,i,ih,iw,ih2,iw2,l2,t2,lm=false,tm=false,ch=c,cw=c;
 an=p7gsa[1];im=document.getElementById('p7GSfs').getElementsByTagName('IMG')[0];tF=P7_getPos(im);
 fh=im.offsetHeight;fw=im.offsetWidth;tB=p7gsca.getElementsByTagName('IMG')[0];tD=P7_getPos(tB);
 if(an==1){l=parseInt((tB.offsetWidth/2))-5+tD[0];t=parseInt((tB.offsetHeight/2))-5+tD[1];
 }else{l=parseInt((fw/2))-5+tF[0];t=parseInt((fh/2))-5+tF[1];}tL=document.getElementById('p7GSah');
 tL.innerHTML='<img src="'+im.src+'" height="'+c+'" width="'+c+'">';tL.style.left=l+'px';tL.style.top=t+'px';
 dt=tF[1]-t;dl=tF[0]-l;fr=20;p7gsplot.length=0;ih=fh-c;iw=fw-c;if(ih>iw){dn=parseInt(ih/fr)+1;ih2=fr;
 iw2=parseInt(iw/dn)+1;}else{dn=parseInt(iw/fr)+1;iw2=fr;ih2=parseInt(ih/dn)+1;}l2=parseInt( Math.abs(dl)/dn)+1;
 if(dl<0){l2=l2*-1;lm=true;}t2=parseInt( Math.abs(dt)/dn)+1;if(dt<0){t2=t2*-1;tm=true;}for(i=1;i<dn+1;i++){
 t+=t2;if(tm){t=(t<=tF[1])?tF[1]:t;}else{t=(t>=tF[1])?tF[1]:t;}l+=l2;if(lm){l=(l<=tF[0])?tF[0]:l;}else{
 l=(l>=tF[0])?tF[0]:l;}cw+=iw2;cw=(cw>=fw)?fw:cw;ch+=ih2;ch=(ch>=fh)?fh:ch;
 p7gsplot[i-1]=t+','+l+','+cw+','+ch;}tL.style.visibility="visible";P7_GSfanim(0);
}
function P7_GSfanim(p){ 
 var i,pl,dy=10,tL=document.getElementById('p7GSah'),im=tL.getElementsByTagName('IMG')[0];
 if(p<p7gsplot.length){pl=p7gsplot[p].split(',');tL.style.top=pl[0]+'px';tL.style.left=pl[1]+'px';
 im.style.width=pl[2]+'px';im.style.height=pl[3]+'px';p++;setTimeout("P7_GSfanim("+p+")",dy);}
 else{document.getElementById('p7GSfs').getElementsByTagName('IMG')[0].style.visibility='visible';
 tL.style.visibility='hidden';}
}


// ------------------
// ------------------
// ------------------ DHTML MENU START
// ------------------
// ------------------
function DropMenu(oName)
	{
	this.oName=oName;
	this.arrMenus=[];	
	this.showMenu=showMenu;
	this.showMenu2=showMenu2;
	this.hideMenuAll=hideMenuAll;
	this.renderType;
	this.renderHorizontal=renderHorizontal;
	this.renderVertical=renderVertical;
	this.mouseOut=mouseOut;
	this.mouseOver=mouseOver;
	}
	
function renderHorizontal()
	{
	this.renderType="horizontal";
	document.write("<table align='"+this.align+"' cellpadding=0 cellspacing=0 style='border-collapse:collapse;' width='"+this.Tblwidth+"'><tr>");
	for(var i=0;i<this.arrMenus.length;i++)
		{
		//render top menu
		if(this.arrMenus[i][1]=="0")
			{
			document.write("<td style='border:"+this.styleBorder+";'>");
			
			var linkId="sc_link_"+this.oName+this.arrMenus[i][0];
			document.write("<table height='"+this.height+"' width='"+this.width+"' border=0 cellpadding=0 cellspacing=0><tr><td id=\"divLabel"+this.oName+this.arrMenus[i][0]+"\" style='text-align: center;background:"+this.styleBg+";background-image:url("+this.styleBgImg+");cursor:pointer;padding-left:"+this.stylePaddingLeft+";padding-right:"+this.stylePaddingRight+";padding-top:"+this.stylePaddingTop+";padding-bottom:"+this.stylePaddingBottom+";font-family:"+this.styleFontFamily+";font-weight:"+this.styleFontWeight+";font-size:"+this.styleFontSize+";color:"+this.styleColor+";' onclick=\"openLink('"+linkId+"')\" onmouseout=\""+this.oName+".mouseOut(this.id,'no');this.style.backgroundImage='url("+this.styleBgImg+")'\" onmouseover=\""+this.oName+".mouseOver(this.id,'no');this.style.backgroundImage='url("+this.styleBgImgOver+")';return !"+this.oName+".showMenu(this,'divMenu"+this.oName+this.arrMenus[i][0]+"',event)\" nowrap>");
			document.write(this.arrMenus[i][2]);			
			document.write("<a id=\""+linkId+"\" href=\""+this.arrMenus[i][3]+"\"></a>")
			document.write("</td></tr></table>");
			
			//~~~~~~~~~~~~~~
			var nParent=this.arrMenus[i][0];
			
			document.write("<span id='divMenu"+this.oName+nParent+"' style='visibility:hidden;position:absolute;' onmouseover='event.cancelBubble=true;'>");
			document.write("<table style='border:"+this.SubstyleBigBorder+";' height='"+this.Subheight+"' width='"+this.Subwidth+"' cellpadding=0 cellspacing=0>");
			var nmCount=0;
			for(var j=0;j<this.arrMenus.length;j++)
				{				
				if(this.arrMenus[j][1]==nParent)
					{
					var sAlign="";if(this.Subalign=="left")sAlign="align=left";
					var sTopBorder="";if(nmCount>0)sTopBorder="border-top:none;";nmCount++;
					var linkId="sc_link_"+this.oName+this.arrMenus[j][0];
					document.write("<tr><td "+sAlign+" nowrap id=\"divLabel"+this.oName+this.arrMenus[j][0]+"\" style='background:"+this.SubstyleBg+";border:"+this.SubstyleBorder+";"+sTopBorder+"cursor:pointer;padding-left:"+this.SubstylePaddingLeft+";padding-right:"+this.SubstylePaddingRight+";padding-top:"+this.SubstylePaddingTop+";padding-bottom:"+this.SubstylePaddingBottom+";font-family:"+this.SubstyleFontFamily+";font-weight:"+this.SubstyleFontWeight+";font-size:"+this.SubstyleFontSize+";color:"+this.SubstyleColor+";' onclick=\"openLink('"+linkId+"')\" onmouseout=\""+this.oName+".mouseOut(this.id,'yes');\" onmouseover=\""+this.oName+".mouseOver(this.id,'yes');this.style.backgroundImage='url("+this.SubstyleBgImgOver+")';return !"+this.oName+".showMenu2('divMenu"+this.oName+nParent+"',this,'divMenu"+this.oName+this.arrMenus[j][0]+"',event)\">");				
					document.write(this.arrMenus[j][2]);					
					document.write("<a id=\""+linkId+"\" href=\""+this.arrMenus[j][3]+"\"></a>")

					
					//~~~~~~~~~~~~~~
					var nParent2=this.arrMenus[j][0];
					
					document.write("<span id='divMenu"+this.oName+nParent2+"' style='visibility:hidden;position:absolute;' onmouseover='event.cancelBubble=true;'>");
					document.write("<table cellpadding=0 cellspacing=0>");
					for(var k=0;k<this.arrMenus.length;k++)
						{
						if(this.arrMenus[k][1]==nParent2)
							{
							var sAlign="";
							if(this.align=="left")sAlign="align=left";
							var linkId="sc_link_"+this.oName+this.arrMenus[k][0];
							document.write("<tr><td "+sAlign+" nowrap id=\"divLabel"+this.oName+this.arrMenus[k][0]+"\" style='background:"+this.SubstyleBg+";border:"+this.SubstyleBorder+";cursor:pointer;padding-left:"+this.SubstylePaddingLeft+";padding-right:"+this.SubstylePaddingRight+";padding-top:"+this.SubstylePaddingTop+";padding-bottom:"+this.SubstylePaddingBottom+";font-family:"+this.SubstyleFontFamily+";font-weight:"+this.SubstyleFontWeight+";font-size:"+this.SubstyleFontSize+";color:"+this.SubstyleColor+";' onclick=\"openLink('"+linkId+"');event.cancelBubble=true;\" onmouseout=\""+this.oName+".mouseOut(this.id,'yes');\" onmouseover=\""+this.oName+".mouseOver(this.id,'yes');\" >");
							document.write(this.arrMenus[k][2]);							
							document.write("<a id=\""+linkId+"\" href=\""+this.arrMenus[k][3]+"\"></a>")
							document.write("</td></tr>");
							}			
						}
					document.write("</table>")
					document.write("</span>");
					//~~~~~~~~~~~~~~					
					
					document.write("</td></tr>");		
					}			
				}
			document.write("</table>");				
			document.write("</span>");
			//~~~~~~~~~~~~~~
				
			document.write("</td>");
			}
		}
	document.write("</tr></table>");
	}

function renderVertical()
	{
	this.renderType="vertical";
	document.write("<table align='"+this.align+"' cellpadding=0 cellspacing=0 style='border-collapse:collapse;' width='"+this.Tblwidth+"'>");
	for(var i=0;i<this.arrMenus.length;i++)
		{
		//render top menu
		if(this.arrMenus[i][1]=="0")
			{
			document.write("<tr><td style='border:"+this.styleBorder+";'>");
			
			var linkId="sc_link_"+this.oName+this.arrMenus[i][0];
			document.write("<table width=100% border=0 cellpadding=0 cellspacing=0><tr><td id=\"divLabel"+this.oName+this.arrMenus[i][0]+"\" style='background:"+this.styleBg+";cursor:pointer;padding-left:"+this.stylePaddingLeft+";padding-right:"+this.stylePaddingRight+";padding-top:"+this.stylePaddingTop+";padding-bottom:"+this.stylePaddingBottom+";font-family:"+this.styleFontFamily+";font-weight:"+this.styleFontWeight+";font-size:"+this.styleFontSize+";color:"+this.styleColor+";' onclick=\"openLink('"+linkId+"')\" onmouseout=\""+this.oName+".mouseOut(this.id,'no');this.style.backgroundImage='url("+this.styleBgImg+")'\" onmouseover=\""+this.oName+".mouseOver(this.id,'no');this.style.backgroundImage='url("+this.styleBgImgOver+")';return !"+this.oName+".showMenu(this,'divMenu"+this.oName+this.arrMenus[i][0]+"',event)\" nowrap>");
			document.write(this.arrMenus[i][2]);
			document.write("<a id=\""+linkId+"\" href=\""+this.arrMenus[i][3]+"\"></a>")
			document.write("</td></tr></table>");
			
			//~~~~~~~~~~~~~~
			var nParent=this.arrMenus[i][0];
			
			document.write("<span id='divMenu"+this.oName+nParent+"' style='visibility:hidden;position:absolute;' onmouseover='event.cancelBubble=true;'>");
			document.write("<table cellpadding=0 cellspacing=0 width='"+this.Tblwidth+"'><tr><td></td></tr>");
			var nmCount=0;
			for(var j=0;j<this.arrMenus.length;j++)
				{				
				if(this.arrMenus[j][1]==nParent)
					{
					var sAlign="";if(this.align=="right")sAlign="align=right";
					var sTopBorder="";if(nmCount>0)sTopBorder="border-top:none;";nmCount++;
					var linkId="sc_link_"+this.oName+this.arrMenus[j][0];
					document.write("<tr><td "+sAlign+" nowrap id=\"divLabel"+this.oName+this.arrMenus[j][0]+"\" style='background:"+this.styleBg+";border:"+this.styleBorder+";"+sTopBorder+"cursor:pointer;padding-left:"+this.stylePaddingLeft+";padding-right:"+this.stylePaddingRight+";padding-top:"+this.stylePaddingTop+";padding-bottom:"+this.stylePaddingBottom+";font-family:"+this.styleFontFamily+";font-weight:"+this.styleFontWeight+";font-size:"+this.styleFontSize+";color:"+this.styleColor+";' onmouseout=\""+this.oName+".mouseOut(this.id,'no');\" onclick=\"openLink('"+linkId+"')\" onmouseover=\""+this.oName+".mouseOver(this.id,'no');return !"+this.oName+".showMenu2('divMenu"+this.oName+nParent+"',this,'divMenu"+this.oName+this.arrMenus[j][0]+"',event)\">");				
					document.write(this.arrMenus[j][2]);					
					document.write("<a id=\""+linkId+"\" href=\""+this.arrMenus[j][3]+"\"></a>")

					
					//~~~~~~~~~~~~~~
					var nParent2=this.arrMenus[j][0];
					
					document.write("<span id='divMenu"+this.oName+nParent2+"' style='visibility:hidden;position:absolute;' onmouseover='event.cancelBubble=true;'>");
					document.write("<table cellpadding=0 cellspacing=0><tr><td></td></tr>");
					var bTop=true;
					for(var k=0;k<this.arrMenus.length;k++)
						{
						if(this.arrMenus[k][1]==nParent2)
							{
							if(bTop)
								{
								bTop=false;
								
								var sAlign="";
								if(this.align=="right")sAlign="align=right";
								var linkId="sc_link_"+this.oName+this.arrMenus[k][0];
								document.write("<tr><td "+sAlign+" nowrap id=\"divLabel"+this.oName+this.arrMenus[k][0]+"\" style='background:"+this.styleBg+";border:"+this.styleBorder+";cursor:pointer;padding-left:"+this.stylePaddingLeft+";padding-right:"+this.stylePaddingRight+";padding-top:"+this.stylePaddingTop+";padding-bottom:"+this.stylePaddingBottom+";font-family:"+this.styleFontFamily+";font-weight:"+this.styleFontWeight+";font-size:"+this.styleFontSize+";color:"+this.styleColor+";' onclick=\"openLink('"+linkId+"');event.cancelBubble=true;\" onmouseout=\""+this.oName+".mouseOut(this.id,'no');\" onmouseover=\""+this.oName+".mouseOver(this.id,'no');\" >");
								document.write(this.arrMenus[k][2]);							
								document.write("<a id=\""+linkId+"\" href=\""+this.arrMenus[k][3]+"\"></a>")
								document.write("</td></tr>");
								}
							else
								{//border-top:none
								var sAlign="";
								if(this.align=="right")sAlign="align=right";
								var linkId="sc_link_"+this.oName+this.arrMenus[k][0];
								document.write("<tr><td "+sAlign+" nowrap id=\"divLabel"+this.oName+this.arrMenus[k][0]+"\" style='background:"+this.styleBg+";border:"+this.styleBorder+";border-top:none;cursor:pointer;padding-left:"+this.stylePaddingLeft+";padding-right:"+this.stylePaddingRight+";padding-top:"+this.stylePaddingTop+";padding-bottom:"+this.stylePaddingBottom+";font-family:"+this.styleFontFamily+";font-weight:"+this.styleFontWeight+";font-size:"+this.styleFontSize+";color:"+this.styleColor+";' onclick=\"openLink('"+linkId+"');event.cancelBubble=true;\" onmouseout=\""+this.oName+".mouseOut(this.id,'no');\" onmouseover=\""+this.oName+".mouseOver(this.id,'no');\" >");
								document.write(this.arrMenus[k][2]);							
								document.write("<a id=\""+linkId+"\" href=\""+this.arrMenus[k][3]+"\"></a>")
								document.write("</td></tr>");
								}
							}			
						}
					document.write("</table>")
					document.write("</span>");
					//~~~~~~~~~~~~~~					
					
					document.write("</td></tr>");		
					}			
				}
			document.write("</table>");				
			document.write("</span>");
			//~~~~~~~~~~~~~~
				
			document.write("</td></tr>");
			}
		}
	document.write("</table>");
	}

function objStyle(idName)
	{
	if(document.getElementById && document.getElementById(idName))
		return document.getElementById(idName).style;
	else if(document.all && document.all(idName))
		return document(idName).style;
	else if(document.layers && document.layers(idName))//not used
		return document.layers(idName);
	else return false;
	}

function showMenu(oEl,idMenu,evt)
	{
	document.onmouseover=new Function(this.oName+".hideMenuAll()");
	
	var oMenuStyle=objStyle(idMenu);
	if(this.renderType=="horizontal")
		{
		oMenuStyle.top = getTop(oEl.id)+oEl.offsetHeight;
		if(this.align=="left") oMenuStyle.left = getLeft(oEl.id);
		else oMenuStyle.left = getLeft(oEl.id)+getWidth(oEl.id)-getWidth(idMenu)+2;//+2 => adjustment
		}
	else
		{//vertical
		oMenuStyle.top = getTop(oEl.id)+4;//+4 => adjustment
		if(this.align=="left")oMenuStyle.left=getLeft(oEl.id)+getWidth(oEl.id);
		else oMenuStyle.left=getLeft(oEl.id)-getWidth(idMenu)+4;//+4 => adjustment
		}
	this.hideMenuAll();
	evt.cancelBubble=true;
	var oMenuStyle=objStyle(idMenu);
	if(oMenuStyle) 
		{
		oMenuStyle.visibility="visible";
		return true;
		}
	else return false;
	}
	
var sActiveSubMenu=null;
function showMenu2(oElParent,oEl,idMenu,evt)
	{
	document.onmouseover=new Function(this.oName+".hideMenuAll()");
	
	var oMenuStyle=objStyle(idMenu);
	oMenuStyle.top = getTop(oEl.id)-getTop(oElParent)+4;//+4 => adjustment
	if(this.align=="left") oMenuStyle.left=getWidth(oElParent)-4;//+4 => adjustment
	else
		{
		oMenuStyle.left=-getWidth(idMenu)+4;//+4 => adjustment
		oMenuStyle.left=-getWidth(idMenu)+4;//+4 => adjustment
		}
	
	if(sActiveSubMenu!=idMenu)
		{
		if(sActiveSubMenu)
			{
			var oMenuStyle=objStyle(sActiveSubMenu)
			oMenuStyle.visibility="hidden";
			}
		sActiveSubMenu=idMenu
		}

	evt.cancelBubble=true;
	var oMenuStyle=objStyle(idMenu)
	if(oMenuStyle) 
		{
		oMenuStyle.visibility="visible";
		return true;
		}
	else return false;
	}

function hideMenuAll()
	{
	for(var i=0;i<this.arrMenus.length;i++)
		{
		var id=this.arrMenus[i][0]
		var oMenuStyle=objStyle("divMenu"+this.oName+id)
		if(oMenuStyle) oMenuStyle.visibility="hidden";
		}
	}
function getWidth(idEl)
	{
	if(document.all && document.all(idEl))
		return document.all(idEl).offsetWidth;
	else if(document.getElementById && document.getElementById(idEl))
		return  document.getElementById(idEl).offsetWidth;
	else return false;
	}
function getLeft(idEl) 
	{
	if(document.all && document.all(idEl))
		{//IE
		var oEl=document.all(idEl);
		var oElTmp=oEl;
		var nLeft=0;
		while(oElTmp!=null)
			{
			nLeft+=oElTmp["offsetLeft"]
			oElTmp=oElTmp.offsetParent
			}
		return nLeft;
		}
	else if(document.getElementById && document.getElementById(idEl))
		{//Nets & IE
		var oElTmp = document.getElementById(idEl);
		var nLeft=0;
		while(oElTmp!=null)
			{
			nLeft+=oElTmp["offsetLeft"]
			oElTmp=oElTmp.offsetParent
			}
		return nLeft-1;// -1 => adjustment
		}
	else if(document.layers && document.layers(idEl)) return document.layers(idEl).pageX;//not used
	else return false;
	}

function getTop(idEl) 
	{
	if(document.all && document.all(idEl))
		{
		var oEl=document.all(idEl);
		var oElTmp=oEl;
		var nTop=0;
		while(oElTmp!=null)
			{
			nTop+=oElTmp["offsetTop"]
			oElTmp=oElTmp.offsetParent
			}
		return nTop+1;// +1 => adjustment
		}
	else if(document.getElementById && document.getElementById(idEl))
		{
		var oElTmp = document.getElementById(idEl);
		var nTop=0;
		while(oElTmp!=null)
			{
			nTop+=oElTmp["offsetTop"]
			oElTmp=oElTmp.offsetParent
			}
		return nTop;
		}	 
	else if(document.layers && document.layers(idEl)) return document.layers(idEl).pageY;//not used
	else return false;
	}

function mouseOver(idEl,var1)
	{
	var oElStyle=objStyle(idEl); 
		switch(var1){
		case 'no':
	oElStyle.backgroundImage="url("+this.styleBgImgOver+")";
	oElStyle.background=this.styleBgOver;
	oElStyle.color=this.styleColorOver;
		break
		case 'yes':
	oElStyle.backgroundImage="url("+this.SubstyleBgImgOver+")";
	oElStyle.background=this.SubstyleBgOver;
	oElStyle.color=this.SubstyleColorOver;
		break
		}
	}
function mouseOut(idEl,var1)
	{
	var oElStyle=objStyle(idEl); 
		switch(var1){
		case 'no':
	oElStyle.backgroundImage="url("+this.styleBgImg+")";
	oElStyle.background=this.styleBg;
	oElStyle.color=this.styleColor;
		break
		case 'yes':
	oElStyle.backgroundImage="url("+this.SubstyleBgImg+")";
	oElStyle.background=this.SubstyleBg;
	oElStyle.color=this.SubstyleColor;
		break
		}
	}
function openLink(id)
	{
	if(document.all && document.all(id))
		oEl=document.all(id);
	else if(document.getElementById && document.getElementById(id))
		oEl=document.getElementById(id);
	else oEl=null;
	if(oEl) 
		{
		window.location.href=oEl.href;
		}
	}
// ------------------
// ------------------
// ------------------ DHTML MENU OVER
// ------------------
// ------------------




// ------------------
// ------------------
// ------------------ HELP - SOUL TYPE
// ------------------
// ------------------
var divname="soultip";
var divInnername="soultipinner";
var fixed=false;
var soultip="<div id='soultip'><div id='soultipinner'></div></div><link href='/soultip.css' rel='stylesheet' type='text/css' />"
var CoordLeft=10;
var CoordRight=-15;
var hiddenTags = new Array();
function fm_MXY(XorY){ // Mouse Coords
	var coord = 0;
	XorY=="x"?coord = event.clientX + document.body.scrollLeft:coord = event.clientY + document.body.scrollTop;
	if(coord<0)coord=0;
	return coord;
}
function fm_help(){ // Show-Hide 
	var NewCoordLeft=0,NewCoordRight=0; 
	var d=document;
	var thisObj = d.getElementById(divname); // findObj
	var browserwidth=document.body.clientWidth; // Browser sizes - Positions
	var browserheight=document.body.clientHeight+document.body.scrollTop+25;
	var soulwidth=thisObj.offfsetWidth+10, soulheight=thisObj.offfsetHeight+10; // Soultip sizes

	var activeObj=window.event.srcElement; // Active Object
	var desc=activeObj.help; //help tag
	
	if(desc!=null){	//If object help tag exist
		var x = fm_MXY("x"), y = fm_MXY("y");
		if(document.alldesc==desc){	//If fixed
			NewCoordLeft=activeObj.offfsetLeft+activeObj.offfsetWidth-x;
			NewCoordRight=activeObj.offfsetTop-y;
		}

		NewCoordLeft+=(x+soulwidth>browserwidth)?-soulwidth:CoordLeft; //idea by Yusuf Uğur Soysal - hayalet
		NewCoordRight+=(y+soulheight>browserheight)?-soulheight:CoordRight;

		thisObj.style.left=x+NewCoordLeft+"px"; //Move X 
		thisObj.style.top=y+NewCoordRight+"px"; //Move Y

		fm_writehelp(desc); //print output
		hy_collusion(thisObj); //Hide SelectBoxes by hayalet
		
		if(fixed)document.alldesc=desc; //cache for fixed
	
	}else{
		hy_collusionRecover(); //Recover Selects by hayalet
		thisObj.style.display="none";
	}
}
function fm_writehelp(val){ // Write Tip
	var d=document;
	var thisObj = d.getElementById(divname);
	var innerObj = d.getElementById(divInnername);
	innerObj.innerHTML=val;
	thisObj.style.display="block";	
}
function hy_collusion(obj){ // Hide Selectboxes by Yusuf Uğur Soysal - hayalet
	var offfsetLeft   = obj.offfsetLeft;
	var offfsetTop    = obj.offfsetTop;
	var offfsetWidth  = obj.offfsetWidth;
	var offfsetHeight = obj.offfsetHeight;
	
	var topLeftX     = offfsetLeft;
	var topLeftY     = offfsetTop;
	var bottomRightX = offfsetLeft + offfsetWidth;
	var bottomRightY = offfsetTop  + offfsetHeight;
	var hyl = 0;
	
	if(document.getElementsByTagName){
		var selectTags = document.getElementsByTagName("select");
		
		for( ; hyl < selectTags.length; hyl++){
			var tag = selectTags[hyl];											
			var x1 = tag.offfsetLeft;
			var y1 = tag.offfsetTop;
			var x2 = x1 + tag.offfsetWidth;
			var y2 = y1 + tag.offfsetHeight;
			
			if( ((topLeftX < x1 && x1 < bottomRightX) || (topLeftX < x2 && x2 < bottomRightX)) &&
				((topLeftY < y1 && y1 < bottomRightY) || (topLeftY < y2 && y2 < bottomRightY)) ) {
			
				tag.style.visibility = "hidden";
				hiddenTags[ hiddenTags.length ] = tag;			
			}	
			else
				tag.style.visibility = "visible";
		}		
	}
}
function hy_collusionRecover(){// Hide Selectboxes by Yusuf Uğur Soysal - hayalet
	var hyl = 0;
	
	for( ; hyl<hiddenTags.length; hyl++)
		hiddenTags[hyl].style.visibility = "visible";
}
if(document.all){ //Hide from other browsers
	document.write(soultip);
	document.onmousemove=fm_help;
}
// ------------------
// ------------------
// ------------------ HELP - SOUL TYPE OVER
// ------------------
// ------------------



//Linke Yonlendirme
function ds(var1,var2,var3,var4) {
  document.all.ds_left_title.innerText = var1;
  document.all.ds_right_title.innerText = var2;
  ds_left.location.href = var3;
  ds_right.location.href = var4;
}

function ds0(var1) {
  document.all.ds_right_title.innerText = var1;
}


function ds2(var1,var2) {
  document.all.ds_right_title.innerText = var1;
  ds_right.location.href = var2;
}


//Linke Yonlendirme
function ds3(var1,var2) {
	switch(var2){
	case '1':
	  window.parent.document.all.ds_right_title.innerText = 'Anket Bilgilerini Göster';
	  window.location.href = 'poll-form.asp?p=form&sp=guncelle&id=' + var1;
	break
	case '2':
	  window.parent.document.all.ds_right_title.innerText = 'Duyuru Bilgilerini Göster';
	  window.location.href = 'news-form.asp?p=form&sp=guncelle&id=' + var1;
	break
	case '3':
	  window.parent.document.all.ds_right_title.innerText = 'Yollanmış Maili Göster';
	  window.location.href = 'newsletter-form.asp?p=form&sp=guncelle&id=' + var1;
	break
	case '4':
	  window.parent.document.all.ds_right_title.innerText = 'Abone Bilgilerini Göster';
	  window.location.href = 'newsletter-form-user.asp?p=form&sp=guncelle&id=' + var1;
	break
	case '5':
	  window.parent.document.all.ds_right_title.innerText = 'Galeri Kategorisinin Bilgilerini Göster';
	  window.location.href = 'gallery-form-file.asp?p=form&sp=guncelle&id=' + var1;
	break
	case '6':
	  window.parent.document.all.ds_right_title.innerText = 'Dosya Bilgilerini Göster';
	  window.location.href = 'gallery-form-cat.asp?p=form&sp=guncelle&id=' + var1;
	break
	case '7':
	  window.parent.document.all.ds_right_title.innerText = 'Form Bilgilerini Göster';
	  window.location.href = 'form-form.asp?p=form&sp=guncelle&id=' + var1;
	break
	case '7':
	  window.parent.document.all.ds_right_title.innerText = 'Link Bilgilerini Göster';
	  window.location.href = 'director-form.asp?p=form&sp=guncelle&id=' + var1;
	break
	case '7':
	  window.parent.document.all.ds_right_title.innerText = 'Link Kategorisinin Göster';
	  window.location.href = 'director-form-cat.asp?p=form&sp=guncelle&id=' + var1;
	break
	}
}

// ROLLOVER RESIM ISLEMI
function imgover(imgname, loadwhat){
imgname.src = loadwhat
}
function imgout(imgname, loadwhat){
imgname.src = loadwhat
}

//POPUP PENCERE ACAR
var win = null;
function newWindow(mypage,myname,w,h,features) {
  var winl = (screen.width-w)/2;
  var wint = (screen.height-h)/2;
  if (winl < 0) winl = 0;
  if (wint < 0) wint = 0;
  wint = wint - 33;
  var settings = 'height=' + h + ',';
  settings += 'width=' + w + ',';
  settings += 'top=' + wint + ',';
  settings += 'left=' + winl + ',';
  settings += features;
  win = window.open(mypage,myname,settings);
  win.window.focus();
}

//DIALOG KUTUSU ACALIM
function MM_openMDialog(theURL,args,features) { //v2.0
  var returnedValue = window.showModalDialog(theURL,args,features);
  eval (returnedValue);
}

