var templateImages=new Array();
templateImages[66]=new Array("header_aris.gif","8092");
templateImages[2]=new Array("bg.jpg","371");
templateImages[3]=new Array("footer.jpg","4607");
templateImages[4]=new Array("netwerk_logo.jpg","2272");
templateImages[8]=new Array("header_new.jpg","47206");
templateImages[46]=new Array("main_page_up.jpg","70030");
templateImages[78]=new Array("s_holder1.jpg","2509");
templateImages[11]=new Array("main_menu_bg.jpg","2200");
templateImages[47]=new Array("submit-loader.gif","1737");
templateImages[82]=new Array("next_game.jpg","19551");
templateImages[81]=new Array("points_holder.jpg","366");
templateImages[79]=new Array("s_holder2.jpg","2595");
templateImages[80]=new Array("next_game_holder.jpg","4490");
templateImages[21]=new Array("contact.jpg","518");
templateImages[23]=new Array("home.jpg","520");
templateImages[63]=new Array("loading.jpg","9338");
templateImages[26]=new Array("eurocup.jpg","1285");
templateImages[40]=new Array("ajax-loader.gif","8787");
templateImages[29]=new Array("search_button.jpg","723");
templateImages[30]=new Array("news_separator.jpg","308");
templateImages[32]=new Array("ajax_wrapper_bg.jpg","798");

var templateTotalImages=21;
var templateLoadedImages=0;
var templateTotalBytes=188303;
var templateTotalBytesLoaded=0;

$(document).ready(function(){
	$("#hideAll").css({"z-index":"1000000","position":"absolute","left":"0px","top":"0px","width":"100%","height":"100%"});
	$("#cViewloader").css({"display":"block","z-index":"10000000","position":"absolute","left":((document.body.clientWidth/2)-60)+"px","top":"200px","width":"120px"});
	$("#progressbar").reportprogress(0,templateTotalBytes);
	$('body').append("<div id='cloader'></div>");
	$('#cloader').css({'position':'absolute','top':'-3000px','width':'0px','height':'1px','overflow':'hidden'});
	$('#cloader').append("<img src='/images/themes/1/header_aris.gif' onLoad='templateCheckLoad(66);' onError='alert(66);'/><img src='/images/themes/1/bg.jpg' onLoad='templateCheckLoad(2);' onError='alert(2);'/><img src='/images/themes/1/footer.jpg' onLoad='templateCheckLoad(3);' onError='alert(3);'/><img src='/images/themes/1/netwerk_logo.jpg' onLoad='templateCheckLoad(4);' onError='alert(4);'/><img src='/images/themes/1/header_new.jpg' onLoad='templateCheckLoad(8);' onError='alert(8);'/><img src='/images/themes/1/main_page_up.jpg' onLoad='templateCheckLoad(46);' onError='alert(46);'/><img src='/images/themes/1/s_holder1.jpg' onLoad='templateCheckLoad(78);' onError='alert(78);'/><img src='/images/themes/1/main_menu_bg.jpg' onLoad='templateCheckLoad(11);' onError='alert(11);'/><img src='/images/themes/1/submit-loader.gif' onLoad='templateCheckLoad(47);' onError='alert(47);'/><img src='/images/themes/1/next_game.jpg' onLoad='templateCheckLoad(82);' onError='alert(82);'/><img src='/images/themes/1/points_holder.jpg' onLoad='templateCheckLoad(81);' onError='alert(81);'/><img src='/images/themes/1/s_holder2.jpg' onLoad='templateCheckLoad(79);' onError='alert(79);'/><img src='/images/themes/1/next_game_holder.jpg' onLoad='templateCheckLoad(80);' onError='alert(80);'/><img src='/images/themes/1/contact.jpg' onLoad='templateCheckLoad(21);' onError='alert(21);'/><img src='/images/themes/1/home.jpg' onLoad='templateCheckLoad(23);' onError='alert(23);'/><img src='/images/themes/1/loading.jpg' onLoad='templateCheckLoad(63);' onError='alert(63);'/><img src='/images/themes/1/eurocup.jpg' onLoad='templateCheckLoad(26);' onError='alert(26);'/><img src='/images/themes/1/ajax-loader.gif' onLoad='templateCheckLoad(40);' onError='alert(40);'/><img src='/images/themes/1/search_button.jpg' onLoad='templateCheckLoad(29);' onError='alert(29);'/><img src='/images/themes/1/news_separator.jpg' onLoad='templateCheckLoad(30);' onError='alert(30);'/><img src='/images/themes/1/ajax_wrapper_bg.jpg' onLoad='templateCheckLoad(32);' onError='alert(32);'/>");
});

