/* 
   Simple JQuery Accordion menu.
   HTML structure to use:

   <ul id="menu">
     <li><a href="#">Sub menu heading</a>
     <ul>
       <li><a href="http://site.com/">Link</a></li>
       <li><a href="http://site.com/">Link</a></li>
       <li><a href="http://site.com/">Link</a></li>
       ...
       ...
     </ul>
     <li><a href="#">Sub menu heading</a>
     <ul>
       <li><a href="http://site.com/">Link</a></li>
       <li><a href="http://site.com/">Link</a></li>
       <li><a href="http://site.com/">Link</a></li>
       ...
       ...
     </ul>
     ...
     ...
   </ul>

Copyright 2007 by Marco van Hylckama Vlieg

web: http://www.i-marco.nl/weblog/
email: marco@i-marco.nl

Free for non-commercial use
*/

function initMenu() {


 
$('#menu ul').hide();
 $('#menu ul:first').hide();





 $('#menu li a').click(
    function() {
      var checkElement = $(this).next();
      if((checkElement.is('ul')) && (checkElement.is(':visible'))) {
        return false;
        }
      if((checkElement.is('ul')) && (!checkElement.is(':visible'))) {
        $('#menu ul:visible').slideUp('normal');
        checkElement.slideDown('normal');
        return false;
        }
      }
    );
  }
$(document).ready(function() {initMenu();});






function initMenutwo() {


 
$('#menutwo ul').hide();
 $('#menutwo ul:first').hide();





 $('#menutwo li a').click(
    function() {
      var checkElement = $(this).next();
      if((checkElement.is('ul')) && (checkElement.is(':visible'))) {
        return false;
        }
      if((checkElement.is('ul')) && (!checkElement.is(':visible'))) {
        $('#menutwo ul:visible').slideUp('normal');
        checkElement.slideDown('normal');
        return false;
        }
      }
    );
  }
$(document).ready(function() {initMenutwo();});










function initMenu_ic() {


 
$('#menu_ic ul').hide();
 $('#opentab').show();





 $('#menu_ic li a').click(
    function() {
      var checkElement = $(this).next();
      if((checkElement.is('ul')) && (checkElement.is(':visible'))) {
        return false;
        }
      if((checkElement.is('ul')) && (!checkElement.is(':visible'))) {
        $('#menu_ic ul:visible').slideUp('normal');
        checkElement.slideDown('normal');
        return false;
        }
      }
    );
  }
$(document).ready(function() {initMenu_ic();});




Shadowbox.init({
    // let's skip the automatic setup because we don't have any
    // properly configured link elements on the page
    skipSetup: true,
    // include the html player because we want to display some html content
    players: ["iframe","wmp"]
});


function  openkariyer(){

  var url = '/form/cv/cv_formu_tr.asp';
				
       Shadowbox.open({
        content:   url,
         height:     600,
        width:      800,
        player:     "iframe",
        title:      "Basvuru Formu"
    });
return false;
};


function  openkariyereng(){

  var url = '/form/cv/cv_form_eng.asp';
				
       Shadowbox.open({
        content:   url,
         height:     600,
        width:      800,
        player:     "iframe",
        title:      "human resources"
    });
return false;
};


function  iletisim(){

  var url = '/form/iletisim/request_form_tr.asp';
				
       Shadowbox.open({
        content:   url,
         height:     400,
        width:      640,
        player:     "iframe",
        title:      ""
    });
return false;
};


function  contact(){

  var url = '/form/iletisim/request_form_eng.asp';
				
       Shadowbox.open({
        content:   url,
        height:     400,
        width:      640,
        player:     "iframe",
        title:      ""
    });
return false;
};


function  openmap(){

  var url = 'http://maps.google.com/maps?';
				url = url + 'saddr='+document.getElementById('saddr').value;
				url = url + '&daddr=40.96806,29.100701';



       Shadowbox.open({
        content:   url,
        player:     "iframe",
        title:      "Harita"
    });
return false;
};

function  openvideo1(){
    Shadowbox.open({
        content:    '<object width="500" height="400"><param name="allowfullscreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="movie" value="http://vimeo.com/moogaloop.swf?clip_id=9781168&server=vimeo.com&show_title=1&show_byline=1&show_portrait=0&color=&fullscreen=1" /><embed src="http://vimeo.com/moogaloop.swf?clip_id=9781168&server=vimeo.com&show_title=1&show_byline=1&show_portrait=0&color=&fullscreen=1" type="application/x-shockwave-flash" allowfullscreen="true" allowscriptaccess="always" width="500" height="400"></embed></object>',
        player:     "html",
        height:     400,
        width:      500
    });
return false;
};

function  openvideo2(){
    Shadowbox.open({
        content:    '<object width="500" height="400"><param name="allowfullscreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="movie" value="http://vimeo.com/moogaloop.swf?clip_id=9781280&amp;server=vimeo.com&amp;show_title=1&amp;show_byline=1&amp;show_portrait=0&amp;color=&amp;fullscreen=1" /><embed src="http://vimeo.com/moogaloop.swf?clip_id=9781280&amp;server=vimeo.com&amp;show_title=1&amp;show_byline=1&amp;show_portrait=0&amp;color=&amp;fullscreen=1" type="application/x-shockwave-flash" allowfullscreen="true" allowscriptaccess="always" width="500" height="400"></embed></object>',
        player:     "html",
        height:     400,
        width:      500
    });
return false;
};


function  openvideo3(){
    Shadowbox.open({
        content:    '<object width="630" height="350"><param name="allowfullscreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="movie" value="http://vimeo.com/moogaloop.swf?clip_id=9781514&amp;server=vimeo.com&amp;show_title=1&amp;show_byline=1&amp;show_portrait=0&amp;color=&amp;fullscreen=1" /><embed src="http://vimeo.com/moogaloop.swf?clip_id=9781514&amp;server=vimeo.com&amp;show_title=1&amp;show_byline=1&amp;show_portrait=0&amp;color=&amp;fullscreen=1" type="application/x-shockwave-flash" allowfullscreen="true" allowscriptaccess="always" width="630" height="350"></embed></object>',
        player:     "html",
        height:     350,
        width:      630
    });
return false;
};

function  openvideo4(){
    Shadowbox.open({
        content:    '<object width="645" height="480"><param name="allowfullscreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="movie" value="http://vimeo.com/moogaloop.swf?clip_id=9841540&amp;server=vimeo.com&amp;show_title=1&amp;show_byline=1&amp;show_portrait=0&amp;color=&amp;fullscreen=1" /><embed src="http://vimeo.com/moogaloop.swf?clip_id=9841540&amp;server=vimeo.com&amp;show_title=1&amp;show_byline=1&amp;show_portrait=0&amp;color=&amp;fullscreen=1" type="application/x-shockwave-flash" allowfullscreen="true" allowscriptaccess="always" width="645" height="480"></embed></object>',
        player:     "html",
        height:     480,
        width:      645
    });
return false;
};
