﻿function index_movie(){

	var movie;

	if(navigator.appName.indexOf("Microsoft") != -1){

		movie = window['index-veskoni'];

	} else {

		movie = document['index-veskoni'];

	}
	
	return movie;
	
}

function index_width(){
	
	if(typeof(window.innerWidth) == 'number' ){

		myWidth = window.innerWidth;
	
	}else if(document.documentElement && (document.documentElement.clientWidth || document.documentElement.clientHeight)) {
   
		//IE 6+ in 'standards compliant mode'
		myWidth = document.documentElement.clientWidth;
		
	} else if(document.body && (document.body.clientWidth || document.body.clientHeight)) {
		
		//IE 4 compatible
		myWidth = document.body.clientWidth;
		
	}
	
	return myWidth;
	
}

function resize_index(height){
	
	var movie = index_movie();
	var width = index_width();
	
	movie.height = (720 * width / 1230);
	
}
