/* Copyright (C) 2009 Microsoft Corporation */
/*@cc_on@*/
if(!('Live'in window))Live={};if(!('Header'in Live))Live.Header={};Live.Header.Utilities=
{init:function()
{var s=Live.Header.Utilities;s.ib();s.is();},
ib:function()
{this.menu=document.getElementById("mainmenu");if(!this.menu)
return;this.header=document.getElementById("header");this.jewel=this.header.getElementsByTagName("a")[0];this.jewelImg=this.jewel.getElementsByTagName("img")[0];this.menu.style.position="absolute";if(this.jewel)
{this.attachEvent(this.jewel,"click",this.lhs);this.attachEvent(this.jewel,"focus",this.lhs);this.attachEvent(this.header,"mouseover",this.lhs);}
},
is:function()
{this.searchForm=document.getElementById("searchform");if(!this.searchForm)
return;this.inputs=document.getElementById("efpInputs");this.go=document.getElementById("go");this.q=document.getElementById("q");if(this.searchForm)
{this.attachEvent(this.searchForm.childNodes[0],"mouseover",this.sin);this.attachEvent(this.searchForm.childNodes[0],"mouseout",this.sout);this.sc="efpSf";}
if(this.go)
{this.attachEvent(this.go,"focus",this.sinf);this.attachEvent(this.go,"blur",this.soutf);}
if(this.q)
{this.attachEvent(this.q,"focus",this.sinf);this.attachEvent(this.q,"blur",this.soutf);}
},
sinf:function(e)
{var s=Live.Header.Utilities;s.searchForm.hf=true;s.sin(e);},
soutf:function(e)
{var s=Live.Header.Utilities;s.searchForm.hf=false;s.sout(e);},
sin:function(e)
{var s=Live.Header.Utilities;s.searchForm.className=s.sc+" active";},
sout:function(e)
{var s=Live.Header.Utilities;s.cancelBubble(e);if(s.searchForm.hf)return;s.searchForm.className=s.sc;},
sbin:function(el)
{el.className+=" efpOver";if(el.src)
el.src=el.src.replace(/\.gif/gi,'_Over.gif');},
sbout:function(el)
{el.className=el.className.replace(/ efpover/gi,"");if(el.src)
el.src=el.src.replace(/_Over/gi,'');},
lhs:function()
{var s=Live.Header.Utilities;s.detachEvent(s.jewel,"click",s.lhs);s.detachEvent(s.jewel,"focus",s.lhs);s.detachEvent(s.header,"mouseover",s.lhs);s.hsl();if("click"===event.type)
s.toggleMenu();},
hsl:function()
{var s=Live.Header.Utilities;if(!Live.Header.MenuContents)
return;s.menu.innerHTML=Live.Header.MenuContents.replace(/\{0\}/gi,Live.Themes.ThemeUrl);s.attachEvent(s.jewel,"click",s.toggleMenu);/*@if (@_jscript_version <= 5.6) // if (ie6-)
                s.attachEvent(s.menu,'mouseenter',s.menu_mouseenterElementEvent_ie6);
                    @end@*/
},
menu_mouseenterElementEvent_ie6:function(e)
{var s=Live.Header.Utilities;s.menu.style.visibility='hidden';s.menu.style.visibility='visible';},
toggleMenu:function(e)
{var s=Live.Header.Utilities;if(s.menu.style.display!="block")
{s.cancelBubble(e);s.attachEvent(document,"click",s.toggleMenu);s.attachEvent(s.menu,"click",s.cancelBubble);s.show_helper(e,s);}
else
{s.detachEvent(document,"click",s.toggleMenu);s.detachEvent(s.menu,"click",s.cancelBubble);s.hide_helper(e,s);}
},
show_helper:function(e,s)
{s.jewel.firstChild.className+=" Down";s.show(e,s);s.menu.style.visibility='hidden';s.menu.style.visibility='visible';},
hide_helper:function(e,s)
{s.hide(e,s);s.jewel.firstChild.className=s.jewel.firstChild.className.replace(" Down","");},
show:function(e,s)
{s.menu.style.display="block";},
hide:function(e,s)
{s.menu.style.display="none";},
getAction:function()
{var s=Live.Header.Utilities;},
dws:function(url)
{var h=Live.Header,u=h.Utilities,s=h.Settings;u.searchForm.action=s.wsa;u.inputs.innerHTML=u.createInputs(s.wsa,s.SearchFormCode||s.LinkReportingValues);},
initsi:function(h)
{var hs=h.Settings;hs.wsa=hs.SearchActionOverride||'http://www.live.com/';hs.sa=hs.SearchActionDefault||hs.wsa;hs.cs=hs.wsa!=hs.sa;hs.inp=h.Utilities.createInputs(hs.sa,hs.SearchFormCode||hs.LinkReportingValues);},
createInputs:function(url,form)
{var u=Live.Header.Utilities.parseUrl(url);var ip=" ";for(var i=0;u.params&&i<u.params.length;i++)
{if(u.params[i].name!='q'&&u.params[i].name!='mkt')
ip+='<input type="hidden" name="'+u.params[i].name+'" value="'+u.params[i].value+'">';if(u.params[i].name=='FORM')
form=null;}
if(form)
{ip+='<input name="FORM" type="hidden" value="'+form+'">';}
return ip;},
parseUrl:function(url)
{var u={};u.url=url;u.idx=url.indexOf("?");if(u.idx==-1)return u;u.path=url.substring(0,u.idx);u.params=Live.Header.Utilities.parseParams(url.substring(u.idx+1));return u;},
parseParams:function(qs)
{var p=[],vars=qs.split('&');for(var i=0;i<vars.length;i++)
{var prop=vars[i].split('=');if(prop.length>1)
{p[p.length]={name:prop[0],value:prop[1]};}
}
return p;},
target:function(e){if(window["event"]){return event.srcElement;}else if(e){return e.target}},
cancelBubble:function(e){if(e&&e.stopPropagation){e.stopPropagation();}else if(window["event"]){event.cancelBubble=true;}},
attachEvent:function(el,ev,cb){if(el.attachEvent){el.attachEvent("on"+ev,cb);}else if(el.addEventListener){el.addEventListener(ev,cb,false);}},
detachEvent:function(el,ev,cb){if(el.detachEvent){el.detachEvent("on"+ev,cb);}else if(el.removeEventListener){el.removeEventListener(ev,cb,false)}}
}
var m_hsTemplate={},
eHeader=document.getElementById('headerPlaceholder');Live.Header.rh=function()
{var b=[],h=Live.Header,s=h.Settings,u=h.Utilities,sHtml;u.initsi(h);s.Market='tr-tr';s.Product='Live.Spaces';b.push('<div id="header" metype="me"><div class="stroke"></div><div class="inside">');b.push('{cobrand}');b.push('<div class="MeSection ');b.push(!s.ViewerCid||!s.IsAuthenticated?'simple':'full');b.push('">');if(s.MeContents){b.push(s.MeContents)}else{b.push('<div class="sme"><span style="');b.push((s.NameDisplay=((s.FriendlyName==null||s.FriendlyName=='')?'display:none;':'')));b.push('"> ');b.push(s.FriendlyName);b.push(' </span><span style="');b.push((s.ChangeDisplay=(!s.IsAuthenticated?(s.NotYouUrl!=null?'':'display:none'):(s.ChangeUserUrl!=null?'':'display:none;'))));b.push('">(<a href="'+(s.NotYouUrl||'#')+'" style="');b.push((s.IsAuthenticated?'display:none;':''));b.push('">Siz değil misiniz?</a><a href="'+(s.ChangeUserUrl||'#')+'" style="');b.push((!s.IsAuthenticated?'display:none;':''));b.push('">Kullanıcı değiştir</a>)</span><span style="');b.push(((s.NameDisplay==''||s.ChangeDisplay=='')?'':'display:none;'));b.push('"> | </span><a class="ppl" href="');b.push((s.AuthUrl||'#'));b.push('" style="');b.push((!s.AuthUrl||!s.IsAuthenticated?'display:none;':''));b.push('">Oturumu kapat<img src="'+Live.Themes.ThemeUrl+'controls/img/passport.gif"></a><a class="ppl" href="');b.push((s.AuthUrl||'#'));b.push('" style="');b.push((!s.AuthUrl||s.IsAuthenticated?'display:none;':''));b.push('">Oturum aç<img src="'+Live.Themes.ThemeUrl+'controls/img/passport.gif"></a></div>');}b.push('</div>');b.push('<div class="SearchSection">');if(s.SearchContents){b.push(s.SearchContents)}else{b.push('<form class="efpSf');if(s.SearchQuery){b.push(' active');}b.push('" name="searchform" id="searchform" action="');b.push(s.sa);b.push('"><label for="q">Aranacak sözcüğü yazın</label><label for="go">Ara</label><table class="efpSc" cellpadding="0" cellspacing="0"><tr><td><div class="efpHl"><span><input tabindex="1" class="q" id="q" name="q" value="');b.push(s.SearchQuery||'');b.push('">');b.push(s.cs?'<button id="goLocal" tabindex="1" class="efpSb" onmouseover="Live.Header.Utilities.sbin(this);" onmouseout="Live.Header.Utilities.sbout(this);" type="submit">Spaces ara</button>':'<input name="go" id="go" onmouseover="Live.Header.Utilities.sbin(this);" onmouseout="Live.Header.Utilities.sbout(this);" tabindex="1" class="go" type="image" align="middle" src="'+Live.Themes.ThemeUrl+'controls/img/SrchBtn.gif" value="Search">');b.push('</span></div><input type="hidden" name="mkt" value="tr-tr"></td><td id="efpInputs">');b.push(s.inp);b.push('</td>');b.push(s.cs?'<td><div class="efpHl"><span><button id="goWeb" tabindex="1" onmouseover="Live.Header.Utilities.sbin(this);" onmouseout="Live.Header.Utilities.sbout(this);" onclick="Live.Header.Utilities.dws();" class="efpSb" type="submit">Web</button></span></div></td>':'');b.push('</tr></table></form>');}b.push('</div>');b.push
(
'<div id="efp_spot" class="efp_spot"></div>'
+
'<div style="clear:both"></div>'
+
'</div>'
+
'</div>'
+
'<div id="pagebg"></div>'
);m_hsTemplate.fullYear=s.FullYear||new Date().getFullYear()+'';m_hsTemplate.cobrand=
correctCobrand
(
s.CobrandLayout||'',
s.CobrandImage||'',
s.CobrandImageAltText||'',
s.CobrandFromString||'',
s.CobrandFromStringTop||'0',
s.CobrandWindowsProductNameTop||'0',
s.LiveBrandPrefix
?'1'===s.LiveBrandPrefix
:false,
s.CustomRenderingMode||'0',
s.NoIEFilters||'0'
);sHtml=b.join('');sHtml=fillTemplate(sHtml);if(eHeader)
{eHeader.innerHTML=sHtml;}
else
{document.write(sHtml);}
u.init();}
if(eHeader)
{Live.Header.rh();}
function correctCobrand(siLayout,sImage,sImageAltText,sFromString,siFromStringTop,siWindowsProductNameTop,bLiveBrandPrefix,siCustomRenderingMode,siNoIEFilters)
{var iLayout=Number(siLayout),
bNoCobrand=''===siLayout||'0'===siLayout,
bFlatStyle=false,
sParentClass=
bNoCobrand
?'BrandSection'
:'BrandSection cobrandSection',
sProductPrefix=
bLiveBrandPrefix
?'Live '
:'Windows Live<span class="tm">&trade;</span> ',
sProduct='<span class="Product">{productPrefix}Spaces</span>',
sBeta='',
sMarketCobrand='',
sJewelAlt="Diğer hizmetler",
sPoweredBy="{0} Windows Live tarafından desteklenmektedir",
sJewelImage,
sJewelImage_ie6;if(isRightToLeftMarket())
sPoweredBy=sPoweredBy.replace('{0} Windows Live','Windows Live {0}');m_hsTemplate.productPrefix=sProductPrefix;m_hsTemplate.productName=
bNoCobrand
?sProduct
:sProduct.slice(0,-7)+' {beta}</span>';m_hsTemplate.fromStringTop=siFromStringTop;m_hsTemplate.fromStringTopUndo=String(-Number(siFromStringTop));m_hsTemplate.windowsProductNameTop=siWindowsProductNameTop;m_hsTemplate.beta=sBeta;m_hsTemplate.marketCobrand=sMarketCobrand;m_hsTemplate.jewelAlt=sJewelAlt;m_hsTemplate.luminance=getLuminance();m_hsTemplate.cobrandImage=
3===iLayout
?transparentImageHtmlStyle(sImage,sImageAltText,'position:relative; top:{fromStringTopUndo}px;')
:transparentImageHtml(sImage,sImageAltText);m_hsTemplate.cobrandFrom='<div class="cobrand_jewel_from" style="position:relative; top:{fromStringTop}px;">{cobrandFromString}</div>';m_hsTemplate.cobrandFromString=sFromString.replace('{0}','{cobrandImage}');m_hsTemplate.cobrandPoweredBy=sPoweredBy.replace('{0}','{cobrandPoweredByImage}');m_hsTemplate.cobrandPoweredByImage=transparentImageHtml(Live.Themes.ThemeUrl+'controls/img/cobrand_1_flag.png','');m_hsTemplate.cobrandSeparatorImage=transparentImageHtml(Live.Themes.ThemeUrl+'controls/img/cobrand_3_separator_{luminance}.png','');m_hsTemplate.cobrandFlagImage=transparentImageHtml(Live.Themes.ThemeUrl+'controls/img/cobrand_3_flag.png','');m_hsTemplate.jewelButton=
bFlatStyle
?
!iLayout||3===iLayout
?correctCobrand_flagImage()
:''
:
!iLayout||3===iLayout
?correctCobrand_jewelButton()
:correctCobrand_cobrandJewelButton();sJewelImage_ie6=
'<span class="jewel_css_filter jewel_css_filter_ie6"></span>'
+
'<span style="position:absolute;display:block;height:1px;width:1px;overflow:hidden;padding:1px;">{jewelAlt}</span>';sJewelImage=
'<span class="jewel_css_filter">'
+
'<img src="'+Live.Themes.ThemeUrl+'controls/img/jewel_collage.png" width="49" height="147" title="" alt="Diğer hizmetler">'
+
'</span>';if('1'===siNoIEFilters)
sJewelImage_ie6=sJewelImage;m_hsTemplate.jewelImage=
/*@if (@_jscript_version <= 5.6) // if (ie6-)
                sJewelImage_ie6;
            @else@*/
sJewelImage;/*@end@*/
m_hsTemplate.cobrandJewelImage=
/*@if (@_jscript_version <= 5.6) // if (ie6-)

                '<span class="jewel_css_filter jewel_css_filter_ie6"></span>'
                 +
                // span exists: accessibility
                '<span style="position:absolute;display:block;height:1px;width:1px;overflow:hidden;padding:1px;">{jewelAlt}</span>';

            @else@*/
'<span class="jewel_css_filter">'
+
'<img src="'+Live.Themes.ThemeUrl+'controls/img/cobrand_jewel_collage.png" width="24" height="54" title="" alt="Diğer hizmetler">'
+
'</span>';/*@end@*/
m_hsTemplate.cobrandTemplate=
'1'===siLayout?correctCobrand_getTemplate1()
:'2'===siLayout?correctCobrand_getTemplate2()
:'3'===siLayout?correctCobrand_getTemplate3()
:'4'===siLayout?correctCobrand_getTemplate4()
:correctCobrand_noTemplate();return '<div class="'+sParentClass+'">'
+
'{cobrandTemplate}'
+
'<div style="position:relative;z-index:100000;"><div id="mainmenu" class="Menu"></div><span style="font-size:0;line-height:0"> </span></div>'
+
'</div>';}
function getLuminance()
{var sLuminance,
sColor_lowerCase,
sCompare,
e=document.createElement('div');e.id='header';document.body.appendChild(e);sColor_lowerCase=computedStyleValue(e,'color').toLowerCase();document.body.removeChild(e);if('rgb('===sColor_lowerCase.substring(0,4))
{sLuminance=
parseInt(sColor_lowerCase.substring(4))<128
?'Dark'
:'Light';}
else
{sLuminance=
sColor_lowerCase<'#80'
?'Dark'
:'Light';}
return sLuminance;}
function scriptToDash(s){return s.replace(/([A-Z])/g,function(sMatch){return '-'+sMatch.toLowerCase();});}
/*@if (4 < @_jscript_version)
    function computedStyleValue(e, sAttribute) { return e.currentStyle[sAttribute]; }
        @else@*/
