(function() {
var BrowserDetect = {
init: function () {
this.browser = this.searchString(this.dataBrowser) || "An unknown browser";
this.version = this.searchVersion(navigator.userAgent)
|| this.searchVersion(navigator.appVersion)
|| "an unknown version";
this.OS = this.searchString(this.dataOS) || "an unknown OS";
},
searchString: function (data) {
for (var i=0;i<data.length;i++) {
var dataString = data[i].string;
var dataProp = data[i].prop;
this.versionSearchString = data[i].versionSearch || data[i].identity;
if (dataString) {
if (dataString.indexOf(data[i].subString) != -1)
return data[i].identity;
}
else if (dataProp)
return data[i].identity;
}
},
searchVersion: function (dataString) {
var index = dataString.indexOf(this.versionSearchString);
if (index == -1) return;
return parseFloat(dataString.substring(index+this.versionSearchString.length+1));
},
dataBrowser: [
{
string: navigator.userAgent,
subString: "Chrome",
identity: "Chrome"
},
{ string: navigator.userAgent,
subString: "OmniWeb",
versionSearch: "OmniWeb/",
identity: "OmniWeb"
},
{
string: navigator.vendor,
subString: "Apple",
identity: "Safari",
versionSearch: "Version"
},
{
prop: window.opera,
identity: "Opera"
},
{
string: navigator.vendor,
subString: "iCab",
identity: "iCab"
},
{
string: navigator.vendor,
subString: "KDE",
identity: "Konqueror"
},
{
string: navigator.userAgent,
subString: "Firefox",
identity: "Firefox"
},
{
string: navigator.vendor,
subString: "Camino",
identity: "Camino"
},
{ // for newer Netscapes (6+)
string: navigator.userAgent,
subString: "Netscape",
identity: "Netscape"
},
{
string: navigator.userAgent,
subString: "MSIE",
identity: "Explorer",
versionSearch: "MSIE"
},
{
string: navigator.userAgent,
subString: "Gecko",
identity: "Mozilla",
versionSearch: "rv"
},
{ // for older Netscapes (4-)
string: navigator.userAgent,
subString: "Mozilla",
identity: "Netscape",
versionSearch: "Mozilla"
}
],
dataOS : [
{
string: navigator.platform,
subString: "Win",
identity: "Windows"
},
{
string: navigator.platform,
subString: "Mac",
identity: "Mac"
},
{
string: navigator.userAgent,
subString: "iPhone",
identity: "iPhone/iPod"
},
{
string: navigator.platform,
subString: "Linux",
identity: "Linux"
}
]
};
BrowserDetect.init();
window.jQuery.client = { os : BrowserDetect.OS, browser : BrowserDetect.browser, browserversion : BrowserDetect.version };
})();




var $=jQuery;

$(function() {

	if ($.browser.mozilla) {
	$('body').addClass('ff');
	if ($.browser.version > "1.9.1" && $.browser.version < "1.9.2") {
	$('body').addClass('ff35');
	}
	}
	else if ($.browser.opera) {
	$('body').addClass('oo');
	//alert ($.browser.version);
	}
	else if ($.browser.safari) {
	$('body').addClass('sf');
	}
	else if ($.browser.msie) {
	if ($.browser.version == "6.0") {
	$('body').addClass('ie6');
	}
	else if($.browser.version == "7.0") {
	$('body').addClass('ie7');
	}
	else if($.browser.version == "8.0") {
	$('body').addClass('ie8');
	}
	else if($.browser.version == "9.0") {
	$('body').addClass('ie9');
	}
	}
	if ($.client.os == 'Linux') {
	$('body').addClass('lin');
	}
	else if ($.client.os == 'Mac') {
	$('body').addClass('mac');
	}
	else if ($.client.os == 'Windows') {
	$('body').addClass('win');
	} 





	//MENU SLIDE/EXPAND
	$('.region-left .menu-block-wrapper > ul > li  ul ').slideUp();
	$('.region-left .menu-block-wrapper a.active').parents('ul').slideDown();
	$('.region-left li a.active-trail').addClass('open');
	
	
	$('.region-left .menu-block-wrapper > ul.menu > li > a:not(active-trail)').click(function(e) {
		
		if (!$(this).parent().hasClass('leaf')) { e.preventDefault();	}
		$(this).toggleClass('open').parent().children('ul').slideToggle();
		$(this).parent().siblings().each(function() {$(this).find('a.open').removeClass('open');  $(this).children('ul').slideUp(); });
		
		if($('body').hasClass('ie7')){
			$('.region-left .menu-block-wrapper > ul.menu > li > ul > li > ul').css('display','none');
		}
	}); 
	
	$('.region-left .menu-block-wrapper > ul.menu > li > ul.menu > li > a:not(active-trail)').click(function(e) {
		if (!$(this).parent().hasClass('leaf')) { e.preventDefault();	}
		$(this).toggleClass('open').parent().children('ul').toggleClass('openshade').slideToggle();
		$(this).parent().siblings().each(function() { $(this).find('a.open').removeClass('open');  $(this).children('ul').slideUp(); });
	});

});

