
	/* Javascript main methods */
	
	
	// Variables for browser detection
	var is_IE=false;
	var is_MOZ=false;
	var is_OP=false;
	
	// Variables for screen resolution detection
	var is_ei=false;
	var is_th=false;
	var is_wide=false;
	
	// Pop-up window x,y position
	var photo_x="";
	var photo_y="";
	var photo_parameters="";
	var photo_pointer=0;
	
	// Pop-up window resolution and browser position parameters
	var ie_x=new Array(2);
	ie_x[0]="0";//800
	ie_x[1]="100";//1024
	ie_x[2]="100";//1280
	var ie_y=new Array(2);
	ie_y[0]="0";
	ie_y[1]="95";
	ie_y[2]="95";

	
	// Detects current browser
	if(navigator.appName=="Microsoft Internet Explorer") is_IE=true;
	if(navigator.appName=="Netscape") is_MOZ=true;
	if(navigator.appName=="Opera") is_OP=true;
	if((!is_IE) && (!is_MOZ) && (!is_OP)) is_IE=true; // for unknown browser assumes explorer
	
	// Detects current screen dimensions
	function detect_screen(){
		
		if((screen.width==800) && (screen.hright==600)) {
		
			is_ei=true;
			photo_pointer=0;
		
		}// end if
	
		if((screen.width==1024) && (screen.height==768)){
		
			is_th=true;
			photo_pointer=1;
		
		}// end if
	
		if((screen.width==1280) && (screen.height==768)){
		
			is_wide=true;
			photo_pointer=2;
		
		}// end if
		
		// Sets screen coordinates for current resolution
		photo_x=ie_x[photo_pointer];
		photo_y=ie_y[photo_pointer];
		
	}// end of detect_screen() function
