



function GetObj ( id ) { return document.getElementById(id); }
image_move=-900;
function moveObjRight_image( id ) {    
	obj_image = GetObj( id );
	var browser=navigator.appName; if (browser == "Microsoft Internet Explorer") image_move+=20; else image_move+=15;
	if(image_move>=0) image_move=0; obj_image.style.left = image_move + "px";
   	if(image_move<0) window.setTimeout("moveObjRight_image('" + obj_image.id + "');", 15);
}
right_move=490;
function moveObjRight_fracture_right( id ) {   
	obj_right = GetObj( id );	
	var browser=navigator.appName; if (browser == "Microsoft Internet Explorer") right_move-=20; else right_move-=15; 
	if(right_move<=0) right_move=0; obj_right.style.left = right_move + "px"; 
	//obj_right.style.height = "400px";
   	if(right_move>0) window.setTimeout("moveObjRight_fracture_right('" + obj_right.id + "');", 18);
}
right_move2=835;
function moveObjRight_fracture_right2( id ) {   
	obj_right2 = GetObj( id );	
	var browser=navigator.appName; if (browser == "Microsoft Internet Explorer") right_move2-=35; else right_move2-=25; 
	if(right_move2<=0) right_move2=0; obj_right2.style.left = right_move2 + "px"; 
	//obj_right2.style.height = "400px";
   	if(right_move2>0) window.setTimeout("moveObjRight_fracture_right2('" + obj_right2.id + "');", 15);
}
/*left_move=-920;
left_width = 200;
function moveObjRight_fracture_left( id ) {   
	obj_left = GetObj( id );	
 
   	left_move+=15; if(left_move>=0) left_move=0; obj_left.style.left = left_move + "px"; 

//	if (left_width<367) left_width+=3; else left_width=367; obj_left.style.width = left_width + "px";

	obj_left.style.height = "400px";

   	if(left_move<0) window.setTimeout("moveObjRight_fracture_left('" + obj_left.id + "');", 10);
}
*/


/*
fracture_move=482;
fracture_width = 100;
function moveObjRight_fracture( id ) {   
	obj_fracture = GetObj( id );	
 
   	fracture_move-=15; if(fracture_move<=0) fracture_move=0; obj_fracture.style.left = fracture_move + "px"; 

//	if (fracture_width<367) fracture_width+=10; else fracture_width=367; obj_fracture.style.width = fracture_width + "px";

	obj_fracture.style.height = "400px";

   	if(fracture_move>0) window.setTimeout("moveObjRight_fracture('" + obj_fracture.id + "');", 10);
}
*/

function opacity(id, opacStart, opacEnd, millisec) {
    //speed for each frame
    var speed = Math.round(millisec / 100);
    var timer = 0;

    //determine the direction for the blending, if start and end are the same nothing happens
    if(opacStart > opacEnd) {
        for(i = opacStart; i >= opacEnd; i--) {
            setTimeout("changeOpac(" + i + ",'" + id + "')",(timer * speed));
            timer++;
        }
    } else if(opacStart < opacEnd) {
        for(i = opacStart; i <= opacEnd; i++)
            {
            setTimeout("changeOpac(" + i + ",'" + id + "')",(timer * speed));
            timer++;
        }
    }
}

//change the opacity for different browsers
function changeOpac(opacity, id) {
    var object = document.getElementById(id).style;
    object.opacity = (opacity / 100);
    object.MozOpacity = (opacity / 100);
    object.KhtmlOpacity = (opacity / 100);
    object.filter = "alpha(opacity=" + opacity + ")";
} 