function templateCheckLoad(id){
	templateLoadedImages+=1;
	templateTotalBytesLoaded+=parseInt(templateImages[id][1]);
	$("#progressbar").reportprogress(templateTotalBytesLoaded,templateTotalBytes);
}
var showStart=0;

								(function($){
								$.fn.reportprogress = function(val,maxVal) {
									var max;
									if(maxVal){
										max=maxVal
									}else{
										max=100;
									}
									var width=Math.round(val/max*100);
									$("#progress").animate({"width":width+"%"},100,function(){
										if((val>=max) && showStart!=1){
											showStart=1;
											$("#cViewloader").fadeOut("fast",function(){
												$("#hideAll").fadeOut("slow",function(){
													show("Arisbc");
												});
											});
										}
										});
								}})(jQuery);
function setAjax(){
$(".text a").attr("rel","noajax");
$(".page a").attr("rel","noajax");
$("#main_menu a[@rel!=noajax]").each(function(){
if($(this).attr("ajaxSet")!=1){
$(this).attr("ajaxSet",1);
$(this).bind("click",function(){if($(this).attr("href").split("&jsDynamic:")[1]){	var a=$(this).attr("href").split("&jsDynamic:")[1].replace("(","").replace(")","");	if($.browser.msie){var attrs=a.split("%7C");}else{var attrs=a.split("|");}	var tmp="";	for (var i=0;i<attrs.length;i++){		tmp="&"+attrs[i]+"="+(($(this).attr(attrs[i]))?$(this).attr(attrs[i]):"")+tmp;	}	var href=$(this).attr("href").split("&jsDynamic:")[0]+tmp;	$(this).attr("href",href);}else{	var href=$(this).attr("href");
}$(this).doajax("#main_content","fadeIn|slow");return false;
						});
}});
$("#contact a[@rel!=noajax]").each(function(){
if($(this).attr("ajaxSet")!=1){
$(this).attr("ajaxSet",1);
$(this).bind("click",function(){if($(this).attr("href").split("&jsDynamic:")[1]){	var a=$(this).attr("href").split("&jsDynamic:")[1].replace("(","").replace(")","");	if($.browser.msie){var attrs=a.split("%7C");}else{var attrs=a.split("|");}	var tmp="";	for (var i=0;i<attrs.length;i++){		tmp="&"+attrs[i]+"="+(($(this).attr(attrs[i]))?$(this).attr(attrs[i]):"")+tmp;	}	var href=$(this).attr("href").split("&jsDynamic:")[0]+tmp;	$(this).attr("href",href);}else{	var href=$(this).attr("href");
}$(this).doajax("#main_content","fadeIn|slow");return false;
						});
}});
$("#links a[@rel!=noajax]").each(function(){
if($(this).attr("ajaxSet")!=1){
$(this).attr("ajaxSet",1);
$(this).bind("click",function(){if($(this).attr("href").split("&jsDynamic:")[1]){	var a=$(this).attr("href").split("&jsDynamic:")[1].replace("(","").replace(")","");	if($.browser.msie){var attrs=a.split("%7C");}else{var attrs=a.split("|");}	var tmp="";	for (var i=0;i<attrs.length;i++){		tmp="&"+attrs[i]+"="+(($(this).attr(attrs[i]))?$(this).attr(attrs[i]):"")+tmp;	}	var href=$(this).attr("href").split("&jsDynamic:")[0]+tmp;	$(this).attr("href",href);}else{	var href=$(this).attr("href");
}$(this).doajax("#main_content","fadeIn|slow");return false;
						});
}});
$("#slideshow_header a[@rel!=noajax]").each(function(){
if($(this).attr("ajaxSet")!=1){
$(this).attr("ajaxSet",1);
$(this).bind("click",function(){if($(this).attr("href").split("&jsDynamic:")[1]){	var a=$(this).attr("href").split("&jsDynamic:")[1].replace("(","").replace(")","");	if($.browser.msie){var attrs=a.split("%7C");}else{var attrs=a.split("|");}	var tmp="";	for (var i=0;i<attrs.length;i++){		tmp="&"+attrs[i]+"="+(($(this).attr(attrs[i]))?$(this).attr(attrs[i]):"")+tmp;	}	var href=$(this).attr("href").split("&jsDynamic:")[0]+tmp;	$(this).attr("href",href);}else{	var href=$(this).attr("href");
}$(this).doajax("#main_content","fadeIn|slow");return false;
						});
}});
$("#column_center a[@rel!=noajax]").each(function(){
if($(this).attr("ajaxSet")!=1){
$(this).attr("ajaxSet",1);
$(this).bind("click",function(){if($(this).attr("href").split("&jsDynamic:")[1]){	var a=$(this).attr("href").split("&jsDynamic:")[1].replace("(","").replace(")","");	if($.browser.msie){var attrs=a.split("%7C");}else{var attrs=a.split("|");}	var tmp="";	for (var i=0;i<attrs.length;i++){		tmp="&"+attrs[i]+"="+(($(this).attr(attrs[i]))?$(this).attr(attrs[i]):"")+tmp;	}	var href=$(this).attr("href").split("&jsDynamic:")[0]+tmp;	$(this).attr("href",href);}else{	var href=$(this).attr("href");
}$(this).doajax("#main_content","fadeIn|slow");return false;
						});
}});
$("#ajax_wrapper a[@rel!=noajax]").each(function(){
if($(this).attr("ajaxSet")!=1){
$(this).attr("ajaxSet",1);
$(this).bind("click",function(){if($(this).attr("href").split("&jsDynamic:")[1]){	var a=$(this).attr("href").split("&jsDynamic:")[1].replace("(","").replace(")","");	if($.browser.msie){var attrs=a.split("%7C");}else{var attrs=a.split("|");}	var tmp="";	for (var i=0;i<attrs.length;i++){		tmp="&"+attrs[i]+"="+(($(this).attr(attrs[i]))?$(this).attr(attrs[i]):"")+tmp;	}	var href=$(this).attr("href").split("&jsDynamic:")[0]+tmp;	$(this).attr("href",href);}else{	var href=$(this).attr("href");
}$(this).doajax("#main_content","fadeIn|slow");return false;
						});
}});
$("#Gallery a[@rel!=noajax]").each(function(){
if($(this).attr("ajaxSet")!=1){
$(this).attr("ajaxSet",1);
$(this).bind("click",function(){if($(this).attr("href").split("&jsDynamic:")[1]){	var a=$(this).attr("href").split("&jsDynamic:")[1].replace("(","").replace(")","");	if($.browser.msie){var attrs=a.split("%7C");}else{var attrs=a.split("|");}	var tmp="";	for (var i=0;i<attrs.length;i++){		tmp="&"+attrs[i]+"="+(($(this).attr(attrs[i]))?$(this).attr(attrs[i]):"")+tmp;	}	var href=$(this).attr("href").split("&jsDynamic:")[0]+tmp;	$(this).attr("href",href);}else{	var href=$(this).attr("href");
}$(this).doajax("#main_content","fadeIn|slow");return false;
						});
}});
$("#home1 a[@rel!=noajax]").each(function(){
if($(this).attr("ajaxSet")!=1){
$(this).attr("ajaxSet",1);
$(this).bind("click",function(){if($(this).attr("href").split("&jsDynamic:")[1]){	var a=$(this).attr("href").split("&jsDynamic:")[1].replace("(","").replace(")","");	if($.browser.msie){var attrs=a.split("%7C");}else{var attrs=a.split("|");}	var tmp="";	for (var i=0;i<attrs.length;i++){		tmp="&"+attrs[i]+"="+(($(this).attr(attrs[i]))?$(this).attr(attrs[i]):"")+tmp;	}	var href=$(this).attr("href").split("&jsDynamic:")[0]+tmp;	$(this).attr("href",href);}else{	var href=$(this).attr("href");
}$(this).doajax("#main_content","fadeIn|fast");return false;
						});
}});
}