function new_window(url) {
	link = window.open(url,"Link","toolbar=0,location=0,directories=0,status=1,menubar=0,scrollbars=0,resizable=0,left=170,top=20,width=800,height=600");
}
function new_window1(url) {
	link = window.open(url,"Link","toolbar=0,location=0,directories=0,status=1,menubar=0,scrollbars=0,resizable=0,left=170,top=20,width=400,height=300");
}
function new_window2(url) {
	link = window.open(url,"Link","toolbar=0,location=0,directories=0,status=1,menubar=0,scrollbars=0,resizable=0,left=170,top=20,width=1000,height=826");
}
function res(id) {
if (screen.width==800) //if 800x600
window.location.replace("http://www.timclima.com/width/800")

else if (screen.width==1280) //if 640x480
window.location.replace("http://www.timclima.com/width/1280")

else if (screen.width==1024) //if 1024x768
window.location.replace("http://www.timclima.com/width/1024")
}

function scroolBy(direction, howmuch, varid) {
	var curent = document.getElementById('img_scrol_' + varid + '').scrollLeft; 
	var newval = 0;
	var chby = parseInt(howmuch);
	if(direction=='left') {
		var newval = (curent+chby);
		document.getElementById('img_scrol_' + varid + '').scrollLeft = newval;
	}
	if(direction=='right') {
		var newval = (curent-chby);
		document.getElementById('img_scrol_' + varid + '').scrollLeft = newval;
	}
	
}

function scrollLeftme(varid) {
	moveleft = setInterval("scroolBy('left', " + 30 + ", " + varid + ")", 100);
}

function scrollRightme(varid) {
	moveright = setInterval("scroolBy('right', " + 30 + ", " + varid + ")", 100);
}

function StopScroll(what) {
	var newwhat = eval(what);
	clearInterval(newwhat);
}

function Ajax112(id,page,form,append,data,eid)
{var page = "http://www.kitaiski.com/counter.php";
var veri=data;veri='type='+data+'&eid='+eid;$.ajax({type:"POST",url:page,data:veri,error:function(html)
{},success:function(html)
{if(typeof(append)=="boolean")
$(id).append(html);else
$(id).html(html);}});return false;}