$(document).ready(function(){ 

	//BROWSER DETECTION
		if ($.browser.mozilla) {
			$('body').addClass('ff');
			if ($.browser.version == "1.9.1.9" || $.browser.version == "1.9.1.10" || $.browser.version == "1.9.1.11" || $.browser.version == "1.9.1.12") {
				$('body').addClass('ff35');
			}
		}
		else if ($.browser.opera) {
			$('body').addClass('oo');
			//alert ($.browser.version);
		}
		else if ($.browser.safari) {
			$('body').addClass('sf');
		}
		else if ($.browser.msie) {
			if ($.browser.version == "6.0") {
				$('body').addClass('ie6');
			}
			else if($.browser.version == "7.0") {
				$('body').addClass('ie7');
			}
			else if($.browser.version == "8.0") {
				$('body').addClass('ie8');
			}
		}

		//ADD BODY PATH CLASSES 
	var path=window.location.href;
		path=path.split("#")[0];
	var toks=path.split("/");
	for(var i = 0;i<toks.length;i++){
		if (i>2){
			$('body').addClass("path-"+toks[i]);
		}
	}

	
	//open globalstar footer links in a new window
	$(".gslink.popup").click(function(e){
	e.preventDefault();
	window.open($(this).attr('href'));

	});
	
	$(".noshow.popup").click(function(e){
	 e.preventDefault();
	window.open($(this).attr('href'));

	}); 
	
	//Tips active link workaround
	
	$('.front .region-left #block-views-tips-block-1 .view-content .item-list li a').each(function(i){ $(this).attr('href',Drupal.settings.basePath+'tips#tips-page-'+i); });
	$('.path-tips .region-content .views-row a').each(function(i){ if('#'+window.location.href.split("#")[1]==$(this).attr('href')){ $(this).click(); } } );
	
	//mouse over gia katastimata
	shopsover();
	
	// remove the home word from top mini menu
	$('.menu-block-2 .menu-mlid-582 a').text('');
	
	slideShowLink();
	
	
	//add a product block with yellow bg
	addProductBlock();
	
	
	if($('body').hasClass('ie7')){
		$('.region-left .menu-block-wrapper > ul.menu > li > ul > li a.active-trail').click().click();
	}

	
});





/************************************************ functions ******************************************/

function slideShowLink()
{
	$('.view-id-slide_show .jcarousel-container li.jcarousel-item').each(function(){
		var link = $(this).find('.views-field-field-url .field-content').text();
		$(this).find('.views-field-title a').attr('href', link);
	
		$(this).find('.views-field-title').click(function(e){
			e.preventDefault();
			var link2 = $(this).find('a').attr('href');
			window.location = link2;
		});
	});
	
}

function addProductBlock()
{
	if($('.page-taxonomy').length>0)
	{
		if($('.view-id-taxonomy_term > .view-content .views-row-last').hasClass('views-row-odd')){
			$('.view-id-taxonomy_term > .view-content .views-row-last').after('<div class="appended_product_block"></div>');
		}
	}
}

