// highlight item
function setHighlight(obj, flag){
	if (flag){
	obj.className='aHighlightH';
	}
	else {
	obj.className='aHighlight';
	}
}

// do Nothing
function doNothing(){
}

function specialOfferPopup(URL) {
	var saveConfirm = window.open(URL, "_blank", "height=375, width=675, status=no, toolbar=no, menubar=no, location=no, left=150, top=150, resizable=no, scrollbars=no");
}

function specialOfferPopup2(URL) {
	var saveConfirm = window.open(URL, "_blank", "height=250, width=375, status=no, toolbar=no, menubar=no, location=no, left=150, top=150, resizable=no, scrollbars=no");
}

function inviteFriendPopup(URL) {
	winwidth = 600; // width of the new window
	winheight = 270; // height of the new window
	winleft = (screen.width / 2) - (winwidth / 2); // center the window right to left
	wintop = (screen.height / 2) - (winheight / 2); // center the window top to bottom
	var saveConfirm = window.open(URL, "_blank", 'top=' + wintop + ',left=' + winleft + ',height=' + winheight + ',width=' + winwidth + ',status=no, toolbar=no, menubar=no, location=no, resizable=no, scrollbars=no');
}

function inviteInvitationPopup(URL) {
	winwidth = 855; // width of the new window
	winheight = 450; // height of the new window
	winleft = (screen.width / 2) - (winwidth / 2); // center the window right to left
	wintop = (screen.height / 2) - (winheight / 2); // center the window top to bottom
	var saveConfirm = window.open(URL, "_blank", 'top=' + wintop + ',left=' + winleft + ',height=' + winheight + ',width=' + winwidth + ',status=no, toolbar=no, menubar=no, location=no, resizable=no, scrollbars=no');
}

function modelbookPopup(URL) {
	winwidth = 550; // width of the new window
	winheight = 300; // height of the new window
	winleft = (screen.width / 2) - (winwidth / 2); // center the window right to left
	wintop = (screen.height / 2) - (winheight / 2); // center the window top to bottom
	var saveConfirm = window.open(URL, "_blank", 'top=' + wintop + ',left=' + winleft + ',height=' + winheight + ',width=' + winwidth + ',status=no, toolbar=no, menubar=no, location=no, resizable=yes, scrollbars=yes');
}

function freeupgradePopup(URL) {
	winwidth = 850; // width of the new window
	winheight = 475; // height of the new window
	winleft = (screen.width / 2) - (winwidth / 2); // center the window right to left
	wintop = (screen.height / 2) - (winheight / 2); // center the window top to bottom
	var saveConfirm = window.open(URL, "_blank", 'top=' + wintop + ',left=' + winleft + ',height=' + winheight + ',width=' + winwidth + ',status=no, toolbar=no, menubar=no, location=no, resizable=yes, scrollbars=yes');
}

function onlinePopup(URL) {
	winwidth = 325; // width of the new window
	winheight = 625; // height of the new window
	winleft = (screen.width - 375); // center the window right to left
	wintop = (screen.height - 725); // center the window top to bottom
	var saveConfirm = window.open(URL, "_blank", 'top=' + wintop + ',left=' + winleft + ',height=' + winheight + ',width=' + winwidth + ',status=no, toolbar=no, menubar=no, location=no, resizable=no, scrollbars=no');
}

function creativebuilderGeneratePopup(URL) {
	winwidth = 625; // width of the new window
	winheight = 275; // height of the new window
	winleft = (screen.width / 2) - (winwidth / 2); // center the window right to left
	wintop = (screen.height / 2) - (winheight / 2); // center the window top to bottom
	var saveConfirm = window.open(URL, "_blank", 'top=' + wintop + ',left=' + winleft + ',height=' + winheight + ',width=' + winwidth + ',status=no, toolbar=no, menubar=no, location=no, resizable=no, scrollbars=yes');
}

// spotlight show/hide
function togglespotlightVisibility(obj,objtxt) {

	try {
	// hide all first
	showcasephotogallery.className='spotlighttopicHidden';
	showcasemembergallery.className='spotlighttopicHidden';
	newsubscribingmembers.className='spotlighttopicHidden';
	spotlightmembers.className='spotlighttopicHidden';
	showcasephotogallerytxt.className='spotlighttopicHidden';
	showcasemembergallerytxt.className='spotlighttopicHidden';
	newsubscribingmemberstxt.className='spotlighttopicHidden';
	spotlightmemberstxt.className='spotlighttopicHidden';
	// extra items to hide when logged in
	}
	catch(e)
	{} 
	
	try {
	// show selected
	obj.className='spotlighttopicVis';
	objtxt.className='spotlighttopicVis';
	}
	catch(e)
	{} 
}

// spotlight show/hide
function toggleshortcutVisibility(obj) {

	try {
	// hide all first
	shortcut0.className='shortcuttopicHidden';
	shortcut1.className='shortcuttopicHidden';
	shortcut2.className='shortcuttopicHidden';
	shortcut3.className='shortcuttopicHidden';
	shortcut4.className='shortcuttopicHidden';
	// extra items to hide when logged in
	}
	catch(e)
	{} 
	
	try {
	// show selected
	obj.className='shortcuttopicVis';
	}
	catch(e)
	{} 
}
