window.onload=doResize;
window.onresize=doResize;

function doResize(){
	if (doCheck.browser()=="IE6"){
//		if (doCheck.actual_window_width()<1024){var main_width=985; var resizable_right=510;}
//		var container_width=doCheck.actual_window_width()-400;
//		document.getElementById("resizable_right").style.width=right_width+"px";
//		document.getElementById("resizable_main").style.width=985+"px"; 
                                 }
                   }


var doCheck={
	resolution:function(){var resolution=screen.width; return resolution;},
	browser:function(){
		var ua=navigator.userAgent.toLowerCase();
		var uaVers=window.navigator.userAgent.substr(window.navigator.userAgent.indexOf("MSIE")+5,3);
		if ((ua.indexOf("msie")!=-1&&ua.indexOf("opera")==-1)&&(uaVers=="6.0")){var browser="IE6";}
		else if ((ua.indexOf("msie")!=-1&&ua.indexOf("opera")==-1)&&(uaVers=="7.0")){var browser="IE7";}
		else if (ua.indexOf("chrome")!=-1&&ua.indexOf("opera")==-1){var browser="Chrome";}
		else if (ua.indexOf("firefox")!=-1&&ua.indexOf("opera")==-1){var browser="FF3";}
		else if (ua.indexOf("opera")!=-1){var browser="Opera";}
		else {var browser="another";}
		return browser;
                          },
	actual_offset_width:function(){
		var actual_offset_width=0;
		if (typeof(document.body.offsetWidth)=="number"){actual_offset_width=document.body.offsetWidth;}
		else if(document.documentElement&&(document.documentElement.offsetWidth||document.documentElement.offsetHeight)){actual_offset_width=document.documentElement.offsetWidth;}
		else if(document.body&&(document.body.offsetWidth||document.body.offsetHeight)){actual_offset_width=document.body.offsetWidth;}
		return actual_offset_width;
                                      },
	actual_offset_height:function(){
		var actual_offset_height=0;
		if (typeof(document.body.offsetHeight)=="number"){actual_offset_height=document.body.offsetHeight;}
		else if(document.documentElement&&(document.documentElement.offsetWidth||document.documentElement.offsetHeight)){actual_offset_height=document.documentElement.offsetHeight;}
		else if(document.body&&(document.body.offsetWidth||document.body.offsetHeight)){actual_offset_height=document.body.offsetHeight;}
		return actual_offset_height;
                                       },
	actual_window_width:function(){
		var actual_window_width=0;
		if (typeof(window.innerWidth)=="number"){actual_window_width=window.innerWidth;}
		else if(document.documentElement&&(document.documentElement.clientWidth||document.documentElement.clientHeight)){actual_window_width=document.documentElement.clientWidth;}
		else if(document.body&&(document.body.clientWidth||document.body.clientHeight)){actual_window_width=document.body.clientWidth;}
		return actual_window_width;
                                      },
	actual_window_height:function(){
		var actual_window_height=0;
		if (typeof(window.innerHeight)=="number"){actual_window_height=window.innerHeight;}
		else if(document.documentElement&&(document.documentElement.clientWidth||document.documentElement.clientHeight)){actual_window_height=document.documentElement.clientHeight;}
		else if(document.body&&(document.body.clientWidth||document.body.clientHeight)){actual_window_height=document.body.clientHeight;}
		return actual_window_height;
                                       },
	browser_width_difference:function(){return doCheck.resolution()-doCheck.actual_window_width();},
	browser_height_difference:function(){return doCheck.actual_window_height()-doCheck.resolution();},
	tag_exist:function(tag){if (!document.getElementById(tag)){var tag_exist=false}else{var tag_exist=true;} return tag_exist;},
	tag_collection:function(tag_parent,tag_child){if (doCheck.tag_exist(tag_parent)!=false){var tag_start=document.getElementById(tag_parent); var tag_collection=tag_start.getElementsByTagName(tag_child); return tag_collection;}},
	tag_style:function(tag){if (doCheck.tag_exist(tag)!=false){var tag_style=document.getElementById(tag).style; return tag_style;}},
	tag_innerHTML:function(tag,content){if (doCheck.tag_exist(tag)!=false){document.getElementById(tag).innerHTML=content;}}
            }
