﻿jQuery(document).ready( function() {
								 
	jQuery("img[usemap='zoom']").each(function() {
		
		jQuery(this).wrap("<a href=\"javascript:PopupPic('" + jQuery(this).attr("src") + "')\" />")
		
	})
	
	if ( jQuery('#list1b').length > 0 )
	{
		jQuery('#list1b').accordion({
			header: '.listbaslik',
			active: '.selected',
			autoheight: false,
			alwaysOpen: false
		});
	}		
			
	jQuery(".slideMenuDiv2").css('height','');	
	
	var withi = jQuery("#lesdm a:contains('i')");
	var withall = jQuery("#lesdm a");
	
	foo = [];
	
	withi.each(function(i, selected){
						
	  foo[i] = jQuery(selected);
	  
	});
	
	for ( i=0; foo.length > i; i++ )
	{
		foo[i].text(foo[i].text().replace(/i/ig,'İ'));
	}
	
	withall.css('text-transform','uppercase');
	
	
	withi = jQuery(".sectiontitle:contains('i')");
	withall = jQuery(".sectiontitle");
	
	foo = [];
	
	withi.each(function(i, selected){
						
	  foo[i] = jQuery(selected);
	  
	});

	for ( i=0; foo.length > i; i++ )
	{
		foo[i].text(foo[i].text().replace(/i/g,'İ'));
	}
	
	
	withall.css('text-transform','uppercase');
	
	
	withi = jQuery(".eventtitle:contains('i')");
	withall = jQuery(".eventtitle");
	
	foo = [];
	
	withi.each(function(i, selected){
						
	  foo[i] = jQuery(selected);
	  
	});
	
	for ( i=0; foo.length > i; i++ )
	{
		foo[i].text(foo[i].text().replace(/i/ig,'İ'));
	}
	
	withall.css('text-transform','uppercase');
	
	Cufon.replace('.sectiontitle' , { fontFamily: 'Myriad Pro', hover: true, color: '-linear-gradient(#3b8eb6, 0.95=#2a7ba2)', textShadow: '2px 2px #d8d6d6' } );
	Cufon.replace('.tabletitle' , { fontFamily: 'PF Handbook Pro', hover: true, textShadow: '2px 2px #215f7c' } );
	Cufon.replace('h3' , { fontFamily: 'Myriad Pro', hover: true } );
	Cufon.replace('h4' , { fontFamily: 'MyriadPro', hover: true } );
	Cufon.replace('h5' , { fontFamily: 'MyriadPro', hover: true } );
	//Cufon.replace('.header_menu' , { fontFamily: 'PF Handbook Pro', hover: true, textShadow: '2px 2px #215f7c' } );
	Cufon.replace('.eventtitle, .sectionListTitle a, .date_gun, .date_ay, #lesdm ul li a, .sectionListTitle a' , { fontFamily: 'PF Handbook Pro', hover: true } );
	Cufon.replace('.tvtitle' , { fontFamily: 'PF Handbook Pro', hover: true } );
	Cufon.replace('.tvlogo' , { fontFamily: 'Myriad Pro', hover: true, color: '-linear-gradient(#3b8eb6, 0.95=#2a7ba2)', textShadow: '2px 2px #d8d6d6' } );
	Cufon.replace('.tabtitle' , { fontFamily: 'PF Handbook Pro', hover: true } );
			
	jQuery(".header_menu_title:last").addClass("lastMenuItem");
                
});

