function linkmore(){
	if (top.mobilyLang=="ar")
		document.write("المزيد")
	else
		document.write("more")
}

function autofitIframe(frameid)
{
	var currentfr=document.getElementById(frameid)
	currentfr.style.visibility="hidden";
	currentfr.height=300
	
	if (currentfr.contentDocument)
		{
			currentfr.height = currentfr.contentDocument.body.offsetHeight; 
			if (currentfr.height==0)
				Id_autofitIframe = window.setTimeout("autofitIframe('"+frameid+"')",2500);
			else
				currentfr.style.visibility="visible";
		}
	else if (currentfr.Document.body)
		{
            currentfr.height = currentfr.Document.body.scrollHeight;
			currentfr.style.visibility="visible";
		}
	else
		{   
			Id_autofitIframe = window.setTimeout("autofitIframe('"+frameid+"')",2500);
		}
}


function MoveShourtcuts(){
	return;
}


function inverse(colorValue)
{
	
	a=colorValue.slice(0,2);
	b=colorValue.slice(2,4);
	c=colorValue.slice(4,6);
	
	a1=16*giveHex(a.slice(0,1));
	a2=giveHex(a.slice(1,2));
	a=a1+a2;
	b1=16*giveHex(b.slice(0,1));
	b2=giveHex(b.slice(1,2));
	b=b1+b2;
	c1=16*giveHex(c.slice(0,1));
	c2=giveHex(c.slice(1,2));
	c=c1+c2;
	
	newColor= ((a * 299) + (b * 587) + (c *114)) / 1000
	
	if (newColor == 255) {
		newColor ="626262"	
	}
	else if (newColor > 128) {
		newColor ="000000"	
	}
	else
	{
		newColor ="ffffff"	
	}

	
	return newColor
}

var hexbase="0123456789ABCDEF";
function DecToHex(number) {
          return hexbase.charAt((number>> 4)& 0xf)+ hexbase.charAt(number& 0xf);
        }
function giveHex(s){
	s=s.toUpperCase();
	return parseInt(s,16);
}

function moveOptionList(x){
    return;
}