function computedStyleValue(e,sAttribute){return document.defaultView.getComputedStyle(e,'').getPropertyValue(sAttribute);}
/*@end@*/
/*@if (@_jscript_version <= 5.6) // if (ie6-)
    function transparentImageHtml     (sImage, sAltText)         { return '<span style="zoom:1; filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src=\'' + sImage + '\',sizingMethod=\'scale\')"><img style="visibility:hidden" src="' + sImage + '" alt="' + sAltText + '" title=""></span>'; }
    function transparentImageHtmlStyle(sImage, sAltText, sStyle) { return '<span style="zoom:1; filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src=\'' + sImage + '\',sizingMethod=\'scale\');' + sStyle + '"><img style="visibility:hidden" src="' + sImage + '" alt="' + sAltText + '" title=""></span>'; }
        @else@*/
function transparentImageHtml(sImage,sAltText){return '<img src="'+sImage+'" alt="'+sAltText+'" title="">';}
function transparentImageHtmlStyle(sImage,sAltText,sStyle){return '<img src="'+sImage+'" alt="'+sAltText+'" style="'+sStyle+'" title="">';}
/*@end@*/
function correctCobrand_noTemplate()
{return ''+
'<table cellspacing="0" cellpadding="0"><tr>'
+
'<td class="jewelPadding">{jewelButton}</td>'
+
'<td>{productName}{beta}{marketCobrand}</td>'
+
'</tr></table>';}
function correctCobrand_getTemplate1()
{m_hsTemplate.productPrefix='';return ''+
'<table cellspacing="0" class="cobrandTableParent"><tr><td>'
+
'{cobrandImage} <span class="cobrand_1_jewel_productName" style="top:{windowsProductNameTop}px">{productName}</span>'
+
'</td></tr><tr><td>'
+
'<table cellspacing="0" class="cobrand_1_bottomParent"><tr><td>'
+
'{jewelButton}'
+
'</td><td class="cobrand_1_jewel_poweredByParent">'
+
'<span class="cobrand_1_jewel_poweredByText">{cobrandPoweredBy}</span>'
+
'</td></tr></table>'
+
'</td></tr></table>'
;}
function correctCobrand_getTemplate2()
{m_hsTemplate.productPrefix='';return ''+
'<table cellspacing="0" class="cobrandTableParent"><tr><td>'
+
'{cobrandImage} <span class="cobrand_1_jewel_productName" style="top:{windowsProductNameTop}px">{productName}</span>'
+
'<table cellspacing="0" class="cobrand_1_bottomParent"><tr><td>'
+
'{jewelButton}'
+
'</td></tr></table>'
+
'</td></tr></table>'
;}
function correctCobrand_getTemplate3()
{return ''+
'<table class="cobrandTableParent" cellspacing="0"><tr>'
+
'<td class="jewelPadding">{jewelButton}</td>'
+
'<td>{productName}{cobrandFrom}</td>'
+
'</tr></table>';}
function isRightToLeftMarket(){return 'rtl'===computedStyleValue(document.body,'direction');};function correctCobrand_getTemplate4()
{return ''+
'<table cellspacing="0" class="cobrandTableParent"><tr><td>'
+
'<div class="cobrand_3_jewel">'
+
(
isRightToLeftMarket()
?
'<span class="cobrand_3_jewel_productName" style="top:{windowsProductNameTop}px">{productName}</span>'
+
'{cobrandFlagImage}'
+
'&nbsp;{cobrandSeparatorImage}&nbsp;{cobrandImage}'
:
'{cobrandImage}&nbsp;{cobrandSeparatorImage}&nbsp;{cobrandFlagImage}'
+
'<span class="cobrand_3_jewel_productName" style="top:{windowsProductNameTop}px">{productName}</span>'
)
+
'</div>'
+
'</td></tr><tr><td>'
+
'<table cellspacing="0"><tr><td>'
+
'{jewelButton}'
+
'</td></tr></table>'
+
'</td></tr></table>'
;}
function correctCobrand_flagImage()
{return '<span class="flag">'+transparentImageHtml(Live.Themes.ThemeUrl+'controls/img/flag.png','')+'</span>';}
function correctCobrand_jewelButton()
{return '<a class="jewel_css" href="#" onclick="return false" onmouseenter="this.className += \' jewel_css_hover_ie\'" onmouseleave="this.className = this.className.replace(\' jewel_css_hover_ie\', \'\')">'
+
'{jewelImage}'
+
'</a>';}
function correctCobrand_cobrandJewelButton()
{return '<a class="jewel_css cobrand_jewel_css" href="#" onclick="return false" onmouseenter="this.className += \' cobrand_jewel_css_hover_ie\'" onmouseleave="this.className = this.className.replace(\' cobrand_jewel_css_hover_ie\', \'\')">'
+
'{cobrandJewelImage}'
+
'</a>';}
function fillTemplate(s){return s.replace(/\{([^{}]+)\}|\{\{|\}\}/g,template_replace_callback);}
function template_replace_callback(sMatch,name)
{if(!name)
return sMatch;var value=m_hsTemplate[name];return fillTemplate(value);}
Live.Header.MenuContents='<ul class="Main"><li><strong><a class="icon" href="http://www.live.com/?mkt=tr-tr "><img border="0" src="{0}controls/img/Home.gif">Live.com</a></strong></li><li class="sep"></li><li><a class="icon" href="http://safety.live.com/?mkt=tr-tr"><img border="0" src="{0}controls/img/OneCare.gif">OneCare</a></li><li><a class="nonIcon" href="http://g.live.com/1mbamtr-tr/services"><span>Tüm Hizmetler</span></a></li><li class="sep"></li><li><a class="icon" href="http://www.msn.com.tr/Default.asp"><img border="0" src="{0}controls/img/MSN.gif"><strong>MSN</strong></a></li></ul><ul class="Tools"><li><nobr><a href="https://account.live.com/?mkt=tr-tr">Hesap</a></nobr></li><li><nobr><a href="http://feedback.live.com/default.aspx?mkt=tr-tr&amp;productkey=wlSpaces">Görüşleriniz</a></nobr></li></ul>';Live.Header.rf=function()
{var b=[];b.push('<div id="footer" class="Footer">');b.push('<div class="FooterLeft"><ul> <li class="copyright"><bdo dir="ltr">© {fullYear} Microsoft</bdo></li> <li class="itm"><a target="_blank" href="http://www.microsoft.com/library/toolbar/3.0/trademarks/tr-tr.mspx" id="Trademarks">Ticari Markalar</a></li> <li class="sep">|</li> <li class="itm"><a target="_blank" href="http://g.msn.com/0PR_/trtr" id="Privacy">Gizlilik Bildirimi</a></li> <li class="sep">|</li> <li class="itm"><a target="_blank" href="http://g.msn.com/0TO_/trtr" id="Legal">Yasal Bildirim</a></li>'+Live.Footer.Custom+'</ul></div>');b.push('<div class="FooterRight"><ul><li class="itm"><a target="_blank" href="https://account.live.com/HelpCentral.aspx?mkt=tr-tr" id="Help">Yardım Merkezi</a></li> <li class="sep">|</li> <li class="itm"><a target="_blank" href="https://account.live.com/?mkt=tr-tr" id="Account">Hesap</a></li> <li class="sep">|</li> <li class="itm"><a target="_blank" href="http://feedback.live.com/default.aspx?mkt=tr-tr&amp;productkey=wlSpaces" id="Feedback">Görüşleriniz</a></li></ul></div>');b.push('</div><div style="clear:both"></div>');document.write
(
fillTemplate(b.join(''))
);}