function shopsover() 
{
	$('.front .view-id-shops .view-content .views-row').each(function(i){
		var shop = $(this).find('.views-field-title span').text();
		
		$(this).click(function(){
			window.location = 'shops';
		});
		
		if(shop == 'Αμπελόκηποι')
		{
			$(this).hover(
				function(){
					$(this).addClass('hover');
					$(this).find('span').css('display','none');
					$(this).append('<div class="hovershop" rel="'+i+'"><div class="street"><p>Φωκίδος 31 & Μεσογείων 50</p></div><div class="phone"><p>Τηλ. 210 7700 750</p></div><div class="fax"><p>Fax. 210 7750 771</p></div></div>');					
				},
				function(){
					$(this).removeClass('hover');
					$('.hovershop[rel="'+i+'"]').remove();
					$(this).find('span').css('display','block');
				}
			);
		}
		else if(shop == 'Γαλάτσι')
		{
			$(this).hover(
				function(){
					$(this).addClass('hover');
					$(this).find('span').css('display','none');
					$(this).append('<div class="hovershop" rel="'+i+'"><div class="street"><p>Αγ. Γλυκερίας 16</p></div><div class="phone"><p>Τηλ. 210 2926 045</p></div><div class="fax"><p>Fax. 210 2921 465</p></div></div>');					
				},
				function(){
					$(this).removeClass('hover');
					$('.hovershop[rel="'+i+'"]').remove();
					$(this).find('span').css('display','block');
				}
			);
		}
		else if(shop == 'Μελίσσια')
		{
			$(this).hover(
				function(){
					$(this).addClass('hover');
					$(this).find('span').css('display','none');
					$(this).append('<div class="hovershop" rel="'+i+'"><div class="street"><p>Λεωφ. Πηγής 28</p></div><div class="phone"><p>Τηλ. 210 6136 640</p></div><div class="fax"><p>Fax. 210 6130 210</p></div></div>');					
				},
				function(){
					$(this).removeClass('hover');
					$('.hovershop[rel="'+i+'"]').remove();
					$(this).find('span').css('display','block');
				}
			);
		}
		else if(shop == 'Χολαργός')
		{
			$(this).hover(
				function(){
					$(this).addClass('hover');
					$(this).find('span').css('display','none');
					$(this).append('<div class="hovershop" rel="'+i+'"><div class="street"><p>Λεωφ. Μεσογείων 292</p></div><div class="phone"><p>210 6563 636-9</p></div><div class="fax"><p>Fax. 210 6563 638</p></div></div>');					
				},
				function(){
					$(this).removeClass('hover');
					$('.hovershop[rel="'+i+'"]').remove();
					$(this).find('span').css('display','block');
				}
			);
		}
		else if(shop == 'Περιστέρι')
		{
			$(this).hover(
				function(){
					$(this).addClass('hover');
					$(this).find('span').css('display','none');
					$(this).append('<div class="hovershop" rel="'+i+'"><div class="street"><p>Λεωφ. Θηβών 99</p></div><div class="phone"><p>Τηλ. 210 5746 087</p></div><div class="fax"><p>Fax. 210 5762 752</p></div></div>');					
				},
				function(){
					$(this).removeClass('hover');
					$('.hovershop[rel="'+i+'"]').remove();
					$(this).find('span').css('display','block');
				}
			);
		}
		else if(shop == 'Ν. Κόσμος')
		{
			$(this).hover(
				function(){
					$(this).addClass('hover');
					$(this).find('span').css('display','none');
					$(this).append('<div class="hovershop" rel="'+i+'"><div class="street"><p>Ηλ. Ηλίου 95</p></div><div class="phone"><p>Τηλ. 210 9022 200</p></div><div class="fax"><p>Fax. 210 9023 817</p></div></div>');					
				},
				function(){
					$(this).removeClass('hover');
					$('.hovershop[rel="'+i+'"]').remove();
					$(this).find('span').css('display','block');
					
				}
			);
		}		
		else if(shop == 'Νίκαια')
		{
			$(this).hover(
				function(){
					$(this).addClass('hover');
					$(this).find('span').css('display','none');
					$(this).append('<div class="hovershop" rel="'+i+'"><div class="street"><p>Γρ. Λαμπράκη 373</p></div><div class="phone"><p>Τηλ. 210 4252 545</p></div><div class="fax"><p>Fax. 210 4252 545</p></div></div>');					
				},
				function(){
					$(this).removeClass('hover');
					$('.hovershop[rel="'+i+'"]').remove();
					$(this).find('span').css('display','block');
				}
			);
		}

	});
};
var $=jQuery;
 $(function() {
	$(document).ready(function(){ 
	
		//language switcher
//		$('#block-locale-language li.active').click(function(){
//			$('#block-locale-language li:not(.active)').slideToggle();
//			return false;
//		}) 

		$('#block-search-form #search-block-form .form-item input[type="text"]').val(Drupal.t('Αναζήτηση'));
		
		
		// --------------- Add a var into ecology products page -----------------
		// Used to hide other product links in the left menu when the link was from ecology page
		$('body.path-oikologika #block-menu-block-4 li a').each(function(){
																		 
			var Link=$(this).attr('href')+"?eco=1"
			
			$(this).attr('href', Link)
		
		})
		
		
		var PageUrl=window.location.href
		
		if ( PageUrl.indexOf('eco=1') != -1 ) {
			
			$('body.path-products #block-menu-block-4 li a').each(function(){
																			 
				var Link=$(this).attr('href')+"?eco=1"
				
				$(this).attr('href', Link)
			
			})
			
			
			$('body.path-products #block-menu-block-4 .content div.menu-level-2 > ul > li').each(function(){
																			 
				var Link=$(this).children('a').attr('href')
				if ( Link.indexOf( "products/oikologika" ) == -1 ) $(this).remove() //addClass('eco-hidden')
			})
						
		}
		// --------------- Add a var into ecology products page (END) -----------------
		
		
		
		// home remover
		$('.menu-mlid-582 a').text(Drupal.t('Αρχική'));
		
		//Sendbox
		$('.i18n-el.path-contact .webform-client-form #edit-submit').attr('value', 'Αποστολή');
	
		//Mandatory Message in Webform
		$('.i18n-el.path-contact #webform-client-form-4').append("<div class='mand'>* Υποχρεωτικά Πεδία</div>")
		$('.i18n-en.path-contact #webform-client-form-4').append("<div class='mand'>* Mandatory Fields</div>")
		
		
		// add margarita se ola ta eco products
		putEcoImg();
		
		// emfanise ta 2 block otan eimai sta oikologika
		printEcoBlock();
		
		//remove the value from newsletter submit in ie7
		removeNewVal();
		
		//energiaka kai psuxra xrwmata fancybox
		energyPsyxraFancy();
		
		$('.i18n-el.page-newsletter-confirm #edit-submit').val('Εγγραφή');
		$('.i18n-el.page-newsletter-confirm #edit-cancel').text('Άκυρο');
		
		//make the whole <li> in news as a link
		$('.view-news ul li.views-row').click(function(){
			
			//
			var url = window.location.toString();
			url.match(/\?(.+)$/);
 			var params = RegExp.$1;
			
			var params = params.split("&");
 			var queryStringList = {};
			
			 for(var i=0;i<params.length;i++)
			 {
				 var tmp = params[i].split("=");
				 queryStringList[tmp[0]] = unescape(tmp[1]);
			 }
			 
			 // print all querystring in key value pairs
			for(var i in queryStringList)
	
			var newhref=$(this).find('a').attr('href');
			if(queryStringList[i]!='undefined')
			{
				window.location=newhref+'?page='+queryStringList[i];
			}
			else
			{
				window.location=newhref;
			}
		});
		//make the whole <li> in services as a link
		$('.view-services ul li.views-row').click(function(){
			
			//
			var url = window.location.toString();
			url.match(/\?(.+)$/);
 			var params = RegExp.$1;
			
			var params = params.split("&");
 			var queryStringList = {};
			
			 for(var i=0;i<params.length;i++)
			 {
				 var tmp = params[i].split("=");
				 queryStringList[tmp[0]] = unescape(tmp[1]);
			 }
			 
			 // print all querystring in key value pairs
			for(var i in queryStringList)
	
			var newhref=$(this).find('a').attr('href');
			if(queryStringList[i]!='undefined')
			{
				window.location=newhref+'?page='+queryStringList[i];
			}
			else
			{
				window.location=newhref;
			}
		});
		
		//make the whole <div> in products as a link with different title
			$('.path-products .view-taxonomy-term .views-row').click(function(e){
			e.preventDefault();
			var newhref=$(this).find('a:last').attr('href');
			if(newhref)
			{
				window.open(newhref);
			}
		});
		$('.path-products .view-taxonomy-term .views-row').find('a:last').text('Download Pdf');
		
		$('.page-offers .view-offers .views-row').click(function(e){
			e.preventDefault();
			var newhref=$(this).find('a:last').attr('href');
			window.open(newhref);
		});
		$('.page-offers .view-offers .views-row').find('a:last').text('Download Pdf');
		
		$('.page-new-products .view-newproducts .views-row').click(function(e){
			e.preventDefault();
			var newhref=$(this).find('a:last').attr('href');
			window.open(newhref);
		});
		$('.page-new-products .view-newproducts .views-row').find('a:last').text('Download Pdf');
		
		//make the whole <div> in front news as a link
		$('.front .view-news .views-row').click(function(){
			var newhref2=$(this).find('a').attr('href');
			window.location=newhref2;
		});		
		//make the whole <div> in front services as a link
		$('.front .view-services .views-row').click(function(){
			var newhref2=$(this).find('a').attr('href');
			window.location=newhref2;
		});
		
		//make the whole <li> in front tips as a link
		$('.front .view-tips ul li.views-row').click(function(){
			var newhref3=$(this).find('a').attr('href');
			window.location=newhref3;
		});
		
		//make the whole <div> in front tips as a link
		$('#block-block-7').click(function(){
			var newhref4=$(this).find('a:last').attr('href');
			window.location=newhref4;
		});
		
		//make the whole <div> in front links as a link
		$('#block-views-external-links-block-1 .views-row').click(function(){
			var newhref5=$(this).find('a:last').attr('href');
			window.open(newhref5);
		});
		
		
		
		
		
		
	
		
		//coloumnize innernews, innerservices 
		if($('.path-new').length>0){
			$.getScript(Drupal.settings.basePath+'sites/all/themes/trakadas/scripts/jquery.columnize.js', function() {
				$('.path-new .view-news .views-field-body').columnize({columns: 2});
			});
		}
		if($('.path-services .view-display-id-page_1.view-services').length>0){
			$.getScript(Drupal.settings.basePath+'sites/all/themes/trakadas/scripts/jquery.columnize.js', function() {
				$('.path-services .view-services .views-field-body').columnize({columns: 2});
			});
		}
	
		//add clear class
		$('.path-shops #page-title').wrap('<div class="title-wrapper" />');
		
		//parking
		$('.path-shops .views-field-field-parking div').each(function(){
			if($(this).text()=="No Parking"){
				//$(this).text("");
				$(this).parent().css("display","none");
			}
			else{
				$(this).text("Χώρος Στάθμευσης");
				//$(this).append("<span>Χώρος Στάθμευσης</span>");
			}
		})
		
		
		//newsletter
		$('.i18n-en #edit-submitted-e-mail-newsletter-email-address').val('type your mail here');
		$('.i18n-el #edit-submitted-e-mail-newsletter-email-address').val('συμπληρώστε το mail σας εδώ');
	
		$('input.form-text,textarea').each(function(i, el) {
			var initialVal = $(el).val();
			$(el).focus(function() {
				if ($(this).val() == initialVal) {
					$(this).val("");
				}
			}).blur(function() {
				if ($(this).val() == "") {
					$(this).val(initialVal);
				}
			});
		});
		
		//Share
		$('.path-new .view-news .views-row .views-field-title-1').after($('div.sharethis'));
		$('.path-services .view-services .views-row .views-field-title').after($('div.sharethis'));
		
	
	//fancybox maps
	popUpMaps();
	
	
	//breadcrump for products and eco
	if($('body').hasClass('page-taxonomy')){
		var curtitle = $('h1#page-title').text();
		$('.breadcrumb').append('<span class="cur"> >'+curtitle+'</span>');
	}
		
		
	});
	
	
	$('.path-news #page-title').text(' ');
	
	translations();
	
	//link of chromatopolia only 
	chroma();
	
	chromatologia();
	
	//ecological breadcrumb
	ecobread();
	
	chromalist();
	
	contactfrm()
	
});


