window.onload = function(){
	var anchors = document.getElementsByTagName("a");
//	var isIE = (navigator.appName.indexOf("Microsoft") != -1) ? true : false;;
	for (var i=0; i<anchors.length; i++){
		var anchor = anchors[i];
		var classAttribute = String(anchor.getAttribute('class'));
		var classNameAttribute = String(anchor.getAttribute('className'));

		if (classAttribute.indexOf('hd') != -1 || classNameAttribute.indexOf('hd') != -1){
			anchor.setAttribute('params', 'lightwindow_width=720,lightwindow_height=430,lightwindow_loading_animation=false');
		}

		if (classAttribute.indexOf('sd') != -1 || classNameAttribute.indexOf('sd') != -1){
			anchor.setAttribute('params', 'lightwindow_width=540,lightwindow_height=430,lightwindow_loading_animation=false');
		}

		if (classAttribute.indexOf('dvd') != -1 || classNameAttribute.indexOf('dvd') != -1){
			anchor.setAttribute('params', 'lightwindow_width=640,lightwindow_height=430,lightwindow_loading_animation=false');
		}
	}
}
