$(function(){
	//For IE
	if ($.browser.msie) {
		if ($.browser.version <= 6) {
			$('input[@type=text], input[@type=password]').addClass('input_text');
			$('input[@type=submit], input[@type=button]').addClass('input_submit');
		}
	}
	
	//Breadcrumbs
	$('#breadcrumbs li:has(a)').append(' > ');
	
	$('.windowTitle').mouseover(function(){ $(this).addClass('windowTitleOver') })
		.mouseout(function(){ $(this).removeClass('windowTitleOver') });
	
	//font-size
	var f_size = '68.75%';
	var size = new Array();
	var size = [f_size,'65%','68.75%','72%'];
	
	if (!$.cookie('font_size')) $.cookie('font_size',size[2]);
	var f_size = $.cookie('font_size');
		
	$('body').css("font-size", size[0]);	
		
	//Add a click event to the resize links and set the cookie	
	$('#optionNav .resize a').each(function(i){
		$(this).click(function(){
			$.cookie('font_size',size[i+1]);
			$('body').css("font-size", size[i+1]);
		});
	});
	
	
		
	$('.csc-sitemap ul ul li').addClass('csc-sitemapli');
	
	//EUROPE MAP
	if (document.getElementById('europeMap')) {
			$('#europeMap a').each(function(i) {
				$(this).mouseover(function(){
						var text = $(this).text();
						$('.left a').each(function(k){
							if (text == $(this).text()) $(this).addClass('hover');
						});
				})
					   .mouseout(function(){
						var text = $(this).text();
						$('.left a').each(function(k){
							if (text == $(this).text()) $(this).removeClass('hover');
						});
				});
			
			$('.left a').each(function(i) {
				$(this).mouseover(function(){
						var text = $(this).text();
						$('#europeMap a').each(function(j){
							if (text == $(this).text()) $(this).addClass('hover');
						});
				})
					   .mouseout(function(){
						var text = $(this).text();
						$('#europeMap a').each(function(j){
							if (text == $(this).text()) $(this).removeClass('hover');
						});
				});
			});
		});
	};
}); 
function PrintLink() {
	var url = document.location.href;  
	var newurl = url;
	if ( url.indexOf("?") > -1 ) newurl = newurl+'&typeP=1';
	else  newurl = newurl+'?typeP=1';
	window.open(newurl,'PrintPage','menubar=1,scrollbars=1,width=700,height=680');
}
