/* This JavaScript is modified for blue pages in English on the UNICEF TURKEY website */

/* PRELOAD IMAGES */

if (document.images) 
{img1 = new Image(); img2 = new Image(); img3 = new Image(); img4 = new Image(); img5 = new Image(); img1.src = "../css/img/sd4.gif"; img2.src = "../fm/img/go4.gif"; img3.src = "../img/nx4.gif"; img4.src = "../img/pr4.gif"; img4.src = "../img/up4.gif"}

/* IMAGE ROLLOVER */
function MM_preloadImages() {var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array(); var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++) if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}}
function MM_swapImgRestore() {var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;}
function MM_findObj(n, d) {var p,i,x; if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);} 
if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n]; for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document); if(!x && d.getElementById) x=d.getElementById(n); return x;}
function MM_swapImage() {var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3) if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}}
function MM_showHideLayers() {var i,p,v,obj,args=MM_showHideLayers.arguments; for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) { v=args[i+2]; if (obj.style) {obj=obj.style; v=(v=='show')?'visible':(v=='hide')?'hidden':v;} obj.visibility=v;}}

/* GET DATE */

var now = new Date(); var days = new Array('Sunday','Monday','Tuesday','Wednesday','Thursday','Friday','Saturday'); var months = new Array('January','February','March','April','May','June','July','August','September','October','November','December'); var date = ((now.getDate()<10) ? "0" : "")+ now.getDate(); function fourdigits(number) {return (number < 1000) ? number + 1900 : number;}
today = days[now.getDay()] + ", " + months[now.getMonth()] + " " + date + ", " + (fourdigits(now.getYear()));

/* RUNNING HEADLINES */

var tkr_array = new Array('Turkish Parliament launches State of the World’s Children report and Child Rights Monitoring website','../pc/cr39.html','Turkish universities champion child rights','../pc/cr38.html','UNICEF: Without a protective environment, it’s a harsh life for children','../pc/gi51.html','Economic Crisis Affecting The Welfare of Families in Turkey','../pc/gi50.html','The Economic Crisis And The Welfare of Families: Results From Five Urban Centers in Tukey','../pc/gi49.html')

function set_tkr_array(new_tkr_array) {tkr_array =
new_tkr_array.concat();
window.setTimeout("tkr_refresh();",900000);}

function get_tkr_array() {return tkr_array;}

function canTick() {if (!document.getElementById) return false; if (navigator.userAgent.match && navigator.userAgent.match(/Opera[ \/][56]\./i)) return false; if (navigator.userAgent.indexOf('Windows') == -1 && navigator.userAgent.indexOf('Macintosh') == -1) {if (navigator.userAgent.indexOf('Gecko/') > -1 && navigator.userAgent.indexOf('rv:1.5)') > -1) return false;} return true;}

/* CREATE IFRAME FOR RUNNING HEADLINES */

function writeFrame()

{document.write("<iframe title=\u0027Recent headline links\u0027 id=\u0027unicef_tkr_container\u0027 src=\u0027../if/if1b.html\u0027 frameborder=\u00270\u0027 marginwidth=\u00270em\u0027 marginheight=\u00270em\u0027 scrolling=\u0027no\u0027><p><a href=\u0027../if/if1f.html\u0027>Read the latest headlines</a>.</p></iframe>");}

/* NOTICE FOR SIDEBAR */

function writeFlyer() 

