if (document.images) {
blue_ball = new Image();
blue_ball.src = 'pohja/anis.gif';
red_ball = new Image();
red_ball.src = 'pohja/anio.gif';
}
var PictureWnd = "";
function AlterImage(name, type) {
document.images[name].src = eval(type + ".src");
}
function xxxOpen_Image(ImageName, WndTitle, WndText, x, y) {
PictureWnd = window.open('PictureWindow.html?'+ImageName+';'+WndTitle+';'+WndText+';'+x+';'+y,'PictureWindow','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,width=600,height=470');
return false;
}
imagename = '';
WindowText = '';
WindowTitle = '';
WindowWidth = '';
WindowHeight = '';
lrgwin = '';
function Open_Image(imgnme, WndTitle, WndText, x, y) {
lrgewin = window.open("about:blank","","toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,height=" + y + ",width=" + x);
imagename = imgnme;
WindowText = WndText;
WindowTitle = WndTitle;
setTimeout('update()',500)
}
function update() {
doc = lrgewin.document;
if (WindowTitle == "") { WindowTitle = "Louhintaliike Mäkinen Oy"; }
doc.open('text/html');
doc.write('
' + WindowTitle + '<\/TITLE><\/HEAD>');
doc.write('');
doc.write('Sulje ikkuna tästä');
doc.write('
');
doc.write('' + WindowText + '
<\/BODY><\/HTML>');
doc.write('');
doc.close();
}
var Status_Text;
var iPos = 0;
var status_str = "";
function Rolling_Status() {
Status_Text = "Louhintaliike Mäkinen Oy --- Kallioräjäytysten erikoisosaamista jo yli 40 vuoden ajan. ";
var chr;
if (iPos > Status_Text.length) {
iPos = 0;
status_str = "";
}
chr = Status_Text.substring(iPos, iPos + 1);
status_str = status_str + chr;
window.status = status_str;
iPos++;
setTimeout("Rolling_Status()", 100);
return true;
}
function Set_Status() {
window.status = Status_Text;
}
function Set_Text(text) {
window.status = text;
}
var index = 0;
var str = "";
var ie = (document.all) ? true : false;
var ns4 = (document.layers) ? true : false;
var ns6 = (document.getElementById && !document.all) ? true : false;
function Rolling_Layer_Text() {
var text = " Kokonaisvaltainen urakointi. Tutustumme veloituksetta kohteisiin, työn laajuudesta riippumatta. Ota yhteyttä: louhinta@louhinta.com ";
var chr;
if (index > text.length) {
index = 0;
str = "";
}
chr = text.substring(index, index + 1);
str = str + chr;
draw_Layer(str);
index++;
setTimeout("Rolling_Layer_Text()", 200);
}
function draw_Layer(str) {
if (ie) {
document.all['Text'].innerHTML = str;
}
if (ns4) {
document.layers['Text'].document.write(str);
document.layers['Text'].document.close();
}
if (ns6) {
over = document.getElementById(['Text']);
range = document.createRange();
range.setStartBefore(over);
domfrag = range.createContextualFragment(str);
while (over.hasChildNodes()) {
over.removeChild(over.lastChild);
}
over.appendChild(domfrag);
}
}