﻿function w3(){
ytcss='<link rel="stylesheet" type="text/css" href="/js/fancybox/jquery.fancybox-1.3.4.css" media="screen" />'
document.write(ytcss);
}

function terifal(){
yol="http://maps.google.com/maps?f=d&source=s_d&daddr="
yol=yol+document.getElementById("konum").value
yol=yol+"&saddr="
yol=yol+document.getElementById("nereden").value
window.open(yol, "_blank");
}

function flash(dosya,en,boy){
document.writeln('<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" WIDTH="'+en+'" HEIGHT="'+boy+'" id="contents" ALIGN="">');
document.writeln('<PARAM NAME=movie value="'+dosya+'" />');
document.writeln('<PARAM NAME=quality VALUE="high">');
document.writeln('<PARAM NAME=wmode VALUE="transparent">');
document.writeln('<embed src="'+dosya+'" quality="high" wmode="transparent" width="'+en+'" height="'+boy+'" name="contents" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />');
document.writeln('</OBJECT>');
}

function flash2(dosya,en,boy,renk){
document.writeln('<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" WIDTH="'+en+'" HEIGHT="'+boy+'" id="contents" ALIGN="">');
document.writeln('<PARAM NAME=movie value="'+dosya+'" />');
document.writeln('<PARAM NAME=quality VALUE="high">');
document.writeln('<PARAM NAME=bgcolor  VALUE="'+renk+'">');
document.writeln('<embed src="'+dosya+'" bgcolor="'+renk+'" quality="high" width="'+en+'" height="'+boy+'" name="contents" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />');
document.writeln('</OBJECT>');
}

function sifirla(bu,ne){
var bune = bu.value;
if(bune==ne) {bu.value = "";}
}
function sifirla2(bu,ne){
var bune = bu.value;
if(bune==""){bu.value = ne;}
}
function postakontrol(kim){
	posta=document.getElementById(kim).value
	if (posta.indexOf(".") > 1 && posta.indexOf("@") > 1){
	return true
	}
	document.getElementById(kim).focus()
	return false
}
function ac(kim){
	bu=document.getElementById(kim)
	if (bu.style.width=="750px"){
 	$("#"+kim).animate({width:0}, 300 );
	}
	else {
 	$("#"+kim).animate({width:750}, 300 );
	}
}

$(document).ready(function() {
	$("a#example").fancybox({
		'titleShow'		: false,
		'transitionIn'	: 'elastic',
		'transitionOut'	: 'elastic'
	});
	$("a[rel=example_group]").fancybox({
		'transitionIn'		: 'elastic',
		'transitionOut'		: 'elastic',
		'titlePosition' 	: 'over',
		'titleFormat'		: function(title, currentArray, currentIndex, currentOpts) {
			return '<span id="fancybox-title-over">Image ' + (currentIndex + 1) + ' / ' + currentArray.length + (title.length ? ' &nbsp; ' + title : '') + '</span>';
		}
	});
	$("#various").fancybox({
		'titlePosition'		: 'inside',
		'transitionIn'		: 'none',
		'transitionOut'		: 'none'
	});
	
  $(".urun").mouseover(function() {
    $(this).find('.sev').stop().animate({'padding-left': 25},100);
//    $(this).find('u').stop().animate({'margin-top': 30},100);
  }).mouseout(function(){
    $(this).find('.sev').stop().animate({'padding-left': 15},100);
//    $(this).find('u').stop().animate({'margin-top': 0},50);
  })
  $(".islev7").mouseover(function() {
    $(this).find('.ustyol').stop().animate({'padding-left': 55},100);
//    $(this).find('u').stop().animate({'margin-top': 30},100);
  }).mouseout(function(){
    $(this).find('.ustyol').stop().animate({'padding-left': 25},100);
//    $(this).find('u').stop().animate({'margin-top': 0},50);
  })
  
  $(".haber").mouseover(function() {
	$(this).find('.ust').css({'color' : '#0f4962'}); 
	$(this).find('.ust').stop().animate({'width': 70},100, function(){
		$(this).css({'width' : 'auto'}); 
	});
  }).mouseout(function(){
    $(this).find('.ust').stop().animate({'width': 0},100, function(){
		$(this).css({'color' : '#fff'});
	});
  })
  

    $("#sidebarmenu ul li").hover(function(){
        $(this).addClass("hover");
        $('ul:first',this).css('display', 'block');
    }, function(){
        $(this).removeClass("hover");
        $('ul:first',this).css('display', 'none');
    });
	
  $("#sidebarmenu a").mouseover(function() {
	$(this).stop().animate({'padding-left': 15},200);
  }).mouseout(function(){
	$(this).stop().animate({'padding-left': 5},200);
  })
    
 $("#sidebarmenu1 li ul li:has(ul)").find("a:first").append("&nbsp; &raquo; ");


});



//Nested Side Bar Menu (Mar 20th, 09)
//By Dynamic Drive: http://www.dynamicdrive.com/style/