{function randRange(lowVal,highVal) {return Math.floor(Math.random()*(highVal-lowVal+1))+lowVal;} 
var randHdr = randRange(1,7); 



if (randHdr == 1) {document.write('<p><strong>PUTTING CHILDREN FIRST\u0021</strong></p><img style="position: relative; float: left; clear: both; width: 200px; height: 200px; border: 0px" src="../js/img/oc_mavi.gif" alt="Children First logo." /><p style="clear: left">For more information and resources related to the project, see the <a href="../hm/hm5_oc.html"><acronym title="Towards Good Governance, Justice and Protection for Children in Turkey"><em>Children First</em></acronym> Information Resources</a> page.</p><div class="rl10"></div><p><strong>SUPPORT UNICEF TURKEY</strong></p><img src="../dn_2006/img/ec30b.jpg" style="position: relative; float: left; clear: both; width: 205px; height: 310px; margin: -1em 2em 1em 2em" alt="Early Childhood Development" /><p style="clear: left"><strong class="sb"><em>Real love needs care</em></strong><br /><a href="../dn_2006/ec30.html">Read more about our work with and for children and find out how you can support us</a>!</p>')} else if (randHdr == 2) {document.write('<p><strong>PUTTING CHILDREN FIRST\u0021</strong></p><img style="position: relative; float: left; clear: both; width: 200px; height: 200px; border: 0px" src="../js/img/oc_mavi.gif" alt="Children First logo." /><p style="clear: left">For more information and resources related to the project, see the <a href="../hm/hm5_oc.html"><acronym title="Towards Good Governance, Justice and Protection for Children in Turkey"><em>Children First</em></acronym> Information Resources</a> page.</p><div class="rl10"></div><p><strong>SUPPORT UNICEF TURKEY</strong></p><img src="../dn_2006/img/mc33b.jpg" style="position: relative; float: left; clear: both; width: 205px; height: 310px; margin: -1em 2em 1em 2em" alt="Routine Immunisation" /><p style="clear: left"><strong class="sb"><em>Immunisation saves lives</em></strong><br /><a href="../dn_2006/mc33.html">Read more about our work with and for children and find out how you can support us</a>!</p>')} else if (randHdr == 3) {document.write('<p><strong>PUTTING CHILDREN FIRST\u0021</strong></p><img style="position: relative; float: left; clear: both; width: 200px; height: 200px; border: 0px" src="../js/img/oc_mavi.gif" alt="Children First logo." /><p style="clear: left">For more information and resources related to the project, see the <a href="../hm/hm5_oc.html"><acronym title="Towards Good Governance, Justice and Protection for Children in Turkey"><em>Children First</em></acronym> Information Resources</a> page.</p><div class="rl10"></div><p><strong>SUPPORT UNICEF TURKEY</strong></p><img src="../dn_2006/img/cp42b.jpg" style="position: relative; float: left; clear: both; width: 205px; height: 310px; margin: -1em 2em 1em 2em" alt="Reuniting Children with Their Families" /><p style="clear: left"><strong class="sb"><em>Bringing children home<br />from institutions</em></strong><br /><a href="../dn_2006/cp42.html">Read more about our work with and for children and find out how you can support us</a>!</p>')} else if (randHdr == 4) {document.write('<p><strong>PUTTING CHILDREN FIRST\u0021</strong></p><img style="position: relative; float: left; clear: both; width: 200px; height: 200px; border: 0px" src="../js/img/oc_mavi.gif" alt="Children First logo." /><p style="clear: left">For more information and resources related to the project, see the <a href="../hm/hm5_oc.html"><acronym title="Towards Good Governance, Justice and Protection for Children in Turkey"><em>Children First</em></acronym> Information Resources</a> page.</p><div class="rl10"></div><p><strong>SUPPORT UNICEF TURKEY</strong></p><img src="../dn_2006/img/cp41b.jpg" style="position: relative; float: left; clear: both; width: 205px; height: 310px; margin: -1em 2em 1em 2em" alt="Eliminating Child Labour" /><p style="clear: left"><strong class="sb"><em>Children should be working<br />\u2014 in school!</em></strong><br /><a href="../dn_2006/cp41.html">Read more about our work with and for children and find out how you can support us</a>!</p>')} else if (randHdr == 5) {document.write('<p><strong>PUTTING CHILDREN FIRST\u0021</strong></p><img style="position: relative; float: left; clear: both; width: 200px; height: 200px; border: 0px" src="../js/img/oc_mavi.gif" alt="Children First logo." /><p style="clear: left">For more information and resources related to the project, see the <a href="../hm/hm5_oc.html"><acronym title="Towards Good Governance, Justice and Protection for Children in Turkey"><em>Children First</em></acronym> Information Resources</a> page.</p><div class="rl10"></div><p><strong>SUPPORT UNICEF TURKEY</strong></p><img src="../dn_2006/img/cr33b.jpg" style="position: relative; float: left; clear: both; width: 205px; height: 310px; margin: -1em 2em 1em 2em" alt="Child Friendly Cities" /><p style="clear: left"><strong class="sb"><em>A local system of good governance committed to fulfiling children\u2019s rights</em></strong><br /><a href="../dn_2006/cr33.html">Read more about our work with and for children and find out how you can support us</a>!</p>')} else if (randHdr == 6) {document.write('<p><strong>PUTTING CHILDREN FIRST\u0021</strong></p><img style="position: relative; float: left; clear: both; width: 200px; height: 200px; border: 0px" src="../js/img/oc_mavi.gif" alt="Children First logo." /><p style="clear: left">For more information and resources related to the project, see the <a href="../hm/hm5_oc.html"><acronym title="Towards Good Governance, Justice and Protection for Children in Turkey"><em>Children First</em></acronym> Information Resources</a> page.</p><div class="rl10"></div><p><strong>SUPPORT UNICEF TURKEY</strong></p><img src="../dn_2006/img/cp43b.jpg" style="position: relative; float: left; clear: both; width: 205px; height: 310px; margin: -1em 2em 1em 2em" alt="Children Living and Working on the Streets" /><p style="clear: left"><strong class="sb"><em>Breaking the cycle of urban poverty and exclusion</em></strong><br /><a href="../dn_2006/cp43.html">Read more about our work with and for children and find out how you can support us</a>!</p>')} else if (randHdr == 7) {document.write('<p><strong>PUTTING CHILDREN FIRST\u0021</strong></p><img style="position: relative; float: left; clear: both; width: 200px; height: 200px; border: 0px" src="../js/img/oc_mavi.gif" alt="Children First logo." /><p style="clear: left">For more information and resources related to the project, see the <a href="../hm/hm5_oc.html"><acronym title="Towards Good Governance, Justice and Protection for Children in Turkey"><em>Children First</em></acronym> Information Resources</a> page.</p><div class="rl10"></div><p><strong>SUPPORT UNICEF TURKEY</strong></p><img src="../dn_2006/img/ge75b.jpg" style="position: relative; float: left; clear: both; width: 205px; height: 310px; margin: -1em 2em 1em 2em" alt="Girls\u2019 Education" /><p style="clear: left"><strong class="sb"><em xml:lang=\u0022tr\u0022>Haydi K\u0131zlar Okula\u0021<br />or Let\u2019s Go to School, Girls!</em></strong><br /><a href="../dn_2006/ge75.html">Read more about our work with and for children and find out how you can support us</a>!</p>')}}