Language_Variable=readCookie("LocationCookie");var expdate=new Date;expdate.setTime(expdate.getTime()+31536E6);var Item=[];function setCookie(a,b,c){c||(c=new Date);document.cookie=a+"="+escape(b)+";expires="+c.toGMTString()+";path=/"}function getCookie(a){for(var b=document.cookie,c=a+"=",a=b.length,d=0;d<a;){var e=d+c.length;if(b.substring(d,e)==c)return c=b.indexOf(";",e),c==-1&&(c=a),unescape(b.substring(e,c));d=b.indexOf(" ",d)+1;if(d==0)break}return null}
function setCookieArray(a){this.length=setCookieArray.arguments.length-1;for(var b=0;b<this.length;b++)data=setCookieArray.arguments[b+1],setCookie(a+b,data,expdate)}function getCookieArray(a){for(var b=0;getCookie(a+b)!=null;)this[b+1]=getCookie(a+b),b++,this.length=b}function changebgcolor(a,b){document.getElementById(a).style.backgroundColor=b;document.cookie="MyDefaultColor="+b+"; expires=Thu, 2 Aug 2101 20:47:11 UTC; path=/"}
function myBgColor(){if(Item=readCookie("MyDefaultColor"))document.getElementById("rightsection").style.backgroundColor=Item}function readCookie(a){a+="=";for(var b=document.cookie.split(";"),c=0;c<b.length;c++){for(var d=b[c];d.charAt(0)==" ";)d=d.substring(1,d.length);if(d.indexOf(a)==0)return d.substring(a.length,d.length)}return null}var request;
function createRequest(){try{request=new XMLHttpRequest}catch(a){try{request=new ActiveXObject("Msxml2.XMLHTTP")}catch(b){try{request=new ActiveXObject("Microsoft.XMLHTTP")}catch(c){request=false}}}}Language_Variable=readCookie("LocationCookie");Language_Variable==null&&(Language_Variable="en-US");expdate=new Date;expdate.setTime(expdate.getTime()+31536E6);Item=[];function setCookie(a,b,c){c||(c=new Date);document.cookie=a+"="+escape(b)+";expires="+c.toGMTString()+";path=/"}
function getCookie(a){for(var b=document.cookie,c=a+"=",a=b.length,d=0;d<a;){var e=d+c.length;if(b.substring(d,e)==c)return c=b.indexOf(";",e),c==-1&&(c=a),unescape(b.substring(e,c));d=b.indexOf(" ",d)+1;if(d==0)break}return null}function setCookieArray(a){this.length=setCookieArray.arguments.length-1;for(var b=0;b<this.length;b++)data=setCookieArray.arguments[b+1],setCookie(a+b,data,expdate)}function getCookieArray(a){for(var b=0;getCookie(a+b)!=null;)this[b+1]=getCookie(a+b),b++,this.length=b}
function changebgcolor(a,b){document.getElementById(a).style.backgroundColor=b;document.cookie="MyDefaultColor="+b+"; expires=Thu, 2 Aug 2101 20:47:11 UTC; path=/"}function myBgColor(){if(Item=readCookie("MyDefaultColor"))document.getElementById("rightsection").style.backgroundColor=Item}
function readCookie(a){a+="=";for(var b=document.cookie.split(";"),c=0;c<b.length;c++){for(var d=b[c];d.charAt(0)==" ";)d=d.substring(1,d.length);if(d.indexOf(a)==0)return d.substring(a.length,d.length)}return null}function createRequest(){try{request=new XMLHttpRequest}catch(a){try{request=new ActiveXObject("Msxml2.XMLHTTP")}catch(b){try{request=new ActiveXObject("Microsoft.XMLHTTP")}catch(c){request=false}}}}
function MM_showHideLayers(){var a,b,c,d=MM_showHideLayers.arguments;for(a=0;a<d.length-2;a+=3)if((c=MM_findObj(d[a]))!=null){b=d[a+2];if(c.style)c=c.style,b=b=="show"?"visible":b=="hide"?"hidden":b;c.visibility=b}}function MM_preloadImages(){var a=document;if(a.images){if(!a.MM_p)a.MM_p=[];var b,c=a.MM_p.length,d=MM_preloadImages.arguments;for(b=0;b<d.length;b++)if(d[b].indexOf("#")!=0)a.MM_p[c]=new Image,a.MM_p[c++].src=d[b]}}
function MM_swapImgRestore(){var a,b,c=document.MM_sr;for(a=0;c&&a<c.length&&(b=c[a])&&b.oSrc;a++)b.src=b.oSrc}function MM_findObj(a,b){var c,d;b||(b=document);if((c=a.indexOf("?"))>0&&parent.frames.length)b=parent.frames[a.substring(c+1)].document,a=a.substring(0,c);if(!(d=b[a])&&b.all)d=b.all[a];for(c=0;!d&&c<b.forms.length;c++)d=b.forms[c][a];for(c=0;!d&&b.layers&&c<b.layers.length;c++)d=MM_findObj(a,b.layers[c].document);!d&&b.getElementById&&(d=b.getElementById(a));return d}
function MM_swapImage(){var a,b=0,c,d=MM_swapImage.arguments;document.MM_sr=[];for(a=0;a<d.length-2;a+=3)if((c=MM_findObj(d[a]))!=null){document.MM_sr[b++]=c;if(!c.oSrc)c.oSrc=c.src;c.src=d[a+2]}}
function P7_Snap(){var a,b,c,d,e,f,l,n,h,j,o,m,p="px",k=P7_Snap.arguments;parseInt(l);if(document.layers||window.opera)p="";for(h=0;h<k.length;h+=4)if((g=MM_findObj(k[h]))!=null&&g.style.display!="none")if((m=MM_findObj(k[h+1]))!=null){l=parseInt(k[h+2]);n=parseInt(k[h+3]);d=c=b=a=0;e="";f=1;o="document.all['"+k[h]+"']";document.getElementById?(j="document.getElementsByName('"+k[h]+"')[0]",eval(j)||(j="document.getElementById('"+k[h]+"')",eval(j)||(j=o))):document.all&&(j=o);if(document.all||document.getElementById){for(;f==
1;)e+=".offsetParent",eval(j+e)?(a+=parseInt(eval(j+e+".offsetLeft")),b+=parseInt(eval(j+e+".offsetTop"))):f=0;c=parseInt(g.offsetLeft);d=parseInt(g.offsetTop);e=a+c+b+d;if(e==0||navigator.appVersion.indexOf("MSIE 4")>-1&&navigator.appVersion.indexOf("Mac")>-1)d=c=0,g.style.left?(a=parseInt(g.style.left),b=parseInt(g.style.top)):(b=parseInt(m.style.width),b=l<0?-5-b:-10,l=Math.abs(l)<1E3?0:l,n=Math.abs(n)<1E3?0:n,a=document.body.scrollLeft+event.clientX+b,b=document.body.scrollTop+event.clientY)}else if(document.layers){a=
g.x;b=g.y;e=document.layers;dd="";for(f=0;f<e.length;f++)if(dd="document."+e[f].name,eval(dd+".document."+k[h])){a+=eval(dd+".left");b+=eval(dd+".top");break}}m=document.layers?m:m.style;c=parseInt(a+c+l);d=parseInt(b+d+n);navigator.appVersion.indexOf("MSIE 5")>-1&&navigator.appVersion.indexOf("Mac")>-1&&(c+=parseInt(document.body.leftMargin),d+=parseInt(document.body.topMargin));m.left=c+p;m.top=d+p}}
var dhtmlgoodies_slideSpeed=13,dhtmlgoodies_timer=13,objectIdToSlideDown=false,dhtmlgoodies_activeId=false,dhtmlgoodies_slideInProgress=false,currentInput=null;
function showHideContent(a,b){if(!b)b=this.id;if(currentInput!=b&&!dhtmlgoodies_slideInProgress){dhtmlgoodies_slideInProgress=true;var c=b.replace(/[^0-9]/g,""),d=document.getElementById("dhtmlgoodies_a"+c);objectIdToSlideDown=false;!d.style.display||d.style.display=="none"?dhtmlgoodies_activeId&&dhtmlgoodies_activeId!=c?(objectIdToSlideDown=c,slideContent(dhtmlgoodies_activeId,dhtmlgoodies_slideSpeed*-1)):(d.style.display="block",d.style.visibility="visible",slideContent(c,dhtmlgoodies_slideSpeed)):
(slideContent(c,dhtmlgoodies_slideSpeed*-1),dhtmlgoodies_activeId=false);currentInput=b}}
function slideContent(a,b){var c=document.getElementById("dhtmlgoodies_a"+a),d=document.getElementById("dhtmlgoodies_ac"+a);height=c.clientHeight;if(height==0)height=c.offsetHeight;height+=b;rerunFunction=true;if(height>d.offsetHeight)height=d.offsetHeight,rerunFunction=false;height<=1&&(height=1,rerunFunction=false);c.style.height=height+"px";var e=height-d.offsetHeight;e>0&&(e=0);d.style.top=e+"px";rerunFunction?setTimeout("slideContent("+a+","+b+")",dhtmlgoodies_timer):(initShowHideDivs(false),
height<=1?(document.images["image"+a].src="/tayyar/images/icon"+a+".gif",c.style.display="none",objectIdToSlideDown&&objectIdToSlideDown!=a?slideContent(objectIdToSlideDown,dhtmlgoodies_slideSpeed):dhtmlgoodies_slideInProgress=false):(dhtmlgoodies_activeId=a,dhtmlgoodies_slideInProgress=false))}
function noShowHideContent(a,b){if(!b)b=this.id;if(currentInput!=b){var c=currentInput.toString().split("dhtmlgoodies_q"),d=b.toString().split("dhtmlgoodies_q"),e="image"+c[1],f=document.getElementById(e).src.toString().split("on.");document.getElementById(e).src=f[0]+"."+f[1];c=document.getElementById("dhtmlgoodies_a"+c[1]);e=document.getElementById("dhtmlgoodies_a"+d[1]);document.getElementById("dhtmlgoodies_ac"+d[1]);e.style.display="";e.style.visibility="visible";c.style.display="none";c.style.visibility=
"hidden";currentInput=b}}
function initShowHideDivs(a){var b=document.getElementsByTagName("DIV"),c=0;if(a)for(a=0;a<b.length;a++){if(b[a].className=="dhtmlgoodies_question"){b[a].onmouseover=showHideContent;b[a].id="dhtmlgoodies_q"+c;var d=document.getElementById("dhtmlgoodies_a"+c);d.id="dhtmlgoodies_a"+c;d.style.height="0px";contentDiv=d.getElementsByTagName("DIV")[0];contentDiv.className="dhtmlgoodies_answer_content";contentDiv.id="dhtmlgoodies_ac"+c;c++}}else for(a=0;a<b.length;a++)if(b[a].className=="dhtmlgoodies_question"){b[a].onmouseover=
noShowHideContent;b[a].id="dhtmlgoodies_q"+c;d=document.getElementById("dhtmlgoodies_a"+c);d.id="dhtmlgoodies_a"+c;d.style.height="auto";if(b[a].id!=currentInput)d.style.display="none",d.style.visibility="hidden";contentDiv=d.getElementsByTagName("DIV")[0];contentDiv.className="dhtmlgoodies_answer_content";contentDiv.id="dhtmlgoodies_ac"+c;c++}}function controlsTxt(a){document.getElementById("controlTxt").innerHTML=a}function controlsTxt2(a){document.getElementById("controlTxt2").innerHTML=a}
function clearcontrolsTxt(){document.getElementById("controlTxt").innerHTML="";document.getElementById("controlTxt2").innerHTML=""}var PanelSlideOut3="",spanSlideOut="";
function revelerCacherSousNav3(a,b){document.getElementById(a);var c=document.getElementById(a+"_sub");c.style.display=="none"?(document.getElementById(b).innerHTML="&minus;",document.getElementById(a).style.color="#707070",document.getElementById(b).style.color="#f78f04",c.style.display="",PanelSlideOut3!=""&&revelerCacherSousNav3(PanelSlideOut3,spanSlideOut),PanelSlideOut3=a,spanSlideOut=b):(document.getElementById(b).innerHTML="+",document.getElementById(b).style.color="#f78f04",document.getElementById(a).style.color=
"#acacac",c.style.display="none",PanelSlideOut3="")}
function highlight(a,b){if(document.getElementById(a)&&(document.getElementById(a).className="highlightclasson",document.getElementById(a).style.color="#ffffff",document.getElementById(a+"_image1").src="/Tayyar/images/"+Language_Variable+"/seperationbar_lefton.gif",document.getElementById(a+"_image2").src="/Tayyar/images/"+Language_Variable+"/seperationbar_righton.gif",MM_showHideLayers2("HideAll","","hide","item"+a+"on","","hide","SubMenu_"+a,"","show"),P7_Snap("position_SubMenus","SubMenu_"+a,0,
17),document.getElementById(b)))document.getElementById(b).style.color="#ffffff"}var PanelSlideOut="";function revelerCacherSousNav5(a){var b=document.getElementById(a+"_sub");b.style.display=="none"?(document.getElementById(a).style.color="#f77d10",b.style.display="",PanelSlideOut!=""&&revelerCacherSousNav5(PanelSlideOut),PanelSlideOut=a):(document.getElementById(a).style.color="#6e6e6d",b.style.display="none",PanelSlideOut="")}
function setInnerHTML_video(a){document.getElementById(a).innerHTML="<div id='player2'><a href='http://www.macromedia.com/go/getflashplayer'>Get the Flash Player</a> to see this player.</div>";UFO.create(FU1,"player2")}function setInnerHTML_audio(a){document.getElementById(a).innerHTML="<div id='player3'><a href='http://www.macromedia.com/go/getflashplayer'>Get the Flash Player</a> to see this player.</div>";UFO.create(FU2,"player3")}
function IfEnter(a){var b=document.Form1.search.value;if(a.keyCode==13)return b.length<4||b.length>255?(alert(searchMessage),document.Form1.search.focus(),document.Form1.search.select()):window.location="/tayyar/search.htm?Module=Web?_searchterm="+b,false}
function imagespreload(){MM_preloadImages("/Tayyar/images/"+Language_Variable+"/seperationbar_lefton.gif","/Tayyar/images/"+Language_Variable+"/seperationbar_righton.gif","/Tayyar/images/"+Language_Variable+"/lefttitleimgtestsml.gif","/Tayyar/images/"+Language_Variable+"/lefttitleimgtestsml.gif","/Tayyar/images/"+Language_Variable+"/lefttitleimgsmlon.gif","/Tayyar/images/"+Language_Variable+"/lefttitleimgsml.gif","/Tayyar/images/"+Language_Variable+"/lefttitleimgtest.gif","/Tayyar/images/"+Language_Variable+
"/lefttitleimgtest.gif","/Tayyar/images/"+Language_Variable+"/lefttitleimgon.gif","/Tayyar/images/"+Language_Variable+"/lefttitleimg.gif")}function MM_showHideLayers2(){var a,b,c,d=MM_showHideLayers2.arguments;for(a=0;a<d.length-2;a+=3)if((c=MM_findObj(d[a]))!=null){b=d[a+2];if(c.style)c=c.style,b=b=="show"?"block":b=="hide"?"none":b;c.display=b}}
function IfEnterEshoppingSearch(a,b){var c=b.value;if(a.keyCode==13)return c.length<4||c.length>255?(alert(searchMessage),b.focus(),b.select()):window.location="/Tayyar/EShopping/Search.htm?_searchterm="+c+"&_start=20&_length=60&currp=1&_chtype=",false}function writeRSSLink(a,b,c,d){b=b+"?lang="+getCookie(c)+"&international="+getCookie(d);document.write('<link rel="alternate" type="application/rss+xml" title="'+a+'" href="'+b+'">')}
function minus(a){a=document.getElementById(a+"_sub");if(a.style.display=="")a.style.display="none"}function plus(a){a=document.getElementById(a+"_sub");if(a.style.display=="none")a.style.display=""}function OpenNewsRSS(a,b,c){window.open(a+"?lang="+getCookie(b)+"&international="+getCookie(c))}
function NextNews(){if(document.getElementById("news"+(CurrentNews+1))){var a=0;for(i=1;i<=MaxNews;i++)if(document.getElementById("news"+i))document.getElementById("news"+i).style.display="none",a++;for(var b=CurrentNews+numOfVisibleDivs;CurrentNews<b;CurrentNews++)if(document.getElementById("news"+(CurrentNews+1)))document.getElementById("news"+(CurrentNews+1)).style.display=""}CurrentNews>=a&&(CurrentNews=0)}isRunDIV=false;
function RunDIV(){document.getElementById("stop").src="/Tayyar/images/en-US/stop.jpg";document.getElementById("play").src="/Tayyar/images/en-US/playoff.jpg";isRunDIV||(showtime=setInterval("NextNews()",23E3),isRunDIV=true)}function StopDIV(){document.getElementById("stop").src="/Tayyar/images/en-US/stopoff.jpg";document.getElementById("play").src="/Tayyar/images/en-US/play.jpg";clearInterval(showtime);isRunDIV=false}
function advSearch(a){document.getElementById("txtSearchBox").value.length<4||document.getElementById("txtSearchBox").value.length>255?alert(searchMessage):window.location="/tayyar/search.htm?Module="+a+"&_searchterm="+document.getElementById("txtSearchBox").value}var identifier=0,timeoutChar=80,tickrtTime=4E3,theWidgetOne="_",theWidgetTwo="-",theWidgetNone="",theLeadString="&nbsp;",msgTexts=[],msgTimes=[],msgAgencys=[],direction=[],links=[];
function directionflipp(a){document.getElementById("direction").style.direction=a}function setTiArrays(a,b,c,d,e,f){msgTexts[a]=b;msgTimes[a]=c;msgAgencys[a]=d;direction[a]=e;links[a]=f}function initTicker(){theCurrentLength=theCurrentStory=0;if(document.getElementById)theAnchorObject=document.getElementById("tickerAnchor"),runTic();else return document.write("<style>.tickerDiv{display:none;}.ticko{border:0px; padding:0px;}</style>"),true}
function runTic(){if(msgTexts.length!=0){var a;if(theCurrentLength==0)directionflipp(direction[theCurrentStory]),theStorySummary=msgTexts[theCurrentStory].replace(/&quot;/g,'"'),msgAgencys[theCurrentStory]&&(theStorySummary+="... ("+msgAgencys[theCurrentStory].replace(/&quot;/g,'"')+")"),theAnchorObject.href=links[theCurrentStory];theAnchorObject.innerHTML="<b>"+msgTimes[theCurrentStory]+"</b>&nbsp;"+theStorySummary.substring(0,theCurrentLength)+whatWidget();theCurrentLength!=theStorySummary.length?
(theCurrentLength++,a=timeoutChar):(theCurrentLength=0,a=tickrtTime,theCurrentStory==theItemCount-1?theCurrentStory=0:theCurrentStory++);setTimeout("runTic()",a)}}function whatWidget(){return theCurrentLength==theStorySummary.length?theWidgetNone:theCurrentLength%2==1?theWidgetOne:theWidgetTwo}function AddTimeOffset(a,b,c,d,e){e.toLowerCase()=="false"?(e=(b+d)%60,a=(a+c+((b+d)/60>=1?1:0))%24):(d>b&&(b+=60,a--),e=(b-d)%60,c>a&&(a+=24),a=(a-c)%24);return a=(10>a?"0"+a:a)+":"+(10>e?"0"+e:e)}
function ShowHideBanner(a){if(document.getElementById("Banner_"+a))if(document.getElementById("Banner_"+a).style.display=="none"){if(document.getElementById("Banner_"+a).style.display="block",document.getElementById("Banner"+a))document.getElementById("Banner"+a).style.display="block"}else if(document.getElementById("Banner_"+a).style.display="none",document.getElementById("Banner"+a))document.getElementById("Banner"+a).style.display="none"}
function Trim(a){if(typeof a!="string")return a;for(var b=a.substring(0,1);b==" ";)a=a.substring(1,a.length),b=a.substring(0,1);for(b=a.substring(a.length-1,a.length);b==" ";)a=a.substring(0,a.length-1),b=a.substring(a.length-1,a.length);for(;a.indexOf("  ")!=-1;)a=a.substring(0,a.indexOf("  "))+a.substring(a.indexOf("  ")+1,a.length);return a}
function RemoveLink(){for(var a=document.getElementsByTagName("A"),b=a.length-1;b>=0;b--)if(a[b].href=="http://www.alexa.com/data/details/main?url=http://www.tayyar.org"){a[b].parentNode.innerHTML="";break}};
