﻿function swap1( img1, src1 ){
	var img = document.getElementById(img1);
	if ( img){
		img.src = src1;
	}
}



     function inter2(content  ) {
			
                scroll(0,0);
                //document.getElementById('popupTitle').innerHTML = '';
                showPopWin( content  , 525, 450);
                changeOpac(40,'popupMask');
                
                return false;
  	}
	
	
	function changeOpac(opacity, objectid) {
                    var object = document.getElementById( objectid ).style;
                    object.opacity = (opacity / 100); 
                    object.MozOpacity = (opacity / 100); 
                    object.KhtmlOpacity = (opacity / 100); 
                    object.filter = "alpha(opacity=" + opacity + ")"; 
                    // object.style.filter = "alpha(opacity=" + opacity + ")"; 
    }	
	
	
	var MAIN_URL = "";
	
	function common_isEmailTaken( email, onreturnfunc ){
	
			sajax_do_call("emaildup", new Array( email , onreturnfunc ),  MAIN_URL+ "ajax.aspx")
		
	}
	
	
	
	function getFlashVersion ( ) {
		
			/*
			for(var i=7; i>0; i--){
				flashVersion = 0;
				try{
					var flash = new ActiveXObject("ShockwaveFlash.ShockwaveFlash." + i);
					flashVersion = i;
				}
				catch(e){
						var r = '';
						for (var p in e)
						  r += p + ': ' + e[p] + '\n';
						alert(r);

				}
			}
			return flashVersion;
			*/
			var flashinstalled = 0;
			var flashversion = 0;
			MSDetect = "false";
			if (navigator.plugins && navigator.plugins.length)
			{
				x = navigator.plugins["Shockwave Flash"];
				if (x)
				{
					flashinstalled = 2;
					if (x.description)
					{
						y = x.description;
						flashversion = y.charAt(y.indexOf('.')-1);
					}
				}
				else
					flashinstalled = 1;
				if (navigator.plugins["Shockwave Flash 2.0"])
				{
					flashinstalled = 2;
					flashversion = 2;
				}
			}
			else if (navigator.mimeTypes && navigator.mimeTypes.length)
			{
				x = navigator.mimeTypes['application/x-shockwave-flash'];
				if (x && x.enabledPlugin)
					flashinstalled = 2;
				else
					flashinstalled = 1;
			}
			else{
				MSDetect = "true";
			}
			//alert(flashversion);
			return flashversion 
			
	}

function getStyleObject(objectId) {
    // cross-browser function to get an object's style object given its id
    if(document.getElementById && document.getElementById(objectId)) {
	// W3C DOM
	return document.getElementById(objectId).style;
    } else if (document.all && document.all(objectId)) {
	// MSIE 4 DOM
	return document.all(objectId).style;
    } else if (document.layers && document.layers[objectId]) {
	// NN 4 DOM.. note: this won't find nested layers
	return document.layers[objectId];
    } else {
	return false;
    }
} // getStyleObject

function changeObjectVisibility(objectId, newVisibility) {
    // get a reference to the cross-browser style object and make sure the object exists
    var styleObject = getStyleObject(objectId);
    if(styleObject) {
	styleObject.visibility = newVisibility;
	return true;
    } else {
	alert("cant find object");// we couldn't find the object, so we can't change its visibility
	return false;
    }
} // changeObjectVisibility

function changeObjectDisplay(objectId, newDisplay) {
    // get a reference to the cross-browser style object and make sure the object exists
    var styleObject = getStyleObject(objectId);
    if(styleObject) {
	styleObject.display = newDisplay;
	return true;
    } else {
	// we couldn't find the object, so we can't change its visibility
	return false;
    }
} // changeObjectVisibility


