/* ---------------------------------------- Rasaelna Misc ---------------------------------------- */
function AdjTopLnkDiv(shwHid)
{
	var topLndDiv = GetElm('ShwTopLnkDet'),
		topLnkDivVis = topLndDiv.style.visibility;
	
	if( shwHid == 'S' )	topLndDiv.style.visibility = topLnkDivVis == 'hidden' ?  'visible' : 'hidden';
	if( shwHid == 'H' )	topLndDiv.style.visibility = topLnkDivVis == 'visible' ?  'hidden' : 'visible';
		
	document.title = document.getElementById('PrvTtl').value;
}


function SetWinSta(str)
{
	
	var msgStr = new Array();
		msgStr[1] = 'أهلاً بكم';
		msgStr[2] = 'العروض الحالية';
		msgStr[3] = 'قائمة الأسعار';
		msgStr[4] = 'طريقة السداد';
		msgStr[5] = 'الدعم الفني';
		msgStr[6] = 'من نحن';
		msgStr[7] = 'منطقة التغطية';
		msgStr[8] = 'راسلنا';

	var ttlImgArr = new Array();
		ttlImgArr[1] = 'pge_ttl_01_wel';
		ttlImgArr[2] = 'pge_ttl_02_ofr';
		ttlImgArr[3] = 'pge_ttl_03_prc';
		ttlImgArr[4] = 'pge_ttl_04_pay';
		ttlImgArr[5] = 'pge_ttl_05_sup';
		
	var msgURL = new Array();
		msgURL[1] = '../Pages_nlo.php?Page=';
		msgURL[2] = '../Pages_nlo.php?Page=999';
		msgURL[3] = '../Pages_nlo.php?Page=28';
		msgURL[4] = '../Pages_nlo.php?Page=23';
		msgURL[5] = '../Pages_nlo.php?Page=999';
		msgURL[6] = '../Pages_nlo.php?Page=999';
		msgURL[7] = '../Pages_nlo.php?Page=999';
		msgURL[8] = '../Pages_nlo.php?Page=999';
		
	var ttlImgPth = 'layout/',
		ttlImgSlf = document.getElementById('TtlImg'),
		ttlPrvVal = document.getElementById('PrvTtl'),
		defTtl = 'رسايلنا: خدمة الرسائل النصية القصيرة من فيودكس-تك | إعلان . تواصل . تسلية - ';
		if( str > 0 && str < 5 )
	{
		document.title = defTtl+msgStr[str];
		document.getElementById('ddcontent').innerHTML='<img src="layout/loglody.gif" width="25" height="25" />';
		getFudexAjaxedData( msgURL[str], 'ddcontent', 'contentLod' );
	}
	if( str > 0 && str < 6 )
	{
		ttlImgSlf.src = ttlImgPth+ttlImgArr[str]+'.gif';
		ttlPrvVal.value=defTtl+msgStr[str];
	}
	
}

function ShwHidElm(Obj)
{
	var objToPrf = document.getElementById(Obj);
	if( objToPrf.style.display=='none' )
	{
		objToPrf.style.display='';
	}
	else
	{
		objToPrf.style.display='none';
	}
}