// add margarita se ola ta eco products
function putEcoImg()
{
	//gia ta products
	if($('.page-taxonomy').length>0)
	{
		var ecoCat = 'Οικολογικά';
		
			$('.page-taxonomy').find('.view-taxonomy-term .views-row').each(function(){
				$(this).find('.views-field-tid li').each(function(){
					if($(this).text() == ecoCat)
					{
						$(this).parent().parent().parent().parent().parent().append('<div class="ecoWrapper"><img src="../sites/all/themes/trakadas/images/eco1.png" width="25" height="34" alt="ecology"/></div>');
					}
				});
			});
	}
	//gia tis prosfores
	else if($('.page-offers').length>0)
	{
		var ecoCat = 'Οικολογικά';
		
			$('.view-offers .view-content .views-row').each(function(){
				$(this).find('.views-field-tid li').each(function(){
					if($(this).text() == ecoCat)
					{
						$(this).parent().parent().parent().parent().parent().append('<div class="ecoWrapper"><img src="sites/all/themes/trakadas/images/eco1.png" width="25" height="34" alt="ecology"/></div>');
					}
				});
			});
	}
	//gia ta new products
	else if($('.page-new-products').length>0)
	{
		var ecoCat = 'Οικολογικά';
		
			$('.view-newproducts .view-content .views-row').each(function(){
				$(this).find('.views-field-tid li').each(function(){
					if($(this).text() == ecoCat)
					{
						$(this).parent().parent().parent().parent().parent().append('<div class="ecoWrapper"><img src="sites/all/themes/trakadas/images/eco1.png" width="25" height="34" alt="ecology"/></div>');
					}
				});
			});
	}	
}
// emfanise ta 2 block otan eimai sta oikologika
function printEcoBlock()
{
	if($('#block-menu-block-4').length>0)
	{
		if($('#block-menu-block-4 h2').text() == 'Οικολογικά')
		{
			$('#block-block-8').css('display','block');
			$('#block-block-9').css('display','block');
		}
	}
}
//remove the submit value from newsletter ie7
function removeNewVal()
{
	if($('body').hasClass('ie7'))
	{
		$('#webform-client-form-24 #edit-submit').val('');
		$('#webform-client-form-24 #edit-submit--2').val('');
	}
}
//energiaka kai psuxra xrwmata fancybox
function energyPsyxraFancy()
{
	
	if($('#block-block-8').length>0 || $('#block-block-9').length>0 || $('#block-block-15').length>0)
	{
	
	$(window).load(function(){ 
		$("a[rel=fancybox]").fancybox({
			'autoDimensions':	false,
			'width'			:	600,
			'height'		:	400,
			'overlayShow'	:	true,
			'centerOnScroll':	true,
			'overlayColor'	:	'#666',
			'showNavArrows'	:	false
		});
	});
		
	}
}

