			var prodtab_active = "";
		
			function prodTabHover (type, hover)
			{
				var add = "";
				
				if (type != prodtab_active)
				{
					if (hover == true)
						add = "_1";
					else
						add = "";
					
					document.getElementById("prod_tab_"+type).src = 'http://static1.reprogrammed.net/cmstorm/page/design/tab_'+type+add+'.jpg';
				}
			}
		
			function prodSwitchTab (to, lang, product)
			{
				var tabs = new Array("overview", "specs", "awards", "support", "more");
				var add = "";
				
				prodtab_active = to;
				
				for (var i = 0; i < tabs.length; i++)
				{
					if (tabs[i] == to)
						add = "_2";
					else
						add = "";
						
					document.getElementById("prod_tab_"+tabs[i]).src = 'http://static1.reprogrammed.net/cmstorm/page/design/tab_'+tabs[i]+add+'.jpg';
				}
				
				// loading
					//document.getElementById("product_info_main").innerHTML = '<img src="http://static1.reprogrammed.net/cmstorm/page/design/loader.gif" border="0" align="center" alt="Loading content.." />';
				
				// load
					Lokris.AjaxCall('/libraries/ajax/?type=products_tabs&tab='+to+'&lang='+lang+'&product='+product, prodSwitchTab_RC);
			}
			
			function prodSwitchTab_RC (string)
			{
				document.getElementById("product_info_main").innerHTML = string;
			}
			
			function awardsPage (product, page)
			{
				Lokris.AjaxCall('/libraries/ajax/?type=products_tabs&tab=awards&product='+product+'&page='+page, prodSwitchTab_RC);
			}
			
			function teaserChangeImage (image, title, width, height)
			{
				document.getElementById('teaser_image_link').title = title;
				document.getElementById('teaser_image_link').href = image;
				document.getElementById('teaser_image_title').innerHTML = title;

				var max_width = 450;
				var max_height = 280;
				if (width >= height && width > max_width)
				{
					document.getElementById('teaser_image').width = max_width;
					document.getElementById('teaser_image').height = Math.floor(max_width * height / width);
				}
				else if (width < height && height > max_height)
				{
					document.getElementById('teaser_image').width = Math.floor(max_height * width / height);
					document.getElementById('teaser_image').height = max_height;
				}
				else
				{
					document.getElementById('teaser_image').width = width;
					document.getElementById('teaser_image').height = height;
				}
				
				document.getElementById('teaser_image').src = image;
			}
			
			function toggleFAQ (id)
			{
				if (document.getElementById('faq_'+id).style.display == 'none')
				{
					document.getElementById('faq_'+id).style.display = '';
				}
				else
				{
					document.getElementById('faq_'+id).style.display = 'none';
				}
			}
			
			var video_curplaying = "";
		
			function teaserChangeVideo (video, url)
			{
				if (video_curplaying != "")
					document.getElementById('video_play_'+video_curplaying).style.display = 'none';
				
				document.getElementById('video_play_'+video).style.display = '';
				video_curplaying = video;
				
				document.getElementById('video_frame').src = "http://static1.reprogrammed.net/cmstorm/videos/index2.php?url="+url;
			}
			
			function productPrintPage (lang, product)
			{
				Lokris.AjaxCall('/libraries/ajax/?type=products_tabs&tab=overview&lang='+lang+'&product='+product, productPrintPage_ov);
				Lokris.AjaxCall('/libraries/ajax/?type=products_tabs&tab=specs&lang='+lang+'&product='+product, productPrintPage_specs);
				Lokris.AjaxCall('/libraries/ajax/?type=products_tabs&tab=more&lang='+lang+'&product='+product, productPrintPage_more);
			}
			
			function productPrintPage_ov (string)
			{
				document.getElementById('print_overview').innerHTML = string;
			}
				
			function productPrintPage_specs (string)
			{
				document.getElementById('print_specs').innerHTML = string;
			}
				
			function productPrintPage_more (string)
			{
				document.getElementById('print_more').innerHTML = string;
			}
			
			function esportNews (team)
			{
				Lokris.AjaxCall('/libraries/ajax/?type=esport_news&teamid='+team, esportNews_RC);
			}
			
			function esportNews_RC (string)
			{
				document.getElementById('esport_news').innerHTML = string;
			}			
			
			function popup (url)
{
	window.open (url, "cup_grid", "width="+((screen.width)-20)+",height="+((screen.height)-40)+",toolbar=no,menubar=no,scrollbars=yes,status=no,location=no,resizable=yes");
}