function popUpMaps()
{
	if($('.page-shops').length>0)
	{
		$('.view-shops .views-row').each(function(i){
			i=i+1;
			var newHref = '#map-wrapper'+i;
			
			$(this).find('.views-field-nothing a').attr('href', newHref);
		});
			
		$(window).load(function(){ 
		
			$("a[rel=fancybox]").fancybox({
				'autoDimensions':	false,
				'width'			:	400,
				'height'		:	400,
				'overlayShow'	:	true,
				'centerOnScroll':	true,
				'overlayColor'	:	'#666',
				'showNavArrows'	:	false
			});
			
		});
	}
}

function translations() {
	$('.path-en #block-menu-block-1 ul li.menu-mlid-3163 a, .path-en #block-menu-block-3 ul li.menu-mlid-584 a').text('Company');
	$('.path-en #block-menu-block-1 ul li.menu-mlid-554 a').text('Offers');
	$('.path-en #block-menu-block-1 ul li.menu-mlid-3165 a').text('Ecological');
	$('.path-en #block-menu-block-1 ul li.menu-mlid-556 a').text('News');
	$('.path-en #block-menu-block-1 ul li.menu-mlid-5280 a').text('Products');
	$('.path-en #block-menu-block-3 ul li.menu-mlid-586 a').text('News');
	$('.path-en #block-menu-block-3 ul li.menu-mlid-5603 a').text('Products');
	$('.path-en #block-menu-block-3 ul li.menu-mlid-587 a').text('Shops');
}

function chroma(){
	var newlink = Drupal.settings.basePath +'chroma'
	$('#block-block-20 a').attr('href',newlink)	
}

function chromatologia(){
	$('.view-chromatologio ul li.views-row').click(function(){
		var newlink = $(this).find('.views-field-field-brochure-file a').attr('href');
		window.open(newlink);
	})
}

function ecobread(){
	$('div.breadcrumb > a').each(function(){
		var rightpath=Drupal.settings.basePath+'oikologika';
		var path=Drupal.settings.basePath+'products/oikologika';
		if($(this).attr('href')== path){
			$(this).attr('href',rightpath);
		}
	})	
}


function chromalist(){
	$('table.chromalist tr td a').each(function(){
		$(this).attr('target','_blank');											
	})	
}

function contactfrm(){
	$('.path-contact .block-webform input[type="submit"]').each(function(){
		$(this).val('');																	 
	})	
}




;

